joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c9c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00450280
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x44cb10
test ecx, ecx
je 0x44cb10
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44ca39
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44cafd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x44cac1
cmp eax, 0xea
jne 0x44cae9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x44ca8c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x44cacf
cmp eax, 2
jne 0x44cae9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.004502d0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x44cb3e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44cb4a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x44cb4a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.004502d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x44d030
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44d04e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x44d043
pop esi
ret
Function at 0x44d050
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x44d0ba
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44d08a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x44d0d6
push ecx
push esi
call fcn.004502d0
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44d140
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x44d1d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x44d1c4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44d1bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x44d185
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x18
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xeb
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xd8
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5e
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x93
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb1
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xad
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6d
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2b
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x98
add esp, 0x40
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd2
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xcc
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xea
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdc
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x405ef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1274], 0
push esi
jne 0x405f2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f08
mov dword [ecx*4 + 0x7a1270], eax
inc ecx
cmp ecx, 0x100
jl 0x405f03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1270]
xor eax, esi
inc ecx
dec edx
jne 0x405f41
pop edi
not eax
pop esi
ret 0xc

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402650
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x30
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [0x41ae94], 0
push ebp
mov ebp, dword [esp + 0x38]
jne 0x40269e
push 0xf0000000
push 0x18
push 0
push 0
push 0x41ae94
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40269e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00402cb9
add esp, 0x30
ret
cmp dword [0x41ae98], 0
jne 0x40268c
push esi
push edi
push 0x2c
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00407ec0
mov eax, 0x20
add esp, 0xc
cmp ebx, eax
mov ecx, 8
mov esi, 0x41a15c
lea edi, [esp + 0x18]
mov word [esp + 0xc], 0x208
mov word [esp + 0x10], 0x6610
mov byte [esp + 0x14], al
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ja 0x4026e9
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.00406d10
mov eax, dword [0x41ae94]
add esp, 0xc
push 0x41ae98
push 0
push 0
push 0x2c
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x402686
mov ecx, 0x2c
lea eax, [esp + 4]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x402725
mov ecx, dword [esp + 0x30]
pop ebp
xor ecx, esp
mov al, 1
call fcn.00402cb9
add esp, 0x30
ret
Function at 0x4027a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
mov ebx, eax
call fcn.00402cb4
add esp, 4
cmp dword [0x41ae94], 0
mov ebp, eax
mov dword [esp + 0x10], esi
jne 0x4027e9
push 0xf0000000
push 0x18
push 0
push 0
push 0x41ae94
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4027e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push esi
push eax
push ebp
call fcn.00406d10
add esp, 0xc
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00402650
add esp, 4
test al, al
je 0x402859
mov eax, dword [0x41ae98]
lea edx, [esp + 0x10]
push edx
push ebp
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x402882
cmp esi, dword [esp + 0x10]
jne 0x402888
mov eax, dword [0x41ae98]
test eax, eax
je 0x402859
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x40284f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402859
mov dword [0x41ae98], 0
add edi, 1
cmp edi, 0x3e8
jl 0x402800
mov eax, dword [0x41ae98]
xor esi, esi
cmp eax, esi
je 0x402896
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x402890
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402896
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov dword [0x41ae98], esi
cmp dword [0x41ae94], esi
je 0x4028d2
push 0x10
push 0x18
push esi
push esi
push 0x41ae94
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028cc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x80090016
je 0x4028cc
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov dword [0x41ae94], esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x4028e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x40
push edi
push esi
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x402920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
push esi
mov ecx, edi
call fcn.004027a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402945
push edi
push ebx
push esi
call fcn.00406d10
add esp, 0xc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
call ebp
push edi
push 0
push ebx
call fcn.00407ec0
push ebx
call fcn.00403af5
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x402970
Capabilities:
Terminate process

Disassembly:
sub esp, 0x88
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x84], eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
add ecx, eax
call fcn.00402750
mov ebp, eax
test ebp, ebp
jne 0x4029a5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push edi
lea edi, [esp + 0xc]
lea ebx, [esp + 0x10]
mov dword [esp + 0xc], 0x80
call fcn.00402a20
test al, al
pop edi
pop ebx
jne 0x4029ca
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
push eax
mov eax, ebp
call fcn.004028e0
add esp, 8
mov ecx, esi
test esi, esi
lea eax, [esp + 0xc]
pop esi
je 0x4029fb
lea ebx, [ebx]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x4029f0
mov ecx, dword [esp + 0x88]
pop ebp
xor ecx, esp
call fcn.00402cb9
add esp, 0x88
ret

Function at 0x402a20
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x290
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x28c], eax
push 0x41ac70
lea eax, [esp + 0x88]
push 0x416ee8
push eax
mov edx, 0x104
call fcn.00402610
push 0x416ef8
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00402ece
add esp, 0x18
test eax, eax
je 0x402a85
xor al, al
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.00402cb9
add esp, 0x290
ret
mov eax, dword [esp]
push 2
push 0
push eax
call fcn.00403b81
add esp, 0xc
test eax, eax
jne 0x402a6e
mov ecx, dword [esp]
push esi
push ecx
call fcn.00403d9e
mov esi, eax
add esp, 4
test esi, esi
je 0x402b6e
cmp esi, 0xffffffff
je 0x402b6e
mov edx, dword [esp + 4]
push 0
push 0
push edx
call fcn.00403b81
add esp, 0xc
test eax, eax
jne 0x402b6e
mov eax, dword [edi]
cmp eax, esi
jb 0x402ada
mov eax, esi
mov ecx, dword [esp + 4]
push ecx
push 1
push eax
push ebx
call fcn.004040a8
add esp, 0x10
cmp eax, 1
jne 0x402b6e
mov eax, dword [edi]
cmp eax, esi
jb 0x402af8
mov eax, esi
mov edx, dword [esp + 4]
push 0
push 0
push edx
mov dword [edi], eax
call fcn.00403b81
add esp, 0xc
test eax, eax
jne 0x402b6e
push 0x80
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407ec0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
push ecx
push 1
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004031ff
add esp, 0x1c
cmp eax, 1
jne 0x402b6e
mov ecx, dword [esp + 4]
push ecx
call fcn.00403024
add esp, 4
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop esi
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.00402cb9
add esp, 0x290
ret
mov ecx, dword [esp + 0x290]
pop esi
xor ecx, esp
xor al, al
call fcn.00402cb9
add esp, 0x290
ret

Function at 0x402cb9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419060]
jne 0x402cc3
repz ret
jmp fcn.00404c95
Function at 0x403e0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x403e49
cmp dword [ebp + 0x14], edi
je 0x403e49
cmp ecx, edi
jne 0x403e50
call fcn.00404f34
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004035b7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x403e64
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x403e85
cmp ebx, 0xffffffff
je 0x403e74
push ebx
push edi
push ecx
call fcn.00407ec0
add esp, 0xc
cmp esi, edi
je 0x403e31
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x403e31
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x403ea1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x403ea8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x403f99
test word [esi + 0xc], 0x10c
je 0x403efc
mov eax, dword [esi + 4]
test eax, eax
je 0x403efc
jl 0x403ffa
cmp ebx, eax
mov edi, ebx
jb 0x403ecd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x403fa1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004036fe
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x403f91
cmp ebx, dword [ebp - 0xc]
jb 0x403f69
cmp dword [ebp - 0xc], 0
je 0x403f26
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x403f1b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x403f22
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x403f31
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x403f31
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x403fcd
push eax
push dword [ebp - 8]
push esi
call fcn.0040647f
pop ecx
push eax
call fcn.004090f4
add esp, 0xc
test eax, eax
je 0x40400c
cmp eax, 0xffffffff
je 0x403ffa
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x403f91
push esi
call fcn.00408685
cmp eax, 0xffffffff
pop ecx
je 0x403ffe
cmp dword [ebp - 4], 0
je 0x403fcd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x403eb0
mov eax, dword [ebp + 0x14]
jmp 0x403e4b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x403fb8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00407ec0
add esp, 0xc
call fcn.00404f34
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x403e41
cmp dword [ebp + 0xc], 0xffffffff
je 0x403fe3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00407ec0
add esp, 0xc
call fcn.00404f34
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x403e41
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x403e4b
or dword [esi + 0xc], 0x10
jmp 0x403ffe
Function at 0x409faa
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x419c60]
je 0x409fc5
inc edi
cmp edi, 0x17
jb 0x409fb6
cmp edi, 0x17
jae 0x40a145
push ebp
push 3
call fcn.0040ff81
cmp eax, 1
pop ecx
je 0x40a111
push 3
call fcn.0040ff81
test eax, eax
pop ecx
jne 0x409ff9
cmp dword [0x419050], 1
je 0x40a111
cmp ebx, 0xfc
je 0x40a144
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41a578
push ebp
call fcn.00407f3a
add esp, 0xc
test eax, eax
je 0x40a02f
push esi
push esi
push esi
push esi
push esi
call fcn.004034bb
add esp, 0x14
push 0x104
mov esi, 0x41a591
push esi
push 0
mov byte [0x41a695], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a073
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407f3a
add esp, 0xc
test eax, eax
je 0x40a073
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004034bb
add esp, 0x14
push esi
call fcn.00404790
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a0b8
push esi
call fcn.00404790
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41a88c
push 0x4159d4
sub ecx, eax
push ecx
push eax
call fcn.0040fa26
add esp, 0x14
test eax, eax
je 0x40a0b8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004034bb
add esp, 0x14
jmp 0x40a0ba
xor esi, esi
push 0x4159d0
push ebx
push ebp
call fcn.0040f968
add esp, 0xc
test eax, eax
je 0x40a0da
push esi
push esi
push esi
push esi
push esi
call fcn.004034bb
add esp, 0x14
push dword [edi*8 + 0x419c64]
push ebx
push ebp
call fcn.0040f968
add esp, 0xc
test eax, eax
je 0x40a0fc
push esi
push esi
push esi
push esi
push esi
call fcn.004034bb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040fdc4
add esp, 0xc
jmp 0x40a144
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40a144
cmp ebp, 0xffffffff
je 0x40a144
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x419c64]
push dword [esi]
call fcn.00404790
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret