joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e206
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], vtable.CPKManager.0
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
lea ecx, [edi + 0x40]
mov dword [ebp - 4], eax
call fcn.005752c0
push 3
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0xea60
call fcn.005466f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f8ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
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 0x4f8b90
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push esi
call edi
test eax, eax
je 0x4f8b1e
cmp dword [ebp - 0x18], 0x6060801
je 0x4f8b38
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 4
push 0
lea edx, [ebp - 0x14]
push edx
push 0xa
lea eax, [ebp - 0x10]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4f8b1f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1a], 0
je 0x4f8b8f
mov ecx, dword [0x6e0164]
test ecx, ecx
je 0x4f8b8f
mov edx, dword [ebp - 0xe]
push edx
call fcn.00496680
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6e0164]
push eax
call fcn.00495a00
fld dword [ebp - 0xa]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x70cd30
call fcn.00552bf0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 4

Function at 0x4f8bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x6e0164]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x4f8c43
call fcn.00496670
fld dword [0x70cd70]
push 0
push 0x80
push 2
push 0
mov dword [ebp - 0xe], eax
mov eax, dword [0x6e0164]
mov cx, word [eax + 0x67a]
fstp dword [ebp - 0xa]
push 0
push 0x40000000
push esi
mov word [ebp - 0x10], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f8c43
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x18], 0x6060801
call edi
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xa
lea edx, [ebp - 0x10]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9b00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x4f9bf5
push ebx
push edi
push 0
mov ecx, 0x70d658
call fcn.00560740
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x108]
push str._sData
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x108]
push ecx
call ebx
mov edx, dword [esi + 0x16]
push edx
push 0
mov ecx, 0x70d658
call fcn.00560740
push eax
lea eax, [ebp - 0x108]
push str._sData_d
push eax
call edi
add esp, 0x10
push 0
lea ecx, [ebp - 0x108]
push ecx
call ebx
mov bl, byte [ebp + 8]
test bl, 1
je 0x4f9bbd
mov eax, dword [esi + 0x16]
push eax
push eax
push 0
mov ecx, 0x70d658
call fcn.00560740
push eax
lea edx, [ebp - 0x108]
push str._sData_d_d.UII
push edx
call edi
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.004f94b0
test bl, 2
je 0x4f9bf3
mov eax, dword [esi + 0x16]
push eax
push eax
push 0
mov ecx, 0x70d658
call fcn.00560740
push eax
lea ecx, [ebp - 0x108]
push str._sData_d_d.UIS
push ecx
call edi
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.004f8bb0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 4

Function at 0x501320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e8cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
xor edi, edi
mov dword [esi], vtable.CGuildFieldWar.0
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 0x14
mov dword [ebp - 4], edi
call fcn.005466f0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x505ff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eb2d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi], vtable.CEventMap.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
lea ecx, [esi + 0x56]
mov dword [ebp - 4], ebx
call fcn.0042e640
lea ecx, [esi + 0x76]
mov byte [ebp - 4], 1
call fcn.0042e640
lea ecx, [esi + 0x96]
mov byte [ebp - 4], 2
call fcn.0042e640
lea ecx, [esi + 0xb6]
mov byte [ebp - 4], 3
call fcn.0042e640
push 0x3e8
lea ecx, [esi + 4]
mov byte [ebp - 4], 4
call fcn.005466f0
xor eax, eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x4e], ebx
mov dword [esi + 0x4a], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xd6], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], al
mov dword [esi + 0x52], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5092d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ed03
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
push 0xa
mov byte [ebp - 4], 1
call fcn.005466f0
push 0x14
lea ecx, [esi + 0x24]
call fcn.005466f0
mov ecx, esi
call fcn.005093f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50d780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x2cc]
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x2cc]
push 0x5c
push ecx
call fcn.0057ced0
lea edi, [ebp - 0x2cc]
add esp, 8
mov byte [eax + 1], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x50d7c8
mov ecx, 6
mov esi, str.._Ini_AdvancedSet_Cfg.ini
rep movsd dword es:[edi], dword [esi]
push 0xff
lea edx, [ebp - 0x1cc]
push edx
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1cc]
push 0x5c
push eax
call fcn.0057ced0
lea edi, [ebp - 0x1cc]
add esp, 8
mov byte [eax + 1], 0
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x50d810
mov ecx, 7
mov esi, str.._Ini_AdvancedSet_Config.ini
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x2cc]
push str.admin
push edx
movsb byte es:[edi], byte [esi]
call fcn.0050dba0
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a0c0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push str.Power
push str.AddPoint
call fcn.00514070
lea edx, [ebp - 0xcc]
push edx
call fcn.0057ab72
push 0xc8
mov dword [ebx + 0x246], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a0c0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5b4cf8
push str.AddPoint
call fcn.00514070
lea edx, [ebp - 0xcc]
add esp, 0x48
push edx
call fcn.0057ab72
push 0xc8
mov dword [ebx + 0x24a], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a0c0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5b4cf4
push str.AddPoint
call fcn.00514070
lea edx, [ebp - 0xcc]
push edx
call fcn.0057ab72
push 0xc8
mov dword [ebx + 0x24e], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a0c0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5b4cf0
push str.AddPoint
call fcn.00514070
lea edx, [ebp - 0xcc]
add esp, 0x40
push edx
call fcn.0057ab72
mov dword [ebx + 0x252], eax
add esp, 4
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
Function at 0x50ecb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5b4f4c
xor bl, bl
push eax
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.0057a6f1
mov edi, eax
add esp, 8
test edi, edi
je 0x50ed89
push edi
push 0x116
lea ecx, [esi + 0x14]
push 1
push ecx
call fcn.0057aa3b
add esp, 0x10
cmp eax, 0x116
jne 0x50ed54
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
lea ecx, [eax + edx*2]
cmp dword [esi + 0x120], ecx
jne 0x50ed54
mov edx, dword [esi + 0x124]
push edx
call fcn.005795b8
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x50ed54
mov ebx, dword [esi + 0x124]
push edi
push ebx
push 1
push eax
call fcn.0057aa3b
add esp, 0x10
cmp ebx, eax
jne 0x50ed51
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov byte [ebp - 1], 1
mov bl, byte [ebp - 1]
push edi
call fcn.0057a3f0
add esp, 4
test bl, bl
jne 0x50ed78
mov eax, dword [esi + 0x10]
test eax, eax
je 0x50ed78
push eax
call fcn.0057a145
add esp, 4
mov dword [esi + 0x10], 0
pop edi
mov byte [esi + 0x128], bl
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x510300
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x5110b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59efc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x511243
cmp byte [esi + 0x49], 0
je 0x511243
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x51122c
push 0
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0042a910
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.00511270
mov dword [ebp - 4], 1
lea esp, [esp]
lea ecx, [ebp - 0x2c]
call fcn.0042a740
cmp dword [ebp - 0x18], 0x10
mov ebx, dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x2c]
jae 0x511149
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.005264f0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
add edi, ebx
push edi
push eax
lea eax, [esi + 0x4c]
push eax
call edx
sub eax, 0
je 0x51119a
dec eax
je 0x51119e
sub eax, 2
je 0x511210
push 0
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.0042a910
xor al, al
jmp 0x511245
mov byte [esi + 0x49], 0
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x5111ae
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.005264f0
mov edi, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x30]
je 0x5111f2
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x5111ce
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 0x34]
call fcn.005264f0
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x34]
push eax
push edi
push 1
push ecx
call fcn.0057a5bb
add esp, 0x10
cmp edi, eax
jne 0x511219
cmp byte [esi + 0x49], 0
je 0x511230
test edi, edi
jne 0x511130
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00510df0
jmp 0x511130
mov dword [ebp - 4], 4
jmp 0x511237
push 0
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.0042a910
xor al, al
jmp 0x511245
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042a910
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
Function at 0x514070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0xff
lea edx, [ebp - 0x104]
push edx
push 0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0057ced0
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
jmp 0x5140d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5140d0
lea edi, [ebp - 0x104]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5140e0
mov edx, dword [ebp - 0x10c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x108]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x104]
push ecx
push 0xff
push edx
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret

Function at 0x515220
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f47b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d005c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
xor edi, edi
mov dword [esi], vtable.PingManager.0
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 0x1e
mov dword [ebp - 4], edi
call fcn.005466f0
push edi
push edi
push edi
push 0x5155b0
push edi
push edi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], edi
call fcn.0057d1da
mov dword [esi + 4], eax
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x18c
mov esi, ecx
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.0057a0c0
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x51576a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x515759
push 4
lea ecx, [ebp - 0x198]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x198], 0x7d0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x515759
mov eax, dword [esi + 4]
push 4
lea edx, [ebp - 0x198]
push edx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 0x198], 0x7d0
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
Function at 0x515960
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
test edi, edi
je 0x515b51
mov word [ebp - 0x814], ax
mov dword [ebp - 0x812], eax
mov dword [ebp - 0x80e], eax
mov dword [ebp - 0x80a], eax
mov word [ebp - 0x806], ax
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5159b0
push 2
sub eax, edx
push eax
push edi
call sub.WSOCK32.dll_gethostbyaddr
push edi
test eax, eax
je 0x5159e0
mov ecx, 2
mov word [ebp - 0x814], cx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x810], eax
jmp 0x515a22
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x5159fd
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 8
mov dx, word [eax + 8]
mov word [ebp - 0x814], dx
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x810]
push ecx
call fcn.0057bc40
add esp, 0xc
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call fcn.0057a0c0
push 0x3ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.0057a0c0
mov edi, dword [ebp + 0xc]
add esp, 0x18
push edi
lea ecx, [ebp - 0x404]
push ecx
mov ecx, esi
call fcn.005157e0
xor eax, eax
xor edx, edx
xor ecx, ecx
add edi, 0xc
mov word [ebp - 0x824], dx
mov dword [ebp - 0x822], eax
mov dword [ebp - 0x81e], eax
mov dword [ebp - 0x81a], eax
mov word [ebp - 0x816], ax
mov word [ebp - 0x402], ax
mov word [ebp - 0x3fe], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea edx, [ebp - 0x404]
push edx
mov ecx, esi
mov dword [ebp - 0x3fc], eax
call fcn.00515830
mov edx, dword [esi + 4]
push 0x10
mov word [ebp - 0x402], ax
lea eax, [ebp - 0x814]
push eax
push 0
push edi
lea ecx, [ebp - 0x404]
push ecx
push edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
je 0x5159e9
lea eax, [ebp - 0x828]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x824]
push ecx
push 0
push 0x400
lea edx, [ebp - 0x804]
push edx
push eax
mov dword [ebp - 0x828], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5159e9
lea ecx, [ebp - 0x824]
push ecx
push eax
lea edx, [ebp - 0x804]
push edx
mov ecx, esi
call fcn.005158b0
mov eax, dword [esi + 8]
test eax, eax
je 0x515b4b
mov ecx, 1
cmp dword [eax + 0x24], ecx
jg 0x515b4b
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret 8
Function at 0x51d800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x6d005c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push esi
call ecx
test eax, eax
je 0x51d852
push 0x7c9
mov ecx, 0x6e1fd8
call fcn.004d0c40
push eax
push 0x1d
push 0x6e1fd8
call fcn.004d1fb0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
mov eax, dword [0x70ab54]
mov dword [ebp - 0x480], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [eax]
lea edx, [ebp - 0x480]
push edx
push 0x5b5de8
push eax
mov eax, dword [ecx + 0x134]
call eax
test eax, eax
je 0x51d841
cmp dword [esi + 0xc], 0
jne 0x51d8bd
push str.bdcap32.dll
mov ecx, esi
call fcn.0051df10
test eax, eax
jns 0x51d8a1
push 0x7ca
jmp 0x51d827
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call edx
cmp dword [esi + 0xc], 0
je 0x51d9db
lea ecx, [ebp - 0x47c]
call fcn.0051de70
mov eax, dword [esi]
mov ecx, dword [eax + 0x40]
push 0x3c
push 0x1e
push esi
call ecx
mov ecx, esi
call fcn.0051da70
push 0
mov ecx, 0x70d658
call fcn.00560740
push eax
lea edx, [ebp - 0x108]
push str._sScreenShot
push edx
call fcn.0057a74f
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x51d926
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x51d926
push 0x7cc
jmp 0x51d827
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x20e]
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x212]
push 0x5b5ebc
push edx
movzx edx, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push ecx
movzx ecx, word [ebp - 0x21a]
push edx
movzx edx, word [ebp - 0x21c]
push eax
push ecx
push edx
push str.Capture
lea eax, [ebp - 0x108]
push eax
push str._s_s__d__02d__02d__02d__02d__02d__03d._s
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0057a7d3
add esp, 0x34
lea edx, [ebp - 0x20c]
push edx
push 0x7cd
mov ecx, 0x6e1fd8
call fcn.004d0c40
push eax
push 0x1d
push 0x6e1fd8
call fcn.004d1fb0
mov eax, dword [ebp - 0x480]
add esp, 0x10
push eax
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0051e0a0
test eax, eax
js 0x51d841
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0057a0a3
mov esp, ebp
pop ebp
ret
Function at 0x51e430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x51e484
mov eax, dword [ebp + 8]
push 0x5b5f50
push eax
call fcn.0057a6f1
mov esi, eax
add esp, 8
test esi, esi
je 0x51e4b8
mov edx, dword [ebp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
jmp 0x51e460
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51e460
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.0057a5bb
push esi
call fcn.0057a3f0
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 1
jne 0x51e4b8
mov ecx, dword [ebp + 8]
push 0x5b5f4c
push ecx
call fcn.0057a6f1
mov esi, eax
add esp, 8
test esi, esi
je 0x51e4b8
mov edx, dword [ebp + 0xc]
push edx
push 0x5b5f48
push esi
call fcn.0057b0c1
push esi
call fcn.0057a3f0
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret 0xc