joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba970
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x6bc429], 0
push esi
mov esi, ecx
je 0x4ba993
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6da304], eax
mov byte [0x6bc429], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6da304], eax
cmp eax, ecx
jae 0x4ba9aa
dec edx
mov dword [0x6da2fc], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6da2fc]
add dword [0x6da300], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4ba9d4
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret
Function at 0x4c3160
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 0x4c318f
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 0x4c31bf
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 0x4c31b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4c70d0
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 0x4c7103
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 0x4c7148
cmp dword [esp + 0x10], 0x61208
jne 0x4c7148
push 0
lea edx, [esp + 0x10]
push edx
push 0xa8
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x4c7158
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 0x4c7149
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x4c7180
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 0x4c71e6
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 0x4c7760
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 0x80]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
cmp eax, dword [esi + 0x7c]
je 0x4c777d
mov dword [ecx + 0xac], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
push 0
push 0x40000000
mov ecx, 0x2a
mov edi, ebx
push str.._ini_GameOption.opt
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c77e3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], 0x61208
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 0xa8
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4f07c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6c9384]
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 0x4f0898
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 0x4f0820
cmp dword [esp + 0x10], 0x6060801
je 0x4f083b
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.005837be
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 0x4f0821
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4f0897
mov ecx, dword [0x6d944c]
test ecx, ecx
je 0x4f0897
mov edx, dword [esp + 0x18]
push edx
call fcn.00490ff0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x6d944c]
push eax
call fcn.00490320
fld dword [esp + 0x1c]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x6fefe0
call fcn.0055a170
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.005837be
add esp, 0x18
ret 4

Function at 0x4f08b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6c9384]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x6d944c]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x4f094a
call fcn.00490fe0
fld dword [0x6ff020]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x6d944c]
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 0x4f094a
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.005837be
add esp, 0x18
ret 4
Function at 0x4f1820
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x6c9384]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, ecx
test ebx, ebx
je 0x4f1909
push ebp
push edi
push 0
mov ecx, 0x6c89d0
call fcn.00567310
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, 0x6c89d0
call fcn.00567310
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 0x4f18d5
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6c89d0
call fcn.00567310
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.004f1170
test bl, 2
je 0x4f1907
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6c89d0
call fcn.00567310
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.004f08b0
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.005837be
add esp, 0x108
ret 4
Function at 0x507190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x6c9384]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3d4], 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.00402910
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Cfg.ini
lea edx, [ebp - 0x108]
push edx
call fcn.00585820
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.00402910
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Config.ini
lea edx, [ebp - 0x308]
push edx
call fcn.00585820
add esp, 8
lea eax, [ebp - 0x308]
push eax
push str.admin
lea ecx, [ebp - 0x108]
push ecx
call fcn.005075f0
add esp, 0xc
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.00583f60
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push str.Power
push str.AddPoint
call fcn.0051b0e0
add esp, 0x10
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0058494a
add esp, 4
mov edx, dword [ebp - 0x3d4]
mov dword [edx + 0x24c], eax
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583f60
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5b0a78
push str.AddPoint
call fcn.0051b0e0
add esp, 0x10
lea edx, [ebp - 0x3d0]
push edx
call fcn.0058494a
add esp, 4
mov ecx, dword [ebp - 0x3d4]
mov dword [ecx + 0x250], eax
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.00583f60
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push 0x5b0a74
push str.AddPoint
call fcn.0051b0e0
add esp, 0x10
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0058494a
add esp, 4
mov edx, dword [ebp - 0x3d4]
mov dword [edx + 0x254], eax
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583f60
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5b0a70
push str.AddPoint
call fcn.0051b0e0
add esp, 0x10
lea edx, [ebp - 0x3d0]
push edx
call fcn.0058494a
add esp, 4
mov ecx, dword [ebp - 0x3d4]
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.005837be
mov esp, ebp
pop ebp
ret
Function at 0x5073a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x6c9384]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3d4], ecx
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583f60
add esp, 0xc
mov ecx, dword [ebp - 0x3d4]
mov edx, dword [ecx + 0x24c]
push edx
push 0x5a4f40
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583d3f
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push str.Power
push str.AddPoint
call fcn.0051b060
add esp, 0x10
push 0xc8
push 0
lea edx, [ebp - 0x3d0]
push edx
call fcn.00583f60
add esp, 0xc
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [eax + 0x250]
push ecx
push 0x5a4f40
lea edx, [ebp - 0x3d0]
push edx
call fcn.00583d3f
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea eax, [ebp - 0x3d0]
push eax
push 0x5b0a78
push str.AddPoint
call fcn.0051b060
add esp, 0x10
push 0xc8
push 0
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.00583f60
add esp, 0xc
mov edx, dword [ebp - 0x3d4]
mov eax, dword [edx + 0x254]
push eax
push 0x5a4f40
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.00583d3f
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea edx, [ebp - 0x3d0]
push edx
push 0x5b0a74
push str.AddPoint
call fcn.0051b060
add esp, 0x10
push 0xc8
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583f60
add esp, 0xc
mov ecx, dword [ebp - 0x3d4]
mov edx, dword [ecx + 0x258]
push edx
push 0x5a4f40
lea eax, [ebp - 0x3d0]
push eax
call fcn.00583d3f
add esp, 0xc
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x3d0]
push ecx
push 0x5b0a70
push str.AddPoint
call fcn.0051b060
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.00402910
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0x108]
push ecx
call fcn.00585820
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.00402910
add esp, 8
mov byte [eax + 1], 0
push str.._Ini_AdvancedSet_Cfg.ini
lea ecx, [ebp - 0x308]
push ecx
call fcn.00585820
add esp, 8
lea edx, [ebp - 0x308]
push edx
push str.admin
lea eax, [ebp - 0x108]
push eax
call fcn.00507700
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.005837be
mov esp, ebp
pop ebp
ret
Function at 0x509720
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 0x5b0cf4
mov eax, dword [ebp + 8]
push eax
call fcn.00583b90
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50982e
mov ecx, dword [ebp - 8]
push ecx
push 0x118
push 1
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
call fcn.00587b93
add esp, 0x10
cmp eax, 0x118
je 0x509778
jmp 0x509820
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 0x50979d
jmp 0x509820
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x124]
push ecx
call fcn.00583108
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 0x5097c3
jmp 0x509820
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.00587b93
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x124], eax
je 0x5097ef
jmp 0x509820
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.00583946
add esp, 4
jmp 0x509832
xor al, al
jmp 0x509871
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x509862
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x10], 0
je 0x509862
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00584088
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 0x50aef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6c9384]
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.00402910
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00585820
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.005837be
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5155d0
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 0x516d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6c9384]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x44], 0
je 0x516d68
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x516d74
mov al, 1
jmp 0x516eed
mov dword [ebp - 4], 8
call fcn.00517170
push eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x30], eax
call fcn.00517170
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00517150
add esp, 8
movzx eax, al
test eax, eax
je 0x516db7
xor al, al
jmp 0x516eed
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00516f00
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.00517da0
mov ecx, eax
call fcn.00516f40
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00420ce0
add esi, eax
push esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00517da0
mov ecx, eax
call fcn.00516f40
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x44]
call fcn.005170e0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x516e2b
cmp dword [ebp - 0x50], 1
je 0x516e32
cmp dword [ebp - 0x50], 3
je 0x516ebe
jmp 0x516ecf
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00517da0
mov ecx, eax
call fcn.00516f40
mov edx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x2c], edx
je 0x516e8e
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.00517da0
mov ecx, eax
call fcn.00516f40
push eax
call fcn.005878cf
add esp, 0x10
cmp dword [ebp - 0x2c], eax
je 0x516e8e
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x28]
call fcn.004211d0
mov al, byte [ebp - 0x45]
jmp 0x516eed
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x516eaa
mov byte [ebp - 0x46], 1
lea ecx, [ebp - 0x28]
call fcn.004211d0
mov al, byte [ebp - 0x46]
jmp 0x516eed
cmp dword [ebp - 0x2c], 0
jne 0x516ebc
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.005169b0
jmp 0x516ee0
mov byte [ebp - 0x47], 1
lea ecx, [ebp - 0x28]
call fcn.004211d0
mov al, byte [ebp - 0x47]
jmp 0x516eed
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x28]
call fcn.004211d0
mov al, byte [ebp - 0x48]
jmp 0x516eed
jmp 0x516dc3
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005837be
mov esp, ebp
pop ebp
ret
Function at 0x51b0e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6c9384]
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.00402910
add esp, 8
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00585820
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.005837be
mov esp, ebp
pop ebp
ret

Function at 0x51c590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.PingManager.0
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0053cb70
push 0x1e
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0051af70
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 0
push 0
push 0
push 0
push 0x51c8e0
push 0
push 0
call fcn.00587c75
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x6c9384]
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.00583f60
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x51cb54
xor al, al
jmp 0x51cbfb
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 0x51cb7b
xor al, al
jmp 0x51cbfb
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 0x51cbba
xor al, al
jmp 0x51cbfb
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 0x51cbf9
xor al, al
jmp 0x51cbfb
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005837be
mov esp, ebp
pop ebp
ret
Function at 0x527240
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x6c9384]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x484], ecx
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x484]
push edx
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
je 0x527297
push 0x7c9
mov ecx, 0x6daf28
call fcn.004c8e10
push eax
push 0x1d
push 0x6daf28
call fcn.004ca270
add esp, 0xc
xor eax, eax
jmp 0x527472
mov dword [ebp - 4], 0
mov ecx, dword [0x6fcea4]
mov edx, dword [ecx]
mov eax, dword [0x6fcea4]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x488], eax
lea edx, [ebp - 4]
push edx
push 0x5b2068
mov eax, dword [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x488]
mov edx, dword [ecx]
mov eax, dword [edx + 0x134]
call eax
test eax, eax
jne 0x5272e2
xor eax, eax
jmp 0x527472
mov ecx, dword [ebp - 0x484]
call fcn.00527ec0
test eax, eax
jne 0x527349
push str.bdcap32.dll
mov ecx, dword [ebp - 0x484]
call fcn.00527d00
test eax, eax
jge 0x52732b
push 0x7ca
mov ecx, 0x6daf28
call fcn.004c8e10
push eax
push 0x1d
push 0x6daf28
call fcn.004ca270
add esp, 0xc
xor eax, eax
jmp 0x527472
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov ecx, dword [ebp - 0x484]
call fcn.00527ec0
test eax, eax
je 0x52746d
lea ecx, [ebp - 0x378]
call fcn.00527bd0
push 0x3c
push 0x1e
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
push ecx
mov edx, dword [eax + 0x40]
call edx
mov ecx, dword [ebp - 0x484]
call fcn.00527530
push 0
mov ecx, 0x6c89d0
call fcn.00567310
push eax
push str._sScreenShot
lea eax, [ebp - 0x480]
push eax
call fcn.00583d3f
add esp, 0xc
push 0
lea ecx, [ebp - 0x480]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5273f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5273f1
push 0x7cc
mov ecx, 0x6daf28
call fcn.004c8e10
push eax
push 0x1d
push 0x6daf28
call fcn.004ca270
add esp, 0xc
xor eax, eax
jmp 0x527472
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0x5b2170
push str.Capture
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x484]
call fcn.00527ee0
lea ecx, [ebp - 0x110]
push ecx
push 0x7cd
mov ecx, 0x6daf28
call fcn.004c8e10
push eax
push 0x1d
push 0x6daf28
call fcn.004ca270
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 4
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call fcn.00527f60
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x52746d
xor eax, eax
jmp 0x527472
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005837be
mov esp, ebp
pop ebp
ret