joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aa90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4664b0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x138], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x41aacb
xor eax, eax
jmp 0x41ab6d
mov dword [ebp - 0x130], 0x128
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405520
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41ab43
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405300
test eax, eax
jne 0x41ab2c
mov dword [ebp - 0x138], 1
jmp 0x41ab43
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41ab0a
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x13c]
call fcn.0041bff0
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 4]
call fcn.004303c0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41ba50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x41ba64
jmp 0x41ba88
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41ba88
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41eb60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41eb79
mov ecx, dword [ebp - 0x10]
call fcn.0041f0b0
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
jne 0x41ebb2
xor eax, eax
jmp 0x41ecee
push 8
push 0x453d90
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.0042fc10
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0x4000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0x2c
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0x2c
je 0x41ec4e
jmp 0x41ecad
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041f470
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x100
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41ec8f
jmp 0x41ecad
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406f10
mov dword [ebp - 4], 1
xor edx, edx
jne 0x41eb80
cmp dword [ebp - 4], 0
jne 0x41ecd3
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
je 0x41ecd3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
call fcn.0041f4c0
mov ecx, dword [ebp - 0x10]
call fcn.0041f510
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x41f148
xor eax, eax
jmp 0x41f236
mov dword [ebp - 4], 0
push 0
push 0
push pe_nt_image_headers32
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f30
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f70
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f30
cmp dword [ebp - 4], eax
je 0x41f1e2
push 0
call fcn.00425ba0
add esp, 4
movzx eax, al
test eax, eax
jne 0x41f1b5
jmp 0x41f1de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Read
push 0xf7
push 0x4540b0
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0xc
xor eax, eax
jmp 0x41f236
mov dword [ebp - 8], 0
jmp 0x41f1f4
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f30
cmp dword [ebp - 8], eax
jge 0x41f231
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f70
movzx eax, byte [eax]
cmp eax, 0xff
je 0x41f22f
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406f70
mov byte [eax], 0
jmp 0x41f1eb
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41f240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x41f258
xor eax, eax
jmp 0x41f381
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x48]
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x2c
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], 0x2c
je 0x41f2e9
push 0
call fcn.00425ba0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41f2b9
jmp 0x41f2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_
push 0x117
push 0x454118
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0xc
xor eax, eax
jmp 0x41f381
push 0
push 0
push pe_nt_image_headers32
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406f30
push eax
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406f70
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406f30
cmp dword [ebp - 4], eax
je 0x41f37c
push 0
call fcn.00425ba0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41f34f
jmp 0x41f378
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_BITMAP
push 0x11f
push str.New_LoginGuaGua_trunkClientOnlineSetupV2CommonBitmapFile.cpp
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0xc
xor eax, eax
jmp 0x41f381
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4253c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ef26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x74], 0
jne 0x4253ee
xor eax, eax
jmp 0x425538
push 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x18]
call fcn.00426c41
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.0041fc30
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x425435
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a070
mov eax, dword [ebp - 0x30]
jmp 0x425538
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x28]
je 0x4254e5
push 0
call fcn.00425ba0
add esp, 4
movzx edx, al
test edx, edx
jne 0x425495
jmp 0x4254ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.COutputFile::WriteData__I64d___d_
push 0xa3
push str.New_LoginGuaGua_trunkClientOnlineSetupV2CommonOutputFile.cpp
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a070
mov eax, dword [ebp - 0x34]
jmp 0x425538
push 0xff
mov ecx, dword [ebp - 0x3c]
call fcn.0041fc30
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430f70
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.0041f3f0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0041f390
mov ecx, dword [ebp - 0x3c]
call fcn.0041f240
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a070
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4270e1
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 0x427134
call fcn.00449b19
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x427134
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42712a
xor eax, eax
jmp 0x42724d
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 0x427164
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 0x427164
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42724a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x427191
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00425e48
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42724a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4271da
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4271da
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4271d4
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00425e48
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42723a
and dword [ebp + 0xc], 0
jmp 0x42723a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42723a
push 0xc
call fcn.0044351a
mov esi, eax
test esi, esi
pop ecx
je 0x42721c
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 0x42721e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x427235
push dword [ebp - 8]
call fcn.0043e2ea
jmp 0x42723a
call fcn.0043e2c1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42719f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430d46
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 0x430d63
call fcn.00432e07
mov dword [eax], 0x16
xor eax, eax
jmp 0x430dcd
push esi
push 0x8c
push 1
call fcn.004339b7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x430db8
push esi
call fcn.004350d1
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 0x430d96
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x430cb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x430dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00430b6c
test ebx, ebx
pop ecx
je 0x430dca
push ebx
call fcn.00432e19
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430dd1
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.00430be0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430e6c
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 [0x46a790]
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 0x430e6c
cmp eax, 1
je 0x430e8d
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 0x430e6c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430e39
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430e68
xor eax, eax
inc eax
jmp 0x430eac
cmp edi, eax
jae 0x430e70
xor eax, eax
jmp 0x430eac
cmp eax, esi
jae 0x430e77
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 [0x46a790]
jmp 0x430e90
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 0x431661
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x458e20
call fcn.00431ee0
mov edi, 0x94
mov eax, edi
call fcn.00430be0
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 [0x46a790], ecx
mov eax, dword [esi + 4]
mov dword [0x46a79c], eax
mov edx, dword [esi + 8]
mov dword [0x46a7a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46a794], esi
cmp ecx, 2
je 0x4316c1
or esi, 0x8000
mov dword [0x46a794], esi
shl eax, 8
add eax, edx
mov dword [0x46a798], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4316fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4316fc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431714
cmp eax, 0x20b
je 0x431701
mov dword [ebp - 0x1c], esi
jmp 0x431728
cmp dword [ecx + 0x84], 0xe
jbe 0x4316fc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431722
cmp dword [ecx + 0x74], 0xe
jbe 0x4316fc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433c10
pop ecx
test eax, eax
jne 0x43173c
push 0x1c
call fcn.0043163d
pop ecx
call fcn.004352cb
test eax, eax
jne 0x43174d
push 0x10
call fcn.0043163d
pop ecx
call fcn.004392c2
mov dword [ebp - 4], esi
call fcn.004390c4
test eax, eax
jge 0x431766
push 0x1b
call fcn.00431618
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46c090], eax
call fcn.00438fa2
mov dword [0x46a77c], eax
call fcn.00438f00
test eax, eax
jge 0x43178c
push 8
call fcn.00431618
pop ecx
call fcn.00438ccd
test eax, eax
jge 0x43179d
push 9
call fcn.00431618
pop ecx
push 1
call fcn.00431aea
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4317b3
push eax
call fcn.00431618
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00438c70
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4317d4
movzx eax, word [ebp - 0x40]
jmp 0x4317d7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043d3a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4317f5
push edi
call fcn.00431c17
call fcn.00431c39
jmp 0x431827
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00431f1b
ret
Function at 0x431b54
Capabilities:
Terminate process

Disassembly:
push 8
push 0x458e58
call fcn.00431ee0
push 8
call fcn.00433bc5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46a7d0], esi
jne 0x431b88
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46a7cc], esi
mov al, byte [ebp + 0x10]
mov byte [0x46a7c8], al
cmp dword [ebp + 0xc], edi
jne 0x431bd2
cmp dword [0x46c088], edi
je 0x431bc2
mov eax, dword [0x46c084]
sub eax, 4
mov dword [0x46c084], eax
cmp eax, dword [0x46c088]
jb 0x431bc2
mov eax, dword [eax]
cmp eax, edi
je 0x431ba3
call eax
jmp 0x431ba3
push 0x465098
mov eax, 0x465090
call fcn.00431ad2
pop ecx
push 0x4650a4
mov eax, 0x46509c
call fcn.00431ad2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x431c03
cmp dword [ebp + 0x10], edi
jne 0x431c11
mov dword [0x46a7d0], esi
push dword [ebp + 8]
call fcn.00431a90
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x431c10
push 8
call fcn.00433b10
pop ecx
ret
call fcn.00431f1b
ret
Function at 0x436586
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4365b4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4365bb
cmp ebx, dword [eax + 4]
jae 0x4365bb
xor eax, eax
jmp 0x4367ab
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4365cc
xor eax, eax
inc eax
jmp 0x4367aa
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4365e2
cmp ecx, edx
jae 0x436727
cmp dword [eax + 4], 0
je 0x4365eb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4365d3
cmp dword [ebp + 8], 0
je 0x43660d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x436727
cmp eax, esi
jae 0x436727
mov eax, dword [0x46a950]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x436632
cmp dword [esi*4 + 0x46a958], edi
je 0x43672b
inc esi
cmp esi, eax
jl 0x436620
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4367a7
cmp dword [ebp - 8], 0x1000000
jne 0x4367a7
test byte [ebp - 0xc], 0xcc
je 0x4366b0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4367a7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4367a7
cmp word [eax + 0x18], 0x10b
jne 0x4367a7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4367a7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4366b0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4366b0
test byte [ecx + 0x27], 0x80
jne 0x436727
push 1
push 0x46a998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4365c4
mov ecx, dword [0x46a950]
test ecx, ecx
mov edx, ecx
jle 0x4366e4
lea eax, [ecx*4 + 0x46a954]
cmp dword [eax], edi
je 0x4366e4
dec edx
sub eax, 4
test edx, edx
jg 0x4366d8
test edx, edx
jne 0x436715
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4366f1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x436709
lea eax, [edx*4 + 0x46a958]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4366f7
cmp ecx, 0x10
jge 0x436715
inc ecx
mov dword [0x46a950], ecx
push 0
push 0x46a998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4365c4
xor eax, eax
jmp 0x4367aa
test esi, esi
jle 0x4365c4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46a998
call ebx
test eax, eax
jne 0x4365c4
cmp dword [esi*4 + 0x46a958], edi
je 0x436781
mov eax, dword [0x46a950]
lea esi, [eax - 1]
test esi, esi
jl 0x43676f
cmp dword [esi*4 + 0x46a958], edi
je 0x43676b
dec esi
jns 0x43675f
test esi, esi
jge 0x43677f
cmp eax, 0x10
jge 0x43677a
inc eax
mov dword [0x46a950], eax
lea esi, [eax - 1]
jmp 0x436781
je 0x436799
xor ecx, ecx
test esi, esi
jl 0x436799
lea eax, [ecx*4 + 0x46a958]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x436787
push 0
push 0x46a998
call ebx
jmp 0x4365c4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4664b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x466e08]
je 0x438af5
inc eax
cmp eax, 0x13
jb 0x438ae6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x466e08]
jne 0x438c1b
mov eax, dword [0x46a784]
cmp eax, 1
je 0x438bf3
cmp eax, edx
jne 0x438b25
cmp dword [0x4664f4], 1
je 0x438bf3
cmp ecx, 0xfc
je 0x438c1b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438b5b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004311d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042f590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438b8f
mov eax, edi
push eax
call fcn.0042f590
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45910c
push edi
call fcn.0043a450
add esp, 0x10
push edi
call fcn.0042f590
push dword [esi + 0x466e0c]
mov ebx, eax
call fcn.0042f590
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00430be0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004311d0
push edi
push ebx
call fcn.004311e0
push 0x459108
push ebx
call fcn.004311e0
push dword [esi + 0x466e0c]
push ebx
call fcn.004311e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043a356
add esp, 0x2c
jmp 0x438c1b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x466e0c]
push dword [esi]
call fcn.0042f590
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]
mov ecx, dword [ebp + 0x88]
call fcn.004303c0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret