joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.mnx1
lea edi, [esi - 0x3b000]
push edi
jmp 0x454a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a10
mov eax, 1
add ebx, ebx
jne 0x454a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454a44
jne 0x454a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a63
dec eax
add ebx, ebx
jne 0x454a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454a28
add ebx, ebx
jne 0x454a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x454ab5
xor ecx, ecx
sub eax, 3
jb 0x454a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x454aea
sar eax, 1
mov ebp, eax
jmp 0x454a86
add ebx, ebx
jne 0x454a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
inc ecx
add ebx, ebx
jne 0x454a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
add ebx, ebx
jne 0x454aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454a96
jne 0x454ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x454ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x454ac6
jmp 0x454a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x454ad4
add edi, ecx
jmp 0x454a16
pop esi
mov edi, esi
mov ecx, 0xc54
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x454af2
cmp byte [edi], 0x11
jne 0x454af2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x454af7
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x454b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x634bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6354c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x454b24
mov ecx, edi
jns 0x454b53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63554]
or eax, eax
je 0x454b69
mov dword [ebx], eax
add ebx, 4
jmp 0x454b41
call dword [esi + 0x63550]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x454ba0
cmp al, 0xef
ja 0x454b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x454b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x454b82
mov ebp, dword [esi + 0x63558]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x454bd4
sub esp, 0xffffff80
jmp 0x40997c
Function at 0x401be0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x42d9d0]
xor eax, esp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esi + 0x678]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x401c66
lea eax, [esp + 8]
lea edx, [esi + 0x470]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401c30
add esi, 0x574
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401c50
push str.MyFolderNet_
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a861
add esp, 0x108
ret

Function at 0x401c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401cad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401cce
cmp esi, eax
jae 0x401ca7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401cc0
cmp esi, eax
jae 0x401ca7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402180
Capabilities:
Inspect load icon resource

Disassembly:
push esi
mov esi, ecx
call fcn.00420a7d
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0xa
push 0
push 0
push 0
push 0
push 0x80
push eax
push 0x423d78
push 0x800a
add esi, 0xd8
push 0
mov ecx, esi
call fcn.004046c0
test eax, eax
je 0x4021cc
mov ecx, esi
pop esi
jmp 0x404340
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x238]
test eax, eax
je 0x4043bf
mov eax, dword [esi + 0x240]
test eax, eax
jne 0x4043bf
mov eax, dword [esi + 0x23c]
test eax, eax
jne 0x4043bf
mov eax, dword [esi + 0x248]
test eax, eax
je 0x4043a8
lea eax, [esi + 0x50]
push eax
push 1
mov dword [esi + 0x5c], 8
mov dword [esi + 0xe8], 1
mov dword [esi + 0xec], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [esi + 0x23c], eax
mov ecx, dword [esi + 0x23c]
xor eax, eax
cmp ecx, 1
sete al
pop esi
ret
mov ecx, esi
call fcn.004042e0
mov ecx, dword [esi + 0x23c]
xor eax, eax
cmp ecx, 1
sete al
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x403fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xc], ebp
je 0x403fe5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.00420a7d
mov edx, dword [esp + 0x18]
movzx ecx, word [esp + 0x14]
mov eax, dword [eax + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, ebp
jne 0x404035
call fcn.00420a7d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push 9
push 0x10
push str.CPicture_Error
push str.FindResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push edi
call fcn.00420a7d
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
jne 0x40407d
call fcn.00420a7d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push 9
push 0x10
push str.CPicture_Error
push str.LoadResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4040b9
call fcn.00420a7d
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push 9
push 0x10
push str.CPicture_Error
push str.LockResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.00420a7d
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push edi
mov ecx, esi
call fcn.00403d90
test eax, eax
je 0x4040e0
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 4]
cmp eax, ebp
mov dword [esi + 0xc], ebx
je 0x404136
mov ecx, dword [eax]
lea edi, [esi + 8]
push edi
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 4]
mov edx, dword [eax]
add esi, 0x10
push esi
push eax
call dword [edx + 0x18]
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push eax
call ebx
mov ecx, dword [esi]
push 0x9ec
push 0x60
push ecx
mov dword [edi], eax
call ebx
pop edi
mov dword [esi], eax
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x404200
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x42d9d0]
push ebx
xor eax, ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x7a
lea edi, [esi + 0x50]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [esi + 0x23c], eax
mov dword [esi + 0x240], eax
mov dword [esi + 0x284], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], 0x94
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x238], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x264], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x288], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x4042bc
cmp dword [esp + 0x14], 5
jb 0x4042bc
mov eax, 1
mov dword [esi + 0x248], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, ebp
call fcn.0040a861
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
pop edi
mov dword [esi + 0x248], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a861
mov esp, ebp
pop ebp
ret

Function at 0x404c90
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x404cc7
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x404bd0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x404d3c
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x404ce9
jmp dword [eax*4 + 0x404d68]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], edx
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret
Function at 0x4060f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4060fb
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x4061f3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x425650]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x406116
test edi, edi
je 0x406212
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x425650]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x4061f7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x406650
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x406691
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406686
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x4066a4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x18], ecx
pop ebx
ret
Function at 0x4075c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42d9d0]
mov ecx, dword [esp + 0x214]
xor eax, esp
test ecx, ecx
push ebx
mov ebx, dword [esp + 0x214]
mov dword [esp + 0x20c], eax
je 0x40769b
mov al, byte [ecx]
test al, al
je 0x40769b
push esi
push edi
mov edi, ecx
mov edx, ecx
jmp 0x407600
cmp al, 0x2f
je 0x407608
cmp al, 0x5c
jne 0x40760a
mov edi, edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x407600
cmp edi, ecx
mov eax, edi
je 0x40763e
mov esi, edi
sub esi, ecx
push esi
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040b80d
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.004075c0
add esp, 0x14
lea eax, [edi + 1]
lea esi, [esp + 0x110]
mov ecx, ebx
sub esi, ebx
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x407650
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407660
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407671
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
call fcn.0040a861
add esp, 0x20c
ret

Function at 0x4092d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x409361
cmp dword [ebx + 4], 0xffffffff
jne 0x409361
push edi
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4092f6
mov ax, word [0x423ed0]
push esi
mov esi, dword [esp + 0x18]
cmp esi, 1
mov word [edi], ax
mov edi, dword [esp + 0x10]
jne 0x40932c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40932c
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push edi
call fcn.004064e0
add esp, 0x10
test eax, eax
jne 0x40934e
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.00408da0
add esp, 4
pop esi
mov dword [ebx], eax
pop edi
xor eax, eax
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x40b5d7
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.0040b7d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b672
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 [0x430db4]
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 0x40b672
cmp eax, 1
je 0x40b693
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 0x40b672
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b63f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b66e
xor eax, eax
inc eax
jmp 0x40b6b2
cmp edi, eax
jae 0x40b676
xor eax, eax
jmp 0x40b6b2
cmp eax, esi
jae 0x40b67d
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 [0x430db4]
jmp 0x40b696
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 0x40c3cd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x427a20
call fcn.0040d038
mov edi, 0x94
mov eax, edi
call fcn.0040b7d0
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 [0x430db4], ecx
mov eax, dword [esi + 4]
mov dword [0x430dc0], eax
mov edx, dword [esi + 8]
mov dword [0x430dc4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x430db8], esi
cmp ecx, 2
je 0x40c42d
or esi, 0x8000
mov dword [0x430db8], esi
shl eax, 8
add eax, edx
mov dword [0x430dbc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c468
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c468
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c480
cmp eax, 0x20b
je 0x40c46d
mov dword [ebp - 0x1c], esi
jmp 0x40c494
cmp dword [ecx + 0x84], 0xe
jbe 0x40c468
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c48e
cmp dword [ecx + 0x74], 0xe
jbe 0x40c468
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f54a
pop ecx
test eax, eax
jne 0x40c4a8
push 0x1c
call fcn.0040c3a9
pop ecx
call fcn.0040e96a
test eax, eax
jne 0x40c4b9
push 0x10
call fcn.0040c3a9
pop ecx
call fcn.00411dcd
mov dword [ebp - 4], esi
call fcn.00411bcf
test eax, eax
jge 0x40c4d2
push 0x1b
call fcn.0040c384
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x432670], eax
call fcn.00411aad
mov dword [0x430da0], eax
call fcn.00411a0b
test eax, eax
jge 0x40c4f8
push 8
call fcn.0040c384
pop ecx
call fcn.004117d8
test eax, eax
jge 0x40c509
push 9
call fcn.0040c384
pop ecx
push 1
call fcn.0040cc4d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c51f
push eax
call fcn.0040c384
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041177b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c540
movzx eax, word [ebp - 0x40]
jmp 0x40c543
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00417708
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c561
push edi
call fcn.0040cd7a
call fcn.0040cd9c
jmp 0x40c593
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d073
ret
Function at 0x40ccb7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x427a68
call fcn.0040d038
push 8
call fcn.0040f6ee
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x430df4], esi
jne 0x40cceb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x430df0], esi
mov al, byte [ebp + 0x10]
mov byte [0x430dec], al
cmp dword [ebp + 0xc], edi
jne 0x40cd35
cmp dword [0x432668], edi
je 0x40cd25
mov eax, dword [0x432664]
sub eax, 4
mov dword [0x432664], eax
cmp eax, dword [0x432668]
jb 0x40cd25
mov eax, dword [eax]
cmp eax, edi
je 0x40cd06
call eax
jmp 0x40cd06
push 0x42d094
mov eax, 0x42d08c
call fcn.0040cc35
pop ecx
push 0x42d0a0
mov eax, 0x42d098
call fcn.0040cc35
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40cd66
cmp dword [ebp + 0x10], edi
jne 0x40cd74
mov dword [0x430df4], esi
push dword [ebp + 8]
call fcn.0040cbf3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cd73
push 8
call fcn.0040f639
pop ecx
ret
call fcn.0040d073
ret

Function at 0x40ceab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40cec8
call fcn.0040cfb1
mov dword [eax], 0x16
xor eax, eax
jmp 0x40cf32
push esi
push 0x8c
push 1
call fcn.0040c076
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40cf1d
push esi
call fcn.0040e770
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40cefb
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40ce16
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40cf31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040b4ad
test ebx, ebx
pop ecx
je 0x40cf2f
push ebx
call fcn.0040cfc3
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret