joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422290
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4224a3
sub esp, 0x34
mov ecx, dword [esp + 0x38]
movzx ebp, byte [ecx + 6]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jne 0x422387
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
mov ebp, dword [ecx + 8]
mov dword [esp + 4], ebp
mov ebp, dword [ecx + 0xc]
mov dword [esp + 8], ebp
mov ebp, dword [ecx + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x20], ecx
mov ebp, dword [ecx + 0x14]
mov dword [esp + 0x10], ebp
call fcn.004135f0
mov ebx, 0x6cbae0
mov dword [esp], ebx
add dword [esp], 0x2218
call fcn.0040c950
mov eax, 0x6cbae0
add eax, 0x21d8
mov edx, dword [esp + 0x20]
mov ebp, dword [eax + 0x18]
mov ebx, dword [eax]
sub ebp, ebx
mov dword [eax + 0x18], ebp
mov dword [esp + 0x28], eax
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x18], edx
cmp edx, 0
je 0x422383
cmp byte [0x6d9e38], 0
jne 0x42236d
mov dword [edx], ebp
cmp eax, 0
je 0x422369
cmp byte [0x6d9e38], 0
jne 0x422358
mov dword [eax + 0xc], edx
mov ebx, 0x6cbae0
mov dword [esp], ebx
add dword [esp], 0x2218
call fcn.0040cb90
add esp, 0x34
ret
lea esi, [eax + 0xc]
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.0040f1d0
jmp 0x422340
mov dword [eax], eax
jmp 0x422334
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.0040f1d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
jmp 0x42232f
mov dword [edx], eax
jmp 0x422324
xchg ebp, eax
cmp al, 2
xchg ebp, eax
jne 0x422449
mov dword [esp + 0x1c], ecx
mov ebp, dword [ecx + 8]
mov dword [esp], ebp
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
call fcn.004231e0
mov ebx, 0x6cbae0
mov dword [esp], ebx
add dword [esp], 0x2218
call fcn.0040c950
mov eax, 0x6cbae0
add eax, 0x21f8
mov edx, dword [esp + 0x1c]
mov ebp, dword [eax + 0x18]
mov ebx, dword [eax]
sub ebp, ebx
mov dword [eax + 0x18], ebp
mov dword [esp + 0x24], eax
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x14], edx
cmp edx, 0
je 0x422445
cmp byte [0x6d9e38], 0
jne 0x42242f
mov dword [edx], ebp
cmp eax, 0
je 0x42242b
cmp byte [0x6d9e38], 0
jne 0x42241a
mov dword [eax + 0xc], edx
mov ebx, 0x6cbae0
mov dword [esp], ebx
add dword [esp], 0x2218
call fcn.0040cb90
jmp 0x422354
lea esi, [eax + 0xc]
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.0040f1d0
jmp 0x422401
mov dword [eax], eax
jmp 0x4223f5
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.0040f1d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
jmp 0x4223f0
mov dword [edx], eax
jmp 0x4223e5
mov ebx, 0x5f890f
mov dword [esp], ebx
mov dword [esp + 4], 0x10
call fcn.0042a340
mov ebx, 0x5f73ef
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xb
mov dword [esp], 0x5c3f40
lea ebx, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.0040b8f0
lea ebx, [esp + 0xc]
cld
mov ecx, dword [ebx]
mov dword [esp], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 4], ecx
call fcn.00429c60
ud2
call fcn.00450db0
jmp fcn.00422290
Function at 0x442cd0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x442ebf
sub esp, 0x3c
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 4]
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xe9
xchg ebp, eax
jne 0x442d17
mov ebp, dword [edi + 4]
add ebp, 5
mov dword [esp + 0xc], ebp
mov esi, ecx
inc esi
mov eax, dword [esi]
cdq
mov ebx, dword [esp + 0xc]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xeb
xchg ebp, eax
jne 0x442d42
mov ebp, dword [edi + 4]
add ebp, 2
mov dword [esp + 8], ebp
mov eax, ecx
inc eax
movzx eax, byte [eax]
movsx eax, al
cdq
mov ebx, dword [esp + 8]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xcc
xchg ebp, eax
jne 0x442d50
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xor edx, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
movzx ebp, byte [ecx + 1]
xor edx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
movzx ebp, byte [ecx + 2]
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
movzx ebp, byte [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
movzx ebp, byte [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
call fcn.0042ab20
mov ebx, 0x5f7916
mov dword [esp], ebx
mov dword [esp + 4], 0xc
call fcn.0042b530
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call fcn.0042b4f0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f5706
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
call fcn.0042aba0
mov ebx, 0x5fe9ef
mov dword [esp], ebx
mov dword [esp + 4], 0x22
call fcn.0042a340
add esp, 0x3c
ret
call fcn.00450db0
jmp fcn.00442cd0
Function at 0x41bae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x10
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
push 0xb
push str.FileVersion
mov eax, dword [ebp - 4]
push eax
call fcn.004738f1
add esp, 0xc
test eax, eax
jne 0x41bbda
mov ecx, dword [ebp - 4]
add ecx, 0x1a
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x77cc28
mov dword [ebp - 0xc], 0x77c3e8
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
je 0x41bbca
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x2c
jne 0x41bb8c
mov eax, 0x2e
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x2e
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x41bbbf
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20
je 0x41bbbf
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x41bb52
xor ecx, ecx
mov edx, dword [ebp - 8]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
jmp 0x41bbf6
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
sub edx, 2
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0xa
ja 0x41bb20
mov dword [ebp - 0x10], 0x77c3e8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x41bc64
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x2e
jne 0x41bc24
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x41bc59
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x30
jl 0x41bc59
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0x39
jg 0x41bc59
mov eax, dword [ebp - 0x14]
imul ecx, dword [eax*4 + 0x75c304], 0xa
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
lea ecx, [ecx + eax - 0x30]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x75c304], ecx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x41bc04
mov esp, ebp
pop ebp
ret
Function at 0x41c8e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x75a440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.__vk2kill
mov eax, dword [ebp + 8]
push eax
call fcn.00410270
add esp, 8
test eax, eax
je 0x41c924
mov byte [0x77c3e4], 1
push str.__newupdate
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410270
add esp, 8
test eax, eax
je 0x41c987
push 0x77c628
lea ecx, [ebp - 0x28]
call fcn.00405570
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
call fcn.00411fc0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406e90
nop
push 0
push 0
call fcn.0041a7e0
add esp, 8
movzx eax, al
test eax, eax
jne 0x41c983
mov eax, 3
jmp 0x41c9fd
xor eax, eax
jmp 0x41c9fd
call fcn.0041b800
test eax, eax
jne 0x41c9e3
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
and ecx, 0xff
mov dword [0x77c3e0], ecx
cmp dword [0x77c3e0], 6
jb 0x41c9c6
push 0x77d210
call fcn.00424810
add esp, 4
call fcn.00419ff0
nop
jmp 0x41c9e1
push 0x10
push 0x73ef28
push 0x73ef58
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 5
jmp 0x41c9fd
jmp 0x41c9fb
push 0x77d2a0
call fcn.00424810
add esp, 4
call fcn.00417db0
call fcn.00419ff0
nop
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c2a8
mov esp, ebp
pop ebp
ret

Function at 0x41ca80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x23
push 0x77c428
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5c
push 0x77c428
call fcn.004124b0
add esp, 8
push str.VKSaver
push 0x100
push 0x77c428
call fcn.00473897
add esp, 0xc
push 0
push 0x77c428
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x77c428
push 0x100
push 0x77c628
call fcn.00478654
add esp, 0xc
push 0x73eeac
push 0x100
push 0x77c628
call fcn.00473897
add esp, 0xc
push 0x77c628
push 0x100
push 0x77c828
call fcn.00478654
add esp, 0xc
push 0x77c628
push 0x100
push 0x77ca28
call fcn.00478654
add esp, 0xc
push 0x73eeb0
push 0x100
push 0x77c628
call fcn.00473897
add esp, 0xc
push str.VKSaver.exe
push 0x100
push 0x77c828
call fcn.00473897
add esp, 0xc
push str.config.dat
push 0x100
push 0x77ca28
call fcn.00473897
add esp, 0xc
pop ebp
ret
Function at 0x43f410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x54
mov eax, dword [0x75a440]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x68]
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], 1
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x43f5ee
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x38], xmm0
mov word [esp + 0x30], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
xor eax, eax
push 4
mov word [esp + 0x32], ax
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push esi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x43f5dc
push 0x10
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x43f5dc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x43f5dc
cmp dword [esp + 0xc], 0x10
jl 0x43f5dc
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x43f5dc
push 0
push 1
push 2
call edi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x43f5dc
push 0x10
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x43f5dc
push 1
push esi
call fcn.00461600
add esp, 8
test eax, eax
js 0x43f5dc
push 0
push 0x3e8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push 1
push eax
mov dword [esp + 0x28], 0x300
call fcn.0043e1a0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x43f5dc
lea eax, [esp + 0x1c]
push eax
call fcn.0042e060
add esp, 4
movups xmm0, xmmword [eax]
push 0
push 0x10
lea eax, [esp + 0x44]
push eax
push dword [ebx]
movups xmmword [esp + 0x4c], xmm0
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0x10
lea eax, [esp + 0x54]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x10
jne 0x43f5dc
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x4c]
lea edi, [eax - 4]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43f5dc
add ecx, 4
add edx, 4
sub edi, 4
jae 0x43f5b0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046c2a8
add esp, 0x54
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x5c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c2a8
add esp, 0x54
ret

Function at 0x43fa80
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.00478377
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x43faa6
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4010a4
push 0x94
mov edi, 1
call fcn.00521efc
mov esi, eax
add esp, 4
test esi, esi
je 0x401117
push 0x94
push 0
push esi
call fcn.00524a80
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x401065
push esi
lea edi, [eax + 1]
call fcn.00521f90
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x40110e
cmp dword [esi + 8], 0
jne 0x401085
push esi
lea edi, [eax + 1]
call fcn.00521f90
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x40110e
cmp dword [esi + 8], edi
jne 0x40110e
push esi
lea edi, [eax + 2]
call fcn.00521f90
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x4010ad
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00521efc
mov esi, eax
add esp, 4
test esi, esi
je 0x401117
push 0x94
push 0
push esi
call fcn.00524a80
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x40110e
cmp dword [esi + 8], 0xa
jne 0x401101
push esi
lea edi, [eax - 1]
call fcn.00521f90
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x40110e
cmp dword [esi + 8], 0x5a
jne 0x40110e
mov edi, eax
push esi
call fcn.00521f90
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cfb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401d2e
jmp 0x401d20
cmp esi, eax
jae 0x401d32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d20
cmp esi, eax
jb 0x401d39
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408ea0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569777
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x599948
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00406b50
lea edi, [ebx + 0x10]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00409d60
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x408f36
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00406a10
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push edi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040a860
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x5ca37c]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409830
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569727
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x599958
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.00406b50
lea edi, [ebx + 4]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.00409d60
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4098c0
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.00406a10
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040a860
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x5ca37c]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569318
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40a439
cmp byte [edi + 0x49], bl
je 0x40a439
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40a426
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40a374
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40a38c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40a3bc
dec eax
je 0x40a3c0
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x40a421
jmp 0x40a434
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40a3d0
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40a3f9
cmp ebx, 0x10
jae 0x40a3df
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0052341b
add esp, 0x10
cmp esi, eax
jne 0x40a417
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40a42a
test esi, esi
jne 0x40a380
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409bd0
jmp 0x40a37a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408820
xor al, al
jmp 0x40a43b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408820
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret