joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ff3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40b910
call fcn.0040376c
push 8
call fcn.00406f64
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x411108], esi
jne 0x405027
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x411104], esi
mov al, byte [ebp + 0x10]
mov byte [0x411100], al
cmp dword [ebp + 0xc], edi
jne 0x405071
cmp dword [0x4128e8], edi
je 0x405061
mov eax, dword [0x4128e4]
sub eax, 4
mov dword [0x4128e4], eax
cmp eax, dword [0x4128e8]
jb 0x405061
mov eax, dword [eax]
cmp eax, edi
je 0x405042
call eax
jmp 0x405042
push 0x40e028
mov eax, 0x40e020
call fcn.00404f71
pop ecx
push 0x40e030
mov eax, 0x40e02c
call fcn.00404f71
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4050a2
cmp dword [ebp + 0x10], edi
jne 0x4050b0
mov dword [0x411108], esi
push dword [ebp + 8]
call fcn.00404f2f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4050af
push 8
call fcn.00406eaf
pop ecx
ret
call fcn.004037a7
ret

Function at 0x40539a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40ecdc]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40f0b0]
je 0x4053cf
inc eax
cmp eax, 0x13
jb 0x4053c0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f0b0]
jne 0x4054f5
mov eax, dword [0x4110a0]
cmp eax, 1
je 0x4054cd
cmp eax, edx
jne 0x4053ff
cmp dword [0x40ed04], 1
je 0x4054cd
cmp ecx, 0xfc
je 0x4054f5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405435
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405d90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404e30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405469
mov eax, edi
push eax
call fcn.00404e30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b47c
push edi
call fcn.00405e90
add esp, 0x10
push edi
call fcn.00404e30
push dword [esi + 0x40f0b4]
mov ebx, eax
call fcn.00404e30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403360
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405d90
push edi
push ebx
call fcn.00405da0
push 0x40b478
push ebx
call fcn.00405da0
push dword [esi + 0x40f0b4]
push ebx
call fcn.00405da0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405c8f
add esp, 0x2c
jmp 0x4054f5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f0b4]
push dword [esi]
call fcn.00404e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403003
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x405c8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41121c], ebx
push esi
push edi
jne 0x405d0f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405d4a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40bd64
push edi
call esi
test eax, eax
mov dword [0x41121c], eax
je 0x405d4a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x411220], eax
call esi
cmp dword [0x4110c8], 2
mov dword [0x411224], eax
jne 0x405d0f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41122c], eax
je 0x405d0f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x411228], eax
mov eax, dword [0x411228]
test eax, eax
je 0x405d54
call eax
test eax, eax
je 0x405d3b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41122c]
test eax, eax
je 0x405d3b
test byte [ebp - 8], 1
jne 0x405d54
cmp dword [0x4110d4], 4
jb 0x405d4e
or byte [ebp + 0x12], 0x20
jmp 0x405d73
xor eax, eax
jmp 0x405d83
or byte [ebp + 0x12], 4
jmp 0x405d73
mov eax, dword [0x411220]
test eax, eax
je 0x405d73
call eax
mov ebx, eax
test ebx, ebx
je 0x405d73
mov eax, dword [0x411224]
test eax, eax
je 0x405d73
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41121c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4060d0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4060d7
cmp ebx, dword [eax + 4]
jae 0x4060d7
xor eax, eax
jmp 0x4062c7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4060e8
xor eax, eax
inc eax
jmp 0x4062c6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4060fe
cmp ecx, edx
jae 0x406243
cmp dword [eax + 4], 0
je 0x406107
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4060ef
cmp dword [ebp + 8], 0
je 0x406129
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406243
cmp eax, esi
jae 0x406243
mov eax, dword [0x411230]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40614e
cmp dword [esi*4 + 0x411238], edi
je 0x406247
inc esi
cmp esi, eax
jl 0x40613c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062c3
cmp dword [ebp - 8], 0x1000000
jne 0x4062c3
test byte [ebp - 0xc], 0xcc
je 0x4061cc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4062c3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4062c3
cmp word [eax + 0x18], 0x10b
jne 0x4062c3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4062c3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4061cc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4061cc
test byte [ecx + 0x27], 0x80
jne 0x406243
push 1
push 0x411278
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4060e0
mov ecx, dword [0x411230]
test ecx, ecx
mov edx, ecx
jle 0x406200
lea eax, [ecx*4 + 0x411234]
cmp dword [eax], edi
je 0x406200
dec edx
sub eax, 4
test edx, edx
jg 0x4061f4
test edx, edx
jne 0x406231
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40620d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406225
lea eax, [edx*4 + 0x411238]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406213
cmp ecx, 0x10
jge 0x406231
inc ecx
mov dword [0x411230], ecx
push 0
push 0x411278
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060e0
xor eax, eax
jmp 0x4062c6
test esi, esi
jle 0x4060e0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x411278
call ebx
test eax, eax
jne 0x4060e0
cmp dword [esi*4 + 0x411238], edi
je 0x40629d
mov eax, dword [0x411230]
lea esi, [eax - 1]
test esi, esi
jl 0x40628b
cmp dword [esi*4 + 0x411238], edi
je 0x406287
dec esi
jns 0x40627b
test esi, esi
jge 0x40629b
cmp eax, 0x10
jge 0x406296
inc eax
mov dword [0x411230], eax
lea esi, [eax - 1]
jmp 0x40629d
je 0x4062b5
xor ecx, ecx
test esi, esi
jl 0x4062b5
lea eax, [ecx*4 + 0x411238]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4062a3
push 0
push 0x411278
call ebx
jmp 0x4060e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407bd7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x40ecdc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x407c08
xor eax, eax
jmp 0x407d91
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4127e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407c44
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00409fbb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407d1f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x407d5d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x407ca8
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407c99
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x407c79
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ce8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x407cf1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x407c6a
jmp 0x407cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x407d8c
cmp dword [ebp - 0x6c], edi
je 0x407d5d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x407d52
call fcn.0040525a
mov dword [eax], 9
call fcn.00405263
mov dword [eax], esi
jmp 0x407d87
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d47
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x407cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x407cf3
push dword [ebp - 0x6c]
call fcn.0040526c
pop ecx
jmp 0x407d87
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407d75
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x407d75
xor eax, eax
jmp 0x407d8f
call fcn.0040525a
mov dword [eax], 0x1c
call fcn.00405263
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x407d8f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00403003
add ebp, 0x3a0
leave
ret
Function at 0x40a44e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a4e9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4110c8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40a4e9
cmp eax, 1
je 0x40a50a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a4e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a4b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a4e5
xor eax, eax
inc eax
jmp 0x40a529
cmp edi, eax
jae 0x40a4ed
xor eax, eax
jmp 0x40a529
cmp eax, esi
jae 0x40a4f4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4110c8]
jmp 0x40a50d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100097d5
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100279f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10038054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x30]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
call fcn.10008c69
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.10008c69
mov byte [ebp - 4], 1
lea eax, [esi + 0x60]
push eax
lea ecx, [edi + 0x60]
call fcn.10008c69
mov byte [ebp - 4], 2
lea eax, [esi + 0x78]
push eax
lea ecx, [edi + 0x78]
call fcn.10008c69
or dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x1000ece9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10038054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.ini_GameMap.dat
mov dword [ebp - 0x60], ecx
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x14]
push 0x1002d3ec
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x1000ed44
push 0x131e
push str.d:cqclientcqclient_r176.06gamedata3droledata.cpp
lea eax, [ebp - 0x14]
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.1001d57d
add esp, 0x10
xor eax, eax
jmp 0x1000edfe
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
push 1
push 4
push eax
call esi
and dword [ebp - 0x68], 0
add esp, 0x10
cmp dword [ebp - 0x5c], 0
jbe 0x1000edf3
mov edi, dword [ebp - 0x60]
add edi, 0x140
mov dword [ebp - 0x70], edi
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
push 1
lea eax, [ebp - 0x6c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x64]
push 4
push eax
call esi
push ebx
push dword [ebp - 0x64]
lea eax, [ebp - 0x58]
push 1
push eax
call esi
mov eax, dword [ebp - 0x64]
push ebx
push 1
push 4
mov byte [ebp + eax - 0x58], 0
lea eax, [ebp - 0x18]
push eax
call esi
mov eax, dword [ebp - 0x6c]
add esp, 0x4c
mov dword [ebp - 0x60], eax
mov ecx, edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10007d15
mov edi, dword [ebp - 0x78]
lea esi, [ebp - 0x58]
mov eax, dword [ebp - 0x68]
add edi, 0x14
push 0x11
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
inc eax
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x5c]
jb 0x1000ed76
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002466f
leave
ret
Function at 0x10011daf
Capabilities:
Read file on windows
Terminate process

Disassembly:
push 0x4c
mov eax, 0x100291f3
call fcn.100246eb
mov dword [ebp - 0x38], ecx
mov esi, str.ini_pet.dat
lea edi, [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push 0x1002d3ec
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10011e02
push 0x12df
push str.d:cqclientcqclient_r176.06gamedata3droledata.cpp
lea eax, [ebp - 0x1c]
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.1001d57d
add esp, 0x10
xor eax, eax
jmp 0x10011f26
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 4
push eax
call edi
and dword [ebp - 0x34], 0
add esp, 0x10
cmp dword [ebp - 0x28], 0
jle 0x10011f1b
lea ecx, [ebp - 0x58]
call fcn.10009d9e
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
and dword [ebp - 0x24], 0
push esi
push 1
push 4
push eax
call edi
mov eax, dword [ebp - 0x24]
xor ebx, ebx
and dword [ebp - 0x2c], ebx
add esp, 0x10
test eax, eax
je 0x10011e81
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push esi
push 1
push 4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x58]
push eax
call fcn.100089a4
mov ecx, dword [ebp - 0x2c]
add ebx, dword [ebp - 0x20]
inc ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jb 0x10011e52
push esi
push 1
imul ebx, eax
lea eax, [ebp - 0x4c]
push 4
push eax
call edi
push esi
push 1
lea eax, [ebp - 0x40]
push 4
push eax
call edi
push esi
push 1
lea eax, [ebp - 0x48]
push 4
push eax
call edi
push esi
push 1
lea eax, [ebp - 0x44]
push 4
push eax
call edi
add esp, 0x40
lea eax, [ebp - 0x3c]
push esi
push 1
push 4
push eax
call edi
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push esi
push 1
push 4
push eax
call edi
mov eax, dword [ebp - 0x3c]
add esp, 0x20
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp - 0x58]
sar ecx, 2
add eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x4c]
add ebx, eax
cmp dword [ebp - 0x30], ebx
jne 0x10011f2c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ecx + 0x58]
call fcn.10008a57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10018805
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x28]
jl 0x10011e28
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
pop ecx
inc eax
call fcn.10024695
ret
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x10012d53
Capabilities:
Read file on windows

Disassembly:
push 0x190
mov eax, 0x10029298
call fcn.100246eb
mov dword [ebp - 0x17c], ecx
mov esi, str.ini_tips.dat
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x20]
push 0x1002d3ec
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10012dad
push 0x120f
push str.d:cqclientcqclient_r176.06gamedata3droledata.cpp
lea eax, [ebp - 0x20]
push eax
push str.ERROR:_file__s_not_found_at__s___d
call fcn.1001d57d
add esp, 0x10
xor eax, eax
jmp 0x10012f4e
push 8
pop ecx
push esi
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x40]
push 0x20
push 1
push eax
call edi
and dword [ebp - 0x18c], 0
lea eax, [ebp - 0x18c]
push esi
push 1
push 4
push eax
call edi
and dword [ebp - 0x178], 0
lea eax, [ebp - 0x178]
push esi
push 1
push 4
push eax
call edi
xor ebx, ebx
add esp, 0x30
mov dword [ebp - 0x188], ebx
cmp dword [ebp - 0x178], ebx
jbe 0x10012f43
mov eax, dword [ebp - 0x17c]
add eax, 0x70
mov dword [ebp - 0x190], eax
and dword [ebp - 0x19c], 0
and dword [ebp - 0x198], 0
and dword [ebp - 0x194], 0
xor eax, eax
inc eax
mov dword [ebp - 4], eax
and dword [ebp - 0x174], 0
push esi
push eax
lea eax, [ebp - 0x174]
push 4
push eax
call edi
and dword [ebp - 0x184], 0
add esp, 0x10
cmp dword [ebp - 0x174], 0
jbe 0x10012f0f
mov ebx, dword [ebp - 0x17c]
and dword [ebp - 0x180], 0
lea eax, [ebp - 0x180]
push esi
push 1
push 4
push eax
call edi
push esi
push dword [ebp - 0x180]
lea eax, [ebp - 0x140]
push 1
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
call fcn.10008c8d
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.10014d15
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.1001dcd4
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x19c]
push eax
call fcn.10008bc6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x170]
call fcn.10018b91
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.10018b6b
mov eax, dword [ebp - 0x184]
inc eax
mov dword [ebp - 0x184], eax
cmp eax, dword [ebp - 0x174]
jb 0x10012e64
mov ebx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x19c]
push eax
call fcn.10008b38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.10018b17
inc ebx
mov dword [ebp - 0x188], ebx
cmp ebx, dword [ebp - 0x178]
jb 0x10012e18
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
pop ecx
inc eax
call fcn.10024695
ret
Function at 0x1001ccc9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10038054]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.1001a4e9
lea eax, [ebp - 0x404]
mov byte [ebp - 5], 0
push 0x1002d6ec
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002466f
leave
ret

Function at 0x1001d57d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x10038054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1001d72b
push ebx
push esi
push edi
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x504]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x504]
push 0x3ff
push eax
call fcn.1001a4e9
add esp, 0x20
mov byte [ebp - 0x105], bl
mov edi, ebx
mov esi, 0x100385e0
lea eax, [ebp - 0x504]
push eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1001d5fc
add esi, 0x400
inc edi
cmp esi, 0x1003d5e0
jl 0x1001d5da
push 0x14
pop esi
cmp edi, esi
jl 0x1001d728
push 0x400
lea eax, [ebp - 0x504]
push eax
mov eax, dword [0x1003d5e0]
shl eax, 0xa
add eax, 0x100385e0
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov ecx, dword [0x1003d5e0]
xor edx, edx
mov eax, ecx
shl eax, 0xa
mov byte [eax + 0x100389df], bl
lea eax, [ecx + 1]
div esi
lea eax, [ebp - 0x508]
push eax
mov dword [0x1003d5e0], edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time32]
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime32]
mov esi, str.debug.log
lea edi, [ebp - 0x104]
push 0xf6
mov ebx, eax
lea eax, [ebp - 0xfa]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.VCRUNTIME140.dll_memset
push str.debug
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 0x24
test ebx, ebx
jne 0x1001d6b8
push 0x2a0
push str.d:cqclientcqclient_r176.06_basecode_basefunc.cpp
push str.newtime
push str.CHECK
push 0x1002c314
call fcn.1001d57d
add esp, 0x14
jmp 0x1001d728
push dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
inc eax
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
push str.._debug__u__u__u.log
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.1001a485
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push 0x1002d6dc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x20
test esi, esi
je 0x1001d728
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime32]
push eax
lea eax, [ebp - 0x504]
push eax
push str._s_____s
push esi
call fcn.1001eb80
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002466f
leave
ret