joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405320
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5185a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov esi, 0xf
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
push 1
sub esp, 0x1c
mov dword [esp + 0x48], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x5616e2
mov byte [ecx + 4], bl
call fcn.00403d20
sub esp, 0x1c
mov byte [esp + 0x64], 1
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x5616e2
mov byte [ecx + 4], bl
call fcn.00403d20
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
mov byte [esp + 0x80], 2
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x5616e2
mov byte [ecx + 4], bl
call fcn.00403d20
lea esi, [edi + 0x1c]
mov byte [esp + 0x80], bl
call fcn.00406280
mov dword [edi + 0xb4], 0xf
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xa0], bl
mov byte [esp + 0x28], 4
push 0xffffffffffffffff
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
mov al, byte [ebp + 4]
push ebx
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + 8]
mov byte [esi + 4], al
call fcn.004032e0
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x28]
push edx
lea ecx, [esi + 0x28]
call fcn.004032e0
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esi + 0x44]
call fcn.004032e0
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
push ebx
add ebp, 0x64
mov dword [esi + 0x60], ecx
push ebp
lea ecx, [esi + 0x64]
call fcn.004032e0
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
push esi
mov ecx, edi
call fcn.004032e0
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [edi + 0x9c]
call fcn.004032e0
lea ecx, [esp + 0x3c]
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xc0], ebx
call fcn.00424890
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 5
call fcn.004248b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov byte [edi + 0xb8], al
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.004032e0
call fcn.00417610
add esp, 0x1c
push edi
call fcn.00405d80
push esi
push edi
call fcn.00405790
lea ecx, [esp + 0x3c]
mov byte [esp + 0x28], 4
call fcn.004248a0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x406280
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x517221
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
lea ebp, [esi + 8]
mov dword [esi], vtable.ConnectionSettings.0
mov edi, 0xf
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x40], 3
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x88]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004032e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
mov byte [esp + 0x60], 4
push ebx
lea edx, [esp + 0x88]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004032e0
lea edi, [esi + 0x24]
mov byte [esp + 0x5c], 3
call fcn.00406160
lea edi, [esi + 0x64]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov al, byte [esp + 0x80]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x30], 6
mov ecx, ebp
mov byte [esi + 4], al
call fcn.004032e0
push ebx
push 0x5616e2
mov ecx, edi
mov dword [esi + 0x60], ebx
call fcn.00403d20
mov edi, 0x10
cmp dword [esp + 0x44], edi
jb 0x406378
mov edx, dword [esp + 0x30]
push edx
call fcn.004f9a4f
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], edi
jb 0x40639c
mov eax, dword [esp + 0x4c]
push eax
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], edi
jb 0x4063bb
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004f9a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0x58
Function at 0x4063e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5171b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
lea ebp, [esi + 8]
mov dword [esi], vtable.ConnectionSettings.0
mov edi, 0xf
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x40], 4
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004032e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
mov byte [esp + 0x60], 5
push ebx
lea edx, [esp + 0xa4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004032e0
lea edi, [esi + 0x24]
mov byte [esp + 0x5c], 4
call fcn.00406160
lea edi, [esi + 0x64]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov al, byte [esp + 0x9c]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x30], 7
mov ecx, ebp
mov byte [esi + 4], al
call fcn.004032e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov dword [esi + 0x60], 0x5616e2
call fcn.004032e0
mov edi, 0x10
cmp dword [esp + 0x44], edi
jb 0x4064de
mov eax, dword [esp + 0x30]
push eax
call fcn.004f9a4f
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], edi
jb 0x406502
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], edi
jb 0x406521
mov edx, dword [esp + 0x68]
push edx
call fcn.004f9a4f
add esp, 4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x98], edi
jb 0x406546
mov eax, dword [esp + 0x84]
push eax
call fcn.004f9a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0x74
Function at 0x407780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov eax, 0x100
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], bl
mov byte [esp + 0x48], 0x20
mov dword [esp + 0x4c], 4
lea eax, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.00407b70
cmp dword [edi + 0x1c], 0x10
jb 0x407818
mov eax, dword [edi + 8]
jmp 0x40781b
lea eax, [edi + 8]
push eax
mov eax, str.server_url
lea ecx, [esp + 0x2c]
call fcn.004080d0
add esp, 4
cmp dword [edi + 0x38], 0x10
jb 0x407838
mov edi, dword [edi + 0x24]
jmp 0x40783b
add edi, 0x24
push edi
mov eax, str.server_token
lea ecx, [esp + 0x2c]
call fcn.004080d0
add esp, 4
lea eax, [esp + 0x28]
call fcn.00407bd0
mov edx, dword [esp + 0x1c]
inc edx
cmp edx, dword [esp + 0x20]
jb 0x40786c
push 1
lea eax, [esp + 0x14]
call fcn.00408440
mov ecx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov byte [eax], bl
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
cmp eax, 1
jae 0x40789a
push 0x71
push str.f:projects_svniriservereswprojectlicenseframework_trunk_srccppmodules3rdparty_rapidjsoninternal_stack.h
push str.GetSize_____count__sizeof_T_
call fcn.004faa8c
add esp, 0xc
mov edi, dword [esp + 0x18]
dec dword [esp + 0x1c]
mov eax, edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4078b4
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00403d20
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004f9186
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.004f9a4f
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.004f9186
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.004f9a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x50
ret
Function at 0x407ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5166d3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x400
mov byte [esp + 0x14], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x18], edi
jne 0x407d72
push 0x14
call fcn.004f9f0e
add esp, 4
cmp eax, edi
je 0x407d6a
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x407d6c
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x40b2c0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0x20
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
push eax
mov edi, str._lic.config.bin
lea esi, [esp + 0x10]
call fcn.00405f80
mov esi, dword [esp + 0x14]
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0x24], ebx
jae 0x40b2fa
lea esi, [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b367
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b315
test bl, al
jne 0x40b367
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], ebx
jae 0x40b323
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b367
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
je 0x40b367
cmp dword [esp + 0x24], ebx
jb 0x40b350
mov eax, dword [esp + 0x10]
push eax
call fcn.004f9a4f
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x20
ret
cmp dword [esp + 0x24], ebx
jb 0x40b37a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004f9a4f
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f8e7f
add esp, 0x20
ret
Function at 0x40bc50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x517008
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
push edi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 0
mov edi, ecx
push 0x5616e2
mov dword [esp + 0x34], edi
call fcn.00403d20
xor eax, eax
push 0x3f
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], al
lea eax, [esp + 0x3d]
push eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004fc930
xor ecx, ecx
mov eax, connect
cpuid
lea esi, [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x1c]
mov esi, connect
add esp, 0xc
mov dword [esp + 0x30], eax
cmp eax, esi
jb 0x40bd90
lea ebx, [ebx]
xor ecx, ecx
mov eax, esi
cpuid
lea edi, [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp esi, reloc.WS2_32.dll_bind
jne 0x40bd2f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp 0x40bd81
cmp esi, reloc.WS2_32.dll_closesocket
jne 0x40bd59
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x40bd81
cmp esi, reloc.WS2_32.dll_connect
jne 0x40bd81
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
inc esi
cmp esi, dword [esp + 0x30]
jbe 0x40bcf0
mov edi, dword [esp + 0x2c]
xor ebx, ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bdb0
sub eax, edx
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403d20
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x8c], ebx
call fcn.004032e0
cmp dword [esp + 0x28], 0x10
jb 0x40bdf2
mov eax, dword [esp + 0x14]
push eax
call fcn.004f9a4f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x74
ret
Function at 0x40ee30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517c03
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0xb8]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
call fcn.00401d70
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x4e4], 1
call fcn.00412b90
push str..iritech
push ecx
push 0x5618a8
push ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4f8], 2
call fcn.004139b0
add esp, 0xc
push eax
call fcn.00404570
add esp, 0xc
push eax
call fcn.00404570
add esp, 8
push str.serial.txt
push ecx
lea eax, [esp + 0x24]
push 0x5618a8
push eax
call fcn.00404570
add esp, 0xc
push eax
call fcn.00404570
add esp, 8
lea ecx, [esp + 0x9c]
lea eax, [esp + 0x14]
call fcn.00412cc0
push 0xff
lea ecx, [esp + 0xd9]
push ebx
mov byte [esp + 0x4e8], 3
push ecx
mov byte [esp + 0xe0], bl
call fcn.004fc930
add esp, 0xc
push 0xff
lea edx, [esp + 0x1d9]
push ebx
push edx
mov byte [esp + 0x1e0], bl
call fcn.004fc930
mov eax, dword [esp + 0xac]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0xb4], esi
jae 0x40ef59
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x1d4]
push ecx
lea edx, [esp + 0xd8]
push edx
push eax
call fcn.0040cf50
add esp, 0xc
test eax, eax
je 0x40ef83
push str.Failed_getting_file_info._n
call fcn.004f9881
add esp, 4
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x2dc]
push str._s__s
push edx
call fcn.004fa0f8
lea eax, [esp + 0x2e4]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
add esp, 0x10
mov byte [edi + 4], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40efc0
sub eax, edx
push eax
lea eax, [esp + 0x2d8]
push eax
mov ecx, edi
call fcn.00403d20
mov dword [esp + 0xc], 1
cmp dword [esp + 0xb4], esi
jb 0x40effa
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.004f9a4f
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov byte [esp + 0x4e0], 1
call fcn.00412c30
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], vtable.std::ios_base.0
call fcn.004f856e
add esp, 4
cmp dword [esp + 0xd0], esi
jb 0x40f052
mov eax, dword [esp + 0xbc]
push eax
call fcn.004f9a4f
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.004f8e7f
add esp, 0x4d8
ret
Function at 0x40f080
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5178eb
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
mov eax, dword [0x577690]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f174
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00412a70
push 0x5684d0
push ecx
lea ecx, [esp + 0x14]
push str..iritech
push ecx
mov dword [esp + 0xb0], 0
call fcn.00404570
add esp, 0xc
push eax
call fcn.00404570
lea edx, [esp + 0x14]
push 0x5684d0
push edx
call fcn.00404570
add esp, 0x10
lea esi, [esp + 0xc]
call fcn.004021c0
lea esi, [esp + 0x10]
call fcn.004036f0
test eax, eax
jne 0x40f142
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x14]
lea ecx, [esp + ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40f130
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x40f142
push 0
call fcn.00401790
push edi
call fcn.0040b390
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00402580
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], vtable.std::ios_base.0
call fcn.004f856e
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x9c
ret
Function at 0x4128e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5178c2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x577690]
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], 0x56891c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00413480
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00404010
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 [0x57bc74]
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 ecx, dword [esp + 0x2c]
push 1
mov byte [esp + 0x24], 2
call fcn.00403610
test eax, eax
jne 0x4129e2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4129d1
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4129e2
push ebx
call fcn.00401790
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 0x412a70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x517872
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x577690]
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], 0x561800
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00403530
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00404010
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 [0x57bc74]
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 ecx, dword [esp + 0x2c]
push 2
mov byte [esp + 0x24], 2
call fcn.00403610
test eax, eax
jne 0x412b72
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x412b61
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x412b72
push ebx
call fcn.00401790
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