joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430fa0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x43737b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x17c]
cmp dword [eax - 8], 0
lea esi, [ecx + 0x17c]
jne 0x43107b
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43107b
mov eax, dword [0x4444f4]
mov dword [esp + 0xc], eax
push 0x96
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0
call fcn.00409a10
mov edi, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00409560
lea ecx, [edi - 0xc]
cmp ecx, dword [0x4444f0]
je 0x43107b
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43107b
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00434fc4
add esp, 0x21c
ret

Function at 0x4311f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x438322
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x1014]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1024]
xor eax, eax
mov dword [esp + 8], eax
mov edx, dword [0x4444f4]
mov dword [esp + 0xc], esi
mov dword [esi], edx
mov dword [esp + 0x101c], eax
mov dword [esp + 8], 1
cmp dword [esp + 0x1028], eax
je 0x43127b
lea eax, [esp + 0x10]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409560
jmp 0x431288
call fcn.004310b0
push eax
mov ecx, esi
call fcn.00409500
mov eax, esi
mov ecx, dword [esp + 0x1014]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00434fc4
add esp, 0x1018
ret 8
Function at 0x4320a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438618
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x88], ebx
call edx
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
sub ebx, dword [esp + 0x20]
sub ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov edi, eax
mov eax, dword [esp + 0x38]
push ebp
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], edi
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x90], 4
call edx
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
push 0xcc0020
mov ecx, dword [esp + 0x38]
push 0
push 0
push edi
push ebx
push ebp
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call ebx
test eax, eax
je 0x4321f7
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x43220a
push edi
call ebp
test eax, eax
je 0x43220a
xor edi, edi
test esi, esi
je 0x432211
push esi
call ebx
test edi, edi
je 0x432218
push edi
call ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00434fc4
add esp, 0x78
ret 4
Function at 0x4332d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x453d8c], 0
push esi
jne 0x433249
call fcn.0043316f
test eax, eax
je 0x43328c
mov eax, dword [0x453d8c]
cmp eax, 1
jne 0x43326a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43328c
pop esi
ret
push eax
call dword [0x453d94]
test eax, eax
jne 0x4332d4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x433290
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x453d8c]
call dword [0x453d94]
mov edi, eax
test edi, edi
je 0x4332b5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4332d1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x453d8c]
call dword [0x453d90]
add edi, 0x10
cmp edi, esi
jb 0x4332bd
mov eax, edi
pop edi
pop esi
ret
jmp 0x433236

Function at 0x433da0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x433f0b
cmp dword [esp + 0x2c20], edi
je 0x433f0b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.00433730
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x433ee4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x433ed7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00434d80
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00433630
test eax, eax
jne 0x433ed7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x433eee
inc ebx
cmp ebx, 0x10
jl 0x433df0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00434fc4
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00434fc4
add esp, 0x2c14
ret
Function at 0x4341b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4343b1
cmp dword [esp + 0x2f8], 0
je 0x4343b1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x43b57c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x434378
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x43436b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x434339
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43432e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004340a0
add esp, 0x14
test eax, eax
je 0x43432e
cmp byte [esp + 0x24], 0
je 0x4342f2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x43432e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x434321
mov cl, byte [esi + eax]
test cl, cl
je 0x434321
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x434306
jmp 0x434325
test edx, edx
jne 0x434326
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x434250
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4343b1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00433630
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00434fc4
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00434fc4
add esp, 0x2ec
ret
Function at 0x434620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x508], eax
test edi, edi
je 0x4347a1
cmp ebx, 0x20
jb 0x4347a1
push 0x400
lea eax, [esp + 0x10c]
push 0
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x400
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0xc]
push eax
push 0x43b5ec
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4347a1
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4346a4
sub eax, edx
cmp eax, 0x40
jne 0x4347a1
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0xc]
lea esi, [esp + 0x10c]
mov ecx, eax
sub esi, ecx
lea esp, [esp]
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4346e8
mov cl, byte [esi + eax]
test cl, cl
je 0x4346e8
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4346d0
jmp 0x4346ec
test edx, edx
jne 0x4346ed
dec eax
mov byte [eax], 0
lea eax, [esp + 0x8c]
lea edx, [esp + 0x12c]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
jmp 0x434710
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x43472b
mov cl, byte [edx + eax]
test cl, cl
je 0x43472b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x434710
jmp 0x43472f
test esi, esi
jne 0x434730
dec eax
push 0x400
lea edx, [esp + 0x110]
push 0
push edx
mov byte [eax], 0
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x118]
push 0x400
push eax
lea ecx, [esp + 0x20]
call fcn.00433800
add esp, 0x14
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x4347a1
lea eax, [esp + 8]
push eax
push ebx
push edi
call fcn.00433630
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00434fc4
add esp, 0x50c
ret
mov ecx, dword [esp + 0x508]
xor ecx, esp
xor eax, eax
call fcn.00434fc4
add esp, 0x50c
ret

Function at 0x4347c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push 0x80
lea eax, [esp + 8]
push 0
push eax
mov esi, ecx
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x10]
push 0x80
push ecx
mov ecx, esi
call fcn.00433800
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x14
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x43482b
mov cl, byte [esi + eax]
test cl, cl
je 0x43482b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x434810
jmp 0x43482f
test edx, edx
jne 0x434830
dec eax
lea edx, [esp + 4]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x8c]
push eax
call fcn.004336a0
lea eax, [esp + 0x84]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434855
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x43b5ec
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00434fc4
add esp, 0x188
ret

Function at 0x434fc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453358]
jne 0x434fce
repz ret
jmp fcn.00435691
Function at 0x1001000
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
push 0xffffffffffffffff
push 0x10217be
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x102806c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push edi
mov eax, dword [0x102806c]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
xor edi, edi
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x18], esi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x3e8
mov dword [esi + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x124], edi
mov dword [esi], 0xab34cd77
push eax
mov eax, dword fs:[0x30]
mov dword [esp + 0x14], eax
pop eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + 0x14]
add eax, 0x14
cmp ebp, eax
je 0x1001173
jmp 0x1001092
xor edi, edi
movzx eax, word [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
push edi
push edi
push 0x100
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xc
call fcn.01012314
push 0x14
mov ebx, eax
call fcn.01012314
lea edx, [esp + 0x20]
push edx
mov edi, eax
call fcn.01011b95
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
add edx, dword [esp + 0x20]
mov eax, 1
xor ecx, ecx
mov dword [edi], edx
mov dword [edi + 0x10], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x24]
add esp, 0xc
cmp eax, dword [esi + 0x28]
jae 0x100115e
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [esi + 0x24], 1
push 0xc
call fcn.01012314
xor edx, edx
add esp, 4
cmp eax, edx
je 0x1001128
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
jmp 0x100112a
xor eax, eax
mov dword [eax], ebx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x1c]
cmp ecx, edx
je 0x100113f
mov dword [ecx + 8], eax
cmp dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
jne 0x100114a
mov dword [esi + 0x20], eax
mov eax, 1
add dword [esi + 0x2c], eax
jne 0x1001157
mov dword [esi + 0x2c], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
mov ebp, dword [ebp]
add eax, 0x14
cmp ebp, eax
jne 0x1001090
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0100fd07
add esp, 0x118
ret
Function at 0x10011b0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x1001258
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1001211
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x100123a
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.01016120
jmp 0x1001237
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.01019d30
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10011e2
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x1001260
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x1001317
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10012b5
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10012fd
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x10294c8]
je 0x10012cf
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10012ea
test al, 0x40
je 0x10012e1
mov ecx, dword [ebx + 0x20]
jmp 0x10012e8
test al, al
jns 0x10012fd
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10012fd
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x1001282
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10014c0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x10217fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x102806c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x102afc0]
test eax, eax
jne 0x10014f9
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x102afc0], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x102afbc], 0
jne 0x1001535
push 0x48
call fcn.01012314
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x100152e
mov esi, eax
call section..text
jmp 0x1001530
xor eax, eax
mov dword [0x102afbc], eax
mov eax, dword [0x102afc0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x102afbc]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1001560
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x524
mov eax, dword [0x102806c]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea eax, [edi + 4]
push eax
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
call ebx
test esi, esi
je 0x1001728
push ebp
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.01016120
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [edi + 0x30]
push eax
call ebx
xor ebx, ebx
cmp dword [edi + 0x24], ebx
jbe 0x1001635
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1001620
cmp ebx, eax
ja 0x1001620
lea ebp, [edi + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
mov esi, dword [edi + 0x1c]
jbe 0x10015fb
mov eax, ebx
sub eax, 1
mov esi, dword [esi + 4]
jne 0x10015f3
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1001620
mov esi, dword [esi]
test esi, esi
je 0x1001620
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0100fea0
add esp, 8
test eax, eax
je 0x100162a
add ebx, 1
cmp ebx, dword [edi + 0x24]
jb 0x10015d5
jmp 0x1001635
mov ecx, dword [esi + 4]
add dword [esi + 8], 1
mov dword [esp + 0xc], ecx
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0xc], 0
jne 0x1001727
push 0x208
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x120]
push ecx
push str._s_S
lea edx, [esp + 0x330]
call fcn.0100fba0
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x33c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1001727
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.01011158
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001720
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001717
cmp dword [esp + 0x14], esi
jne 0x1001717
push ebx
call fcn.01001750
test eax, eax
mov dword [esp + 0xc], eax
je 0x1001717
push 0xc
call fcn.01012314
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.01011b95
mov edx, dword [esp + 0x14]
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], 1
push esi
lea esi, [edi + 0x1c]
call fcn.0100fa40
push ebx
call fcn.01010bef
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x528]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0100fd07
add esp, 0x524
ret