joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
mov dword [esp + 4], 0
push eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40385f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
add esp, 0x74
ret 0x10
mov eax, dword [esp + 0x88]
push ebx
push ebp
push esi
test eax, eax
je 0x403910
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4038e4
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebp, 0x12
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 0
push eax
push 1
call ebx
sub eax, 0
je 0x4038f6
dec eax
jne 0x403895
push 1
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
call esi
test eax, eax
je 0x403895
cmp dword [esp + 0x28], ebp
je 0x4038f6
lea edx, [esp + 0x24]
push edx
call edi
push 1
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call esi
test eax, eax
jne 0x4038c2
jmp 0x403895
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x403908
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x403910
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x74
ret 0x10
Function at 0x403b00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
test eax, eax
push ebp
push esi
mov esi, ecx
jne 0x403b1c
mov eax, dword [esi + 4]
mov dword [esp + 0x118], eax
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x403b53
mov edx, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403b5d
pop esi
xor al, al
pop ebp
add esp, 0x10c
ret 8
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 8], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x403ba0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00403b00
test al, al
jne 0x403b64
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
cmp eax, ecx
pop edi
jne 0x403bb5
mov ecx, esi
call fcn.00403ae0
jmp 0x403bbc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x118]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
add esp, 0x10c
ret 8
Function at 0x404bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
push edi
push str.TEXT
push 0x69
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
lea eax, [esp + 8]
push 0x100
push eax
push 9
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 8]
push 0x40
push ecx
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4068c0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41087b
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x6b0
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
jne 0x406ae3
mov eax, dword [esp + 0x6d4]
push ebx
push str.kDk
push eax
call fcn.00408bd0
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x3c0]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x6d4]
or ecx, 0xffffffff
neg ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..._binn_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x6e0]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40698d
lea eax, [esp + 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push str.MSSQLServer
lea ecx, [esp + 0x3c8]
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.004025b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c8], 0
call fcn.00402c10
test eax, eax
pop ebx
jne 0x406a20
mov esi, dword [esp + 0x6cc]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x1bc]
push 0x200
push edx
push 0xb
push esi
call edi
lea eax, [esp + 0x3c]
push 0x100
push eax
push 9
push esi
call edi
lea ecx, [esp + 0x3c]
push 0
lea edx, [esp + 0x1c0]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x6c4], 0xffffffff
call fcn.00402680
or eax, 0xffffffff
jmp 0x406ae5
lea ecx, [esp + 0xc]
call fcn.00402c00
mov esi, eax
test esi, esi
jne 0x406a41
push eax
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x14]
call fcn.00402b10
lea ecx, [esp + 0xc]
mov dword [esp + 0x6c4], 0xffffffff
call fcn.00402680
test esi, esi
jne 0x406ae3
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x1bc]
mov esi, dword [esp + 0x6cc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x5bc]
push 0xff
push ecx
push 0xa
push esi
call edi
lea edx, [esp + 0x13c]
lea eax, [esp + 0x5bc]
push edx
lea ecx, [esp + 0x1c0]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x3c]
push 0x100
push edx
push 9
push esi
call edi
lea eax, [esp + 0x3c]
push 0
lea ecx, [esp + 0x1c0]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, 1
mov eax, ebp
mov ecx, dword [esp + 0x6bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6bc
ret
Function at 0x406fe0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x4070d3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4070d3
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push ebp
or ebp, 0xffffffff
test eax, eax
push esi
jne 0x407018
mov ebp, 1
jmp 0x40701f
cmp eax, 1
jne 0x40701f
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0
push str.Completed
mov dword [eax], 0xffffffff
push str.Status
mov dword [ecx], 0
call esi
push ebx
push ebp
push str.ResultCode
push str.ResponseResult
mov edi, eax
call esi
test eax, eax
jne 0x4070c4
cmp edi, 1
jne 0x40708c
push ebx
push eax
push str.RebootRequired
push str.Status
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
dec eax
neg eax
sbb eax, eax
and eax, 0xfffff43e
add eax, 0xbc2
mov dword [ecx], eax
jmp 0x4070a2
jg 0x40709c
test edi, edi
je 0x40709c
mov dword [esp + 0x14], 0xffffffff
jmp 0x4070a2
mov edx, dword [esp + 0x1c]
mov dword [edx], edi
push ebx
push 0
push str.ExitErrCode
push str.Status
call esi
test eax, eax
je 0x4070ca
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop ebx
ret
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop edi
pop ebx
ret
pop edi
mov eax, 0x57
pop ebx
ret

Function at 0x4070e0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x210
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x110]
push 1
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x110]
push 0x105
push eax
call fcn.00408300
add esp, 8
test eax, eax
je 0x4071d4
or ecx, 0xffffffff
lea edi, [esp + 0x110]
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.sqlsut.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ebx
pop edi
pop esi
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret
Function at 0x4071e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x324]
push 0x105
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push 0x105
push ecx
call fcn.00408300
add esp, 8
lea edx, [esp + 0x21c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x21c]
push 0x5c
push eax
call fcn.00409ba0
mov ecx, 2
lea edx, [esp + 0x224]
sub ecx, edx
add esp, 8
add eax, ecx
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, str...Binn_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407f80
add esp, 4
test eax, eax
je 0x4073b1
mov ebx, dword [esp + 0x430]
lea ecx, [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
push edx
push str.sqlsut.dll
push ebx
call fcn.004076e0
add esp, 0x10
test eax, eax
je 0x407314
cmp eax, 0xbc2
jne 0x4073b7
lea eax, [esp + 0x114]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.sqdedev.dll
push ebx
call fcn.004076e0
add esp, 0x10
test eax, eax
je 0x40733a
cmp eax, 0xbc2
jne 0x4073b7
mov edi, str...Binn_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str...System_
push ebp
mov byte [edx + ecx], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push str.sqlunirl.dll
push ebx
call fcn.004076e0
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x420
ret
Function at 0x407f80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x218
mov ax, word [0x413040]
push ebx
push esi
push edi
mov edi, dword [esp + 0x228]
mov word [esp + 0xe], ax
test edi, edi
mov dword [esp + 0x10], 1
jne 0x407fbb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x218
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x408003
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x218
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0xe]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x120]
push edx
push eax
call fcn.004099ab
add esp, 8
test eax, eax
je 0x4080d3
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
jne 0x4080a5
lea ecx, [esp + 0x18]
push 0
push ecx
call ebp
test eax, eax
je 0x4080cb
lea edx, [esp + 0x12]
push edx
push 0
call fcn.004099ab
add esp, 8
test eax, eax
jne 0x408035
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret
Function at 0x408300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x118]
push edi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ebp, ebp
test ebx, ebx
stosb byte es:[edi], al
je 0x4083b3
lea eax, [esp + 0x10]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x4083b3
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x10]
mov cl, byte [str.SqlSetupBin]
test cl, cl
je 0x40836e
mov edx, str.SqlSetupBin
sub edx, eax
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
inc esi
test cl, cl
jne 0x408362
mov ecx, dword [esp + 0x120]
dec ecx
cmp ecx, esi
jb 0x4083a8
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x40ccf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413f78
cmp edx, dword [eax]
je 0x40cd1b
add eax, 8
inc ecx
cmp eax, 0x414008
jl 0x40cd0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413f78]
jne 0x40ce49
mov eax, dword [0x41632c]
cmp eax, 1
je 0x40ce23
test eax, eax
jne 0x40cd4c
cmp dword [0x4138a4], 1
je 0x40ce23
cmp edx, 0xfc
je 0x40ce49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cd83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040abb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40cdc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040abb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4116ec
push edi
call fcn.004087c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c000
lea eax, [ebp - 0xa0]
push 0x4116cc
push eax
call fcn.0040c000
push dword [esi + 0x413f7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c000
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040fa15
add esp, 0x2c
pop edi
jmp 0x40ce49
lea eax, [ebp + 8]
lea esi, [esi + 0x413f7c]
push 0
push eax
push dword [esi]
call fcn.0040abb0
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]
pop esi
leave
ret
Function at 0x406d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea edx, [esi + 0x2aed237f]
add ecx, dword [ebx - 0x704f3906]

Function at 0x4071ca
Capabilities:
Access peb ldr_data

Disassembly:
pop esi
repne movsb byte es:[edi], byte [esi]
call 0x4071ca
mov ebx, 0xa2a1de0
push 0x9dbd95a6
call ebp
cmp al, 6
jl 0x4071c5
cmp bl, 0xe0
jne 0x4071c5
mov ebx, 0x6f721347
push 0
push ebx
call ebp
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
push eax
push 0x160d6838
call ebp
pop eax
pop eax
popal
jmp 0x4072dd
fldpi
wait
fnstenv [esp - 0xc]
xor edx, edx
mov dl, 0x77
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x4072f4
pop ecx
add ecx, edx
jmp ecx

Function at 0x4071e1
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
call fcn.004071a3
and sp, 0xfffc
xor esi, esi
mov esi, dword fs:[esi + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov si, 0x1aaa
pop edi
mov ebp, dword [edi + 8]
push dword [edi]
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebp + ebx + 0x78]
add ebx, ebp
mov ecx, dword [ebx + 0x18]
jcxz 0x4071fc
mov edi, dword [ebx + 0x20]
add edi, ebp
mov edi, dword [edi + ecx*4 - 4]
add edi, ebp
xor eax, eax
cdq
xor dl, byte [edi]
ror dx, 1
scasb al, byte es:[edi]
jne 0x40721f
dec ecx
cmp dx, si
je 0x407236
jcxz 0x4071fc
jmp 0x407211
mov esi, dword [ebx + 0x24]
add esi, ebp
movzx esi, word [esi + ecx*2]
mov eax, dword [ebx + 0x1c]
add eax, ebp
mov edi, dword [eax + esi*4]
add edi, ebp
xor esi, esi
cmp dx, 0xf0da
je 0x40726d
cmp dx, 0x2769
je 0x407279
push 0x32
push 0x33656c6f
push esp
call edi
xchg ebp, eax
mov si, 0xf0da
jmp 0x407202
push esi
call edi
mov si, 0x2769
jmp 0x407202
push 0xd422046e
push 0x99efeca1
push 0x499272b9
push 0x6c44df74
mov eax, esp
push 0x9673794f
push 0xc001e39e
dec dword [esp + 2]
push 0x11d23391
push 0x96749377
mov ebx, esp
push esi
push esp
push eax
push 0x17
push esi
push ebx
call edi
pop ebx
push 0x5520676f
push 0x7420706f
push 0x686e6421
xchg esi, eax
mov esi, esp
push eax
lodsb al, byte [esi]
push ax
cmp al, 0x55
jne 0x4072c6
mov ecx, esp
xor eax, eax
push eax
push eax
push ecx
push ebx
mov edx, dword [ebx]
mov ecx, dword [edx + 0x50]
call ecx
int3
Function at 0x4018b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push ebx
mov ebx, dword [0x40a990]
push esi
push edi
mov edi, dword [0x40a9b8]
push 0xec
mov dword [ebp - 4], eax
call eax
push 0xec
mov esi, eax
push 0
push esi
mov dword [0x40a6c4], esi
call sub.VCRUNTIME140.dll_memset
push 0x20
mov dword [esi + 0xcc], esi
call dword [ebp - 4]
mov esi, eax
xor eax, eax
mov dword [0x40a6c0], esi
push 0x40720c
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
mov eax, 0x38e38e39
imul edi
mov eax, ebx
mov dword [0x40a6bc], 1
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
mov word [esi + 0x1c], cx
and edx, 0xf
mov ecx, dword [0x40a6c4]
add eax, edx
sar eax, 4
mov word [esi + 0x1e], ax
push ecx
mov dword [ecx + 0xc8], 1
mov dword [ecx + 0xcc], ecx
mov dword [esi], ecx
mov dword [esi + 4], esi
movups xmm0, xmmword [str.c:_shared_text_RANDOM.txt]
movups xmmword [ecx], xmm0
movq xmm0, qword [0x407200]
movq qword [ecx + 0x10], xmm0
mov ax, word [0x407208]
mov word [ecx + 0x18], ax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ecx, dword [0x40a6c4]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
mov dword [ecx + 0xd0], eax
call esi
mov eax, dword [0x40a6c4]
push dword [eax + 0xd0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edx, dword [0x40a6c4]
mov ecx, 1
add esp, 0x2c
mov dword [edx + 0xd4], eax
mov dword [edx + 0xd8], eax
cmp eax, ecx
jbe 0x4019e6
nop
add ecx, ecx
cmp ecx, eax
jb 0x4019e0
add ecx, ecx
mov dword [edx + 0xd8], ecx
cmp ecx, 0x1000
jge 0x401a00
mov dword [edx + 0xd8], 0x1000
push 0
push 0
push dword [edx + 0xd0]
call esi
mov eax, dword [0x40a6c4]
push dword [eax + 0xd8]
call dword [ebp - 4]
mov ecx, dword [0x40a6c4]
push dword [ecx + 0xd0]
mov dword [ecx + 0xdc], eax
push dword [ecx + 0xd4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [0x40a6c4]
push dword [eax + 0xd0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [0x40a9a8]
add esp, 0x24
mov ecx, dword [esi + 8]
test cx, cx
jne 0x401a78
cmp ecx, 0x40000000
jae 0x401ac4
push 4
push 0x1000
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi + 8]
xorps xmm0, xmm0
mov dword [0x40a6cc], ecx
pop edi
lea eax, [ecx + 0x1000]
mov dword [esi + 8], eax
mov eax, dword [0x40a6c4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
add ecx, 8
pop esi
mov dword [0x40a6c8], ecx
pop ebx
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [eax + 0xe8], ecx
mov esp, ebp
pop ebp
ret
mov ecx, str.MemLists::get1000__out_of_memory
call fcn.00405c70
int3