joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474388
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.0044fae0
mov eax, dword [0x497644]
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
push 0xfff
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x100f]
mov esi, ecx
push ebx
mov dword [ebp - 0x1040], ebx
push eax
mov dword [ebp - 0x103c], esi
mov byte [ebp - 0x1010], bl
call fcn.00445dc0
add esp, 0xc
push 0x489e98
mov ecx, esi
call fcn.004015f0
mov eax, 1
mov dword [ebp - 0x1040], eax
mov dword [ebp - 0x1030], ebx
push 8
mov dword [ebp - 4], eax
call fcn.0043c350
add esp, 4
cmp eax, ebx
je 0x401517
mov dword [ebp - 0x1030], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [ebp - 0x1030]
lea ecx, [ebp - 0x1030]
mov dword [edx], ecx
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
push ebx
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1034]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
mov dword [ebp - 4], 2
mov eax, dword [edi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4014ba
mov eax, dword [ebp - 0x1038]
cmp eax, ebx
jbe 0x4014ba
inc eax
push eax
call fcn.00439f40
mov edx, dword [ebp - 0x1038]
add esp, 4
push ebx
lea ecx, [ebp - 0x1034]
push ecx
mov esi, eax
mov eax, dword [edi + 8]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1034]
mov byte [esi + ecx], bl
cmp esi, ebx
jne 0x40145e
push 0x348
push str.c:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexstring
push str.invalid_null_pointer
call fcn.00439b50
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401463
mov ecx, dword [ebp - 0x103c]
sub eax, edx
push eax
push esi
call fcn.00401a80
push esi
call fcn.0043c1b0
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea edx, [ebp - 0x1038]
push edx
mov edx, dword [edi + 8]
lea eax, [ebp - 0x1034]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x401406
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 0x10
jb 0x4014d5
mov eax, dword [ebp - 0x102c]
push eax
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
call fcn.004019b0
mov eax, dword [ebp - 0x103c]
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.0043bb50
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x1044], ebx
call fcn.0043bb90
push 0x491a28
lea edx, [ebp - 0x1050]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004459f0
int3
Function at 0x402f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475671
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x497644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], ebx
push 8
mov byte [ebp - 4], 2
call fcn.0043c350
add esp, 4
cmp eax, ebx
je 0x4030ec
mov dword [ebp - 0x30], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov dword [ecx], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
push edx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401d60
push 2
push 0x48ba10
lea ecx, [ebp - 0x30]
call fcn.00401a80
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403030
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push edx
push eax
mov eax, dword [edi + 0x8c]
add edi, 0x88
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x403062
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
push ecx
call eax
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00401310
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x38], 1
jb 0x403091
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043c1d0
add esp, 4
mov edi, 0xf
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004019b0
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], 0x10
jb 0x4030bc
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.004019b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret 0x20
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], ebx
call fcn.0043bb90
push 0x491a28
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], vtable.std::bad_alloc.0
call fcn.004459f0
int3
Function at 0x406150
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47427e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
cmp dword [edi + 0x7c], 0x10
jb 0x406196
mov eax, dword [edi + 0x68]
push eax
call fcn.0043c1d0
add esp, 4
xor ebx, ebx
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], ebx
lea ecx, [edi + 0x64]
mov byte [edi + 0x68], bl
call fcn.004019b0
mov byte [ebp - 4], 1
cmp dword [edi + 0x48], 0x10
jb 0x4061c3
mov eax, dword [edi + 0x34]
push eax
call fcn.0043c1d0
add esp, 4
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], ebx
lea ecx, [edi + 0x30]
mov byte [edi + 0x34], bl
call fcn.004019b0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00408e00
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004019b0
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.00408d70
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004019b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406390
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x497644]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax], ebx
jle 0x40649e
jmp 0x4063d0
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x38], esp
mov dword [esp + 0x3c], esi
mov dword [esi], ebx
push 8
mov dword [esp + 0x5c], ebx
call fcn.0043c350
add esp, 4
cmp eax, ebx
je 0x4064b3
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi]
mov dword [ecx], esi
mov dword [esp + 0x58], 1
push 1
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x48ba14
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401bb0
sub esp, 0x20
mov dword [esp + 0x78], 2
mov esi, esp
mov dword [esp + 0x5c], esp
push 2
mov ecx, edi
call fcn.004064e0
mov ecx, edi
mov dword [esp + 0x78], 0xffffffff
call fcn.004199c0
mov ecx, edi
call fcn.00403300
test al, al
je 0x406483
lea eax, [edi + 0x80]
push eax
mov ecx, edi
mov dword [edi + 0x84], 1
mov dword [eax], 0x1e
call fcn.00406390
mov dword [edi + 0x84], 0xf
mov edx, dword [edi + 0x84]
imul edx, edx, 0x64
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jg 0x4063d0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], ebx
call fcn.0043bb90
push 0x491a28
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call fcn.004459f0
int3
Function at 0x40f1a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x497644]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00445dc0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.0043ed60
add esp, 0x1c
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret

Function at 0x40f350
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push str.OneDriveTools
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
test eax, eax
je 0x40f3ad
push 4
lea edx, [ebp + 8]
push edx
push 0x54
push eax
mov dword [ebp + 8], 0xa00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40f393
mov eax, 1
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpSetOption._n
call fcn.0040f1a0
add esp, 8
xor eax, eax
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpOpen._n
call fcn.0040f1a0
add esp, 8
xor eax, eax
pop ebp
ret 4
Function at 0x40f460
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4754a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [edi + 0x24], ebx
je 0x40f61d
cmp dword [edi + 0x20], ebx
je 0x40f61d
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439f40
mov ebx, eax
mov eax, dword [ebp + 0x3c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439f40
add esp, 8
push 0x800000
push 0
push 0
push 0
sub esp, 0x20
mov esi, eax
lea eax, [ebp + 0x28]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ebp - 0x10], esi
call fcn.00407830
call fcn.00422b90
add esp, 0x20
push eax
sub esp, 0x20
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00407830
mov esi, ebx
call fcn.00422b90
add esp, 0x20
push eax
mov eax, dword [edi + 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push ebx
mov dword [edi + 0x28], eax
call fcn.0043c1b0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0043c1b0
xor ebx, ebx
add esp, 8
cmp dword [edi + 0x28], ebx
jne 0x40f5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpOpenRequest._n
call fcn.0040f1a0
mov edi, 0x10
add esp, 8
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], edi
jb 0x40f57d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043c1d0
add esp, 4
mov esi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], edi
jb 0x40f664
mov eax, dword [ebp + 0x2c]
push eax
jmp 0x40f65c
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], edi
jb 0x40f5c5
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043c1d0
add esp, 4
mov esi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], edi
jb 0x40f5f3
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x3c], ebx
mov byte [ebp + 0x2c], bl
call fcn.004019b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], edi
jb 0x40f636
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043c1d0
add esp, 4
mov esi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], edi
jb 0x40f664
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x3c], ebx
mov byte [ebp + 0x2c], bl
call fcn.004019b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
Function at 0x40f690
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473ed8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x497644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0x20], 0
je 0x40f784
cmp dword [edi + 0x24], 0
je 0x40f784
cmp dword [edi + 0x28], 0
je 0x40f784
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439f40
add esp, 4
push 0x20000000
push 0xffffffffffffffff
sub esp, 0x20
mov esi, eax
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00407830
call fcn.00422b90
mov ecx, dword [edi + 0x28]
add esp, 0x20
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push esi
mov edi, eax
call fcn.0043c1b0
add esp, 4
test edi, edi
jne 0x40f75d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpAddRequestHeaders._n
call fcn.0040f1a0
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401780
jmp 0x40f7b7
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401780
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 0x10
jb 0x40f79d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
call fcn.004019b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41a730
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475950
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x497644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], ebx
je 0x41a8a9
cmp dword [ebp + 0x40], ebx
je 0x41a8a9
sub esp, 0x20
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
call fcn.00407830
lea esi, [ebp - 0x44]
call fcn.0040f210
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.0040f350
mov edi, esi
call fcn.0040f3d0
sub esp, 0x20
lea edx, [ebp + 0x2c]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
call fcn.00407830
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x48d7e8
mov byte [ebp - 4], 3
call fcn.004015f0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040f460
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], ebx
je 0x41a812
cmp dword [ebp - 0x20], ebx
je 0x41a812
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x41a835
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, ebx
jne 0x41a812
call esi
push eax
push str.Error__u_in_WinHttpSendRequest._n
call fcn.0040f1a0
add esp, 8
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x41a835
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, ebx
jne 0x41a835
call esi
push eax
push str.Error__u_in_WinHttpReceiveResponse._n
call fcn.0040f1a0
add esp, 8
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
call fcn.0040f7d0
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040f2f0
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x24], esi
jb 0x41a866
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0043c1d0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x20], ebx
mov byte [ebp + 0x10], bl
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x44], esi
jb 0x41a894
mov edx, dword [ebp + 0x30]
push edx
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], bl
call fcn.004019b0
mov al, 1
jmp 0x41a903
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x24], esi
jb 0x41a8c2
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043c1d0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x20], ebx
mov byte [ebp + 0x10], bl
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x44], esi
jb 0x41a8f0
mov ecx, dword [ebp + 0x30]
push ecx
call fcn.0043c1d0
add esp, 4
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], bl
call fcn.004019b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret 0x44
Function at 0x41c1e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475ee7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497644]
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], 0x48e9fc
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 edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.004104d0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00420c40
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x41c273
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402840
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.0041fa20
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x499c3c]
mov dword [esi + 0x4c], edx
mov dword [esi + 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 0x41d710
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475e97
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497644]
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], 0x48de1c
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 edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.004104d0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00420c40
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x41d7a9
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402840
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0041fa20
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x499c3c]
mov dword [esi + 0x4c], edx
mov dword [esi + 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 0x41fa20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473e7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043b1c0
push 0x18
push str.c:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.0043a7a0
push eax
push 4
call fcn.0043a6b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41faad
call fcn.0043aca0
mov dword [edi], eax
call fcn.0043aab0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00439ed0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41faa3
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00439f10
jmp 0x41faaf
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret