joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52fe40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x408], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x418], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x41c], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push 0x400
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x414], ebx
call sub.MSVCR120.dll_memset
mov edx, dword [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x40c], esi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x52feb0
sub edx, ecx
mov dword [ebp - 0x410], esi
xor ecx, ecx
cmp edx, 2
jl 0x52fef6
lea ebx, [edx - 1]
lea esp, [esp]
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx]
add esi, eax
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx + 1]
add ecx, 2
add edi, eax
cmp ecx, ebx
jl 0x52fed0
mov ebx, dword [ebp - 0x414]
cmp ecx, edx
jge 0x52ff0a
mov eax, dword [ebp - 0x408]
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x410], eax
lea eax, [edi + esi]
xor edx, edx
add eax, dword [ebp - 0x410]
div dword [ebx + 0x48]
mov esi, edx
xor edx, edx
mov eax, esi
div dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x52ff47
jmp 0x52ff30
cmp dword [eax], esi
je 0x52ff3d
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x52ff30
jmp 0x52ff47
cmp dword [eax + 4], 0
jne 0x52ffec
cmp dword [ebx + 0x20], 0xcd
jb 0x52ff7b
push 0x33
mov ecx, ebx
call fcn.00530030
lea eax, [ebp - 0x404]
push 0x5946f4
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 8
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx]
mov edi, dword [ebp - 0x408]
push 0
push 0
mov ecx, dword [eax]
push 0
push edi
push eax
call dword [ecx + 0x18c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x52fff2
mov ecx, dword [ebx]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x114]
mov eax, dword [ebx]
push dword [ebp - 0x40c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10c]
mov ecx, ebx
call fcn.0052fe00
test eax, eax
je 0x52ffd1
mov ecx, dword [ebp - 0x40c]
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
push eax
lea ecx, [ebx + 4]
call fcn.00573f90
push esi
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebx + 0x20]
call fcn.004eeba0
jmp 0x52fff2
mov edi, dword [ebp - 0x408]
push dword [ebp - 0x420]
mov eax, dword [ebx]
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x18c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret 0x10
Function at 0x530180
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x4c]
mov ebx, eax
add edx, 0x493e0
cmp ebx, edx
jbe 0x5301e7
cmp dword [esi + 0x10], 0
jle 0x5301d9
push edi
lea ecx, [esi + 4]
call fcn.00574310
mov edi, eax
test edi, edi
je 0x5301d8
push dword [edi + 8]
call fcn.0052b8e0
add esp, 4
lea ecx, [esi + 0x20]
push dword [edi + 4]
call fcn.00531580
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop edi
push str._n____Cache_delete_one_item.__n_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], ebx
pop esi
pop ebx
ret

Function at 0x532df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x532f6c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x94
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x37c]
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.00531630
push 0
mov ecx, ebx
call fcn.005313e0
test eax, eax
je 0x532f54
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.005310c0
mov bl, al
mov ecx, 0x6ee498
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x56c]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00532400
test eax, eax
je case.0x532e83.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x532e83.10
movzx ecx, byte [ecx + 0x532fb8]
jmp dword [ecx*4 + 0x532f74]
movzx ecx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x532e83.10
movzx ecx, word [edi + 0x30]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x532e83.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x532e83.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x532e83.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x84], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x88], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x90], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.005313e0
test eax, eax
jne 0x532e40
pop edi
mov ecx, dword [0x6b26ec]
call fcn.00447600
mov ecx, dword [0x6b26ec]
call fcn.00447320
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x532e8a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x532f6c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x94
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x37c]
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.00531630
push 0
mov ecx, ebx
call fcn.005313e0
test eax, eax
je 0x532f54
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.005310c0
mov bl, al
mov ecx, 0x6ee498
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x56c]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00532400
test eax, eax
je case.0x532e83.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x532e83.10
movzx ecx, byte [ecx + 0x532fb8]
jmp dword [ecx*4 + 0x532f74]
movzx ecx, word [edi + 0x30]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x532e83.10
movzx ecx, word [edi + 0x30]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x532e83.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x532e83.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x532e83.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x84], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x88], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8c], eax
jmp case.0x532e83.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x90], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.005313e0
test eax, eax
jne 0x532e40
pop edi
mov ecx, dword [0x6b26ec]
call fcn.00447600
mov ecx, dword [0x6b26ec]
call fcn.00447320
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x536a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
je 0x536bb5
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x536bb5
push edi
mov ecx, 1
mov edi, 0x6ee5a4
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 1
je 0x536b9b
cmp dword [edx + 0x24], 1
je 0x536b9b
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [0x6ee584], xmm0
mov eax, dword [eax + 8]
mov dword [0x6ee58c], eax
mov eax, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [0x6ee590], xmm0
mov eax, dword [eax + 8]
mov dword [0x6ee598], eax
mov eax, dword [esi + 0x1f4]
mov dword [0x6ee59c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x6a6ca0], eax
mov dword [0x6ee5a0], edx
mov dword [esi + 0x3ac], 0
mov eax, dword [0x6c831c]
mov dword [eax + 0xa00], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x69d6b8
mov dword [0x6ee578], eax
call fcn.004c2870
mov dword [0x6ee57c], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x536bc0
push 0
push 0
mov dword [0x6ee570], 1
mov dword [0x6ee574], 1
mov dword [0x6ee5ac], 0
mov dword [0x6ee56c], 0
mov dword [0x6ee580], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x536ba3
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 0x5382c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580e08
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CTileManager.0
lea ecx, [edi + 0x38]
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
call fcn.0053b9b0
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x58]
push eax
call fcn.00492850
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x6c]
push eax
call fcn.00492850
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x8c]
push eax
call fcn.00492850
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0xa0]
call fcn.00492850
mov dword [edi + 0xc], 0
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 0x54fe90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58190e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
push 0x40
mov byte [ebp - 4], 2
call fcn.005326b0
push 0x40
lea ecx, [ebx + 0x24]
call fcn.005326b0
push 0x40
lea ecx, [ebx + 0x48]
call fcn.005326b0
mov ecx, ebx
call fcn.0054fb40
mov ecx, ebx
call fcn.0054f9e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55c7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2290]
test ecx, ecx
je 0x55c855
mov ecx, dword [esi + ecx*4 + 0x984]
push edi
push 1
call fcn.00430190
movzx edi, word [esi + 0xa09]
mov eax, 0x66666667
mov ecx, dword [esi + 0x2290]
imul edi
inc ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + ecx*4]
shl ecx, 2
lea edx, [eax + eax*4]
shl edx, 2
lea eax, [ecx - 0x14]
mov dword [esi + 0x2288], eax
sub edi, edx
jne 0x55c843
mov dword [esi + 0x228c], ecx
mov ecx, esi
pop edi
pop esi
jmp fcn.0055c990
lea eax, [edx + edi]
mov ecx, esi
pop edi
mov dword [esi + 0x228c], eax
pop esi
jmp fcn.0055c990
mov ecx, dword [esi + 0x984]
push 1
call fcn.00430190
pop esi
ret
Function at 0x55d380
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x20]
test eax, eax
je 0x55d3d0
push 0x7c9
mov ecx, 0x6cb3b8
call fcn.004d1140
push eax
push 0x17
push 0x6cb3b8
call fcn.004d0780
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6ec734]
mov dword [ebp - 0x210], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x59697c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x55d3bf
cmp dword [esi + 0xc], 0
jne 0x55d435
push str.bdcap32.dll
mov ecx, esi
call fcn.0055d560
test eax, eax
jns 0x55d41b
push 0x7ca
jmp 0x55d3a5
mov eax, dword [esi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call dword [eax + 0xc]
cmp dword [esi + 0xc], 0
je 0x55d4f8
mov eax, dword [esi]
push 0x140
push 0xf
push esi
call dword [eax + 0x40]
mov ecx, esi
call fcn.0055d950
push 0
mov ecx, 0x6a6f38
call fcn.005498d0
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x55d48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x55d3bf
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push 0x596a5c
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.0055d870
lea eax, [ebp - 0x20c]
mov ecx, 0x6cb3b8
push eax
push 0x971
call fcn.004d1140
push eax
push 0x17
push 0x6cb3b8
call fcn.004d0780
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 4
push 0
push eax
push esi
call fcn.0055dab0
test eax, eax
js 0x55d3bf
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00575b90
mov esp, ebp
pop ebp
ret

Function at 0x562060
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x104]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_strrchr]
add esp, 8
mov esi, ebx
mov byte [eax + 1], 0
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5620c0
lea edi, [ebp - 0x104]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5620d0
mov ecx, ebx
lea eax, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0xff
push dword [ebp - 0x110]
mov ecx, ebx
push 0
push dword [ebp - 0x108]
and ecx, 3
push dword [ebp - 0x10c]
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret
Function at 0x569bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6a5d94]
push ebx
push esi
push eax
push eax
mov ebx, ecx
mov ecx, 0x6a6f38
push 0
call fcn.005498d0
push eax
lea eax, [ebp - 0x108]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x569c64
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x569c76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 0x61208
jne 0x569c5d
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x569c5d
cmp dword [ebp - 0x10c], 0x16c
push esi
ja 0x569c5e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret
Function at 0x56c030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6a5d94]
push ebx
push edi
push eax
push eax
mov ebx, ecx
mov ecx, 0x6a6f38
push 0
call fcn.005498d0
push eax
lea eax, [ebp - 0x108]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x56c0d9
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x61208
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret
Function at 0x56c6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582239
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a7420]
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], vtable.CDungeonMgr.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 [edi + 0x18], 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
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push 0x1e0
lea ebx, [edi + 0x70]
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1e0
lea eax, [ebx + 0x2a4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x48e
xorps xmm0, xmm0
push 0
movq qword [ebx + 0x484], xmm0
push ebx
mov word [ebx + 0x48c], 0
call sub.MSVCR120.dll_memset
add esp, 0x24
mov dword [edi + 0x500], 0
lea ecx, [edi + 0x500]
mov dword [edi + 0x504], 0
call fcn.0053b9b0
mov dword [edi + 0x500], eax
add edi, 0x508
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 ecx, dword [ebp - 0x10]
lea esi, [ecx + 0x52c]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ebx, [ecx + 0x550]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push 0x48e
lea eax, [ecx + 0x70]
mov byte [ebp - 4], 6
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0xc8
mov ecx, edi
call fcn.005326b0
push 0x14
mov ecx, esi
call fcn.005326b0
mov esi, dword [ebp - 0x10]
push 0x404
push 0
lea eax, [esi + 0x590]
mov dword [esi + 0x574], 0
push eax
mov dword [esi + 0x57c], 0
mov dword [esi + 0x578], 0xf
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esi + 4]
push 0xc8
call fcn.005326b0
push 0x14
mov ecx, ebx
mov dword [esi + 0x580], 0
mov dword [esi + 0x584], 0
mov dword [esi + 0x588], 0
mov dword [esi + 0x58c], 0
call fcn.005326b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x570a50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5824d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a7420]
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
call fcn.005728b0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.005728e0
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0052c2d0
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 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
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x571550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x25b]
push esi
mov esi, dword [ebp + 0xc]
push 0x1f3
push 0
push eax
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], esi
mov byte [ebp - 0x25c], 0
call sub.MSVCR120.dll_memset
xor eax, eax
mov byte [ebp - 0x260], 0
push 0x63
push eax
mov word [ebp - 0x25f], ax
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x67]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
test ebx, ebx
je 0x5716d1
test esi, esi
je 0x5716d1
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x571678
cmp byte [ebp - 0x25c], 0
je 0x571678
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [ebp - 0x25c]
push 0x597244
push esi
call edi
test eax, eax
je 0x571664
push 0x597248
push esi
call edi
test eax, eax
je 0x571664
movzx eax, byte [esi]
mov byte [ebp - 0x260], al
movzx eax, byte [esi + 1]
mov byte [ebp - 0x25f], al
lea eax, [ebp - 0x68]
push 0x64
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 0x25e], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x571680
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x68]
push ebx
push eax
push dword [ebp - 0x264]
call dword [sym.imp.MSVCR120.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x571695
add esi, 4
cmp byte [esi], 0
jne 0x5715f7
mov ebx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x268]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x264]
add eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret 8