joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4657ec
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x466475
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0046b790
call fcn.004127c0
cmp eax, esi
pop esi
jne 0x466491
mov ecx, 0x5ee1b0
jmp fcn.0047f453
ret

Function at 0x4670c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00477a91
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4670fc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00466d05
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46715a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x46717e
cmp dword [edi + 0x74], 0
jne 0x46717e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00477a91
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046711b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46d3d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x46d41f
call fcn.00477a91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46d41f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x46d43b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0046cedd
mov esi, eax
test edi, edi
je 0x46d439
test ebx, ebx
je 0x46d439
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x470243
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5876b3
call fcn.005653ab
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x470268
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4702ba
call fcn.00464a07
push eax
lea ecx, [ebp - 0x10]
call fcn.00401350
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005651dd
push eax
call fcn.00403a20
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00565483
ret 8

Function at 0x47252a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00471ee3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x472574
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00464901
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404420
jmp 0x47257f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00480499
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x472585
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0046fb12
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4725c2
call fcn.00471ee3
mov dword [esi + 0xc], 1
jmp 0x4725c7
call fcn.00471ee3
cmp dword [esi], 0
je 0x472610
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4725e8
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00464901
jmp 0x4725fa
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401510
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404420
jmp 0x472634
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x472634
push dword [esi]
push dword [ebp + 8]
call fcn.00480499
pop esi
pop ebp
ret 0xc
Function at 0x4766d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x476720
call fcn.00477a91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x476720
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x476763
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x47674c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47674c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x476760
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4cebbd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4cebd7
call fcn.00477a91
mov esi, dword [eax + 0xc]
push dword [0x5efe5c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4cebf5
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4cebed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4cec22
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4cebef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004ceaeb
mov esi, eax
jmp 0x4cec14
Function at 0x549ae8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x549b00
mov edi, dword [esi + 0xc]
jmp 0x549b40
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x549b19
call fcn.0046da53
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x549b2e
call fcn.0046da53
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x549b40
call fcn.0046da53
call fcn.00477a91
cmp dword [eax + 0x3c], 0
je 0x549b55
push edi
mov ecx, ebx
call fcn.005489ae
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00549a02
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x549b73
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x549b7f
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x563636
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5eaeac]
jne 0x563640
repz ret
jmp fcn.0056d32c
Function at 0x5797bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5eaeac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0056ba91
and dword [ebp - 0x14], 0
cmp dword [0x5f2754], 0
mov dword [ebp - 0x18], eax
jne 0x579870
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x579918
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x579918
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5c2690
push ebx
mov dword [0x5f2754], eax
call edi
push eax
call esi
push 0x5c267c
push ebx
mov dword [0x5f2758], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5f275c], eax
call edi
push eax
call esi
mov dword [0x5f2764], eax
test eax, eax
je 0x579870
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5f2760], eax
mov eax, dword [0x5f2760]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5798c9
cmp dword [0x5f2764], ecx
je 0x5798c9
push eax
call esi
push dword [0x5f2764]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5798c9
test ebx, ebx
je 0x5798c9
call edi
test eax, eax
je 0x5798c0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5798c0
test byte [ebp - 8], 1
jne 0x5798c9
or dword [ebp + 0x10], 0x200000
jmp 0x5798fc
mov eax, dword [0x5f2758]
cmp eax, dword [ebp - 0x18]
je 0x5798fc
push eax
call esi
test eax, eax
je 0x5798fc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5798fc
mov eax, dword [0x5f275c]
cmp eax, dword [ebp - 0x18]
je 0x5798fc
push eax
call esi
test eax, eax
je 0x5798fc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5f2754]
call esi
test eax, eax
je 0x579918
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x57991a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00563636
leave
ret
Function at 0x401570
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x41e184]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], 0x7f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401601
push ebp
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.ProductId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4015f9
push esi
push edi
lea edi, [esp + 0x18]
mov esi, str.76487_640_1457236_23125
mov ecx, 0x18
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
jne 0x4015f9
mov eax, dword [esp + 8]
push eax
call ebp
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call ebp
pop ebp
mov ecx, dword [esp + 0x8c]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004066c5
add esp, 0x8c
ret
Function at 0x4029b0
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x214
mov eax, dword [0x41e184]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.ifvkck___o_a
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ifvkck___o_a
push 0x420100
mov esi, eax
call ebx
cmp esi, 0x104
jae 0x402a15
xor cl, cl
test esi, esi
jbe 0x402a15
xor eax, eax
jmp 0x402a00
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402a00
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x420100
call ebp
push str.qkaij4:ng_
mov dword [esp + 0x14], eax
call edi
push str.qkaij4:ng_
push 0x420100
mov esi, eax
call ebx
cmp esi, 0x104
jae 0x402a65
xor cl, cl
test esi, esi
jbe 0x402a65
xor eax, eax
lea esp, [esp]
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402a50
push 0x420100
call ebp
push str.EfpHiceoCmcjcuP
mov dword [esp + 0x18], eax
call edi
push str.EfpHiceoCmcjcuP
push 0x420100
mov esi, eax
call ebx
cmp esi, 0x104
jae 0x402aaa
xor cl, cl
test esi, esi
jbe 0x402aaa
xor eax, eax
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402a95
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420100
push eax
call ebp
push str.EfpHiceoMeakAqwR
mov dword [0x4200f4], eax
call edi
push str.EfpHiceoMeakAqwR
push 0x420100
mov esi, eax
call ebx
cmp esi, 0x104
jae 0x402b05
xor cl, cl
test esi, esi
jbe 0x402b05
xor eax, eax
jmp 0x402af0
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402af0
mov eax, dword [esp + 0x10]
push 0x420100
push eax
call ebp
push str.QkaijBplixhO
mov dword [0x420308], eax
call edi
push str.QkaijBplixhO
push 0x420100
mov esi, eax
call ebx
cmp esi, 0x104
jae 0x402b55
xor cl, cl
test esi, esi
jbe 0x402b55
xor eax, eax
jmp 0x402b40
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402b40
mov eax, dword [esp + 0x14]
push 0x420100
push eax
call ebp
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [0x42030c], eax
call dword [0x420308]
test eax, eax
pop ebp
je 0x402c25
push 0x104
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402c25
push str._c_del
lea ecx, [esp + 0x11c]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push eax
call esi
push str.____NUL
lea ecx, [esp + 0x11c]
push ecx
call esi
push 0x104
lea edx, [esp + 0x18]
push edx
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402c25
push 0
push 0
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [0x42030c]
cmp eax, 0x20
jle 0x402c25
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004066c5
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004066c5
add esp, 0x214
ret
Function at 0x402c80
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.ifvkck___o_a
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ifvkck___o_a
push 0x420100
mov esi, eax
call ebp
cmp esi, 0x104
jae 0x402cd5
xor cl, cl
test esi, esi
jbe 0x402cd5
xor eax, eax
jmp 0x402cc0
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402cc0
push 0x420100
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.EfpH23423423dsfasdficeoMeakAqwR
mov dword [esp + 0x14], ebx
call edi
push str.EfpH23423423dsfasdficeoMeakAqwR
push 0x420100
mov esi, eax
call ebp
cmp esi, 0x104
jae 0x402d25
xor cl, cl
test esi, esi
jbe 0x402d25
xor eax, eax
jmp 0x402d10
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402d10
push 0x420100
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov dword [0x420308], eax
mov eax, dword [esp + 0x1c]
mov cl, byte [eax]
mov eax, dword [esp + 0x18]
sub byte [eax], cl
push str.EsdfasdfasdfasdfasdffpHisfasdfsdfasdfafassdfceoMeakAqwR
call edi
push str.EsdfasdfasdfasdfasdffpHisfasdfsdfasdfafassdfceoMeakAqwR
push 0x420100
mov esi, eax
call ebp
cmp esi, 0x104
jae 0x402d85
xor cl, cl
test esi, esi
jbe 0x402d85
xor eax, eax
lea esp, [esp]
mov dl, cl
add dl, 2
xor byte [eax + 0x420100], dl
add cl, 1
movzx eax, cl
cmp eax, esi
jb 0x402d70
mov eax, dword [esp + 0x10]
push 0x420100
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
pop edi
pop esi
mov dword [0x420308], eax
mov eax, dword [esp + 0x10]
xor byte [eax], dl
pop ebp
pop ebx
pop ecx
ret
Function at 0x403b00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x418492
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41e184]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x41b7f0
mov dword [edi + 8], 0x41b7f8
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00404c30
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00405410
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x420324]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.00404ca0
test eax, eax
jne 0x403c09
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x403bf9
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x403c09
call fcn.004023b0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x405410
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x417fdb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41e184]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040601e
push 4
mov dword [esp + 0x20], 0
call fcn.00406616
mov edi, eax
add esp, 4
test edi, edi
je 0x405490
call fcn.00405d9b
mov dword [edi], eax
call fcn.00405bcf
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00405feb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405485
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040600c
jmp 0x405492
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4066c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e184]
jne 0x4066cf
repz ret
jmp fcn.0040adf8
Function at 0x406b50
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 0x406b8d
cmp dword [ebp + 0x14], edi
je 0x406b8d
cmp ecx, edi
jne 0x406b94
call fcn.0040afb5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00407322
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x406ba8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x406bc9
cmp ebx, 0xffffffff
je 0x406bb8
push ebx
push edi
push ecx
call fcn.0040af00
add esp, 0xc
cmp esi, edi
je 0x406b75
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x406b75
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x406be5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x406bec
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x406cdd
test word [esi + 0xc], 0x10c
je 0x406c40
mov eax, dword [esi + 4]
test eax, eax
je 0x406c40
jl 0x406d3e
cmp ebx, eax
mov edi, ebx
jb 0x406c11
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x406ce5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004066d4
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 0x406cd5
cmp ebx, dword [ebp - 0xc]
jb 0x406cad
cmp dword [ebp - 0xc], 0
je 0x406c6a
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x406c5f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x406c66
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x406c75
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x406c75
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x406d11
push eax
push dword [ebp - 8]
push esi
call fcn.0040bb67
pop ecx
push eax
call fcn.0040d54b
add esp, 0xc
test eax, eax
je 0x406d50
cmp eax, 0xffffffff
je 0x406d3e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x406cd5
push esi
call fcn.0040ce6a
cmp eax, 0xffffffff
pop ecx
je 0x406d42
cmp dword [ebp - 4], 0
je 0x406d11
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 0x406bf4
mov eax, dword [ebp + 0x14]
jmp 0x406b8f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x406cfc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040af00
add esp, 0xc
call fcn.0040afb5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x406b85
cmp dword [ebp + 0xc], 0xffffffff
je 0x406d27
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040af00
add esp, 0xc
call fcn.0040afb5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x406b85
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x406b8f
or dword [esi + 0xc], 0x10
jmp 0x406d42