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

Function at 0x4019d0
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b99b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68c
mov eax, dword [0x43a15c]
xor eax, esp
push ebx
push str.RT_DLL
push 0x7530
push 0
mov dword [esp + 0x698], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401b76
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b76
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401b75
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.MagicDel.dll
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b74
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._rundll32.exe
lea edx, [esp + 0x80]
push edx
call esi
lea ecx, [esp + 0x10]
call fcn.00407bcb
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6a8], 0
call fcn.00407c60
test eax, eax
je 0x401b55
push str._MagicDel.dll__delself
lea ecx, [esp + 0x80]
push ecx
call esi
push 0x104
lea edx, [esp + 0x490]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x80]
push ecx
call esi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x9c]
push ecx
push 0
mov dword [esp + 0x8c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401b60
push str.MagicDel.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00407bf1
pop esi
pop edi
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x68c]
pop ebx
xor ecx, esp
call fcn.004100eb
add esp, 0x698
ret
Function at 0x4028e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x43a15c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
push 0x20
xor eax, ebp
push 0
mov esi, ecx
mov dword [esp + 0x2f4], eax
mov eax, dword [esi + 0x8c]
push 0x1036
push eax
call ebx
push 0x4111
xor eax, eax
mov ecx, 0xad
lea edi, [esp + 0x34]
push 0x2b4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
push 0x80
push str.abc.txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esi + 0x9d0c]
xor edi, edi
cmp eax, edi
jne 0x402953
xor eax, eax
jmp 0x402956
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x8c]
push eax
push 1
push 0x1003
push edx
call ebx
push eax
call fcn.0041dfb1
mov ecx, dword [esi + 0x8c]
lea eax, [esp + 0x10]
push eax
push edi
push 0x1061
push ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x2c], 0x42d7c8
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x24], edi
call ebx
mov eax, dword [esi + 0x8c]
lea edx, [esp + 0x10]
push edx
push 1
push 0x1061
push eax
mov dword [esp + 0x2c], 0x42df28
mov dword [esp + 0x28], 0xfa
mov dword [esp + 0x24], edi
call ebx
mov edx, dword [esi + 0x8c]
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x1061
push edx
mov dword [esp + 0x2c], 0x42df20
mov dword [esp + 0x28], 0x32
mov dword [esp + 0x24], edi
call ebx
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004100eb
mov esp, ebp
pop ebp
ret
Function at 0x4041c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0x43a15c]
push esi
push edi
push 0
push 1
push 3
push 0
xor eax, ebp
push 1
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4042ad
mov byte [esp + 0x10], al
mov ecx, 0x2e
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push eax
push eax
push eax
mov ecx, 0x4e
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4042a4
push 0
lea eax, [esp + 0x10]
push eax
push 0xba
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4042a4
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4042a4
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movsx edi, byte [esp + eax + 0x10]
movsx edx, byte [esp + eax + 0x11]
add edi, ecx
add eax, 2
cmp eax, 0xb6
lea ecx, [edi + edx]
jl 0x404260
cmp dword [esp + 0xc6], ecx
push esi
jne 0x4042a5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xcc]
xor ecx, ebp
call fcn.004100eb
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xd4]
pop edi
xor ecx, ebp
pop esi
call fcn.004100eb
mov esp, ebp
pop ebp
ret 4

Function at 0x4042d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [0x43a15c]
push esi
push edi
push 0
push 1
push 3
push 0
xor eax, ebp
push 1
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x4043bd
mov byte [esp + 0x10], al
mov ecx, 0x28
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push eax
push eax
push eax
mov ecx, 0x4e
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4043b4
push 0
lea eax, [esp + 0x10]
push eax
push 0xa2
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4043b4
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4043b4
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movsx edi, byte [esp + eax + 0x10]
movsx edx, byte [esp + eax + 0x11]
add edi, ecx
add eax, 2
cmp eax, 0x9e
lea ecx, [edi + edx]
jl 0x404370
cmp dword [esp + 0xae], ecx
push esi
jne 0x4043b5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, ebp
call fcn.004100eb
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xbc]
pop edi
xor ecx, ebp
pop esi
call fcn.004100eb
mov esp, ebp
pop ebp
ret 4
Function at 0x404a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bbe8
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.004049a0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401500
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 0x404ad2
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 0x404d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x42bbe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x61a8c]
test eax, eax
lea ebp, [esi + 0x61a8c]
mov dword [esp + 0x14], esi
je 0x404dcd
mov eax, dword [esi + 0xc3514]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov edx, dword [esi + 0xc3518]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
jmp 0x404f20
push str.RT_INFO
push 0x5208
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404df0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404e05
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [ebx]
mov dword [ecx], eax
xor ecx, ecx
add ebx, 4
cmp eax, 1
mov dword [esi + 0xc3518], eax
mov dword [esp + 0xc], ecx
jb 0x404f13
add esi, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
push edi
jmp 0x404e40
push ebx
lea ecx, [esp + 0x38]
call fcn.004017a0
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 0xc]
lea eax, [eax + eax + 2]
push eax
mov dword [esp + 0x2c], 0
call fcn.00423943
mov ecx, dword [esp + 0x38]
mov dword [ebp], eax
mov ecx, dword [ecx - 0xc]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
mov edi, eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
push str._DIR_
push eax
lea ebx, [ebx + ecx*2 + 2]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
mov dword [esp + 0x28], 0xffffffff
je 0x404ebf
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404eee
mov ecx, dword [ebx]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
inc ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], ecx
add ebx, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ef8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x404e40
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
pop edi
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
mov dword [esi + 0xc3514], ecx
pop ebx
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x61a88]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x407149
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 0x40719c
call fcn.00427e23
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40719c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x407192
xor eax, eax
jmp 0x4072b5
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 0x4071cc
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 0x4071cc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4072b2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4071f9
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004060f8
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4072b2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407242
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x407242
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40723c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004060f8
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4072a2
and dword [ebp + 0xc], 0
jmp 0x4072a2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4072a2
push 0xc
call fcn.00423918
mov esi, eax
test esi, esi
pop ecx
je 0x407284
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 0x407286
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40729d
push dword [ebp - 8]
call fcn.0041e3f7
jmp 0x4072a2
call fcn.0041e3ce
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x407207
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40fee6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431798
call fcn.00412178
mov edi, 0x94
mov eax, edi
call fcn.00410920
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 [0x43d318], ecx
mov eax, dword [esi + 4]
mov dword [0x43d324], eax
mov edx, dword [esi + 8]
mov dword [0x43d328], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43d31c], esi
cmp ecx, 2
je 0x40ff46
or esi, 0x8000
mov dword [0x43d31c], esi
shl eax, 8
add eax, edx
mov dword [0x43d320], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ff81
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ff81
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ff99
cmp eax, 0x20b
je 0x40ff86
mov dword [ebp - 0x1c], esi
jmp 0x40ffad
cmp dword [ecx + 0x84], 0xe
jbe 0x40ff81
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ffa7
cmp dword [ecx + 0x74], 0xe
jbe 0x40ff81
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041376b
pop ecx
test eax, eax
jne 0x40ffc1
push 0x1c
call fcn.0040fec2
pop ecx
call fcn.00413662
test eax, eax
jne 0x40ffd2
push 0x10
call fcn.0040fec2
pop ecx
call fcn.004133fc
mov dword [ebp - 4], esi
call fcn.004131fe
test eax, eax
jge 0x40ffeb
push 0x1b
call fcn.0040fe9d
pop ecx
call fcn.0041315f
mov dword [0x43ecf0], eax
call fcn.00412ff5
mov dword [0x43d30c], eax
call fcn.00412f5f
test eax, eax
jge 0x410010
push 8
call fcn.0040fe9d
pop ecx
call fcn.00412d2c
test eax, eax
jge 0x410021
push 9
call fcn.0040fe9d
pop ecx
push 1
call fcn.00410aa9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410037
push eax
call fcn.0040fe9d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00412ce6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x410058
movzx eax, word [ebp - 0x40]
jmp 0x41005b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041dabc
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x410079
push edi
call fcn.00410bd6
call fcn.00410bf8
jmp 0x4100ab
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004121b3
ret
Function at 0x410b13
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4317e0
call fcn.00412178
push 8
call fcn.004148e9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43d358], esi
jne 0x410b47
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43d354], esi
mov al, byte [ebp + 0x10]
mov byte [0x43d350], al
cmp dword [ebp + 0xc], edi
jne 0x410b91
cmp dword [0x43ece8], edi
je 0x410b81
mov eax, dword [0x43ece4]
sub eax, 4
mov dword [0x43ece4], eax
cmp eax, dword [0x43ece8]
jb 0x410b81
mov eax, dword [eax]
cmp eax, edi
je 0x410b62
call eax
jmp 0x410b62
push 0x43908c
mov eax, 0x439084
call fcn.00410a91
pop ecx
push 0x439098
mov eax, 0x439090
call fcn.00410a91
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x410bc2
cmp dword [ebp + 0x10], edi
jne 0x410bd0
mov dword [0x43d358], esi
push dword [ebp + 8]
call fcn.00410a4f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x410bcf
push 8
call fcn.00414834
pop ecx
ret
call fcn.004121b3
ret

Function at 0x4124aa
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.00410920
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412545
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 [0x43d318]
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 0x412545
cmp eax, 1
je 0x412566
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 0x412545
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412512
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412541
xor eax, eax
inc eax
jmp 0x412585
cmp edi, eax
jae 0x412549
xor eax, eax
jmp 0x412585
cmp eax, esi
jae 0x412550
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 [0x43d318]
jmp 0x412569
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 0x4129d1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43a15c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43a4b8]
je 0x412a08
inc eax
cmp eax, 0x13
jb 0x4129f9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43a4b8]
jne 0x412b2b
mov eax, dword [0x43d310]
cmp eax, 1
je 0x412b06
cmp eax, edx
jne 0x412a38
cmp dword [0x43a158], 1
je 0x412b06
cmp ecx, 0xfc
je 0x412b2b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412a6e
lea eax, [ebp - 0x7c]
push 0x431e24
push eax
call fcn.00418080
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00411b20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412aa2
mov eax, edi
push eax
call fcn.00411b20
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x431e20
push edi
call fcn.004181d0
add esp, 0x10
push edi
call fcn.00411b20
push dword [esi + 0x43a4bc]
mov ebx, eax
call fcn.00411b20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410920
mov ebx, esp
push 0x431e04
push ebx
call fcn.00418080
push edi
push ebx
call fcn.00418090
push 0x431e00
push ebx
call fcn.00418090
push dword [esi + 0x43a4bc]
push ebx
call fcn.00418090
push 0x12010
push 0x431dd8
push ebx
call fcn.00419c0b
add esp, 0x2c
jmp 0x412b2b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x43a4bc]
push dword [esi]
call fcn.00411b20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004100eb
add ebp, 0x90
leave
ret
Function at 0x412ff5
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x43d584]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41303e
call ebp
mov esi, eax
cmp esi, ebx
je 0x413024
mov dword [0x43d584], 1
jmp 0x413043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413039
push 2
pop eax
mov dword [0x43d584], eax
jmp 0x41303e
mov eax, dword [0x43d584]
cmp eax, 1
jne 0x41309b
cmp esi, ebx
jne 0x413056
call ebp
mov esi, eax
cmp esi, ebx
jne 0x413056
xor eax, eax
jmp 0x413142
cmp word [esi], bx
mov eax, esi
je 0x41306b
inc eax
inc eax
cmp word [eax], bx
jne 0x41305d
inc eax
inc eax
cmp word [eax], bx
jne 0x41305d
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041194f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41308e
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x413142
push ebp
push esi
push edi
call fcn.004114c0
add esp, 0xc
jmp 0x413080
cmp eax, 2
je 0x4130a4
cmp eax, ebx
jne 0x41304f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41304f
cmp byte [ebp], bl
mov esi, ebp
je 0x4130da
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41304f
push esi
add edi, eax
call fcn.00411b20
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4130b7
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041194f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x413153
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x413134
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x413149
push edi
call fcn.00411b20
push esi
lea edi, [edi + eax + 1]
call fcn.004100f9
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4130fa
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00411837
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41304f
Function at 0x41315f
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43d588]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41319f
call esi
test eax, eax
je 0x413184
mov dword [0x43d588], 1
jmp 0x4131a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41319b
mov dword [0x43d588], 2
jmp 0x4131ad
xor eax, eax
jmp 0x4131fb
cmp eax, 1
jne 0x4131a8
call esi
jmp 0x4131fb
cmp eax, 2
jne 0x41319b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4131f3
lea eax, [esi + esi]
push eax
call fcn.0041194f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4131f3
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4131f7
push ebp
call fcn.00411837
pop ecx
xor eax, eax
jmp 0x4131f9
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret