joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401588
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
mov eax, dword [ebp + 0x2b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp + 0x94]
push ecx
xor ebx, ebx
mov edi, 0x104
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
mov byte [ebp + 0x19c], bl
mov byte [ebp + 0x94], bl
call esi
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x4015ed
mov byte [eax], bl
lea eax, [ebp + 0x94]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x401675
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x94]
push 0x404440
push eax
call fcn.0040112c
add esp, 0x10
inc dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 0x19c]
push eax
push edi
push eax
call esi
lea eax, [ebp + 0x19c]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x40166e
push ebx
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
cmp byte [eax], bl
jne 0x4015fe
mov ecx, dword [ebp + 0x2a4]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403355
add ebp, 0x2a8
leave
ret

Function at 0x40171c
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov dword [esp + 0x24], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4017b9
push ebx
push ebp
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, esi
je 0x401777
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call ebp
push dword [esp + 0x14]
call ebp
pop ebp
pop ebx
cmp edi, esi
je 0x4017b9
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4017b2
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4017b2
cmp dword [esi], 0x4550
jne 0x4017b2
mov dword [esp + 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x401f3a
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
jmp 0x401f8c
dec esi
cmp byte [esi], 0x2f
jne 0x401f8c
push 0x4044d8
push esi
call fcn.00401ec1
pop ecx
pop ecx
test eax, eax
jne 0x401f92
push str.autoextract
push esi
call fcn.00401ec1
pop ecx
pop ecx
test eax, eax
je 0x401f8c
cmp dword [0x406454], 0
jne 0x401f8c
mov dword [0x406454], 1
cmp esi, edi
ja 0x401f51
jmp 0x401f95
mov byte [esi], 0
pop edi
pop esi
ret
Function at 0x40288a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.00401e71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.FDICreate
push edi
call esi
push str.FDICopy
push edi
mov dword [ebp - 0x28], eax
call esi
push str.FDIDestroy
push edi
mov dword [ebp - 0x24], eax
call esi
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp - 0x28], esi
je 0x4029c1
cmp dword [ebp - 0x24], esi
je 0x4029c1
cmp eax, esi
je 0x4029c1
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x401d20
push 0x401d13
push 0x401cf2
push 0x401cd1
push 0x401c9b
push 0x401c90
push 0x401c83
call dword [ebp - 0x28]
add esp, 0x24
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x402929
push str.Could_not_create_FDI_context.
call fcn.00401038
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x401d49
push esi
mov edi, 0x409c00
push edi
push 0x409d60
push eax
call dword [ebp - 0x24]
add esp, 0x1c
push esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x404
push 0x3ef
push dword [0x406024]
call ebx
movzx eax, word [ebp - 0xc]
shl eax, 0x10
push eax
push esi
push 0x401
push 0x3ef
push dword [0x406024]
call ebx
lea eax, [ebp - 0x10]
push eax
push esi
push 0x401d49
push esi
push edi
push 0x409d60
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [ebp - 0x24]
push dword [ebp - 4]
call dword [ebp - 0x20]
add esp, 0x20
call fcn.00402410
cmp dword [0x40665c], esi
je 0x4029bc
push 5
push esi
push esi
push edi
push str.explore
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00401000
push str.Could_not_load_cabinet.dll.
jmp 0x402924
Function at 0x4031e5
Capabilities:
Create shortcut via ishelllink
Terminate process

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x409d08], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x406028], eax
call fcn.00401f98
cmp dword [0x409364], edi
je 0x40322b
push 0x409c00
call fcn.00401588
pop ecx
test eax, eax
jne 0x403225
push str.Couldnt_create_output_directory.
call fcn.00401038
push edi
call fcn.0040288a
push esi
mov esi, str.Segoe_UI
push esi
call fcn.00401284
pop ecx
test eax, eax
je 0x40323f
push esi
jmp 0x403254
mov esi, str.Tahoma
push esi
call fcn.00401284
pop ecx
test eax, eax
jne 0x40323c
push 0x4047c4
push 0x409d20
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x402d7d
push edi
push 0x66
push dword [0x409d08]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40327c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a8]
push ebx
mov ebx, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a0]
push 0
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x78]
push eax
push 0x40480c
push 1
push 0
push 0x40482c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403338
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x40481c
push eax
call dword [ecx]
test eax, eax
jl 0x40332f
push 0x104
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x403326
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403355
add ebp, 0x198
leave
ret

Function at 0x403355
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406004]
jne 0x40335f
repz ret
jmp fcn.0040339b
Function at 0x55cbc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdf000]
push edi
jmp 0x55cbda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55cbe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55cbd0
mov eax, 1
add ebx, ebx
jne 0x55cbf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55cc04
jne 0x55cc23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55cc23
dec eax
add ebx, ebx
jne 0x55cc10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55cbe8
add ebx, ebx
jne 0x55cc1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55cc75
xor ecx, ecx
sub eax, 3
jb 0x55cc3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55ccaa
sar eax, 1
mov ebp, eax
jmp 0x55cc46
add ebx, ebx
jne 0x55cc46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55cc14
inc ecx
add ebx, ebx
jne 0x55cc54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55cc14
add ebx, ebx
jne 0x55cc61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55cc56
jne 0x55cc72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55cc56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55cc94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55cc86
jmp 0x55cbd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55cc94
add edi, ecx
jmp 0x55cbd6
pop esi
mov edi, esi
mov ecx, 0x3a86
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55ccb2
cmp byte [edi], 0x1e
jne 0x55ccb2
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 0x55ccb7
lea edi, [esi + 0x159000]
mov eax, dword [edi]
or eax, eax
je 0x55cd2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15e234]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15e360]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55cce4
mov ecx, edi
jns 0x55cd13
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 + 0x15e364]
or eax, eax
je 0x55cd29
mov dword [ebx], eax
add ebx, 4
jmp 0x55cd01
call dword [esi + 0x15e374]
mov ebp, dword [esi + 0x15e368]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x55cd63
sub esp, 0xffffff80
jmp 0x47d4b3
Function at 0x401237
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40124c
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40125e
xor eax, eax
jmp 0x401290
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401282
cmp esi, eax
jae 0x40125a
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401274
cmp esi, eax
jae 0x40125a
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x402f9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
xor ebp, ebp
mov esi, ecx
cmp dword [esi + 4], ebp
push edi
mov dword [esp + 0xc], ebp
je 0x402fb2
call fcn.00402da4
call fcn.0042f081
push dword [esp + 0x18]
movzx ecx, word [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
jne 0x402fff
call fcn.0042f081
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]
xor eax, eax
jmp 0x4030eb
push ebx
call fcn.0042f081
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
jne 0x403044
call fcn.0042f081
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
push 9
push 0x10
push str.CPicture_Error
push str.LoadResource___Failed_t
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
xor eax, eax
jmp 0x4030ea
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40306e
call fcn.0042f081
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
push 9
push 0x10
push str.CPicture_Error
push str.LockResource___Failed_t
jmp 0x403033
call fcn.0042f081
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push ebx
mov ecx, esi
call fcn.00402dfc
test eax, eax
je 0x403095
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 4]
cmp eax, ebp
mov dword [esi + 0xc], edi
je 0x4030dc
mov ecx, dword [eax]
lea edi, [esi + 8]
push edi
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
add esi, 0x10
push esi
push eax
call dword [ecx + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebp, 0x9ec
push ebp
push 0x60
push dword [edi]
call ebx
push ebp
push 0x60
push dword [esi]
mov dword [edi], eax
call ebx
mov dword [esi], eax
jmp 0x4030e6
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4066c4
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x432a49
call fcn.004174a8
sub esp, 0x17c
mov eax, dword [0x448640]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x134], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x188], 0x44
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00418b40
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.00418b10
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 0x134], ebx
mov byte [eax], bl
jne 0x40676d
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x144]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x140]
call esi
jmp 0x40682d
push ebx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x118], 0xf
call fcn.004031bd
mov edi, 0x4351fc
push edi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], ebx
call fcn.0040368a
push esi
lea ecx, [ebp - 0x130]
call fcn.004065d9
push edi
lea ecx, [ebp - 0x130]
call fcn.004065d9
push 0x4351f8
lea ecx, [ebp - 0x130]
call fcn.004065d9
push dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
call fcn.004065d9
cmp dword [ebp - 0x118], 0x10
mov eax, dword [ebp - 0x12c]
jae 0x4067e5
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x144]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x140]
call esi
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.00403295
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp edi, 1
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004174f8
leave
ret
Function at 0x408621
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jbe 0x40864d
mov eax, dword [ebp + 0xc]
push esi
movzx esi, byte [ebp + 8]
movzx edx, byte [eax]
xor edx, esi
mov esi, dword [ebp + 8]
shr esi, 8
xor esi, dword [edx*4 + 0x446148]
inc eax
dec ecx
mov dword [ebp + 8], esi
jne 0x40862f
pop esi
mov eax, dword [ebp + 8]
pop ebp
ret

Function at 0x408652
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 4], 0
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
ret
Function at 0x40eb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40eb73
call fcn.0042f081
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40eb73
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40eb69
xor eax, eax
jmp 0x40ec8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40eba3
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40eba3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40ec89
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ebd0
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d7e5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40ec89
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ec19
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40ec19
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ec13
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d7e5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40ec79
and dword [ebp + 0xc], 0
jmp 0x40ec79
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40ec79
push 0xc
call fcn.0042a1ae
mov esi, eax
test esi, esi
pop ecx
je 0x40ec5b
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40ec5d
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40ec74
push dword [ebp - 8]
call fcn.00424c3c
jmp 0x40ec79
call fcn.00424c13
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ebde
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41825a
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.004184a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4182f5
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 [0x44c7b8]
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 0x4182f5
cmp eax, 1
je 0x418316
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 0x4182f5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4182c2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4182f1
xor eax, eax
inc eax
jmp 0x418335
cmp edi, eax
jae 0x4182f9
xor eax, eax
jmp 0x418335
cmp eax, esi
jae 0x418300
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 [0x44c7b8]
jmp 0x418319
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 0x418db1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43d8d0
call fcn.00418340
mov edi, 0x94
mov eax, edi
call fcn.004184a0
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 [0x44c7b8], ecx
mov eax, dword [esi + 4]
mov dword [0x44c7c4], eax
mov edx, dword [esi + 8]
mov dword [0x44c7c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44c7bc], esi
cmp ecx, 2
je 0x418e11
or esi, 0x8000
mov dword [0x44c7bc], esi
shl eax, 8
add eax, edx
mov dword [0x44c7c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418e4c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418e4c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418e64
cmp eax, 0x20b
je 0x418e51
mov dword [ebp - 0x1c], esi
jmp 0x418e78
cmp dword [ecx + 0x84], 0xe
jbe 0x418e4c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418e72
cmp dword [ecx + 0x74], 0xe
jbe 0x418e4c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041bd9a
pop ecx
test eax, eax
jne 0x418e8c
push 0x1c
call fcn.00418d8d
pop ecx
call fcn.0041b0c9
test eax, eax
jne 0x418e9d
push 0x10
call fcn.00418d8d
pop ecx
call fcn.0041e8bf
mov dword [ebp - 4], esi
call fcn.0041dcf1
test eax, eax
jge 0x418eb6
push 0x1b
call fcn.00418d68
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44e090], eax
call fcn.0041e79d
mov dword [0x44c7a8], eax
call fcn.0041e6fb
test eax, eax
jge 0x418edc
push 8
call fcn.00418d68
pop ecx
call fcn.0041e4c8
test eax, eax
jge 0x418eed
push 9
call fcn.00418d68
pop ecx
push 1
call fcn.00419400
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418f03
push eax
call fcn.00418d68
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041e46b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418f24
movzx eax, word [ebp - 0x40]
jmp 0x418f27
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00424239
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418f45
push edi
call fcn.0041952d
call fcn.0041954f
jmp 0x418f77
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041837b
ret
Function at 0x41946a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43d908
call fcn.00418340
push 8
call fcn.0041bf3e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44c7f8], esi
jne 0x41949e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44c7f4], esi
mov al, byte [ebp + 0x10]
mov byte [0x44c7f0], al
cmp dword [ebp + 0xc], edi
jne 0x4194e8
cmp dword [0x44e088], edi
je 0x4194d8
mov eax, dword [0x44e084]
sub eax, 4
mov dword [0x44e084], eax
cmp eax, dword [0x44e088]
jb 0x4194d8
mov eax, dword [eax]
cmp eax, edi
je 0x4194b9
call eax
jmp 0x4194b9
push 0x4460a8
mov eax, 0x4460a0
call fcn.004193e8
pop ecx
push 0x4460b4
mov eax, 0x4460ac
call fcn.004193e8
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419519
cmp dword [ebp + 0x10], edi
jne 0x419527
mov dword [0x44c7f8], esi
push dword [ebp + 8]
call fcn.004193a6
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419526
push 8
call fcn.0041be89
pop ecx
ret
call fcn.0041837b
ret