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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x637b8c]
push ebx
push esi
push edi
mov esi, 0x190
push eax
mov edi, esi
call dword [sym.imp.ole32.dll_RevokeDragDrop]
mov ecx, dword [0x634038]
mov ebx, dword [0x63403c]
mov dword [esp + 0x24], 0
lea eax, [esp + 0x14]
lea edx, [ecx + ecx]
push eax
or edx, ebx
push 0x20019
mov dword [esp + 0x28], edx
push 0
fild qword [esp + 0x2c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push 0x80000001
fadd qword [0x634050]
fstp qword [0x634050]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4180f0
push ebp
mov ebp, 4
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call sub.comdlg32.dll_FindTextA
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Width
push ecx
call ebx
test eax, eax
jne 0x4180b7
mov edi, dword [esp + 0x1c]

Function at 0x62ad59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x634440
cmp edx, dword [eax]
je 0x62ad7b
add eax, 8
inc ecx
cmp eax, 0x6344d0
jl 0x62ad6c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x634440]
jne 0x62aea9
mov eax, dword [0x638dd0]
cmp eax, 1
je 0x62ae83
test eax, eax
jne 0x62adac
cmp dword [0x63436c], 1
je 0x62ae83
cmp edx, 0xfc
je 0x62aea9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62ade3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062b740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bbd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62ae26
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bbd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630a4c
push edi
call fcn.0062daa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062b740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062b750
lea eax, [ebp - 0xa0]
push 0x630a2c
push eax
call fcn.0062b750
push dword [esi + 0x634444]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062b750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062da14
add esp, 0x2c
pop edi
jmp 0x62aea9
lea eax, [ebp + 8]
lea esi, [esi + 0x634444]
push 0
push eax
push dword [esi]
call fcn.0062bbd0
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 0x40a397
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x419004]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, dword [ebp + 8]
push 0x406f00
push 0x406f1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a3d1
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409496
push esi
lea ecx, [esp + 0x24]
call fcn.00408b70
lea ecx, [esp + 0x20]
call fcn.00408e9c
mov esi, eax
test esi, esi
jns 0x40a44f
lea ecx, [esp + 8]
call fcn.0040a30c
test al, al
je 0x40a499
cmp esi, 0x80040b00
jne 0x40a499
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x20]
xor eax, eax
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00408f41
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004095f1
test esi, esi
js 0x40a499
mov esi, 0x80040b02
jmp 0x40a499
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40a45e
mov esi, dword [esp + 8]
push 0x406d74
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40a491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40a48a
jle 0x40a499
movzx esi, si
or esi, 0x80070000
jmp 0x40a499
mov esi, 0x80004005
jmp 0x40a499
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
cmp dword [esp + 0x20], 0
je 0x40a4aa
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x24]
call fcn.004095f1
lea ecx, [esp + 8]
call fcn.004095f1
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ab91
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403050
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push edx
push ecx
or ebx, 0xffffffff
call fcn.00485b70
mov esi, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x403080
xor ebx, ebx
test esi, esi
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x4030e9
cmp dword [0x511c18], 0
je 0x4030df
mov eax, dword [0x514e38]
test eax, eax
je 0x4030a7
push eax
call dword [0x511c68]
add esp, 4
push esi
call dword [0x511c44]
sub dword [0x514cc8], eax
dec dword [0x514cec]
push esi
call dword [0x511c3c]
mov eax, dword [0x514e38]
add esp, 8
test eax, eax
je 0x4030e9
push eax
call dword [0x511c70]
add esp, 4
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x511c3c]
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x403add
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403ad6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp - 0x20c]
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
push eax
call fcn.004dcac7
add esp, 8
test eax, eax
je 0x403acf
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x403aa0
jmp 0x403ad5
mov ebx, dword [ebp - 0x228]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x403b13
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b25
push ecx
push edx
call fcn.004d2f2b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
call fcn.004d7de5
int3
Function at 0x403b30
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5455
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00403100
push str.logITHWInfoHIstory.db
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.0040ef20
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.004015a0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x403c05
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d22
push ecx
push edx
call fcn.004d2f2b
add esp, 8
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
push eax
call fcn.004ca3d0
mov ecx, dword [ebp - 0x48]
add esp, 8
test eax, eax
je 0x403c72
xor edx, edx
call fcn.004c75b0
push str.DB_open_fail_n
call fcn.00401820
add esp, 4
push str.DB_open_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xe
movups xmmword [ecx], xmm0
push str.A_DB_open_fail
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040f410
call fcn.00409150
add esp, 0x18
jmp 0x403c86
mov edx, str.CREATE_TABLE_IF_NOT_EXISTS_history_return_TEXT_PRIMARY_KEY_
call fcn.00403050
mov ecx, dword [ebp - 0x48]
xor edx, edx
call fcn.004c75b0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x403cbc
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403cb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d27
push ecx
push edx
call fcn.004d2f2b
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x403d06
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403cfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d27
push ecx
push edx
call fcn.004d2f2b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d7de5
call fcn.004d7de5
int3
Function at 0x406c40
Capabilities:
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5907
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x22c
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], esi
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ebp - 0x220], 1
push 0xc
movups xmmword [ecx], xmm0
push 0x505258
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.004016d0
lea ecx, [ebp - 0x23c]
call fcn.004069a0
add esp, 0x18
mov ecx, esi
push eax
call fcn.004015a0
mov ecx, dword [ebp - 0x228]
cmp ecx, 7
jbe 0x406d38
mov edx, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406da2
push ecx
push edx
call fcn.004d2f2b
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x406d83
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x100
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d65
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040dc60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d7de5
int3
Function at 0x409770
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x20
push 3
push 0
xor bl, bl
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], 7
push 1
cmova eax, dword [ebp + 0x10]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097d2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x4097cb
jb 0x4097c9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jae 0x4097cb
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x24]
cmp ecx, 7
jbe 0x409808
mov edx, dword [ebp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4097fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40981a
push ecx
push edx
call fcn.004d2f2b
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
call fcn.004d7de5
int3

Function at 0x409ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 8], edx
xor ebx, ebx
mov dword [ebp - 4], ecx
call fcn.004d31b2
add esp, 4
mov edi, eax
mov dword [ebp - 0xc], edi
push 0x200
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409bce
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x409bc0
mov eax, dword [ebp - 4]
push 0xa
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409b7f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409b71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x409ba4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0xc]
push edi
call fcn.004d2f5c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push 0x12
push str.Load_Resource_Fail
jmp 0x409b8b
sub esp, 0x18
mov ecx, esp
push 0x12
push str.Find_Resource_Fail
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040f410
call fcn.00409150
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0xc]
push edi
call fcn.004d2f5c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push 0x10
push str.LoadLibrary_Fail
jmp 0x409bda
sub esp, 0x18
mov ecx, esp
push 0x16
push str.GetModuleFileName_Fail
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040f410
call fcn.00409150
add esp, 0x18
push edi
call fcn.004d2f5c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409c10
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5d20
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
test edx, edx
je 0x409db2
push edx
call fcn.004d31b2
mov edx, dword [ebp - 0x20]
add esp, 4
mov ecx, eax
xor esi, esi
mov dword [ebp - 0x1c], ecx
test edx, edx
jle 0x409d23
cmp edx, 0x40
jb 0x409d0c
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x409c9b
lea eax, [edx - 1]
add eax, ecx
cmp eax, edi
jae 0x409d0c
movaps xmm2, xmmword [0x50c600]
lea ecx, [edi + 0x30]
mov eax, edx
mov edx, edi
and eax, 0xffffffc0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
movups xmm0, xmmword [ecx - 0x30]
lea ecx, [ecx + 0x40]
add esi, 0x40
movaps xmm1, xmm2
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp esi, dword [ebp - 0x24]
jl 0x409cc1
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x24], esi
cmp esi, edx
jge 0x409d23
mov ecx, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x1c]
add ecx, esi
sub edx, esi
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, 0xac
mov byte [ecx - 1], al
sub edx, 1
jne 0x409d13
cmp dword [ebx + 0x1c], 7
lea eax, [ebx + 8]
push 0x50549c
cmova eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.004dcffb
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x409d6f
mov edx, dword [ebp - 0x20]
push eax
push 1
push edx
push dword [ebp - 0x1c]
call fcn.004de293
push dword [ebp - 0x18]
call fcn.004dd172
add esp, 0x14
push str.Write_Resource_file_OK
jmp 0x409da1
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x19
movups xmmword [ecx], xmm0
push 0x5054d4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040f410
call fcn.00409150
add esp, 0x18
push str.Write_Resource_file_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1c]
call fcn.004d2f5c
add esp, 4
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x409de8
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409dde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e06
push ecx
push edx
call fcn.004d2f2b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d7de5
int3
Function at 0x40a600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40a632
jl 0x40a625
test ecx, ecx
jne 0x40a632
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40a70f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40a662
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40a664
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40a6b8
jg 0x40a675
test esi, esi
je 0x40a6b8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40a689
jl 0x40a683
cmp ecx, esi
jae 0x40a689
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.004d4640
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40a6dc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40a6f8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x40a647
jl 0x40a6f8
test ecx, ecx
jne 0x40a647
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40a753
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40a753
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004d4640
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40a7bc
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a779
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40a7a7
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004ded00
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40a7bc
cmp edi, eax
ja 0x40a785
test edi, edi
je 0x40a7bc
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004ded00
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e8c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x511080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004d2efb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d23ed
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040e860
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f616d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x511080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00402b20
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.0040edf0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40eb68
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40eb68
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40eb81
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00402aa0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc