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

Disassembly:
push 0xffffffffffffffff
push 0x43bd8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x459c10]
push ebx
push esi
xor esi, esi
push 0x43f12e
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.00401a20
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 0x4083d1
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
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 0x43f9a8
push esi
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov ebx, eax
shr eax, 0x10
and ebx, 0xffff
push ebx
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
mov ecx, edx
and ecx, 0xffff
push ecx
shr edx, 0x10
push edx
mov edx, esi
and edx, 0xffff
push edx
shr esi, 0x10
push esi
lea eax, [esp + 0x2c]
push str.V_d._d_d_d_Build__02d_02d_02d_02d
push eax
call fcn.00402e10
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.004028a0
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 ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408416
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.0041c5be
add esp, 0x124
ret 4

Function at 0x408c90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x459c10]
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 0x408d04
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.0041c5be
add esp, 0x110
ret 0xc
Function at 0x4097e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43be98
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 0x4098e6
push esi
call fcn.004319e4
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 0x40984b
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401630
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40985f
xor eax, eax
jmp 0x409873
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409864
sub eax, edx
js 0x4098f6
cmp eax, dword [esi - 8]
jg 0x4098f6
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00401840
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4098bb
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4098bb
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 0x4098e5
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.00401260
int3
Function at 0x40af40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x40af50
cmp esi, 9
jle 0x40af5d
push str.bad_pack_level
call fcn.00411920
add esp, 4
movzx edx, word [esi*8 + 0x457fcc]
xor eax, eax
cmp esi, 1
mov ecx, 0x4000
mov edi, 0x497e08
rep stosd dword es:[edi], eax
movzx eax, word [esi*8 + 0x457fca]
movzx ecx, word [esi*8 + 0x457fc8]
mov dword [0x45b41c], eax
movzx eax, word [esi*8 + 0x457fce]
mov dword [0x45b40c], esi
mov dword [0x45b3f8], ecx
mov dword [0x45b420], edx
mov dword [0x45b400], eax
jne 0x40afb5
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x40afc1
cmp esi, 9
jne 0x40afc1
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4735b8
mov dword [0x45b418], esi
mov dword [0x45b410], esi
call dword [0x45b3e8]
add esp, 8
cmp eax, esi
mov dword [0x45b414], eax
je 0x40b037
cmp eax, 0xffffffff
je 0x40b037
mov edi, 0x106
cmp eax, edi
mov dword [0x45b408], esi
jae 0x40b015
nop
cmp dword [0x45b408], esi
jne 0x40b015
call fcn.0040a910
cmp dword [0x45b414], edi
jb 0x40b000
movzx ecx, byte [0x4735b8]
movzx edx, byte [0x4735b9]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x45b424], ecx
pop esi
ret
pop edi
mov dword [0x45b414], esi
mov dword [0x45b408], 1
pop esi
ret
Function at 0x411830
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x411843
or eax, 0xffffffff
mov dword [0x4589c0], eax
not eax
ret
mov eax, dword [0x4589c0]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41186f
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x4585c0]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x411852
pop edi
mov dword [0x4589c0], eax
pop esi
not eax
ret

Function at 0x41329f
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 0x4132f2
call fcn.00438620
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4132f2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4132e8
xor eax, eax
jmp 0x41340b
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 0x413322
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 0x413322
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x413408
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41334f
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004143ba
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x413408
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x413398
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x413398
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x413392
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004143ba
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4133f8
and dword [ebp + 0xc], 0
jmp 0x4133f8
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4133f8
push 0xc
call fcn.00431c0c
mov esi, eax
test esi, esi
pop ecx
je 0x4133da
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 0x4133dc
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4133f3
push dword [ebp - 8]
call fcn.0042c76b
jmp 0x4133f8
call fcn.0042c742
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41335d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c35c
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.0041c550
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c3f7
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 [0x4ad2f4]
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 0x41c3f7
cmp eax, 1
je 0x41c418
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 0x41c3f7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41c3c4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41c3f3
xor eax, eax
inc eax
jmp 0x41c437
cmp edi, eax
jae 0x41c3fb
xor eax, eax
jmp 0x41c437
cmp eax, esi
jae 0x41c402
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 [0x4ad2f4]
jmp 0x41c41b
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 0x41d072
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 0x41d08f
call fcn.0041d6b9
mov dword [eax], 0x16
xor eax, eax
jmp 0x41d0f9
push esi
push 0x8c
push 1
call fcn.0041e173
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41d0e4
push esi
call fcn.00421439
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 0x41d0c2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41cfdd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41d0f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041c2eb
test ebx, ebx
pop ecx
je 0x41d0f6
push ebx
call fcn.0041d6cb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41e37f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444be0
call fcn.0041ff40
mov edi, 0x94
mov eax, edi
call fcn.0041c550
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 [0x4ad2f4], ecx
mov eax, dword [esi + 4]
mov dword [0x4ad300], eax
mov edx, dword [esi + 8]
mov dword [0x4ad304], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4ad2f8], esi
cmp ecx, 2
je 0x41e3df
or esi, 0x8000
mov dword [0x4ad2f8], esi
shl eax, 8
add eax, edx
mov dword [0x4ad2fc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41e41a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e41a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41e432
cmp eax, 0x20b
je 0x41e41f
mov dword [ebp - 0x1c], esi
jmp 0x41e446
cmp dword [ecx + 0x84], 0xe
jbe 0x41e41a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41e440
cmp dword [ecx + 0x74], 0xe
jbe 0x41e41a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042197a
pop ecx
test eax, eax
jne 0x41e45a
push 0x1c
call fcn.0041e35b
pop ecx
call fcn.00421633
test eax, eax
jne 0x41e46b
push 0x10
call fcn.0041e35b
pop ecx
call fcn.004251a8
mov dword [ebp - 4], esi
call fcn.0042418c
test eax, eax
jge 0x41e484
push 0x1b
call fcn.0041e336
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4adbd0], eax
call fcn.00425086
mov dword [0x4ad2e0], eax
call fcn.00424fe4
test eax, eax
jge 0x41e4aa
push 8
call fcn.0041e336
pop ecx
call fcn.00424db1
test eax, eax
jge 0x41e4bb
push 9
call fcn.0041e336
pop ecx
push 1
call fcn.0041ed43
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41e4d1
push eax
call fcn.0041e336
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00424d54
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41e4f2
movzx eax, word [ebp - 0x40]
jmp 0x41e4f5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00429c8e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41e513
push edi
call fcn.0041ee70
call fcn.0041ee92
jmp 0x41e545
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041ff7b
ret
Function at 0x41edad
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444c50
call fcn.0041ff40
push 8
call fcn.0042192f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4ad334], esi
jne 0x41ede1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4ad330], esi
mov al, byte [ebp + 0x10]
mov byte [0x4ad32c], al
cmp dword [ebp + 0xc], edi
jne 0x41ee2b
cmp dword [0x4adbc8], edi
je 0x41ee1b
mov eax, dword [0x4adbc4]
sub eax, 4
mov dword [0x4adbc4], eax
cmp eax, dword [0x4adbc8]
jb 0x41ee1b
mov eax, dword [eax]
cmp eax, edi
je 0x41edfc
call eax
jmp 0x41edfc
push 0x44e0c4
mov eax, 0x44e0bc
call fcn.0041ed2b
pop ecx
push 0x44e0d0
mov eax, 0x44e0c8
call fcn.0041ed2b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41ee5c
cmp dword [ebp + 0x10], edi
jne 0x41ee6a
mov dword [0x4ad334], esi
push dword [ebp + 8]
call fcn.0041ece9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41ee69
push 8
call fcn.0042187a
pop ecx
ret
call fcn.0041ff7b
ret
Function at 0x422509
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 0x422537
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 0x42253e
cmp ebx, dword [eax + 4]
jae 0x42253e
xor eax, eax
jmp 0x42272e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42254f
xor eax, eax
inc eax
jmp 0x42272d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x422565
cmp ecx, edx
jae 0x4226aa
cmp dword [eax + 4], 0
je 0x42256e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x422556
cmp dword [ebp + 8], 0
je 0x422590
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4226aa
cmp eax, esi
jae 0x4226aa
mov eax, dword [0x4ad4a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4225b5
cmp dword [esi*4 + 0x4ad4b0], edi
je 0x4226ae
inc esi
cmp esi, eax
jl 0x4225a3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42272a
cmp dword [ebp - 8], 0x1000000
jne 0x42272a
test byte [ebp - 0xc], 0xcc
je 0x422633
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42272a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42272a
cmp word [eax + 0x18], 0x10b
jne 0x42272a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42272a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x422633
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x422633
test byte [ecx + 0x27], 0x80
jne 0x4226aa
push 1
push 0x4ad4f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x422547
mov ecx, dword [0x4ad4a8]
test ecx, ecx
mov edx, ecx
jle 0x422667
lea eax, [ecx*4 + 0x4ad4ac]
cmp dword [eax], edi
je 0x422667
dec edx
sub eax, 4
test edx, edx
jg 0x42265b
test edx, edx
jne 0x422698
push 0xf
pop ebx
cmp ecx, ebx
jg 0x422674
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42268c
lea eax, [edx*4 + 0x4ad4b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42267a
cmp ecx, 0x10
jge 0x422698
inc ecx
mov dword [0x4ad4a8], ecx
push 0
push 0x4ad4f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x422547
xor eax, eax
jmp 0x42272d
test esi, esi
jle 0x422547
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4ad4f0
call ebx
test eax, eax
jne 0x422547
cmp dword [esi*4 + 0x4ad4b0], edi
je 0x422704
mov eax, dword [0x4ad4a8]
lea esi, [eax - 1]
test esi, esi
jl 0x4226f2
cmp dword [esi*4 + 0x4ad4b0], edi
je 0x4226ee
dec esi
jns 0x4226e2
test esi, esi
jge 0x422702
cmp eax, 0x10
jge 0x4226fd
inc eax
mov dword [0x4ad4a8], eax
lea esi, [eax - 1]
jmp 0x422704
je 0x42271c
xor ecx, ecx
test esi, esi
jl 0x42271c
lea eax, [ecx*4 + 0x4ad4b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42270a
push 0
push 0x4ad4f0
call ebx
jmp 0x422547
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424425
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x459c10]
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 0x424456
xor eax, eax
jmp 0x4245df
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 + 0x4ad860]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x424492
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00428784
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42456d
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4245ab
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 0x4244f6
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4244e7
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 0x4244c7
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 0x424536
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42453f
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4244b8
jmp 0x424541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4245da
cmp dword [ebp - 0x6c], edi
je 0x4245ab
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4245a0
call fcn.0041d6b9
mov dword [eax], 9
call fcn.0041d6c2
mov dword [eax], esi
jmp 0x4245d5
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 0x424595
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x424541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x424541
push dword [ebp - 0x6c]
call fcn.0041d6cb
pop ecx
jmp 0x4245d5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4245c3
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4245c3
xor eax, eax
jmp 0x4245dd
call fcn.0041d6b9
mov dword [eax], 0x1c
call fcn.0041d6c2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4245dd
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041c5be
add ebp, 0x3a0
leave
ret
Function at 0x424ba4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x459c10]
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 + 0x45a5d0]
je 0x424bd9
inc eax
cmp eax, 0x13
jb 0x424bca
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45a5d0]
jne 0x424cff
mov eax, dword [0x4ad2e8]
cmp eax, 1
je 0x424cd7
cmp eax, edx
jne 0x424c09
cmp dword [0x45a034], 1
je 0x424cd7
cmp ecx, 0xfc
je 0x424cff
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 0x424c3f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00426030
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041e9c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424c73
mov eax, edi
push eax
call fcn.0041e9c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ff14
push edi
call fcn.0041dc20
add esp, 0x10
push edi
call fcn.0041e9c0
push dword [esi + 0x45a5d4]
mov ebx, eax
call fcn.0041e9c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041c550
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00426030
push edi
push ebx
call fcn.00426040
push 0x444e50
push ebx
call fcn.00426040
push dword [esi + 0x45a5d4]
push ebx
call fcn.00426040
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004274f8
add esp, 0x2c
jmp 0x424cff
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45a5d4]
push dword [esi]
call fcn.0041e9c0
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.0041c5be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret