joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a151
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x42a17a
xor al, al
jmp 0x42a1f5
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42a1eb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42a1eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42a1eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x42a2bf
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x45e56c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xd48], esi
jne 0x42a2e8
xor al, al
jmp 0x42a4d4
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x42a2f3
lea edi, [esi + 0xc]
push edi
call fcn.0042a031
test al, al
pop ecx
jne 0x42a305
xor al, al
jmp 0x42a4d3
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.00429f41
cmp byte [ebp - 0x210], bl
je 0x42a358
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043ab66
mov esi, dword [esi + 4]
add esp, 0x14
cmp esi, ebx
je 0x42a346
push 1
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a031
pop ecx
jmp 0x42a4d3
cmp byte [ebp + 0xc], bl
je 0x42a398
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043abf6
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043ab66
add esp, 0x28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0043ab66
lea eax, [ebp - 0x108]
push eax
call fcn.0042a11c
add esp, 0x18
test al, al
je 0x42a2fe
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, 0x80
push esi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xd44], eax
jne 0x42a424
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call edi
mov dword [ebp - 0xd44], eax
mov esi, dword [ebp - 0xd48]
push dword [esi + 8]
call fcn.00432aa0
test eax, eax
jne 0x42a2fe
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42a44b
push ebx
lea ecx, [ebp - 0x108]
push ecx
call eax
push 0x800
lea eax, [ebp - 0xd40]
push eax
push dword [esi + 8]
call fcn.00432410
mov edi, eax
cmp edi, ebx
jle 0x42a48d
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0xd40]
push eax
push dword [ebp - 0xd44]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a48a
cmp dword [ebp + 0xc], edi
je 0x42a44b
or edi, 0xffffffff
push dword [ebp - 0xd44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call fcn.00432610
cmp edi, ebx
jne 0x42a4cc
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
call fcn.0042a151
pop ecx
pop ecx
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043800c
leave
ret 8
Function at 0x42a66e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44a76a
call fcn.00438874
sub esp, 0x17c
mov eax, dword [0x45e56c]
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x12c], ebx
call fcn.0042ceef
push str.SoftwareMicrosoftInternet_ExplorerInternetRegistryREGISTRYUSER
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 1
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x118], ebx
call fcn.0042cf35
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.0042d66b
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42a83a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x42a83a
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x120], eax
call fcn.00438f22
pop ecx
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.004213aa
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.00438f22
mov edi, eax
mov eax, dword [ebp - 0x11c]
pop ecx
inc eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x17c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
push ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x42a82c
sub esp, 0x14
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x184], esp
push eax
call fcn.0042cff0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d079
lea ecx, [ebp - 0x154]
call fcn.0042d04b
push 0x44cec4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d157
lea ecx, [ebp - 0x154]
call fcn.0042d04b
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d157
lea ecx, [ebp - 0x154]
call fcn.0042d04b
push esi
call fcn.00437fd6
push edi
call fcn.00437fd6
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0042cff0
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
call fcn.0042d04b
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0042d04b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0043800c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ab68
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42ab87
push esi
call fcn.00438020
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x42ab87
xor byte [ecx + esi], 8
inc ecx
cmp ecx, eax
jb 0x42ab7e
pop esi
ret
Function at 0x432c10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x432c1f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x45d3ac]
test eax, eax
je 0x432c2d
call fcn.00432ac0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x432d21
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x465070]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x465070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x465070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x465070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465070]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x432c47
pop edi
pop ebx
test edx, edx
je 0x432d41
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465070]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x432d25
not eax
pop esi
ret 0xc
Function at 0x4394a5
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.004396e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x439540
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 [0x46547c]
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 0x439540
cmp eax, 1
je 0x439561
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 0x439540
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43950d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43953c
xor eax, eax
inc eax
jmp 0x439580
cmp edi, eax
jae 0x439544
xor eax, eax
jmp 0x439580
cmp eax, esi
jae 0x43954b
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 [0x46547c]
jmp 0x439564
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 0x439bb6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4555c8
call fcn.00439588
push 8
call fcn.0043e5bd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4654bc], esi
jne 0x439bea
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4654b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4654b4], al
cmp dword [ebp + 0xc], edi
jne 0x439c34
cmp dword [0x466fd8], edi
je 0x439c24
mov eax, dword [0x466fd4]
sub eax, 4
mov dword [0x466fd4], eax
cmp eax, dword [0x466fd8]
jb 0x439c24
mov eax, dword [eax]
cmp eax, edi
je 0x439c05
call eax
jmp 0x439c05
push 0x45d084
mov eax, 0x45d07c
call fcn.00439b34
pop ecx
push 0x45d090
mov eax, 0x45d088
call fcn.00439b34
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x439c65
cmp dword [ebp + 0x10], edi
jne 0x439c73
mov dword [0x4654bc], esi
push dword [ebp + 8]
call fcn.00439af2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x439c72
push 8
call fcn.0043e508
pop ecx
ret
call fcn.004395c3
ret

Function at 0x43aa2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43aa4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00440f07
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43aa71
test byte [esp + 8], 2
je 0x43aa71
call fcn.00440ef5
mov dword [eax], 0xd
call fcn.00440efe
mov dword [eax], 5
jmp 0x43aa4a
xor eax, eax
ret
Function at 0x43b3ef
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x455740
call fcn.00439588
mov edi, 0x94
mov eax, edi
call fcn.004396e0
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 [0x46547c], ecx
mov eax, dword [esi + 4]
mov dword [0x465488], eax
mov edx, dword [esi + 8]
mov dword [0x46548c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x465480], esi
cmp ecx, 2
je 0x43b44f
or esi, 0x8000
mov dword [0x465480], esi
shl eax, 8
add eax, edx
mov dword [0x465484], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43b48a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b48a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43b4a2
cmp eax, 0x20b
je 0x43b48f
mov dword [ebp - 0x1c], esi
jmp 0x43b4b6
cmp dword [ecx + 0x84], 0xe
jbe 0x43b48a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43b4b0
cmp dword [ecx + 0x74], 0xe
jbe 0x43b48a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043f499
pop ecx
test eax, eax
jne 0x43b4ca
push 0x1c
call fcn.0043b3cb
pop ecx
call fcn.0043d926
test eax, eax
jne 0x43b4db
push 0x10
call fcn.0043b3cb
pop ecx
call fcn.0044065e
mov dword [ebp - 4], esi
call fcn.00441fd9
test eax, eax
jge 0x43b4f4
push 0x1b
call fcn.0043b3a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x466fcc], eax
call fcn.00441eb7
mov dword [0x4654c4], eax
call fcn.00441e15
test eax, eax
jge 0x43b51a
push 8
call fcn.0043b3a6
pop ecx
call fcn.00441be2
test eax, eax
jge 0x43b52b
push 9
call fcn.0043b3a6
pop ecx
push 1
call fcn.00439b4c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43b541
push eax
call fcn.0043b3a6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00441b85
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43b562
movzx eax, word [ebp - 0x40]
jmp 0x43b565
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00415773
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43b583
push edi
call fcn.00439c79
call fcn.00439c9b
jmp 0x43b5b5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004395c3
ret
Function at 0x440028
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 0x440056
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 0x44005d
cmp ebx, dword [eax + 4]
jae 0x44005d
xor eax, eax
jmp 0x44024d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44006e
xor eax, eax
inc eax
jmp 0x44024c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x440084
cmp ecx, edx
jae 0x4401c9
cmp dword [eax + 4], 0
je 0x44008d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x440075
cmp dword [ebp + 8], 0
je 0x4400af
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4401c9
cmp eax, esi
jae 0x4401c9
mov eax, dword [0x465650]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4400d4
cmp dword [esi*4 + 0x465658], edi
je 0x4401cd
inc esi
cmp esi, eax
jl 0x4400c2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x440249
cmp dword [ebp - 8], 0x1000000
jne 0x440249
test byte [ebp - 0xc], 0xcc
je 0x440152
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x440249
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x440249
cmp word [eax + 0x18], 0x10b
jne 0x440249
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x440249
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x440152
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x440152
test byte [ecx + 0x27], 0x80
jne 0x4401c9
push 1
push 0x465698
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x440066
mov ecx, dword [0x465650]
test ecx, ecx
mov edx, ecx
jle 0x440186
lea eax, [ecx*4 + 0x465654]
cmp dword [eax], edi
je 0x440186
dec edx
sub eax, 4
test edx, edx
jg 0x44017a
test edx, edx
jne 0x4401b7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x440193
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4401ab
lea eax, [edx*4 + 0x465658]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x440199
cmp ecx, 0x10
jge 0x4401b7
inc ecx
mov dword [0x465650], ecx
push 0
push 0x465698
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x440066
xor eax, eax
jmp 0x44024c
test esi, esi
jle 0x440066
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x465698
call ebx
test eax, eax
jne 0x440066
cmp dword [esi*4 + 0x465658], edi
je 0x440223
mov eax, dword [0x465650]
lea esi, [eax - 1]
test esi, esi
jl 0x440211
cmp dword [esi*4 + 0x465658], edi
je 0x44020d
dec esi
jns 0x440201
test esi, esi
jge 0x440221
cmp eax, 0x10
jge 0x44021c
inc eax
mov dword [0x465650], eax
lea esi, [eax - 1]
jmp 0x440223
je 0x44023b
xor ecx, ecx
test esi, esi
jl 0x44023b
lea eax, [ecx*4 + 0x465658]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x440229
push 0
push 0x465698
call ebx
jmp 0x440066
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441871
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45e56c]
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 + 0x45ed20]
je 0x4418a6
inc eax
cmp eax, 0x13
jb 0x441897
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ed20]
jne 0x4419cc
mov eax, dword [0x4654cc]
cmp eax, 1
je 0x4419a4
cmp eax, edx
jne 0x4418d6
cmp dword [0x45e6b4], 1
je 0x4419a4
cmp ecx, 0xfc
je 0x4419cc
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 0x44190c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004380c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00438020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441940
mov eax, edi
push eax
call fcn.00438020
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4557f4
push edi
call fcn.00441520
add esp, 0x10
push edi
call fcn.00438020
push dword [esi + 0x45ed24]
mov ebx, eax
call fcn.00438020
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004396e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004380c0
push edi
push ebx
call fcn.004380d0
push 0x4557f0
push ebx
call fcn.004380d0
push dword [esi + 0x45ed24]
push ebx
call fcn.004380d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00442fc9
add esp, 0x2c
jmp 0x4419cc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45ed24]
push dword [esi]
call fcn.00438020
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.0043800c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4426a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44287d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x466c60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44287d
test cl, 0x48
je 0x442714
cmp byte [eax + 5], 0xa
je 0x442714
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442766
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44274e
call fcn.00440ef5
mov dword [eax], 9
call fcn.00440efe
mov dword [eax], esi
jmp 0x44275e
cmp eax, 0x6d
je 0x44287d
push eax
call fcn.00440f07
pop ecx
or eax, 0xffffffff
jmp 0x44287f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x442878
test eax, eax
je 0x44278d
cmp byte [ebx], 0xa
jne 0x44278d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x442796
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x442872
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x442862
cmp al, 0xd
je 0x4427c8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x442854
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4427e2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4427dd
add dword [ebp + 0x10], 2
jmp 0x442836
mov dword [ebp + 0x10], eax
jmp 0x442850
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44280a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442850
cmp dword [ebp - 0xc], 0
je 0x442850
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44282b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x442836
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x442853
cmp ebx, dword [ebp + 0xc]
jne 0x44283b
cmp byte [ebp - 1], 0xa
jne 0x44283b
mov byte [ebx], 0xa
jmp 0x442853
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00442d61
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x442854
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4427ac
jmp 0x442872
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x442872
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44287f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret