joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fdbc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
push 0xff
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x108]
push ecx
call fcn.0056d4e0
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0056eac0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
push 0xff
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret 0x10

Function at 0x50baa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x108]
push ecx
call fcn.0056d4e0
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0056eac0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
push 0xff
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret

Function at 0x50d020
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b38b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6b3854]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.PingManager.0
mov ecx, dword [ebp - 0x18]
add ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
push 0x1e
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.0052ac80
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x2c], 1
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], 0
push 0
push 0
push 0
push 0x50d650
push 0
push 0
call fcn.00570f15
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x50d7d0
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
xor eax, eax
mov word [ebp - 0x198], ax
push 0x18e
push 0
lea ecx, [ebp - 0x196]
push ecx
call fcn.0056d540
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x50d824
xor al, al
jmp 0x50d8cb
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1a4]
cmp dword [edx + 4], 0xffffffff
jne 0x50d84b
xor al, al
jmp 0x50d8cb
mov dword [ebp - 0x19c], 0x7d0
push 4
lea eax, [ebp - 0x19c]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x50d88a
xor al, al
jmp 0x50d8cb
mov dword [ebp - 0x19c], 0x7d0
push 4
lea eax, [ebp - 0x19c]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x50d8c9
xor al, al
jmp 0x50d8cb
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret
Function at 0x518680
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x748], ecx
mov eax, dword [ebp - 0x748]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x748]
push edx
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
je 0x5186d7
push 0x7c9
mov ecx, 0x6c6100
call fcn.004c00d0
push eax
push 0x1d
push 0x6c6100
call fcn.004c13e0
add esp, 0xc
xor eax, eax
jmp 0x518901
mov dword [ebp - 4], 0
mov ecx, dword [0x6f034c]
mov edx, dword [ecx]
mov eax, dword [0x6f034c]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x74c], eax
lea edx, [ebp - 4]
push edx
push 0x5a0038
mov eax, dword [ebp - 0x74c]
push eax
mov ecx, dword [ebp - 0x74c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x134]
call eax
test eax, eax
jne 0x518722
xor eax, eax
jmp 0x518901
mov ecx, dword [ebp - 0x748]
xor edx, edx
cmp dword [ecx + 0xc], 0
setne dl
test edx, edx
jne 0x51878d
push str.bdcap32.dll
mov ecx, dword [ebp - 0x748]
call fcn.00518a20
test eax, eax
jge 0x51876f
push 0x7ca
mov ecx, 0x6c6100
call fcn.004c00d0
push eax
push 0x1d
push 0x6c6100
call fcn.004c13e0
add esp, 0xc
xor eax, eax
jmp 0x518901
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
mov eax, dword [ebp - 0x748]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x748]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0x748]
xor edx, edx
cmp dword [ecx + 0xc], 0
setne dl
test edx, edx
je 0x5188fc
lea ecx, [ebp - 0x378]
call fcn.00518910
push 0x3c
push 0x1e
mov eax, dword [ebp - 0x748]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x748]
push edx
mov eax, dword [ecx + 0x40]
call eax
mov ecx, dword [ebp - 0x748]
call fcn.00518db0
push 0
mov ecx, 0x6f2e08
call fcn.00552be0
push eax
push str._sScreenShot
lea ecx, [ebp - 0x480]
push ecx
call fcn.0056d39f
add esp, 0xc
push 0
lea edx, [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x518839
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x518839
push 0x7cc
mov ecx, 0x6c6100
call fcn.004c00d0
push eax
push 0x1d
push 0x6c6100
call fcn.004c13e0
add esp, 0xc
xor eax, eax
jmp 0x518901
lea eax, [ebp - 0x534]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x5a016c
movzx ecx, word [ebp - 0x526]
push ecx
movzx edx, word [ebp - 0x528]
push edx
movzx eax, word [ebp - 0x52a]
push eax
movzx ecx, word [ebp - 0x52c]
push ecx
movzx edx, word [ebp - 0x52e]
push edx
movzx eax, word [ebp - 0x532]
push eax
movzx ecx, word [ebp - 0x534]
push ecx
push str.Capture
lea edx, [ebp - 0x480]
push edx
push str._s_s__d__02d__02d__02d__02d__02d__03d._s
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.0056d423
add esp, 0x34
lea ecx, [ebp - 0x110]
push ecx
push 0x7cd
mov ecx, 0x6c6100
call fcn.004c00d0
push eax
push 0x1d
push 0x6c6100
call fcn.004c13e0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 4
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x748]
push ecx
call fcn.00518be0
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x5188fc
xor eax, eax
jmp 0x518901
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret
Function at 0x519130
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jne 0x519183
mov eax, dword [esp + 8]
push 0x5a01ec
push eax
call fcn.0056d1ef
mov esi, eax
add esp, 8
test esi, esi
je 0x5191b9
mov edx, dword [esp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
jmp 0x519160
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x519160
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.00570b6f
push esi
call fcn.0056cfa5
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret 0xc
cmp eax, 1
jne 0x5191b9
mov ecx, dword [esp + 8]
push 0x5a01e8
push ecx
call fcn.0056d1ef
mov esi, eax
add esp, 8
test esi, esi
je 0x5191b9
mov edx, dword [esp + 0xc]
push edx
push 0x5a01e4
push esi
call fcn.0056ce2c
push esi
call fcn.0056cfa5
add esp, 0x10
xor eax, eax
pop esi
ret 0xc
Function at 0x51a500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x6b3854]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
mov edi, dword [esp + 0x214]
mov esi, ecx
mov dword [esp + 8], edi
test edi, edi
jne 0x51a52e
xor eax, eax
jmp 0x51a5ea
push 0x59195c
push edi
call fcn.0056d1ef
lea edx, [esi + 0x30]
add esp, 8
mov dword [esi + 4], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x51a546
mov eax, dword [esi + 4]
test eax, eax
je 0x51a527
push ebx
push ebp
push 2
push 0
push eax
call fcn.0057103f
mov eax, dword [esi + 4]
push eax
call fcn.00571387
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
mov ebx, eax
call fcn.0057103f
add esp, 0x1c
mov ecx, esi
call fcn.00519d10
mov edx, dword [esi + 4]
push edx
push 1
lea edi, [esi + 0x18]
push 0xc
push edi
call fcn.00570e33
mov eax, dword [edi]
sub eax, dword [esi + 0x1c]
add esp, 0x10
sub eax, dword [esi + 0x20]
lea ecx, [esi + 0x148]
push eax
call fcn.00569440
test eax, eax
jne 0x51a603
push eax
push 0x38
push str.MHFile.cpp
call fcn.0051eca0
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.Bin_File_Version_Error_____s
push edx
call fcn.0056d39f
add esp, 0x18
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.0056ca39
add esp, 0x208
ret 4
lea ecx, [esi + 0x148]
call fcn.005693f0
test eax, eax
je 0x51a6a7
lea edi, [ebx - 0xe]
push edi
call fcn.0056c6f8
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x51a63b
push eax
push 0x49
push str.MHFile.cpp
call fcn.0051eca0
add esp, 0xc
jmp 0x51a5e6
push edi
push 0
push eax
call fcn.0056d540
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 4]
add esp, 0xc
push ecx
push edi
push edx
push eax
lea ecx, [esi + 0x148]
call fcn.005694c0
test eax, eax
jne 0x51a687
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push str.File_Open_Error_:__s
push edx
call fcn.0056d39f
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x1c]
jmp 0x51a5dd
mov ecx, dword [esi + 4]
push ecx
call fcn.0056cfa5
mov eax, 1
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 0x2c], eax
jmp 0x51a5e8
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x24]
push 1
push eax
call fcn.00570e33
mov eax, dword [esi + 0x20]
add esp, 0x10
test eax, eax
je 0x51a6de
push eax
call fcn.0056c6f8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
push 1
push eax
mov dword [esi + 0x28], eax
call fcn.00570e33
add esp, 0x14
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x25]
push 1
push ecx
call fcn.00570e33
mov edx, dword [esi + 4]
push edx
call fcn.0056cfa5
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], 0
call fcn.004877c0
test eax, eax
je 0x51a5e6
call fcn.00519cd0
test eax, eax
je 0x51a5e6
mov eax, 1
mov dword [esi + 0x2c], eax
jmp 0x51a5e8
Function at 0x51cb90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58b9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6b3854]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6b3854]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [0x6c414c]
mov esi, dword [esp + 0x4c]
test eax, eax
je 0x51ce1e
test esi, esi
je 0x51ce1e
cmp byte [eax + 0x450], 0
je 0x51ce1e
cmp dword [0x6d5304], esi
jne 0x51cc01
mov eax, dword [0x6c506c]
sub eax, dword [0x6d5300]
cmp eax, 0x64
jbe 0x51ce1e
mov ecx, esi
call fcn.0048d6b0
cmp al, 0x14
je 0x51ce1e
mov al, byte [esp + 0x50]
test al, 1
je 0x51cd2d
mov eax, dword [esi + 0x129]
cmp dword [0x6c4cc4], eax
jne 0x51ce1e
mov ecx, dword [0x6c414c]
cmp byte [ecx + 0x149], 0
je 0x51cc61
push 0x531
mov ecx, 0x6c6100
call fcn.004c00d0
push eax
push 0x1d
push 0x6c6100
call fcn.004c13e0
add esp, 0xc
jmp 0x51ce1e
push esi
call fcn.0051c000
add esp, 4
test eax, eax
je 0x51ce1e
mov edx, dword [0x6c414c]
cmp byte [edx + 0x451], 0
je 0x51ccd1
mov eax, dword [esi + 0x129]
push eax
mov ecx, 0x6c50d0
call fcn.004b6eb0
test eax, eax
je 0x51cc9d
push 0x276
jmp 0x51cc42
mov eax, dword [0x6c414c]
push esi
push eax
call fcn.00401f20
mov ecx, eax
call fcn.004e99f0
test eax, eax
je 0x51ccbb
push 0x3a4
jmp 0x51cc42
mov ecx, dword [0x6c414c]
push esi
push ecx
mov ecx, 0x6d0078
call fcn.004ec830
test eax, eax
jne 0x51ccb4
lea ecx, [esp + 8]
call fcn.00538ac0
push 0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0
call fcn.005387e0
mov ecx, dword [0x6c414c]
lea edx, [esp + 8]
push edx
call fcn.0044ecb0
mov ecx, dword [0x6c414c]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00402f70
mov ecx, eax
call fcn.00531700
mov edx, dword [0x6c506c]
mov dword [0x6d5300], edx
lea ecx, [esp + 8]
jmp 0x51ce0b
test al, 4
je 0x51ce1e
mov eax, dword [0x6c414c]
cmp byte [eax + 0x149], 0
jne 0x51cc3d
push esi
call fcn.0051c000
add esp, 4
test eax, eax
je 0x51ce1e
mov ecx, dword [0x6c414c]
cmp byte [ecx + 0x451], 0
je 0x51cdb5
mov eax, dword [esi + 0x129]
push eax
mov ecx, 0x6c50d0
call fcn.004b6eb0
test eax, eax
jne 0x51cc96
mov edx, dword [0x6c414c]
push esi
push edx
call fcn.00401f20
mov ecx, eax
call fcn.004e99f0
test eax, eax
jne 0x51ccb4
mov eax, dword [0x6c414c]
push esi
push eax
mov ecx, 0x6d0078
call fcn.004ec830
test eax, eax
jne 0x51ccb4
lea ecx, [esp + 0x20]
call fcn.00538ac0
push 0
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 1
call fcn.005387e0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x6c414c]
call fcn.0044ecb0
mov eax, dword [0x6c414c]
push 0
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00402f70
mov ecx, eax
call fcn.00531700
mov ecx, dword [0x6c506c]
mov dword [0x6d5300], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
mov dword [0x6d5304], esi
call fcn.00407d10
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0056ca39
add esp, 0x40
ret 8
Function at 0x51dde0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x114
mov eax, dword [0x6b3854]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x18]
mov ebx, ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x51de07
movsx eax, byte [esi]
push eax
call fcn.0057172a
add esp, 4
test eax, eax
je 0x51deb6
lea ecx, [esp + 0x18]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x51de4f
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Error:__u_n
call fcn.0056eeb0
add esp, 8
xor eax, eax
jmp 0x51df22
movsx edx, word [esi + 0xa]
movsx eax, word [esi + 8]
mov ecx, dword [esi + 4]
push edi
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
call fcn.0056eeb0
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 0x14
cmp dword [eax], edi
je 0x51deb5
movsx ecx, word [esi + 0xa]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0056d640
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea edx, [esp + 0x20]
push 0x59161c
push edx
call fcn.0056d39f
mov eax, dword [esi + 0xc]
inc edi
lea eax, [eax + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x51de77
pop edi
lea ecx, [esp + 0x18]
push ecx
push 0x20
push 0x6d4254
call fcn.00571675
mov edx, dword [0x6d42b0]
mov esi, dword [esp + 0x130]
imul edx, edx, 0x58
add esp, 0xc
cmp si, word [edx + 0x6ef400]
jne 0x51deff
cmp dword [0x6d4278], 0
je 0x51deff
cmp dword [0x6d42ac], 0
jne 0x51deff
mov ecx, 0x6d4278
call fcn.0050e590
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebx + 0x118], eax
mov eax, ecx
mov ecx, dword [esp + 0x118]
pop esi
pop ebx
xor ecx, esp
call fcn.0056ca39
add esp, 0x114
ret 8
Function at 0x51dfa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6b3854]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
cmp byte [esi + 1], 0x52
push edi
mov edi, ecx
jb 0x51dfd5
push 0
push 0xb9
push str.MHNetwork.cpp
call fcn.0051eca0
add esp, 0xc
lea eax, [esp + 0xc]
push ebx
mov dword [esp + 0x10], 0x56734661
mov dword [esp + 0x14], 0x31313561
mov dword [esp + 0x18], 0x76465341
mov dword [esp + 0x1c], 0x534d6163
mov dword [esp + 0x20], 0x215e5953
mov dword [esp + 0x24], 0x76732440
mov dword [esp + 0x28], 0x3172415a
mov dword [esp + 0x2c], 0x21405e26
mov dword [esp + 0x30], 0x7866732a
mov byte [esp + 0x34], 0
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51e030
sub eax, ecx
mov ecx, eax
xor edx, edx
lea ebx, [ecx - 1]
mov eax, ebp
div ebx
dec ecx
pop ebx
mov al, byte [esp + edx + 0xc]
xor byte [esi + 1], al
xor edx, edx
mov eax, ebp
div ecx
mov cl, byte [esp + edx + 0xc]
xor byte [esi + 2], cl
mov dl, byte [edi + 0x11c]
mov byte [esi], dl
mov eax, dword [edi + 0x118]
inc byte [edi + 0x11c]
test eax, eax
je 0x51e083
mov edi, dword [edi + 0x114]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
push ebp
push esi
push eax
push edi
call edx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0056ca39
add esp, 0x2c
ret 8
Function at 0x51eca0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6d5ba8], 0
je 0x51ecfa
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x6d5aa8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x6d5aa8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x51ecf5
int3
jmp 0x51eec6
cmp dword [ebp + 0x10], 0
je 0x51ed22
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d__msg:_s_
lea eax, [ebp - 0x118]
push eax
call fcn.0056d39f
add esp, 0x14
jmp 0x51ed3e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d_
lea eax, [ebp - 0x118]
push eax
call fcn.0056d39f
add esp, 0x10
mov byte [ebp - 0x218], 0
push 0xff
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.0056d540
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push str.._Log_Assert__4d_02d_02d.txt
lea eax, [ebp - 0x218]
push eax
call fcn.0056d39f
add esp, 0x14
cmp dword [0x6d5c00], 0
jne 0x51eec6
push 0
lea ecx, [ebp - 0x2b0]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x51ee1f
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5a0674
lea ecx, [ebp - 0x218]
push ecx
call fcn.0056d1ef
add esp, 8
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x51ee1a
call fcn.0051efe0
push eax
lea edx, [ebp - 0x118]
push edx
push str._stime:_s_n
mov eax, dword [ebp - 0x2b4]
push eax
call fcn.0056ce2c
add esp, 0x10
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.0056cfa5
add esp, 4
jmp 0x51eec6
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x224]
shl ecx, 0x10
or ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 0xf4240
ja 0x51eebc
push 0x5a0674
lea eax, [ebp - 0x218]
push eax
call fcn.0056d1ef
add esp, 8
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x51eeba
call fcn.0051efe0
push eax
lea ecx, [ebp - 0x118]
push ecx
push str._stime:_s_n
mov edx, dword [ebp - 0x2b8]
push edx
call fcn.0056ce2c
add esp, 0x10
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.0056cfa5
add esp, 4
jmp 0x51eec6
mov dword [0x6d5c00], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret
Function at 0x51fa00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x6b3854]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x1ff
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.0056d540
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x51fa58
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d__msg:_s_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0056d39f
add esp, 0x14
jmp 0x51fa74
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_line:_d_
lea ecx, [ebp - 0x218]
push ecx
call fcn.0056d39f
add esp, 0x10
mov byte [ebp - 0x318], 0
push 0xff
push 0
lea edx, [ebp - 0x317]
push edx
call fcn.0056d540
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0xe]
push ecx
movzx edx, word [ebp - 0x12]
push edx
movzx eax, word [ebp - 0x14]
push eax
push str.._Log_Debug__4d_02d_02d.txt
lea ecx, [ebp - 0x318]
push ecx
call fcn.0056d39f
add esp, 0x14
cmp dword [0x6d5e48], 0
jne 0x51fbfc
push 0
lea edx, [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
jne 0x51fb55
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5a0674
lea edx, [ebp - 0x318]
push edx
call fcn.0056d1ef
add esp, 8
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
je 0x51fb50
call fcn.0051efe0
push eax
lea eax, [ebp - 0x218]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x3b4]
push ecx
call fcn.0056ce2c
add esp, 0x10
mov edx, dword [ebp - 0x3b4]
push edx
call fcn.0056cfa5
add esp, 4
jmp 0x51fbfc
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x324]
shl edx, 0x10
or edx, dword [ebp - 0x31c]
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x320], 0xf4240
ja 0x51fbf2
push 0x5a0674
lea ecx, [ebp - 0x318]
push ecx
call fcn.0056d1ef
add esp, 8
mov dword [ebp - 0x3b8], eax
cmp dword [ebp - 0x3b8], 0
je 0x51fbf0
call fcn.0051efe0
push eax
lea edx, [ebp - 0x218]
push edx
push str._stime:_s_n
mov eax, dword [ebp - 0x3b8]
push eax
call fcn.0056ce2c
add esp, 0x10
mov ecx, dword [ebp - 0x3b8]
push ecx
call fcn.0056cfa5
add esp, 4
jmp 0x51fbfc
mov dword [0x6d5e48], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ca39
mov esp, ebp
pop ebp
ret