joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
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 0x401169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40117d
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 0x40119e
cmp esi, eax
jae 0x401177
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401190
cmp esi, eax
jae 0x401177
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4032d0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4537ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x472d88]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.00402440
test eax, eax
je 0x4033c5
test esi, esi
jne 0x403359
call fcn.0044eedf
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401ab0
lea ecx, [esp + 0x10]
call fcn.00402e70
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4033a9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x4033a3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x45a070
push eax
call fcn.004176a4
add esp, 0xc
mov ebp, 1
jmp 0x403402
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.004176a4
add esp, 0x10
jmp 0x403402
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.004176a4
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033e6
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x48fbb0
call fcn.00402a00
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403410
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x48fbb0
call fcn.00402a00
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40343b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.00416c7b
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x404670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4538d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004045e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401290
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404702
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4061d0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x472d88]
push esi
xor esi, esi
mov dword [esp + 0x118], eax
push edi
mov dword [esp + 0xc], esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SOFTWAREmicrosoftwindowsCurrentVersionRun
push SysReAllocString
mov dword [esp + 0x150], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40623f
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
push 0x100
lea edx, [esp + 0x1c]
xor eax, eax
push edx
mov ecx, 0x40
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.0044eedf
push 0x45a6f0
lea ecx, [esp + 0xc]
call fcn.00401ab0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x406291
mov eax, dword [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4062b3
mov edi, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4062c6
push esi
call edi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x4062eb
push esi
call edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.00416c7b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406580
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x453b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x472d88]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.00402440
test eax, eax
je 0x406675
test esi, esi
jne 0x406609
call fcn.0044eedf
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401ab0
lea ecx, [esp + 0x10]
call fcn.00402e70
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x406659
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x406653
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x45a070
push eax
call fcn.004176a4
add esp, 0xc
mov ebp, 1
jmp 0x4066b2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.004176a4
add esp, 0x10
jmp 0x4066b2
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.004176a4
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406696
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x48fbb0
call fcn.00404b00
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4066c0
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x48fbb0
call fcn.00404b00
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4066eb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.00416c7b
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x409470
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x453eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [0x472d88]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x19c], eax
xor eax, eax
mov al, byte [esi]
push edi
mov edi, ecx
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.004050f0
add esp, 8
call fcn.00439071
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
mov dword [esp + 0x1bc], 0
call fcn.004030c0
mov eax, dword [edi + 0x1c]
add esp, 0x10
push 0
push 0
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x40952f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1ac], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x409658
mov ecx, dword [esi + 4]
push ecx
push 0
push eax
mov ecx, edi
call fcn.0043206b
cmp dword [esi + 0x10], ebx
mov eax, 0x45ad30
jne 0x40954c
mov eax, 0x45ad28
push eax
mov eax, dword [esi + 0x1c]
push 1
push eax
mov ecx, edi
call fcn.0043206b
call fcn.00439071
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, 7
mov byte [esp + 0x1ac], 1
jne 0x4095c2
mov ecx, dword [0x48bf84]
mov eax, dword [esi + 8]
push ecx
push 0x80
lea edx, [esp + 0x24]
push edx
push 0x45a09c
push eax
push 0x45a08c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4095a8
sub eax, edx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00401750
jmp 0x4095f7
push eax
mov eax, dword [esi + 8]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov ebp, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.004056f0
push eax
lea ecx, [esp + 0x1c]
push 0x45a088
push ecx
call fcn.004030c0
add esp, 0x14
mov ebp, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
push ebp
push 2
push edx
mov ecx, edi
call fcn.0043206b
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push ebx
push 3
push eax
mov ecx, edi
call fcn.0043206b
lea eax, [ebp - 0x10]
mov byte [esp + 0x1ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40963d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a0]
call fcn.00416c7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 4
Function at 0x40a100
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x453fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x472d88]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.00402440
test eax, eax
je 0x40a1f5
test esi, esi
jne 0x40a189
call fcn.0044eedf
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401ab0
lea ecx, [esp + 0x10]
call fcn.00402e70
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40a1d9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x40a1d3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x45a070
push eax
call fcn.004176a4
add esp, 0xc
mov ebp, 1
jmp 0x40a232
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.004176a4
add esp, 0x10
jmp 0x40a232
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.004176a4
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a216
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x48fbb0
call fcn.004083e0
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a240
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x48fbb0
call fcn.004083e0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40a26b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.00416c7b
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x40c320
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x472d88]
push esi
mov esi, dword [esp + 0x1cc]
mov ecx, esi
shl ecx, 4
add ecx, 0x48c180
push ecx
mov ecx, dword [esi*4 + 0x48c1b0]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1cc], eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push ecx
push eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 1
mov word [esp + 0x5e], ax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], 5
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c401
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea edx, [esp + 0x4c]
push str.Start_process__d_n
push edx
call fcn.004176a4
lea eax, [esp + 0x54]
push eax
push 0x48c1d0
call fcn.0040c260
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1c0]
call fcn.00416c7b
add esp, 0x1c4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi*4 + 0x48c1b0]
push eax
push ecx
lea edx, [esp + 0xcc]
push str.Failed_to_start_program__s__error_code___d_n
push edx
call fcn.004176a4
lea eax, [esp + 0xd4]
push eax
push 0x48c1d0
call fcn.0040c260
mov ecx, dword [esp + 0x1dc]
add esp, 0x18
xor eax, eax
pop esi
call fcn.00416c7b
add esp, 0x1c4
ret
Function at 0x40dfdb
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 0x40e02e
call fcn.0044eedf
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40e02e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40e024
xor eax, eax
jmp 0x40e147
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 0x40e05e
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 0x40e05e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40e144
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40e08b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040ed96
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40e144
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40e0d4
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40e0d4
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40e0ce
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040ed96
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40e134
and dword [ebp + 0xc], 0
jmp 0x40e134
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40e134
push 0xc
call fcn.00438f64
mov esi, eax
test esi, esi
pop ecx
je 0x40e116
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 0x40e118
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40e12f
push dword [ebp - 8]
call fcn.0043306e
jmp 0x40e134
call fcn.00433045
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40e099
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x417e18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419fdb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417e5b
test byte [esp + 8], 2
je 0x417e5b
call fcn.00419fc9
mov dword [eax], 0xd
call fcn.00419fd2
mov dword [eax], 5
jmp 0x417e34
xor eax, eax
ret
Function at 0x4180de
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.004182d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418179
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 [0x48e9a0]
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 0x418179
cmp eax, 1
je 0x41819a
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 0x418179
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x418146
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x418175
xor eax, eax
inc eax
jmp 0x4181b9
cmp edi, eax
jae 0x41817d
xor eax, eax
jmp 0x4181b9
cmp eax, esi
jae 0x418184
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 [0x48e9a0]
jmp 0x41819d
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 0x418603
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x461528
call fcn.00419068
mov edi, 0x94
mov eax, edi
call fcn.004182d0
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 [0x48e9a0], ecx
mov eax, dword [esi + 4]
mov dword [0x48e9ac], eax
mov edx, dword [esi + 8]
mov dword [0x48e9b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48e9a4], esi
cmp ecx, 2
je 0x418663
or esi, 0x8000
mov dword [0x48e9a4], esi
shl eax, 8
add eax, edx
mov dword [0x48e9a8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41869e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41869e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4186b6
cmp eax, 0x20b
je 0x4186a3
mov dword [ebp - 0x1c], esi
jmp 0x4186ca
cmp dword [ecx + 0x84], 0xe
jbe 0x41869e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4186c4
cmp dword [ecx + 0x74], 0xe
jbe 0x41869e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041cee2
pop ecx
test eax, eax
jne 0x4186de
push 0x1c
call fcn.004185df
pop ecx
call fcn.0041b097
test eax, eax
jne 0x4186ef
push 0x10
call fcn.004185df
pop ecx
call fcn.0041ef20
mov dword [ebp - 4], esi
call fcn.0041ed22
test eax, eax
jge 0x418708
push 0x1b
call fcn.004185ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x69ca70], eax
call fcn.0041ec00
mov dword [0x48e98c], eax
call fcn.0041eb5e
test eax, eax
jge 0x41872e
push 8
call fcn.004185ba
pop ecx
call fcn.0041e92b
test eax, eax
jge 0x41873f
push 9
call fcn.004185ba
pop ecx
push 1
call fcn.00419165
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418755
push eax
call fcn.004185ba
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041e8ce
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418776
movzx eax, word [ebp - 0x40]
jmp 0x418779
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042ce5d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418797
push edi
call fcn.00419292
call fcn.004192b4
jmp 0x4187c9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004190a3
ret
Function at 0x4191cf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x461580
call fcn.00419068
push 8
call fcn.0041ce00
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x48e9e0], esi
jne 0x419203
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x48e9dc], esi
mov al, byte [ebp + 0x10]
mov byte [0x48e9d8], al
cmp dword [ebp + 0xc], edi
jne 0x41924d
cmp dword [0x69ca68], edi
je 0x41923d
mov eax, dword [0x69ca64]
sub eax, 4
mov dword [0x69ca64], eax
cmp eax, dword [0x69ca68]
jb 0x41923d
mov eax, dword [eax]
cmp eax, edi
je 0x41921e
call eax
jmp 0x41921e
push 0x4713a4
mov eax, 0x47139c
call fcn.0041914d
pop ecx
push 0x4713b0
mov eax, 0x4713a8
call fcn.0041914d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41927e
cmp dword [ebp + 0x10], edi
jne 0x41928c
mov dword [0x48e9e0], esi
push dword [ebp + 8]
call fcn.0041910b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41928b
push 8
call fcn.0041cd4b
pop ecx
ret
call fcn.004190a3
ret