joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4baf90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ada43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x695e80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004af300
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], 0
mov dword [esi], vtable.cWindow.0
call fcn.004adcf0
lea ecx, [esi + 0x8d4]
mov byte [ebp - 4], 1
call fcn.004aa6a0
xor eax, eax
mov dword [esi + 8], 0
mov word [esi + 0x1a], ax
mov eax, 1
mov word [esi + 0xc], ax
mov dword [esi + 0xe], eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x92c], eax
mov dword [esi + 0x8f4], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x24], eax
mov dword [esi + 4], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x924], eax
mov dword [esi + 0x928], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x8cc], eax
mov dword [esi + 0x8d0], eax
mov eax, esi
mov dword [esi + 0x12], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x8f8], 0xffffff
mov dword [esi + 0x8fc], 0xff
mov dword [esi + 0x900], 0x64
mov dword [esi + 0x16], fcn.0057b2d0
mov dword [esi + 0x930], 0x3f800000
mov dword [esi + 0x934], 0x3f800000
mov dword [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c13a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
pop ebp
jmp fcn.004b0c60

Function at 0x4c1c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push 0x5b5890
push str.._data_usercfginfo.dat
mov dword [ebp - 4], ebx
call fcn.005870cb
mov esi, eax
add esp, 8
test esi, esi
je 0x4c1d01
push edi
push esi
push 1
lea edi, [ebx + 0x10]
push 0x2c
push edi
call fcn.00587677
push esi
call fcn.00586f90
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1c86
sub ecx, edx
je 0x4c1cc3
mov esi, 0xfffffff0
mov edx, edi
sub esi, ebx
lea ebx, [ebx]
add byte [edx], 0x9d
lea edx, [edx + 1]
mov ecx, edi
lea ebx, [ecx + 1]
jmp 0x4c1cb0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1cb0
sub ecx, ebx
lea eax, [esi + edx]
cmp eax, ecx
jb 0x4c1ca0
mov ebx, dword [ebp - 4]
add ebx, 0x24
mov ecx, ebx
lea edx, [ecx + 1]
jmp 0x4c1cd0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1cd0
sub ecx, edx
je 0x4c1d00
mov edi, 0xffffffdc
mov edx, ebx
sub edi, dword [ebp - 4]
add byte [edx], 0x9d
lea edx, [edx + 1]
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c1cf0
sub eax, esi
lea ecx, [edi + edx]
cmp ecx, eax
jb 0x4c1ce5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5b58fc
push str.._data_usercfginfo.dat
mov esi, ecx
call fcn.005870cb
movdqu xmm0, xmmword [esi + 0x10]
mov ecx, dword [esi + 0x38]
mov edi, eax
add esp, 8
mov dword [ebp - 8], ecx
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [ebp - 0x20], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [ebp - 0x10], xmm0
test edi, edi
je 0x4c2604
lea ecx, [ebp - 0x30]
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2598
sub ecx, esi
je 0x4c25bd
add byte [ebp + edx - 0x30], 0x63
lea ecx, [ebp - 0x30]
inc edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c25b0
sub ecx, esi
cmp edx, ecx
jb 0x4c25a3
lea ecx, [ebp - 0x1c]
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c25c5
sub ecx, esi
je 0x4c25ed
add byte [ebp + edx - 0x1c], 0x63
lea eax, [ebp - 0x1c]
inc edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c25e0
sub eax, esi
cmp edx, eax
jb 0x4c25d0
push edi
push 1
lea eax, [ebp - 0x30]
push 0x2c
push eax
call fcn.0058798e
push edi
call fcn.00586f90
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00585d34
mov esp, ebp
pop ebp
ret

Function at 0x4c2780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, ecx
lea eax, [edi + 0x10]
mov dword [edi + 0x38], esi
push eax
call fcn.0058729c
push dword [ebp + 0x10]
lea eax, [edi + 0x24]
push eax
call fcn.0058729c
add esp, 0x10
test esi, esi
je 0x4c27b9
mov ecx, edi
call fcn.004c2540
pop edi
pop esi
pop ebp
ret 0xc
push str.._data_usercfginfo.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c2a00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5f0a7c]
push esi
mov esi, ecx
mov ecx, 0x5f0a74
push 0
mov eax, dword [eax + 8]
push 0
mov dword [eax + 0xc], 1
cmp dword [esi + 0x10], 0
je 0x4c2a3b
push 3
mov dword [0x6c7742], 1
call fcn.004f65a0
mov dword [esi + 0x10], 0
jmp 0x4c2a42
push 2
call fcn.004f65a0
cmp dword [0x5f800c], 0
pop esi
jne 0x4c2a60
mov dword [0x5f800c], 1
mov ecx, 0x5f7f70
jmp fcn.00528540
ret
Function at 0x4f4580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f45cd
push 0
lea eax, [ebp + 8]
push eax
push 0x498
lea eax, [edi + 0x49c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4f45d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0xa8
lea eax, [edi + 0x9dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4f45c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4fc720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x5f1008
push esi
push edi
push ebx
call fcn.0050c4b0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6c7fdc], ebx
call edi
mov ebx, eax
push 7
add ebx, ebx
call edi
mov esi, eax
push 4
add esi, esi
call edi
push 0
push dword [ebp + 8]
add eax, esi
add eax, dword [0x6b3948]
push 0
push 0
push eax
mov eax, dword [0x6b3944]
add eax, ebx
push eax
push 0
push closesocket
push 0x2ca0000
push 0x6c7fe8
push 0x6c81e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6c7fe0], esi
test esi, esi
jne 0x4fc7a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
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 esi
mov ecx, 0x5f0a74
call fcn.004f5f80
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
mov ecx, 0x5f0a74
call fcn.004f65a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fcfe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x695e80]
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 0x4fd105
cmp byte [ebx + 0x45], 0
je 0x4fd105
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4fd034
xor al, al
jmp 0x4fd107
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 0x4fd09e
dec eax
je 0x4fd0a2
sub eax, 2
je 0x4fd0ee
xor bl, bl
jmp 0x4fd0f0
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 0x4fd0d4
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0058798e
add esp, 0x10
cmp esi, eax
jne 0x4fd09a
cmp byte [ebx + 0x45], 0
je 0x4fd0ee
test esi, esi
jne 0x4fd064
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004fd720
jmp 0x4fd064
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4fd101
push dword [ebp - 0x28]
call fcn.0058559d
add esp, 4
mov al, bl
jmp 0x4fd107
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.00585d34
mov esp, ebp
pop ebp
ret
Function at 0x4fdee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x695e80]
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 0x4fdf1c
xor eax, eax
jmp 0x4fe0ac
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4fdf4a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4fdf4a
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 0x4fe0ac
cmp dword [ebx + 0x50], 0
jne 0x4fdf58
or eax, 0xffffffff
jmp 0x4fe0ac
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x4fdf79
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 0x4fdf9e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00589cbd
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x4fe0ac
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 0x4fe096
cmp eax, 1
jg 0x4fe076
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 0x4fe047
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0058798e
add esp, 0x10
cmp esi, eax
jne 0x4fe096
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x4fe071
test esi, esi
jne 0x4fdfd1
cmp dword [ebp - 0x18], 0x20
jae 0x4fe096
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004fd720
jmp 0x4fdfd1
mov ebx, dword [ebp + 8]
jmp 0x4fe099
cmp eax, 3
jne 0x4fe096
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.004fbe00
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4fe099
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4fe0aa
push dword [ebp - 0x28]
call fcn.0058559d
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.00585d34
mov esp, ebp
pop ebp
ret 4
Function at 0x503060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1f2], 0
je 0x503101
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x503101
push 0
push 1
push 0x6c8490
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x503101
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [0x6c8478], xmm0
mov eax, dword [eax + 8]
mov dword [0x6c8480], eax
mov eax, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [0x6c8484], xmm0
mov eax, dword [eax + 8]
mov dword [0x6c848c], eax
mov eax, dword [edi + 0x1f2]
mov dword [0x6c8474], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5f0c74], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x5034a0
push 0
push 0
mov dword [0x6c8470], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x503109
push eax
push 0x6c8490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
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

Function at 0x503cb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x695e80]
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 0x503cd5
movsx eax, byte [edi]
push eax
call fcn.0058abdd
add esp, 4
test eax, eax
je 0x503d64
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x503d17
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x503d64
movsx eax, word [esi + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x110]
push eax
call fcn.005861a0
add esp, 0xc
push dword [ebp - 0x110]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x5b585c
push eax
call fcn.0058729c
mov eax, dword [esi + 0xc]
lea edi, [edi + 1]
lea ecx, [eax + edi*4]
add esp, 0xc
cmp dword [ecx], 0
jne 0x503d20
lea eax, [ebp - 0x104]
push eax
push 0x20
push 0x6cb1d8
call fcn.0058ace3
imul eax, dword [0x6cb230], 0x32
add esp, 0xc
mov esi, dword [ebp + 0xc]
add eax, dword [0x6cb22c]
imul eax, eax, 0x5e
cmp si, word [eax + 0x6b3b3a]
jne 0x503db2
cmp dword [0x6cb20c], 0
je 0x503db2
cmp dword [0x6cb228], 0
jne 0x503db2
mov ecx, 0x6cb200
call fcn.0054e030
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.00585d34
mov esp, ebp
pop ebp
ret 8
Function at 0x5166c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0236
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x695e80]
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.004f06a0
push 0x40
lea ecx, [edi + 0x28]
call fcn.004f06a0
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 0x517530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a93eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x695e80]
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.004f06a0
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 0x51cce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b043b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x695e80]
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 word [esi + 0xf6], ax
mov dword [esi + 0x100], eax
mov byte [esi + 0x104], 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 + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x76], 0xffffff
mov dword [esi + 0x7a], 0xffffff
mov dword [esi + 0x7e], 0xffffff
call fcn.00586c40
xorps xmm0, xmm0
movdqu xmmword [esi + 0x82], xmm0
mov byte [esi + 0x92], 0
movdqu xmmword [esi + 0x93], xmm0
push 0x880
movdqu xmmword [esi + 0xa3], xmm0
mov byte [esi + 0xb3], 0
movdqu xmmword [esi + 0xb4], xmm0
movdqu xmmword [esi + 0xc4], xmm0
mov byte [esi + 0xd4], 0
movdqu xmmword [esi + 0xd5], xmm0
movdqu xmmword [esi + 0xe5], xmm0
mov byte [esi + 0xf5], 0
call fcn.0058554c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x51ce24
mov ecx, eax
call fcn.004adcf0
jmp 0x51ce26
xor eax, eax
mov dword [esi + 0x10a], eax
mov eax, esi
mov dword [esi + 0x106], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x528460
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 0x5284b3
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 0x5284bb
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 0x5284ac
push 0
lea eax, [ebp - 4]
push eax
push 0xc0
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5284ac
cmp dword [ebp - 4], 0xc0
push esi
ja 0x5284ad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x528770
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 0x528792
mov dword [ecx + 0xc4], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
mov ecx, 0x30
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 0x5287f4
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 0xc0
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 0x532060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0c53
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x695e80]
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.004f06a0
push 0x14
lea ecx, [edi + 0x24]
call fcn.004f06a0
mov ecx, edi
call fcn.00532e70
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 0x53a4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0fa7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x695e80]
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 0x53a544
mov dword [edi], 0x5c58d0
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.004fdcb0
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.004fc060
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 [0x6c8464]
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 0x53a8d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b10f8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x695e80]
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.0058554c
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.0058ace3
mov ecx, dword [esi + 0x22]
mov al, byte [ebp + 0x20]
push 0
push 0
mov byte [ecx + 0x104], al
push dword [esi + 0x22]
push 0x53ba40
push 0
push 0
call fcn.0058b46b
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x53a95c
push dword [ebp + 8]
call fcn.0058559d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c