joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470520
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.004677b0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47055e
cmp dword [ebp + 8], 0
je 0x47054c
lea eax, [ebp + 8]
push eax
call fcn.00470880
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x47055e
mov eax, 4
jmp 0x47068e
call fcn.00467580
movzx edx, al
test edx, edx
jne 0x47058c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47057d
mov dword [ebp - 0xc], 4
jmp 0x470584
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x47068e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x470635
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x470810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00449fb0
lea ecx, [ebp - 8]
call fcn.0044a070
movzx edx, al
test edx, edx
jne 0x4705f7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0044a010
mov eax, dword [ebp - 0x10]
jmp 0x47068e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0044a810
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x470622
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0044a010
mov eax, dword [ebp - 0x14]
jmp 0x47068e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0044a010
mov eax, dword [ebp - 0x18]
jmp 0x47068e
call fcn.00467700
movzx ecx, al
test ecx, ecx
jne 0x47066e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00470730
add esp, 0x10
jmp 0x47068e
call fcn.00467610
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00470790
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x475935
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474e8a

Function at 0x475940
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004751c5
Function at 0x458510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x53000]
push edi
jmp 0x45852a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458520
mov eax, 1
add ebx, ebx
jne 0x458543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x458538
jne 0x458554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458538
xor ecx, ecx
sub eax, 3
jb 0x458568
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4585da
mov ebp, eax
add ebx, ebx
jne 0x458573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x458580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4585a4
inc ecx
add ebx, ebx
jne 0x458590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x458585
jne 0x4585a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458585
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4585c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4585b5
jmp 0x458526
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4585c4
add edi, ecx
jmp 0x458526
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4585e2
cmp byte [edi], 1
jne 0x4585e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4585e7
lea edi, [esi + 0x56000]
mov eax, dword [edi]
or eax, eax
je 0x45865f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7ba4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7bb00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x458614
mov ecx, edi
jns 0x458643
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7bb04]
or eax, eax
je 0x458659
mov dword [ebx], eax
add ebx, 4
jmp 0x458631
call dword [esi + 0x7bb14]
mov ebp, dword [esi + 0x7bb08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x458693
sub esp, 0xffffff80
jmp 0x40323c
Function at 0x4016f0
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4eb770
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esi + 0x58]
mov al, byte [eax + 0x21]
mov edx, dword [esi + 4]
xor ecx, ecx
test al, al
setne cl
push ecx
push 0x3fe
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [esi + 0x58]
mov al, byte [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
test al, al
je 0x4017e4
push 0x3fa
push 0x3fa
push 0x3f9
push ecx
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push 0x86
mov dword [esp + 0x38], 0
call fcn.00405a70
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4017a5
lea edx, [esp + 0x14]
push edx
mov eax, 0x86
call fcn.00405c20
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fe
push eax
call edi
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401817
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f8
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3f9
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3fa
push eax
call edi
push 0
push eax
call ebx
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0x2011f
lea ecx, [esp + 0x24]
push ecx
mov eax, str.SoftwareGoogleGoogle_Pinyin_2
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 1
call fcn.00405df0
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x4018c1
lea edx, [esp + 0x14]
push edx
mov ecx, str.Experience
call fcn.00405cc0
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esp + 0x14]
sete byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x4018c1
mov ecx, dword [esi + 4]
push 0x3ef
push ecx
mov byte [esi + 0x5c], 0
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x46b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebp, ebp
je 0x4018e6
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x401b60
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x470
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push esi
push 0x401d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
ret
Function at 0x4052e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e8858
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
je 0x4053bd
test cl, 4
je 0x405356
call fcn.004c8494
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::badbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00406640
test cl, 2
je 0x40538a
call fcn.004c8494
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::failbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], ecx
call fcn.00406640
call fcn.004c8494
mov ecx, 1
mov dword [esp + 0x20], str.ios_base::eofbit_set
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], vtable.std::ios_base::failure.0
lea esi, [esp + 0x1c]
mov dword [esp + 0x38], 2
call fcn.00406640
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b07
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405b36
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x405b32
cmp esi, eax
jae 0x405b36
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x405b24
cmp esi, eax
jb 0x405b3c
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x407000
Capabilities:
Get common file path

Disassembly:
cmp dword [0x52ffac], 0
jne 0x4070b8
cmp byte [0x52fea8], 0
jne 0x40708d
push 0x52fea8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0x407056
push 0x104
push 0x52fea8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x52fea8
call fcn.004cab30
add esp, 8
test eax, eax
je 0x407056
mov byte [eax + 1], 0
mov eax, 0x52fea8
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407060
mov ecx, dword [str._debug.log]
mov edx, dword [0x506e68]
mov dword [eax], ecx
mov cx, word [0x506e6c]
mov dword [eax + 4], edx
mov dl, byte [0x506e6e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0x506e70
push 0x52fea8
call fcn.004ca9fe
add esp, 8
mov dword [0x52ffac], eax
test eax, eax
jne 0x4070ab
xor al, al
ret
push 2
push 0
push eax
call fcn.004caedf
add esp, 0xc
mov al, 1
ret
Function at 0x4070c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e7dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
cmp dword [ebp + 0x10], 0
je 0x40727c
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.004cf830
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push 0x5c
push eax
call fcn.004ca914
add esp, 8
test eax, eax
je 0x407154
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x74]
lea edx, [eax + 2]
jmp 0x407160
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407160
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + 0x78]
push 0x506e74
push eax
call fcn.004ca783
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0x40719e
mov eax, dword [ebp]
jmp 0x4071a0
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0x40727c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c83da
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0x4071e4
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0x40726c
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004cf830
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40725c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0x40726c
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x298], esi
call fcn.004c9b0b
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004c9392
add esp, 0x284
ret
Function at 0x4075f0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4ecfd3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x5c], 0
mov eax, dword [ebp]
cmp eax, dword [0x52fea0]
jl 0x407801
lea esi, [esp + 0x18]
lea ecx, [ebp + 8]
call fcn.00408090
mov ebx, 1
push 2
mov eax, 0x506ebc
mov ecx, esi
mov byte [esp + 0x60], bl
call fcn.00408960
cmp dword [0x52fea4], 0
je 0x407681
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40767a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x52fea4], ebx
je 0x4076f9
call fcn.00407000
test al, al
je 0x4076f9
cmp byte [0x52ffb2], 0
jne 0x4076ac
push 0x52fe10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x52ffb2], bl
push 0x52fe10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x52ffac]
push 2
push 0
push ecx
call fcn.004caedf
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], 0x10
jae 0x4076d9
lea eax, [esp + 0x18]
mov edx, dword [0x52ffac]
push eax
push 0x506ec0
push edx
call fcn.004caa15
add esp, 0xc
push 0x52fe10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp], 3
jne 0x4077d3
mov eax, dword [0x52ffac]
push eax
call fcn.004ca727
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407726
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4077d3
cmp dword [0x52ffb4], 0
lea esi, [esp + 0x34]
je 0x407757
lea ecx, [ebp + 8]
call fcn.00408090
push eax
mov byte [esp + 0x60], 2
call dword [0x52ffb4]
add esp, 4
mov ecx, esi
mov byte [esp + 0x5c], bl
call fcn.00406230
jmp 0x4077d3
mov ecx, dword [0x52cac4]
cmp byte [ecx], 0
lea ecx, [ebp + 8]
jne 0x407787
call fcn.00408090
push eax
mov byte [esp + 0x60], 3
call fcn.004070c0
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call fcn.00406230
jmp 0x4077c5
call fcn.00408090
cmp dword [eax + 0x14], 0x10
jb 0x407794
mov eax, dword [eax]
push eax
push 0x506ec4
call fcn.004ca330
add eax, 0x40
push eax
call fcn.004caa15
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00406230
call fcn.004ca330
add eax, 0x40
push eax
call fcn.004ca727
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], 0x10
jb 0x4077ec
mov edx, dword [esp + 0x18]
push edx
call fcn.004c9387
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea esi, [ebp + 0x68]
mov ecx, esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.00407ff0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004c85df
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004c9392
add esp, 0x4c
ret 4
Function at 0x409720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4e8226
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004c8a12
push 4
mov dword [esp + 0x24], 0
call fcn.004c958c
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x20], 1
test edi, edi
je 0x4097a9
call fcn.004c88ea
mov dword [edi], eax
call fcn.004c86a9
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004c89d3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40979e
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004c89fb
jmp 0x4097ab
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 + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x40d430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f49ea
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call fcn.0040c700
add esp, 8
cmp byte [0x530438], 0
jne 0x40d47a
mov byte [0x530438], 1
call fcn.0040c190
mov edx, dword [0x52ffc0]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0040c8f0
lea ecx, [esp + 0xc]
push ecx
mov edx, esi
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.0040cb00
mov esi, eax
call fcn.00412640
lea ebx, [esp + 0xc]
call fcn.0040d220
test al, al
je 0x40d4bc
push 1
call fcn.004cbc95
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040c9e0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x40e170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9118
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x40e1ae
mov eax, dword [esi + 0x1c]
push eax
call fcn.004c9387
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40e1d4
mov eax, dword [esi]
push eax
call fcn.004c9387
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40eef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9118
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x40ef2e
mov eax, dword [esi + 0x1c]
push eax
call fcn.004c9387
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40ef54
mov eax, dword [esi]
push eax
call fcn.004c9387
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x412db0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4ecc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
push ebp
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x684]
mov dword fs:[0], eax
mov esi, dword [esp + 0x694]
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0x28], 0
call fcn.004cf830
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x47e]
push edx
mov word [esp + 0x480], cx
call fcn.004cf830
mov eax, dword [esi]
add esp, 0xc
push 0x50752c
push eax
lea eax, [esp + 0x47c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412e69
mov al, 1
jmp 0x412fa6
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x276]
push ecx
mov word [esp + 0x278], ax
call fcn.004cf830
add esp, 0xc
mov eax, dword [esi]
lea edx, [esp + 0x48]
push edx
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x412f64
test byte [esp + 0x1c], 0x10
je 0x412ef6
cmp word [esp + 0x48], 0x2e
je 0x412f64
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x270]
call fcn.00405cc0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x690], 0
call fcn.00412db0
add esp, 4
test al, al
mov dword [esp + 0x68c], 0xffffffff
mov eax, dword [esp + 0x18]
jmp 0x412f3c
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x270]
call fcn.00405cc0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x412f34
mov eax, dword [esp + 0x14]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor al, al
jmp 0x412f36
mov al, 1
test al, al
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412f64
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412e89
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x412f9d
mov edx, dword [esi]
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [esp + 0x13], 1
xor eax, eax
cmp byte [esp + 0x13], al
sete al
mov ecx, dword [esp + 0x684]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.004c9392
add esp, 0x680
ret