joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503bb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x5fb470
push esi
call fcn.00514aa0
push 0
push esi
push 0
push 0
push dword [0x6bfa40]
mov dword [0x6d53f0], esi
push dword [0x6bfa3c]
push 0xa
push 0xf
push 0x2ca0000
push 0x6d53f8
push 0x6d55f8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
mov dword [0x6d53f4], ebx
test ebx, ebx
jne 0x503c20
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058de24
mov esp, ebp
pop ebp
ret
push edi
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, eax
push 0x2ca0000
push 0xfffffffffffffff0
push ebx
and edi, 0xffffff7f
call esi
push edi
push 0xffffffffffffffec
push ebx
call esi
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
add dword [ebp - 8], 8
lea eax, [ebp - 0x14]
push edi
push 0
push 0x2ca0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 6
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
mov ecx, 0x5faedc
call fcn.004fd160
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 2
mov ecx, 0x5faedc
call fcn.004fd7c0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret
Function at 0x504500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae568
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6a0290]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x504625
cmp byte [ebx + 0x45], 0
je 0x504625
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x504554
xor al, al
jmp 0x504627
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x5045be
dec eax
je 0x5045c2
sub eax, 2
je 0x50460e
xor bl, bl
jmp 0x504610
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x5045f4
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0058fa7e
add esp, 0x10
cmp esi, eax
jne 0x5045ba
cmp byte [ebx + 0x45], 0
je 0x50460e
test esi, esi
jne 0x504584
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0043d6f0
jmp 0x504584
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x504621
push dword [ebp - 0x28]
call fcn.0058d68d
add esp, 4
mov al, bl
jmp 0x504627
mov al, 1
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.0058de24
mov esp, ebp
pop ebp
ret
Function at 0x505360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6a0290]
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 ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x50539c
xor eax, eax
jmp 0x50552c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x5053ca
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x5053ca
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x50552c
cmp dword [ebx + 0x50], 0
jne 0x5053d8
or eax, 0xffffffff
jmp 0x50552c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x5053f9
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x50541e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00591dad
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x50552c
mov byte [ebp - 0x2c], cl
lea eax, [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x505516
cmp eax, 1
jg 0x5054f6
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x5054c7
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0058fa7e
add esp, 0x10
cmp esi, eax
jne 0x505516
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x5054f1
test esi, esi
jne 0x505451
cmp dword [ebp - 0x18], 0x20
jae 0x505516
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0043d6f0
jmp 0x505451
mov ebx, dword [ebp + 8]
jmp 0x505519
cmp eax, 3
jne 0x505516
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.00502fe0
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x505519
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x50552a
push dword [ebp - 0x28]
call fcn.0058d68d
add esp, 4
mov eax, ebx
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.0058de24
mov esp, ebp
pop ebp
ret 4
Function at 0x50a790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f2], 0
je 0x50a842
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x50a842
push edi
mov ecx, 1
mov edi, 0x6d58d0
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 1
je 0x50a828
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [0x6d58b8], xmm0
mov eax, dword [eax + 8]
mov dword [0x6d58c0], eax
mov eax, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [0x6d58c4], xmm0
mov eax, dword [eax + 8]
mov dword [0x6d58cc], eax
mov eax, dword [esi + 0x1f2]
mov dword [0x6d58b4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5fb0dc], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x50abd0
push 0
push 0
mov dword [0x6d58b0], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x50a830
xchg dword [edi], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x50b3c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6a0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x104]
mov ebx, ecx
mov edx, edi
sub esi, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x50b3e5
movsx eax, byte [edi]
push eax
call fcn.00592ccd
add esp, 4
test eax, eax
je 0x50b474
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x50b427
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058de24
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x50b474
movsx eax, word [esi + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x110]
push eax
call fcn.0058e290
add esp, 0xc
push dword [ebp - 0x110]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x5be86c
push eax
call fcn.0058f38c
mov eax, dword [esi + 0xc]
lea edi, [edi + 1]
lea ecx, [eax + edi*4]
add esp, 0xc
cmp dword [ecx], 0
jne 0x50b430
lea eax, [ebp - 0x104]
push eax
push 0x20
push 0x6d85b8
call fcn.00592dd3
imul eax, dword [0x6d8610], 0x32
add esp, 0xc
mov esi, dword [ebp + 0xc]
add eax, dword [0x6d860c]
imul eax, eax, 0x5e
cmp si, word [eax + 0x6bfc0e]
jne 0x50b4c2
cmp dword [0x6d85ec], 0
je 0x50b4c2
cmp dword [0x6d8608], 0
jne 0x50b4c2
mov ecx, 0x6d85e0
call fcn.00556210
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x104]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor ecx, ecx
mov dword [ebx + 0x14], eax
test eax, eax
pop edi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret 8
Function at 0x51eae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8d36
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.CMunpaMarkManager.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [edi + 0x4c], 0
call fcn.004da350
push 0x40
lea ecx, [edi + 0x28]
call fcn.004da350
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x51f980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba2db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CNewbieGuide.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x60
mov dword [ebp - 4], 0
call fcn.004da350
mov dword [esi + 0x30], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x525340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae3ab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi], vtable.COBalloonName.0
push 0x3d
push eax
mov dword [esi + 0xf2], eax
mov dword [esi + 0xfa], eax
mov byte [esi + 0xfe], al
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x72], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0xf6], 0
mov dword [esi + 0x76], 0xffffff
mov dword [esi + 0x7a], 0xffffff
call fcn.0058ed30
xorps xmm0, xmm0
movdqu xmmword [esi + 0x7e], xmm0
mov byte [esi + 0x8e], 0
movdqu xmmword [esi + 0x8f], xmm0
push 0x860
movdqu xmmword [esi + 0x9f], xmm0
mov byte [esi + 0xaf], 0
movdqu xmmword [esi + 0xb0], xmm0
movdqu xmmword [esi + 0xc0], xmm0
mov byte [esi + 0xd0], 0
movdqu xmmword [esi + 0xd1], xmm0
movdqu xmmword [esi + 0xe1], xmm0
mov byte [esi + 0xf1], 0
movdqu xmmword [esi + 0x11e], xmm0
mov byte [esi + 0x12e], 0
call fcn.0058d63c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x52547e
mov ecx, eax
call fcn.004b2a20
jmp 0x525480
xor eax, eax
mov dword [esi + 0x104], eax
mov eax, esi
mov dword [esi + 0x100], 0
mov dword [esi + 0x116], 0
mov dword [esi + 0x10a], 0
mov dword [esi + 0x10e], 0
mov dword [esi + 0x112], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x530610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x530663
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53066b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x61208
jne 0x53065c
push 0
lea eax, [ebp - 4]
push eax
push 0xac
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53065c
cmp dword [ebp - 4], 0xac
push esi
ja 0x53065d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x530920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x84]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, dword [esi + 0x80]
je 0x530942
mov dword [ecx + 0xb0], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
mov ecx, 0x2b
push 0
push 0x40000000
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push str.._ini_GameOption.opt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5309a4
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x61208
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0xac
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x539c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push 0xa
mov byte [ebp - 4], 1
call fcn.004da350
push 0x14
lea ecx, [edi + 0x24]
call fcn.004da350
mov ecx, edi
call fcn.0053aa30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5424c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b99a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x542514
mov dword [edi], 0x5cf118
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00505130
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00503240
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x6d5864]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5428a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9af8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
mov dword [ebp - 4], 0
call fcn.0058d63c
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x22], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00592dd3
mov ecx, dword [esi + 0x22]
mov al, byte [ebp + 0x20]
push 0
push 0
mov byte [ecx + 0x104], al
push dword [esi + 0x22]
push 0x543a10
push 0
push 0
call fcn.005936b5
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x54292c
push dword [ebp + 8]
call fcn.0058d68d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x542940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9af8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
mov dword [ebp - 4], 0
call fcn.0058d63c
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x22], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00592dd3
mov ecx, dword [esi + 0x22]
mov al, byte [ebp + 0x20]
push 0
push 0
mov byte [ecx + 0x104], al
push dword [esi + 0x22]
push 0x543db0
push 0
push 0
call fcn.005936b5
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x5429cc
push dword [ebp + 8]
call fcn.0058d68d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x5429e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x544150
push 0
push 0
call fcn.005936b5
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x543100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9af8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
mov dword [ebp - 4], 0
call fcn.0058d63c
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x22], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00592dd3
mov ecx, dword [esi + 0x22]
mov al, byte [ebp + 0x20]
push 0
push 0
mov byte [ecx + 0x104], al
push dword [esi + 0x22]
push 0x544880
push 0
push 0
call fcn.005936b5
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x54318c
push dword [ebp + 8]
call fcn.0058d68d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x5431a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9bf8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [0x6d8334]
mov eax, 0x2aaaaaab
mov esi, dword [0x6d8330]
mov edx, edi
sub edx, esi
mov dword [ebp - 4], 0
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x543229
cmp esi, edi
je 0x543223
cmp dword [esi + 0x14], 0x10
jb 0x543205
push dword [esi]
call fcn.0058d68d
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x5431f5
mov esi, dword [0x6d8330]
mov dword [0x6d8334], esi
cmp byte [ebp + 0x20], 0
lea eax, [ebp + 8]
je 0x5432ac
push 0x6d8330
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403de0
mov ecx, ebx
call fcn.00545860
mov edi, dword [0x6d8334]
mov eax, 0x2aaaaaab
mov esi, dword [0x6d8330]
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5432bb
cmp esi, edi
je 0x5432bb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x543290
cmp dword [esi + 0x14], 0x10
jb 0x54329a
mov eax, dword [esi]
jmp 0x54329c
mov eax, esi
push eax
call edi
add esi, 0x18
cmp esi, dword [0x6d8334]
jne 0x543290
jmp 0x5432bb
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0x1c], 0x10
jb 0x5432cc
push dword [ebp + 8]
call fcn.0058d68d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c