joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4177d0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x417826
mov eax, dword [ecx + 0xa8]
test eax, eax
je 0x417826
push esi
mov esi, dword [ecx + 0xb4]
mov edx, 5
cmp esi, edx
pop esi
je 0x417826
mov dword [ecx + 0xac], eax
lea eax, [esp]
push eax
push 0
push ecx
push 0x4177c0
push 0
push 0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0xb4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret

Function at 0x417c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x417c5b
pop esi
pop ebp
pop ebx
ret 0xc
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x417d31
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x417d31
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [ebx + 4], eax
je 0x417d31
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x417d24
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x417d1a
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.00417b10
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 8
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 8]
cmp eax, ebp
je 0x417d1a
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x417d0a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov ecx, dword [ebx + 8]
cmp ecx, ebp
je 0x417d17
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebx + 8], ebp
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x417fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
mov dword [esp + 4], eax
jmp fcn.00417c30
Function at 0x419820
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x41989a
mov ecx, dword [esi + 0x28]
push ecx
call edi
test eax, eax
je 0x41989a
mov edx, dword [esi + 0x2c]
push edx
call edi
test eax, eax
je 0x41989a
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x419878
mov eax, dword [esi + 0x24]
push 5
push eax
call edi
mov edx, dword [esi + 0x28]
push 5
push edx
call edi
mov ecx, dword [esi + 0x2c]
push 5
push ecx
call edi
pop edi
mov eax, 1
pop esi
ret 4
mov ecx, dword [esi + 0x24]
push 0
push ecx
call edi
mov eax, dword [esi + 0x28]
push 0
push eax
call edi
mov edx, dword [esi + 0x2c]
push 0
push edx
call edi
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x41a100
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x3ec], 0x5a
jle 0x41a157
mov eax, dword [esi + 0x40c]
test eax, eax
je 0x41a157
mov eax, dword [esi + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 4]
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push pe_nt_image_headers32
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop esi
pop ecx
ret
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x3ec]
imul ecx, ecx, 0xff
mov edi, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 4]
push 0xffffffffffffffec
push edx
mov byte [esp + 0x10], cl
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
jne 0x41a1b7
or eax, 0x80000
push eax
mov eax, dword [esi + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41a1e4
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push pe_nt_image_headers32
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [esi + 0x40c]
test eax, eax
mov edx, dword [esi + 4]
je 0x41a1fc
mov ecx, dword [esp + 8]
push 2
push ecx
push 0
jmp 0x41a20a
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x300]
push 3
push eax
push ecx
push edx
call edi
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x3ec]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
pop edi
pop esi
pop ecx
ret
Function at 0x41dfd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42f5bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 8], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi], 0x4317a8
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x44], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x30], 0x430ef4
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 1
call fcn.004196a0
lea ecx, [esi + 0xec]
mov byte [esp + 0x14], 2
call fcn.004196a0
lea ecx, [esi + 0x180]
mov byte [esp + 0x14], 3
call fcn.004196a0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x54], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x218], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], 0xff00ff
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41eca0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
mov esi, ecx
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esi + 0x54], eax
mov eax, esp
push 0
push SysReAllocString
push 0
mov dword [esi + 0x220], ecx
push ecx
mov dword [eax], 0
mov eax, esp
push 0
lea ecx, [esi + 0x30]
mov dword [eax], 0
call fcn.0041e7a0
mov edx, dword [esi + 0x34]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
mov eax, esp
push 0x80080
push 0x96000000
push str.WidgetOrderChange
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov eax, dword [esi + 0x34]
push eax
mov ecx, esi
call fcn.0041e820
test eax, eax
je 0x41edad
push 0
push ecx
mov eax, esp
push 0
push 0x50000000
push 0x431884
push ecx
mov dword [eax], 0x1003
mov eax, esp
mov dword [eax], 0
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esi + 0x24]
call fcn.00403d80
test eax, eax
je 0x41edad
push 0
push ecx
mov eax, esp
push 0
push 0x50000000
push 0x431880
push ecx
mov dword [eax], 0x1004
mov eax, esp
mov dword [eax], 0
mov edx, dword [esi + 4]
push edx
lea ecx, [esi + 0x28]
call fcn.00403d80
test eax, eax
je 0x41edad
push 0
push ecx
mov eax, esp
push 0
push 0x50000000
push str.Order
push ecx
mov dword [eax], 0x1005
mov eax, esp
mov dword [eax], 0
mov eax, dword [esi + 4]
push eax
lea ecx, [esi + 0x2c]
call fcn.00403d80
test eax, eax
jne 0x41edb3
xor eax, eax
pop esi
ret 8
mov ecx, dword [esi + 4]
push 0
push 0x32
push 0x5000
push ecx
mov dword [esi + 0x228], 0xff00ff
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov dword [esi + 0x214], eax
pop esi
ret 8
Function at 0x41ede0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x63c]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41ee2d
push eax
push ecx
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov eax, esp
push 0
lea ecx, [esi + 0x638]
mov dword [eax], 0
call fcn.0041e7a0
mov ecx, dword [esi + 0x63c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
mov eax, esp
push 0
mov dword [eax], 0
mov eax, dword [esi + 0x3e8]
push 0x86000000
push eax
push ecx
mov eax, esp
mov dword [eax], 0
mov edx, dword [esi + 0x63c]
push edx
mov ecx, esi
call fcn.0041e8a0
test eax, eax
je 0x41ee9f
push 0
push ecx
mov eax, esp
push 0
push 0x56000000
push 0x4305bf
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x78]
push eax
call fcn.0041e7a0
test eax, eax
mov dword [esi + 0x2c], eax
je 0x41ee9f
mov ecx, esi
call fcn.0041bf40
test eax, eax
jne 0x41eea4
xor eax, eax
pop edi
pop esi
ret
push 0
push ecx
mov eax, esp
push 0
push 1
push 0
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [esi + 4]
lea edi, [esi + 0x670]
push ecx
mov ecx, edi
call fcn.00403de0
mov edx, dword [edi]
push 0
push 1
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x420c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov eax, dword [0x441874]
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
push 0x3d
push edi
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], 0x30
mov byte [esp + 0x19], 0x31
mov byte [esp + 0x1a], 0x32
mov byte [esp + 0x1b], 0x33
mov byte [esp + 0x1c], 0x34
mov byte [esp + 0x1d], 0x35
mov byte [esp + 0x1e], 0x36
mov byte [esp + 0x1f], 0x37
mov byte [esp + 0x20], 0x38
mov byte [esp + 0x21], 0x39
mov byte [esp + 0x22], 0x41
mov byte [esp + 0x23], 0x42
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x44
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x46
call fcn.00426ac0
add esp, 8
mov ebx, eax
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420d11
sub eax, edx
lea eax, [eax + eax*2 + 0xa]
push eax
call fcn.0042550e
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420d30
sub eax, edx
lea ecx, [eax + eax*2 + 0xa]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x420e02
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
push ebp
mov ebp, esi
jle 0x420dc7
mov eax, dword [esp + 0x34]
test eax, eax
je 0x420d82
movsx eax, byte [edi + ebx]
push eax
call fcn.004264ad
add esp, 4
test eax, eax
je 0x420d82
mov byte [esi], 0x2b
jmp 0x420dbd
movsx ecx, byte [edi + ebx]
push ecx
call fcn.00426a0d
add esp, 4
test eax, eax
jne 0x420db8
mov byte [esi], 0x25
movzx edx, byte [edi + ebx]
shr edx, 4
mov al, byte [esp + edx + 0x14]
xor ecx, ecx
mov byte [esi + 1], al
mov cl, byte [edi + ebx]
and ecx, 0xf
mov dl, byte [esp + ecx + 0x14]
mov byte [esi + 2], dl
add esi, 3
jmp 0x420dbe
mov al, byte [edi + ebx]
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x420d64
mov eax, dword [esp + 0x2c]
sub ebx, eax
inc ebx
push ebx
mov byte [esi], 0
mov esi, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
call fcn.00425cb5
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004251f6
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.004251f6
add esp, 0x18
ret
Function at 0x420e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov eax, esi
push edi
xor edi, edi
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420e31
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x420ef9
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], 0
push 0
je 0x420e74
lea eax, [esp + 0x18]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x420e90
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.http_shellopencommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420ef9
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push esi
push 0
push 0
push 0
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__1_
push esi
mov edi, 1
call fcn.00426b80
add esp, 8
test eax, eax
je 0x420ede
mov byte [eax], 0
push 0x431910
push esi
call fcn.00426b80
add esp, 8
test eax, eax
je 0x420efc
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov byte [esi], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x420f10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x95c
mov eax, dword [0x441874]
mov dword [esp + 0x958], eax
push 0x104
lea eax, [esp + 0x58]
push eax
push 0
call fcn.00420e20
add esp, 0xc
test eax, eax
jne 0x420f4d
mov ecx, dword [esp + 0x958]
call fcn.004251f6
add esp, 0x95c
ret
mov ecx, dword [esp + 0x960]
push edi
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x164]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
add esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x17c]
push ecx
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x95c]
neg eax
sbb eax, eax
neg eax
pop edi
call fcn.004251f6
add esp, 0x95c
ret
Function at 0x423df0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42fb49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4305bf
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
call fcn.00401b90
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push 0x400
push 0
push 0
push eax
push ebx
mov dword [esp + 0x34], 2
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_GetMenuStringA]
mov esi, eax
add esi, 2
push esi
call fcn.00425ecc
mov ebp, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
add esp, 4
mov edi, ebp
rep stosd dword es:[edi], eax
push 0x400
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test ebp, ebp
jne 0x423e8a
xor esi, esi
mov dword [esp + 0x30], esi
jmp 0x423e97
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x30], eax
mov esi, eax
push esi
lea ecx, [esp + 0x14]
call fcn.00401300
test eax, eax
mov ebx, dword [esp + 0x10]
je 0x423ec8
mov eax, dword [esp + 0x30]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov byte [eax + ebx], 0
push ebp
call fcn.00425909
mov eax, dword [ebx - 0xc]
mov edi, dword [esp + 0x2c]
lea esi, [ebx - 0xc]
add esp, 4
test eax, eax
mov dword [esp + 0x2c], 0
jl 0x423ef2
push esi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x423f01
mov eax, dword [0x437070]
push ebx
mov ecx, edi
mov dword [edi], eax
call fcn.00401410
mov eax, dword [0x437074]
add ebx, 0xfffffff4
cmp ebx, eax
mov dword [esp + 0x14], 1
mov byte [esp + 0x20], 0
je 0x423f2e
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x423f2e
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x425ede
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00425d90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x425f79
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x443574]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x425f79
cmp eax, 1
je 0x425f9a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x425f79
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x425f46
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x425f75
xor eax, eax
inc eax
jmp 0x425fb9
cmp edi, eax
jae 0x425f7d
xor eax, eax
jmp 0x425fb9
cmp eax, esi
jae 0x425f84
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x443574]
jmp 0x425f9d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42666b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431ca0
call fcn.00426ce0
mov edi, 0x94
mov eax, edi
call fcn.00425d90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x443574], ecx
mov eax, dword [esi + 4]
mov dword [0x443580], eax
mov edx, dword [esi + 8]
mov dword [0x443584], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x443578], esi
cmp ecx, 2
je 0x4266cb
or esi, 0x8000
mov dword [0x443578], esi
shl eax, 8
add eax, edx
mov dword [0x44357c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x426706
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426706
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42671e
cmp eax, 0x20b
je 0x42670b
mov dword [ebp - 0x1c], esi
jmp 0x426732
cmp dword [ecx + 0x84], 0xe
jbe 0x426706
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42672c
cmp dword [ecx + 0x74], 0xe
jbe 0x426706
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004286f6
pop ecx
test eax, eax
jne 0x426746
push 0x1c
call fcn.00426647
pop ecx
call fcn.0042748c
test eax, eax
jne 0x426757
push 0x10
call fcn.00426647
pop ecx
call fcn.0042af1e
mov dword [ebp - 4], esi
call fcn.0042ad20
test eax, eax
jge 0x426770
push 0x1b
call fcn.00426622
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x444be0], eax
call fcn.0042abfe
mov dword [0x443394], eax
call fcn.0042ab5c
test eax, eax
jge 0x426796
push 8
call fcn.00426622
pop ecx
call fcn.0042a929
test eax, eax
jge 0x4267a7
push 9
call fcn.00426622
pop ecx
push 1
call fcn.00429448
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4267bd
push eax
call fcn.00426622
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042a8cc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4267de
movzx eax, word [ebp - 0x40]
jmp 0x4267e1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00413060
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4267ff
push edi
call fcn.00429575
call fcn.00429597
jmp 0x426831
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00426d1b
ret
Function at 0x427729
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x427757
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42775e
cmp ebx, dword [eax + 4]
jae 0x42775e
xor eax, eax
jmp 0x42794e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42776f
xor eax, eax
inc eax
jmp 0x42794d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x427785
cmp ecx, edx
jae 0x4278ca
cmp dword [eax + 4], 0
je 0x42778e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x427776
cmp dword [ebp + 8], 0
je 0x4277b0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4278ca
cmp eax, esi
jae 0x4278ca
mov eax, dword [0x4433c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4277d5
cmp dword [esi*4 + 0x4433c8], edi
je 0x4278ce
inc esi
cmp esi, eax
jl 0x4277c3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42794a
cmp dword [ebp - 8], 0x1000000
jne 0x42794a
test byte [ebp - 0xc], 0xcc
je 0x427853
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42794a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42794a
cmp word [eax + 0x18], 0x10b
jne 0x42794a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42794a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x427853
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x427853
test byte [ecx + 0x27], 0x80
jne 0x4278ca
push 1
push 0x443408
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x427767
mov ecx, dword [0x4433c0]
test ecx, ecx
mov edx, ecx
jle 0x427887
lea eax, [ecx*4 + 0x4433c4]
cmp dword [eax], edi
je 0x427887
dec edx
sub eax, 4
test edx, edx
jg 0x42787b
test edx, edx
jne 0x4278b8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x427894
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4278ac
lea eax, [edx*4 + 0x4433c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42789a
cmp ecx, 0x10
jge 0x4278b8
inc ecx
mov dword [0x4433c0], ecx
push 0
push 0x443408
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x427767
xor eax, eax
jmp 0x42794d
test esi, esi
jle 0x427767
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x443408
call ebx
test eax, eax
jne 0x427767
cmp dword [esi*4 + 0x4433c8], edi
je 0x427924
mov eax, dword [0x4433c0]
lea esi, [eax - 1]
test esi, esi
jl 0x427912
cmp dword [esi*4 + 0x4433c8], edi
je 0x42790e
dec esi
jns 0x427902
test esi, esi
jge 0x427922
cmp eax, 0x10
jge 0x42791d
inc eax
mov dword [0x4433c0], eax
lea esi, [eax - 1]
jmp 0x427924
je 0x42793c
xor ecx, ecx
test esi, esi
jl 0x42793c
lea eax, [ecx*4 + 0x4433c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42792a
push 0
push 0x443408
call ebx
jmp 0x427767
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret