joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d4c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x1018]
test al, al
mov dword [esp + 4], 0
je 0x41d4e0
mov eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 0x1004]
cmp dword [eax + 0x70], 1
push ebp
push esi
push edi
jne 0x41d550
mov eax, dword [eax + 0x74]
mov edi, dword [ebx + 0x1014]
mov ecx, dword [ebx + 0x1000]
push 0
push 0
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d51c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x1000]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d511
mov eax, dword [ebx + 0x1004]
mov ecx, dword [esp + 0x10]
add dword [eax + 0x7c], ecx
jmp 0x41d64d
mov eax, dword [ebx + 0x100c]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [eax + ebp]
cmp edx, 0x1000
lea edi, [eax + ebx]
ja 0x41d59d
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x1004]
add dword [eax + 0x78], ebp
mov eax, dword [ebx + 0x100c]
add eax, ebp
pop edi
mov dword [ebx + 0x100c], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, 0x1000
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0041d340
test al, al
jne 0x41d5cb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add edx, eax
sub ebp, eax
add eax, ecx
cmp ebp, 0x1000
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jbe 0x41d627
lea ecx, [ecx]
mov esi, dword [esp + 0x18]
mov ecx, 0x400
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0041d340
test al, al
je 0x41d5c1
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, 0x1000
sub ebp, eax
add esi, eax
add edx, eax
cmp ebp, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
ja 0x41d5f0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov dword [ebx + 0x100c], ebp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1004]
mov edx, dword [eax + 0x78]
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [eax + 0x78], edx
mov ecx, dword [ebx + 0x1014]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add ecx, eax
pop ebp
mov dword [ebx + 0x1014], ecx
pop ebx
pop ecx
ret 8

Function at 0x41d680
Capabilities:
Write file on windows

Disassembly:
mov al, byte [ecx + 0x1018]
test al, al
jne 0x41d6a6
mov eax, dword [ecx + 0x100c]
test eax, eax
je 0x41d6a6
mov eax, dword [ecx + 0x1004]
mov edx, dword [eax + 0x70]
test edx, edx
jne 0x41d6a6
jmp fcn.0041d340
ret
Function at 0x41db00
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.0042f240
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x1044]
test al, al
jne 0x41dbe6
mov eax, dword [ebx + 0x1040]
cmp eax, 0xffffffff
je 0x41dbe6
mov cl, byte [ebx + 0x10730]
test cl, cl
je 0x41dbe6
push ebp
push esi
push edi
mov edi, dword [ebx + 0x10]
xor esi, esi
push esi
push esi
push esi
push eax
shr edi, 2
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
shr eax, 0xa
test eax, eax
jbe 0x41dba4
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0x1040]
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x24]
push ecx
push edx
call ebp
xor eax, eax
lea esp, [esp]
mov edx, dword [esp + eax*4 + 0x20]
mov ecx, dword [esp + eax*4 + 0x24]
add ecx, edx
add ecx, dword [esp + eax*4 + 0x1c]
add ecx, dword [esp + eax*4 + 0x18]
add eax, 4
add esi, ecx
cmp eax, 0x400
jl 0x41db80
dec dword [esp + 0x10]
jne 0x41db60
and edi, 0x3ff
je 0x41dbd9
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebx + 0x1040]
lea eax, [edi*4]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call ebp
xor eax, eax
test edi, edi
jbe 0x41dbd9
nop
add esi, dword [esp + eax*4 + 0x18]
inc eax
cmp eax, edi
jb 0x41dbd0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1008
ret
xor eax, eax
pop ebx
add esp, 0x1008
ret
Function at 0x41e3d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x101c
call fcn.0042f240
mov eax, dword [0x46b600]
push esi
mov esi, ecx
mov dword [esp + 0x101c], eax
mov al, byte [esi + 0x1044]
test al, al
jne 0x41e5c8
mov al, byte [esi + 0x1045]
test al, al
jne 0x41e5c8
push edi
mov edi, dword [esi + 0x10]
call fcn.0041e170
mov ecx, eax
mov eax, edi
sub eax, ecx
imul eax, eax, 0x64
xor edx, edx
div edi
cmp dword [esp + 0x1028], eax
jb 0x41e43d
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x1018]
call fcn.0042f2ae
add esp, 0x101c
ret 4
push ebx
xor edi, edi
push edi
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.0041de10
mov ebx, eax
test ebx, ebx
je 0x41e5ab
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ecx]
cmp dword [ebx + 0x74], edi
jne 0x41e46d
add edi, dword [ebx + 0x7c]
jmp 0x41e594
mov edx, dword [ebx + 0x7c]
mov ecx, edx
shr ecx, 0xc
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], edx
jbe 0x41e511
xor edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [ecx]
mov edx, dword [ebx + 0x74]
mov eax, dword [esi + 0x1040]
push 0
push 0
add edx, edi
push edx
push eax
call ebp
mov eax, dword [esi + 0x1040]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x1000
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x1040]
push 0
push 0
lea edx, [edi + ecx]
push edx
push eax
call ebp
mov eax, dword [esi + 0x1040]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x1000
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add edi, 0x1000
dec eax
mov dword [esp + 0x14], eax
jne 0x41e490
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, edx
and ecx, 0xfff
mov dword [esp + 0x14], ecx
je 0x41e58f
mov ecx, dword [ebx + 0x74]
mov edx, dword [esi + 0x1040]
shl eax, 0xc
push 0
mov edi, eax
push 0
add ecx, edi
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x1040]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1040]
push 0
push 0
add edi, ecx
push edi
push edx
call ebp
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x1040]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x74], edi
add edi, edx
push edi
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.0041de10
mov ebx, eax
test ebx, ebx
jne 0x41e460
pop ebp
pop ebx
mov dword [esi + 0x10], edi
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x1018]
call fcn.0042f2ae
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x101c]
xor al, al
pop esi
call fcn.0042f2ae
add esp, 0x101c
ret 4
Function at 0x424370
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4243d1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4243b3
cmp eax, 2
jne 0x4243c3
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4243cd
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x4243cd
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x427167
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 0x4271ba
call fcn.0044aef1
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4271ba
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4271b0
xor eax, eax
jmp 0x4272d3
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 0x4271ea
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 0x4271ea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4272d0
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x427217
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042504f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4272d0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427260
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x427260
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42725a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042504f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4272c0
and dword [ebp + 0xc], 0
jmp 0x4272c0
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4272c0
push 0xc
call fcn.00442113
mov esi, eax
test esi, esi
pop ecx
je 0x4272a2
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 0x4272a4
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4272bb
push dword [ebp - 8]
call fcn.00440985
jmp 0x4272c0
call fcn.0044095c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427225
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42f048
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.0042f240
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f0e3
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 [0x46e97c]
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 0x42f0e3
cmp eax, 1
je 0x42f104
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 0x42f0e3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42f0b0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42f0df
xor eax, eax
inc eax
jmp 0x42f123
cmp edi, eax
jae 0x42f0e7
xor eax, eax
jmp 0x42f123
cmp eax, esi
jae 0x42f0ee
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 [0x46e97c]
jmp 0x42f107
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 0x430633
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 0x430650
call fcn.00431077
mov dword [eax], 0x16
xor eax, eax
jmp 0x4306ba
push esi
push 0x8c
push 1
call fcn.00433043
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4306a5
push esi
call fcn.00433124
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 0x430683
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x43059e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4306b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042efd7
test ebx, ebx
pop ecx
je 0x4306b7
push ebx
call fcn.00431089
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431391
Capabilities:
Terminate process

Disassembly:
push 8
push 0x45f5e8
call fcn.004323ec
push 8
call fcn.00433ebf
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46e9bc], esi
jne 0x4313c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46e9b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x46e9b4], al
cmp dword [ebp + 0xc], edi
jne 0x43140f
cmp dword [0x4703cc], edi
je 0x4313ff
mov eax, dword [0x4703c8]
sub eax, 4
mov dword [0x4703c8], eax
cmp eax, dword [0x4703cc]
jb 0x4313ff
mov eax, dword [eax]
cmp eax, edi
je 0x4313e0
call eax
jmp 0x4313e0
push 0x46a0bc
mov eax, 0x46a0b4
call fcn.0043130f
pop ecx
push 0x46a0c8
mov eax, 0x46a0c0
call fcn.0043130f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x431440
cmp dword [ebp + 0x10], edi
jne 0x43144e
mov dword [0x46e9bc], esi
push dword [ebp + 8]
call fcn.004312cd
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43144d
push 8
call fcn.00433e0a
pop ecx
ret
call fcn.00432427
ret
Function at 0x43163e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45f5f8
call fcn.004323ec
mov edi, 0x94
mov eax, edi
call fcn.0042f240
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 [0x46e97c], ecx
mov eax, dword [esi + 4]
mov dword [0x46e988], eax
mov edx, dword [esi + 8]
mov dword [0x46e98c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46e980], esi
cmp ecx, 2
je 0x43169e
or esi, 0x8000
mov dword [0x46e980], esi
shl eax, 8
add eax, edx
mov dword [0x46e984], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4316d9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4316d9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4316f1
cmp eax, 0x20b
je 0x4316de
mov dword [ebp - 0x1c], esi
jmp 0x431705
cmp dword [ecx + 0x84], 0xe
jbe 0x4316d9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4316ff
cmp dword [ecx + 0x74], 0xe
jbe 0x4316d9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433f0a
pop ecx
test eax, eax
jne 0x431719
push 0x1c
call fcn.0043161a
pop ecx
call fcn.0043331e
test eax, eax
jne 0x43172a
push 0x10
call fcn.0043161a
pop ecx
call fcn.00438bc6
mov dword [ebp - 4], esi
call fcn.0043873e
test eax, eax
jge 0x431743
push 0x1b
call fcn.004315f5
pop ecx
mov eax, section..x4uth
nop
mov dword [0x46f3a0], eax
call fcn.00439545
mov dword [0x46e9c4], eax
call fcn.004394a3
test eax, eax
jge 0x431769
push 8
call fcn.004315f5
pop ecx
call fcn.00439270
test eax, eax
jge 0x43177a
push 9
call fcn.004315f5
pop ecx
push 1
call fcn.00431327
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x431790
push eax
call fcn.004315f5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00439213
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4317b1
movzx eax, word [ebp - 0x40]
jmp 0x4317b4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004402c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4317d2
push edi
call fcn.00431454
call fcn.00431476
jmp 0x431804
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432427
ret
Function at 0x434a99
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 0x434ac7
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 0x434ace
cmp ebx, dword [eax + 4]
jae 0x434ace
xor eax, eax
jmp 0x434cbe
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x434adf
xor eax, eax
inc eax
jmp 0x434cbd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x434af5
cmp ecx, edx
jae 0x434c3a
cmp dword [eax + 4], 0
je 0x434afe
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x434ae6
cmp dword [ebp + 8], 0
je 0x434b20
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x434c3a
cmp eax, esi
jae 0x434c3a
mov eax, dword [0x46eb40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x434b45
cmp dword [esi*4 + 0x46eb48], edi
je 0x434c3e
inc esi
cmp esi, eax
jl 0x434b33
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x434cba
cmp dword [ebp - 8], 0x1000000
jne 0x434cba
test byte [ebp - 0xc], 0xcc
je 0x434bc3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x434cba
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x434cba
cmp word [eax + 0x18], 0x10b
jne 0x434cba
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x434cba
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x434bc3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x434bc3
test byte [ecx + 0x27], 0x80
jne 0x434c3a
push 1
push 0x46eb88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x434ad7
mov ecx, dword [0x46eb40]
test ecx, ecx
mov edx, ecx
jle 0x434bf7
lea eax, [ecx*4 + 0x46eb44]
cmp dword [eax], edi
je 0x434bf7
dec edx
sub eax, 4
test edx, edx
jg 0x434beb
test edx, edx
jne 0x434c28
push 0xf
pop ebx
cmp ecx, ebx
jg 0x434c04
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x434c1c
lea eax, [edx*4 + 0x46eb48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x434c0a
cmp ecx, 0x10
jge 0x434c28
inc ecx
mov dword [0x46eb40], ecx
push 0
push 0x46eb88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x434ad7
xor eax, eax
jmp 0x434cbd
test esi, esi
jle 0x434ad7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46eb88
call ebx
test eax, eax
jne 0x434ad7
cmp dword [esi*4 + 0x46eb48], edi
je 0x434c94
mov eax, dword [0x46eb40]
lea esi, [eax - 1]
test esi, esi
jl 0x434c82
cmp dword [esi*4 + 0x46eb48], edi
je 0x434c7e
dec esi
jns 0x434c72
test esi, esi
jge 0x434c92
cmp eax, 0x10
jge 0x434c8d
inc eax
mov dword [0x46eb40], eax
lea esi, [eax - 1]
jmp 0x434c94
je 0x434cac
xor ecx, ecx
test esi, esi
jl 0x434cac
lea eax, [ecx*4 + 0x46eb48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x434c9a
push 0
push 0x46eb88
call ebx
jmp 0x434ad7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437431
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x46b600]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x437462
xor eax, eax
jmp 0x4375eb
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x46f040]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43749e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043c471
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x437579
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4375b7
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x437502
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4374f3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4374d3
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437542
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43754b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4374c4
jmp 0x43754d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4375e6
cmp dword [ebp - 0x6c], edi
je 0x4375b7
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4375ac
call fcn.00431077
mov dword [eax], 9
call fcn.00431080
mov dword [eax], esi
jmp 0x4375e1
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4375a1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43754d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43754d
push dword [ebp - 0x6c]
call fcn.00431089
pop ecx
jmp 0x4375e1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4375cf
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4375cf
xor eax, eax
jmp 0x4375e9
call fcn.00431077
mov dword [eax], 0x1c
call fcn.00431080
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4375e9
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042f2ae
add ebp, 0x3a0
leave
ret