joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409370
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43cbfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x48f710]
push ebx
push esi
xor esi, esi
push 0x43ef8a
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.00401a30
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x409461
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x43fb50
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
push str.V_d._d_d_d
push ecx
call fcn.00401930
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402780
mov esi, dword [esp + 0x134]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x128], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4094a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.0041d27e
add esp, 0x124
ret 4

Function at 0x409d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x48f710]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409d94
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0041d27e
add esp, 0x110
ret 0xc
Function at 0x40a870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43cd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x40a976
push esi
call fcn.0042e9c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x40a8db
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401540
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40a8ef
xor eax, eax
jmp 0x40a903
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a8f4
sub eax, edx
js 0x40a986
cmp eax, dword [esi - 8]
jg 0x40a986
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.004017f0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a94b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40a94b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40a975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004011f0
int3
Function at 0x40bfd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x40bfe0
cmp esi, 9
jle 0x40bfed
push str.bad_pack_level
call fcn.004129b0
add esp, 4
movzx edx, word [esi*8 + 0x48dac4]
xor eax, eax
cmp esi, 1
mov ecx, 0x4000
mov edi, 0x4cd7c8
rep stosd dword es:[edi], eax
movzx eax, word [esi*8 + 0x48dac2]
movzx ecx, word [esi*8 + 0x48dac0]
mov dword [0x490de0], eax
movzx eax, word [esi*8 + 0x48dac6]
mov dword [0x490dd0], esi
mov dword [0x490dbc], ecx
mov dword [0x490de4], edx
mov dword [0x490dc4], eax
jne 0x40c045
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x40c051
cmp esi, 9
jne 0x40c051
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4a8f78
mov dword [0x490ddc], esi
mov dword [0x490dd4], esi
call dword [0x490dac]
add esp, 8
cmp eax, esi
mov dword [0x490dd8], eax
je 0x40c0c7
cmp eax, 0xffffffff
je 0x40c0c7
mov edi, 0x106
cmp eax, edi
mov dword [0x490dcc], esi
jae 0x40c0a5
nop
cmp dword [0x490dcc], esi
jne 0x40c0a5
call fcn.0040b9a0
cmp dword [0x490dd8], edi
jb 0x40c090
movzx ecx, byte [0x4a8f78]
movzx edx, byte [0x4a8f79]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x490de8], ecx
pop esi
ret
pop edi
mov dword [0x490dd8], esi
mov dword [0x490dcc], 1
pop esi
ret
Function at 0x4128c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4128d3
or eax, 0xffffffff
mov dword [0x48e4b8], eax
not eax
ret
mov eax, dword [0x48e4b8]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4128ff
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x48e0b8]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x4128e2
pop edi
mov dword [0x48e4b8], eax
pop esi
not eax
ret

Function at 0x414348
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 0x41439b
call fcn.004396ac
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41439b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x414391
xor eax, eax
jmp 0x4144b4
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 0x4143cb
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 0x4143cb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4144b1
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4143f8
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041344b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4144b1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414441
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x414441
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41443b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041344b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4144a1
and dword [ebp + 0xc], 0
jmp 0x4144a1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4144a1
push 0xc
call fcn.00432c9f
mov esi, eax
test esi, esi
pop ecx
je 0x414483
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 0x414485
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41449c
push dword [ebp - 8]
call fcn.0042d7fb
jmp 0x4144a1
call fcn.0042d7d2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414406
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41cf22
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.0041d210
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cfbd
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 [0x4e2cb4]
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 0x41cfbd
cmp eax, 1
je 0x41cfde
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 0x41cfbd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41cf8a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41cfb9
xor eax, eax
inc eax
jmp 0x41cffd
cmp edi, eax
jae 0x41cfc1
xor eax, eax
jmp 0x41cffd
cmp eax, esi
jae 0x41cfc8
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 [0x4e2cb4]
jmp 0x41cfe1
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 0x41e20f
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 0x41e22c
call fcn.0041e749
mov dword [eax], 0x16
xor eax, eax
jmp 0x41e296
push esi
push 0x8c
push 1
call fcn.0041f203
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41e281
push esi
call fcn.00423f6e
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 0x41e25f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41e17a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41e295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041ceb1
test ebx, ebx
pop ecx
je 0x41e293
push ebx
call fcn.0041e75b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41f40f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444d98
call fcn.00420fd0
mov edi, 0x94
mov eax, edi
call fcn.0041d210
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 [0x4e2cb4], ecx
mov eax, dword [esi + 4]
mov dword [0x4e2cc0], eax
mov edx, dword [esi + 8]
mov dword [0x4e2cc4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e2cb8], esi
cmp ecx, 2
je 0x41f46f
or esi, 0x8000
mov dword [0x4e2cb8], esi
shl eax, 8
add eax, edx
mov dword [0x4e2cbc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41f4aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f4aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f4c2
cmp eax, 0x20b
je 0x41f4af
mov dword [ebp - 0x1c], esi
jmp 0x41f4d6
cmp dword [ecx + 0x84], 0xe
jbe 0x41f4aa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41f4d0
cmp dword [ecx + 0x74], 0xe
jbe 0x41f4aa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00421d97
pop ecx
test eax, eax
jne 0x41f4ea
push 0x1c
call fcn.0041f3eb
pop ecx
call fcn.00424168
test eax, eax
jne 0x41f4fb
push 0x10
call fcn.0041f3eb
pop ecx
call fcn.00426230
mov dword [ebp - 4], esi
call fcn.00425214
test eax, eax
jge 0x41f514
push 0x1b
call fcn.0041f3c6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4e3590], eax
call fcn.0042610e
mov dword [0x4e2ca0], eax
call fcn.0042606c
test eax, eax
jge 0x41f53a
push 8
call fcn.0041f3c6
pop ecx
call fcn.00425e39
test eax, eax
jge 0x41f54b
push 9
call fcn.0041f3c6
pop ecx
push 1
call fcn.0041fdd2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41f561
push eax
call fcn.0041f3c6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00425ddc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41f582
movzx eax, word [ebp - 0x40]
jmp 0x41f585
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042ad1e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41f5a3
push edi
call fcn.0041feff
call fcn.0041ff21
jmp 0x41f5d5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042100b
ret
Function at 0x41fe3c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444e08
call fcn.00420fd0
push 8
call fcn.00421d4c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4e2cf4], esi
jne 0x41fe70
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e2cf0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4e2cec], al
cmp dword [ebp + 0xc], edi
jne 0x41feba
cmp dword [0x4e3588], edi
je 0x41feaa
mov eax, dword [0x4e3584]
sub eax, 4
mov dword [0x4e3584], eax
cmp eax, dword [0x4e3588]
jb 0x41feaa
mov eax, dword [eax]
cmp eax, edi
je 0x41fe8b
call eax
jmp 0x41fe8b
push 0x44e0c4
mov eax, 0x44e0bc
call fcn.0041fdba
pop ecx
push 0x44e0d0
mov eax, 0x44e0c8
call fcn.0041fdba
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41feeb
cmp dword [ebp + 0x10], edi
jne 0x41fef9
mov dword [0x4e2cf4], esi
push dword [ebp + 8]
call fcn.0041fd78
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41fef8
push 8
call fcn.00421c97
pop ecx
ret
call fcn.0042100b
ret
Function at 0x422926
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 0x422954
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 0x42295b
cmp ebx, dword [eax + 4]
jae 0x42295b
xor eax, eax
jmp 0x422b4b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42296c
xor eax, eax
inc eax
jmp 0x422b4a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x422982
cmp ecx, edx
jae 0x422ac7
cmp dword [eax + 4], 0
je 0x42298b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x422973
cmp dword [ebp + 8], 0
je 0x4229ad
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x422ac7
cmp eax, esi
jae 0x422ac7
mov eax, dword [0x4e2e58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4229d2
cmp dword [esi*4 + 0x4e2e60], edi
je 0x422acb
inc esi
cmp esi, eax
jl 0x4229c0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422b47
cmp dword [ebp - 8], 0x1000000
jne 0x422b47
test byte [ebp - 0xc], 0xcc
je 0x422a50
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x422b47
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x422b47
cmp word [eax + 0x18], 0x10b
jne 0x422b47
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x422b47
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x422a50
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x422a50
test byte [ecx + 0x27], 0x80
jne 0x422ac7
push 1
push 0x4e2ea0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x422964
mov ecx, dword [0x4e2e58]
test ecx, ecx
mov edx, ecx
jle 0x422a84
lea eax, [ecx*4 + 0x4e2e5c]
cmp dword [eax], edi
je 0x422a84
dec edx
sub eax, 4
test edx, edx
jg 0x422a78
test edx, edx
jne 0x422ab5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x422a91
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x422aa9
lea eax, [edx*4 + 0x4e2e60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x422a97
cmp ecx, 0x10
jge 0x422ab5
inc ecx
mov dword [0x4e2e58], ecx
push 0
push 0x4e2ea0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x422964
xor eax, eax
jmp 0x422b4a
test esi, esi
jle 0x422964
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e2ea0
call ebx
test eax, eax
jne 0x422964
cmp dword [esi*4 + 0x4e2e60], edi
je 0x422b21
mov eax, dword [0x4e2e58]
lea esi, [eax - 1]
test esi, esi
jl 0x422b0f
cmp dword [esi*4 + 0x4e2e60], edi
je 0x422b0b
dec esi
jns 0x422aff
test esi, esi
jge 0x422b1f
cmp eax, 0x10
jge 0x422b1a
inc eax
mov dword [0x4e2e58], eax
lea esi, [eax - 1]
jmp 0x422b21
je 0x422b39
xor ecx, ecx
test esi, esi
jl 0x422b39
lea eax, [ecx*4 + 0x4e2e60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x422b27
push 0
push 0x4e2ea0
call ebx
jmp 0x422964
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4254ad
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48f710]
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 0x4254de
xor eax, eax
jmp 0x425667
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 + 0x4e3220]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42551a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00429814
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4255f5
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x425633
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 0x42557e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42556f
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 0x42554f
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 0x4255be
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4255c7
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x425540
jmp 0x4255c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x425662
cmp dword [ebp - 0x6c], edi
je 0x425633
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x425628
call fcn.0041e749
mov dword [eax], 9
call fcn.0041e752
mov dword [eax], esi
jmp 0x42565d
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 0x42561d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4255c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4255c9
push dword [ebp - 0x6c]
call fcn.0041e75b
pop ecx
jmp 0x42565d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42564b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42564b
xor eax, eax
jmp 0x425665
call fcn.0041e749
mov dword [eax], 0x1c
call fcn.0041e752
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x425665
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041d27e
add ebp, 0x3a0
leave
ret
Function at 0x425c2c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48f710]
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 + 0x4900b0]
je 0x425c61
inc eax
cmp eax, 0x13
jb 0x425c52
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4900b0]
jne 0x425d87
mov eax, dword [0x4e2ca8]
cmp eax, 1
je 0x425d5f
cmp eax, edx
jne 0x425c91
cmp dword [0x48fb34], 1
je 0x425d5f
cmp ecx, 0xfc
je 0x425d87
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 0x425cc7
lea eax, [ebp - 0x80]
push 0x444f54
push eax
call fcn.004270c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041fa10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x425cfb
mov eax, edi
push eax
call fcn.0041fa10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4400bc
push edi
call fcn.0041ecb0
add esp, 0x10
push edi
call fcn.0041fa10
push dword [esi + 0x4900b4]
mov ebx, eax
call fcn.0041fa10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041d210
mov ebx, esp
push 0x446048
push ebx
call fcn.004270c0
push edi
push ebx
call fcn.004270d0
push 0x444f50
push ebx
call fcn.004270d0
push dword [esi + 0x4900b4]
push ebx
call fcn.004270d0
push 0x12010
push 0x444f1c
push ebx
call fcn.00428520
add esp, 0x2c
jmp 0x425d87
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4900b4]
push dword [esi]
call fcn.0041fa10
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.0041d27e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret