joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc8b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bc8df
pop edi
xor eax, eax
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x500
lea edx, [edi + 0x504]
push edx
push esi
call ebx
test eax, eax
jne 0x4bc90f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
push 0
lea eax, [esp + 0x14]
push eax
push 0xc0
add edi, 0xac4
push edi
push esi
call ebx
push esi
test eax, eax
je 0x4bc901
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4c07c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c07f3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x4c0838
cmp dword [esp + 0x10], 0x61208
jne 0x4c0838
push 0
lea edx, [esp + 0x10]
push edx
push 0xa8
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x4c0848
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esp + 0xc], 0xa8
push esi
ja 0x4c0839
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x4c0870
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c08d6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0x61208
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0xa8
add ebx, 4
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4e8c80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6b8f0c]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e8d58
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x4e8ce0
cmp dword [esp + 0x10], 0x6060801
je 0x4e8cfb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0057d76e
add esp, 0x18
ret 4
push 0
lea edx, [esp + 0x10]
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4e8ce1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4e8d57
mov ecx, dword [0x6c9914]
test ecx, ecx
je 0x4e8d57
mov edx, dword [esp + 0x18]
push edx
call fcn.0048bd70
mov eax, dword [esp + 0x14]
mov ecx, dword [0x6c9914]
push eax
call fcn.0048b0a0
fld dword [esp + 0x1c]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x6f7eb8
call fcn.005529a0
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.0057d76e
add esp, 0x18
ret 4

Function at 0x4e8d70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6b8f0c]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x6c9914]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x4e8e0a
call fcn.0048bd60
fld dword [0x6f7ef8]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x6c9914]
mov cx, word [eax + 0x688]
fstp dword [esp + 0x24]
push 0
push 0x40000000
push esi
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e8e0a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x6060801
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.0057d76e
add esp, 0x18
ret 4
Function at 0x4e9ce0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x6b8f0c]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, ecx
test ebx, ebx
je 0x4e9dc9
push ebp
push edi
push 0
mov ecx, 0x6f87e0
call fcn.0055f6d0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x14]
push str._sData
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
mov edx, dword [esi + 0x18]
push edx
push 0
mov ecx, 0x6f87e0
call fcn.0055f6d0
push eax
lea eax, [esp + 0x18]
push str._sData_d
push eax
call edi
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
test bl, 1
je 0x4e9d95
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6f87e0
call fcn.0055f6d0
push eax
lea edx, [esp + 0x1c]
push str._sData_d_d.UII
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004e9630
test bl, 2
je 0x4e9dc7
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6f87e0
call fcn.0055f6d0
push eax
lea ecx, [esp + 0x1c]
push str._sData_d_d.UIS
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004e8d70
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.0057d76e
add esp, 0x108
ret 4
Function at 0x4ff330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov eax, dword [0x6b8f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3e8], 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.0057de30
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Cfg.ini
lea edx, [ebp - 0x108]
push edx
call fcn.0057f7c0
add esp, 8
push 0xff
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x308]
push ecx
call fcn.0057de30
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Config.ini
lea edx, [ebp - 0x308]
push edx
call fcn.0057f7c0
add esp, 8
lea eax, [ebp - 0x308]
push eax
push str.admin
lea ecx, [ebp - 0x108]
push ecx
call fcn.004ff790
add esp, 0xc
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057df40
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push str.Power
push str.AddPoint
call fcn.00513f30
add esp, 0x10
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0057e8ea
add esp, 4
mov edx, dword [ebp - 0x3e8]
mov dword [edx + 0x24c], eax
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057df40
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5a9b38
push str.AddPoint
call fcn.00513f30
add esp, 0x10
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057e8ea
add esp, 4
mov ecx, dword [ebp - 0x3e8]
mov dword [ecx + 0x250], eax
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057df40
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push 0x5a9b34
push str.AddPoint
call fcn.00513f30
add esp, 0x10
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0057e8ea
add esp, 4
mov edx, dword [ebp - 0x3e8]
mov dword [edx + 0x254], eax
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057df40
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5a9b30
push str.AddPoint
call fcn.00513f30
add esp, 0x10
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057e8ea
add esp, 4
mov ecx, dword [ebp - 0x3e8]
mov dword [ecx + 0x258], eax
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d76e
mov esp, ebp
pop ebp
ret
Function at 0x4ff540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov eax, dword [0x6b8f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3e8], ecx
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057df40
add esp, 0xc
mov ecx, dword [ebp - 0x3e8]
mov edx, dword [ecx + 0x24c]
push edx
push 0x59df40
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057dcef
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push str.Power
push str.AddPoint
call fcn.00513eb0
add esp, 0x10
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057df40
add esp, 0xc
mov eax, dword [ebp - 0x3e8]
mov ecx, dword [eax + 0x250]
push ecx
push 0x59df40
lea edx, [ebp - 0x3d0]
push edx
call fcn.0057dcef
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push 0x5a9b38
push str.AddPoint
call fcn.00513eb0
add esp, 0x10
push 0xc8
push 0
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0057df40
add esp, 0xc
mov edx, dword [ebp - 0x3e8]
mov eax, dword [edx + 0x254]
push eax
push 0x59df40
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0057dcef
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea edx, [ebp - 0x3d0]
push edx
push 0x5a9b34
push str.AddPoint
call fcn.00513eb0
add esp, 0x10
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057df40
add esp, 0xc
mov ecx, dword [ebp - 0x3e8]
mov edx, dword [ecx + 0x258]
push edx
push 0x59df40
lea eax, [ebp - 0x3d0]
push eax
call fcn.0057dcef
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5a9b30
push str.AddPoint
call fcn.00513eb0
add esp, 0x10
push 0xff
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x108]
push eax
call fcn.0057de30
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x108]
push ecx
call fcn.0057f7c0
add esp, 8
push 0xff
lea edx, [ebp - 0x308]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x308]
push eax
call fcn.0057de30
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Cfg.ini
lea ecx, [ebp - 0x308]
push ecx
call fcn.0057f7c0
add esp, 8
lea edx, [ebp - 0x308]
push edx
push str.admin
lea eax, [ebp - 0x108]
push eax
call fcn.004ff8a0
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d76e
mov esp, ebp
pop ebp
ret
Function at 0x501890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
push 0x5a9db4
mov eax, dword [ebp + 8]
push eax
call fcn.0057db40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50199e
mov ecx, dword [ebp - 8]
push ecx
push 0x118
push 1
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
call fcn.00581b33
add esp, 0x10
cmp eax, 0x118
je 0x5018e8
jmp 0x501990
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x118]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x11c]
lea ecx, [eax + ecx*2]
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x120], ecx
je 0x50190d
jmp 0x501990
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x124]
push ecx
call fcn.0057d0b8
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x501933
jmp 0x501990
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x124]
push eax
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00581b33
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x124], eax
je 0x50195f
jmp 0x501990
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x118]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x11c]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x124]
mov dword [edx + 0xc], ecx
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call fcn.0057d8f6
add esp, 4
jmp 0x5019a2
xor al, al
jmp 0x5019e1
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x5019d2
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x10], 0
je 0x5019d2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0057e035
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 1]
mov byte [eax + 0x128], cl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4

Function at 0x503070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6b8f0c]
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.0057de30
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0057f7c0
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.0057d76e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50e3d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x513f30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6b8f0c]
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.0057de30
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0057f7c0
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.0057d76e
mov esp, ebp
pop ebp
ret

Function at 0x515660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], vtable.PingManager.0
mov ecx, dword [ebp - 0xc]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
push 0x1e
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.0056e6e0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2c], 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
push 0
push 0
push 0
push 0x515b10
push 0
push 0
call fcn.00581c15
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x515d00
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x6b8f0c]
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.0057df40
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x515d54
xor al, al
jmp 0x515dfb
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 0x515d7b
xor al, al
jmp 0x515dfb
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 0x515dba
xor al, al
jmp 0x515dfb
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 0x515df9
xor al, al
jmp 0x515dfb
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057d76e
mov esp, ebp
pop ebp
ret
Function at 0x520bf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov eax, dword [0x6b8f0c]
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 0x520c47
push 0x7c9
mov ecx, 0x6cb8c8
call fcn.004c2360
push eax
push 0x1d
push 0x6cb8c8
call fcn.004c35b0
add esp, 0xc
xor eax, eax
jmp 0x520e71
mov dword [ebp - 4], 0
mov ecx, dword [0x6f5d24]
mov edx, dword [ecx]
mov eax, dword [0x6f5d24]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x74c], eax
lea edx, [ebp - 4]
push edx
push 0x5ab128
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 0x520c92
xor eax, eax
jmp 0x520e71
mov ecx, dword [ebp - 0x748]
xor edx, edx
cmp dword [ecx + 0xc], 0
setne dl
test edx, edx
jne 0x520cfd
push str.bdcap32.dll
mov ecx, dword [ebp - 0x748]
call fcn.00521660
test eax, eax
jge 0x520cdf
push 0x7ca
mov ecx, 0x6cb8c8
call fcn.004c2360
push eax
push 0x1d
push 0x6cb8c8
call fcn.004c35b0
add esp, 0xc
xor eax, eax
jmp 0x520e71
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 0x520e6c
lea ecx, [ebp - 0x378]
call fcn.00521550
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.00520f30
push 0
mov ecx, 0x6f87e0
call fcn.0055f6d0
push eax
push str._sScreenShot
lea ecx, [ebp - 0x480]
push ecx
call fcn.0057dcef
add esp, 0xc
push 0
lea edx, [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x520da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x520da9
push 0x7cc
mov ecx, 0x6cb8c8
call fcn.004c2360
push eax
push 0x1d
push 0x6cb8c8
call fcn.004c35b0
add esp, 0xc
xor eax, eax
jmp 0x520e71
lea eax, [ebp - 0x534]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x5ab25c
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.0057dd73
add esp, 0x34
lea ecx, [ebp - 0x110]
push ecx
push 0x7cd
mov ecx, 0x6cb8c8
call fcn.004c2360
push eax
push 0x1d
push 0x6cb8c8
call fcn.004c35b0
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.00521820
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x520e6c
xor eax, eax
jmp 0x520e71
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057d76e
mov esp, ebp
pop ebp
ret
Function at 0x521bb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jne 0x521c03
mov eax, dword [esp + 8]
push 0x5ab2f4
push eax
call fcn.0057db40
mov esi, eax
add esp, 8
test esi, esi
je 0x521c39
mov edx, dword [esp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
jmp 0x521be0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x521be0
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.0058186f
push esi
call fcn.0057d8f6
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret 0xc
cmp eax, 1
jne 0x521c39
mov ecx, dword [esp + 8]
push 0x5ab2f0
push ecx
call fcn.0057db40
mov esi, eax
add esp, 8
test esi, esi
je 0x521c39
mov edx, dword [esp + 0xc]
push edx
push 0x5ab2ec
push esi
call fcn.0057d77d
push esi
call fcn.0057d8f6
add esp, 0x10
xor eax, eax
pop esi
ret 0xc
Function at 0x5233b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x6b8f0c]
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 0x5233de
xor eax, eax
jmp 0x52349a
push 0x59bd48
push edi
call fcn.0057db40
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 0x5233f6
mov eax, dword [esi + 4]
test eax, eax
je 0x5233d7
push ebx
push ebp
push 2
push 0
push eax
call fcn.00581d3f
mov eax, dword [esi + 4]
push eax
call fcn.00582087
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
mov ebx, eax
call fcn.00581d3f
add esp, 0x1c
mov ecx, esi
call fcn.00522910
mov edx, dword [esi + 4]
push edx
push 1
lea edi, [esi + 0x18]
push 0xc
push edi
call fcn.00581b33
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.00576ce0
test eax, eax
jne 0x5234b3
push eax
push 0x38
push str.MHFile.cpp
call fcn.00528360
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.Bin_File_Version_Error_____s
push edx
call fcn.0057dcef
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.0057d76e
add esp, 0x208
ret 4
lea ecx, [esi + 0x148]
call fcn.00576c90
test eax, eax
je 0x523557
lea edi, [ebx - 0xe]
push edi
call fcn.0057d0b8
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x5234eb
push eax
push 0x49
push str.MHFile.cpp
call fcn.00528360
add esp, 0xc
jmp 0x523496
push edi
push 0
push eax
call fcn.0057df40
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.005770a0
test eax, eax
jne 0x523537
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push str.File_Open_Error_:__s
push edx
call fcn.0057dcef
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x1c]
jmp 0x52348d
mov ecx, dword [esi + 4]
push ecx
call fcn.0057d8f6
mov eax, 1
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 0x2c], eax
jmp 0x523498
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x24]
push 1
push eax
call fcn.00581b33
mov eax, dword [esi + 0x20]
add esp, 0x10
test eax, eax
je 0x52358e
push eax
call fcn.0057d0b8
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.00581b33
add esp, 0x14
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x25]
push 1
push ecx
call fcn.00581b33
mov edx, dword [esi + 4]
push edx
call fcn.0057d8f6
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00522d80
test eax, eax
je 0x523496
call fcn.005228d0
test eax, eax
je 0x523496
mov eax, 1
mov dword [esi + 0x2c], eax
jmp 0x523498