joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440cd0
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x58b6b0
push str.._image_InterfaceScript_AdvancedSetDlg.bin
mov edi, ecx
call fcn.00440780
mov ecx, dword [edi + 0x18]
mov esi, eax
push esi
call fcn.00568300
mov ecx, esi
call fcn.00504a50
pop edi
mov dword [0x6ab594], esi
mov ecx, esi
pop esi
jmp fcn.00505230

Function at 0x4701d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
test eax, eax
jne 0x4701f3
push str.Item_DB_idx__0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
push esi
push eax
mov ecx, 0x6b9d88
call fcn.004a1be0
mov esi, eax
test esi, esi
je 0x470212
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x470241
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x6b9d88
call fcn.004a4e80
mov esi, eax
test esi, esi
jne 0x47022f
pop esi
pop edi
pop ebx
pop ebp
ret 4
push esi
mov ecx, 0x6b9d88
mov dword [esi + 0x24], 1
call fcn.004ae420
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.004700f0
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.0042d000
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x486770
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [esi + 0x284]
cmp ebx, 1
jne 0x4867ba
mov eax, dword [0x6ba0a4]
add eax, 0x1d4c0
push edi
mov dword [esi + 0x238], eax
call fcn.00447560
push str.ANRaster.tga
lea ecx, [esi + 0x284]
call fcn.00447590
pop edi
push ebx
mov ecx, esi
call fcn.004286b0
pop esi
pop ebx
pop ebp
ret 4
call fcn.00447560
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, esi
call fcn.004286b0
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4867e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [esi + 0x284]
cmp ebx, 1
jne 0x48682f
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
add eax, dword [0x6ba0a4]
push edi
mov dword [esi + 0x238], eax
call fcn.00447560
push str.ANRaster.tga
lea ecx, [esi + 0x284]
call fcn.00447590
pop edi
push ebx
mov ecx, esi
call fcn.004286b0
pop esi
pop ebx
pop ebp
ret 8
call fcn.00447560
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, esi
call fcn.004286b0
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a9950
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push esi
mov esi, ecx
call ebx
cmp dword [esi + 0xf4], 0
jne 0x4a997e
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4a9a6c
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4a99b4
test eax, eax
je 0x4a99b1
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4a99a5
push edi
push 0
push 2
mov dword [ebp - 0x1ac], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4a9a6b
lea ecx, [ebp - 0x1ac]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4a9a5c
jmp 0x4a99f0
lea edx, [ebp - 0x188]
push edx
lea eax, [ebp - 0x84]
push 0x58b99c
push eax
call fcn.0056d930
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
call fcn.004a4c80
test eax, eax
je 0x4a9a4b
mov ecx, 0x6c9608
call fcn.0051a760
push 0x230
mov ecx, 0x6bb178
call fcn.004cae20
push eax
push 1
push 0x179e
push 0x6b8870
call fcn.00443e30
add esp, 0x10
lea edx, [ebp - 0x1ac]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4a99f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [esi + 0xf4], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret

Function at 0x4bca10
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x6a4ba5], 0
push esi
mov esi, ecx
je 0x4bca33
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6ba0b8], eax
mov byte [0x6a4ba5], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6ba0b8], eax
cmp eax, ecx
jae 0x4bca4a
dec edx
mov dword [0x6ba0a0], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6ba0a0]
add dword [0x6ba0a4], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4bca74
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret
Function at 0x4c4f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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 0x4c4f32
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp + 8]
push ecx
push 0x520
lea edx, [edi + 0x524]
push edx
push esi
call ebx
test eax, eax
jne 0x4c4f62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0xc0
add edi, 0xb04
push edi
push esi
call ebx
push esi
test eax, eax
je 0x4c4f53
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4c91f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
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 0x4c9226
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4c9266
cmp dword [ebp - 8], 0x61208
jne 0x4c9266
push 0
lea edx, [ebp - 4]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x4c9276
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xac
push esi
ja 0x4c9267
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c92a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
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 0x4c9305
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0x61208
call edi
push 0
lea edx, [ebp - 8]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9d50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x9720], eax
push edi
lea edi, [ecx + 0x9720]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
mov eax, dword [ecx + 0x9708]
mov ecx, dword [ecx + eax*4 + 0x96e0]
push edx
mov dword [ebp - 0x20], edi
call fcn.0042fa20
test eax, eax
je 0x4c9f36
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4c9dcf
cmp ecx, 0xffb9f145
je 0x4c9dcf
cmp ecx, 0xff01d1f7
je 0x4c9dcf
cmp ecx, 0xfff0ff00
je 0x4c9dcf
cmp ecx, 0xfff7b618
je 0x4c9dcf
cmp ecx, 0xffebc3ce
jne 0x4c9f36
push ebx
lea ebx, [eax + 4]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9dd8
sub eax, edx
push esi
mov dword [ebp - 0x2c], eax
mov esi, 0
je 0x4c9dee
mov esi, ebx
xor ebx, ebx
cmp byte [esi], 0x5b
jne 0x4c9f34
xor ecx, ecx
inc esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
cmp eax, ecx
jle 0x4c9f34
lea ecx, [ecx]
cmp byte [ecx + esi], 0x5d
jne 0x4c9e7f
lea edi, [ebx + 1]
xor eax, eax
push edi
lea ecx, [ebp - 0x18]
push esi
push ecx
mov dword [ebp - 0x28], 1
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
call fcn.0051b610
push 5
push 0x597c00
push esi
call fcn.0056fffa
add esp, 0x18
test eax, eax
je 0x4c9e65
push 5
push 0x597bf8
push esi
call fcn.0056fffa
add esp, 0xc
test eax, eax
jne 0x4c9e8a
cmp dword [ebp - 0x1c], 0
jne 0x4c9e8a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ebx, edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
jmp 0x4c9e80
inc ebx
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x4c9e10
jmp 0x4c9e8d
mov edi, dword [ebp - 0x20]
cmp ebx, 0x10
jg 0x4c9f34
cmp dword [ebp - 0x28], 0
je 0x4c9f34
cmp dword [ebp - 0x1c], 0
je 0x4c9eab
add ebx, 2
jmp 0x4c9eac
inc ebx
push ebx
push esi
push edi
call fcn.0051b610
mov edx, dword [0x6aa7c0]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c9f34
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x12
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4c9f07
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x12
push edi
push eax
mov byte [eax], 0
call fcn.0051b610
add esp, 0xc
push esi
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0x65e
mov ecx, 0x6bb178
call fcn.004cae20
push eax
push 0x1d
push 0x6bb178
call fcn.004cc0a0
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4
Function at 0x4f1310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a9068]
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 0x4f13e0
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 0x4f136e
cmp dword [ebp - 0x18], 0x6060801
je 0x4f1388
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.0056d9d2
mov esp, ebp
pop ebp
ret 4
push 0
lea edx, [ebp - 0x14]
push edx
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4f136f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4f13df
mov ecx, dword [0x6b917c]
test ecx, ecx
je 0x4f13df
mov edx, dword [ebp - 0xc]
push edx
call fcn.00491c40
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6b917c]
push eax
call fcn.00490fc0
fld dword [ebp - 8]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x6e64c0
call fcn.00547140
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4

Function at 0x4f1400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x6b917c]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x4f1493
call fcn.00491c30
fld dword [0x6e6500]
push 0
push 0x80
push 2
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [0x6b917c]
mov cx, word [eax + 0x688]
fstp dword [ebp - 8]
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 0x4f1493
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 0xc
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.0056d9d2
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x4f2445
push ebx
push edi
push 0
mov ecx, 0x6e6de8
call fcn.005544e0
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 + 0x18]
push edx
push 0
mov ecx, 0x6e6de8
call fcn.005544e0
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 0x4f240d
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e6de8
call fcn.005544e0
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.004f1d00
test bl, 2
je 0x4f2443
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e6de8
call fcn.005544e0
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.004f1400
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4
Function at 0x505230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x6a9068]
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.00570530
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 0x505278
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.00570530
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 0x5052c0
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.005048c0
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0056d420
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push str.Power
push str.AddPoint
call fcn.0050b310
lea edx, [ebp - 0xcc]
push edx
call fcn.0056dee8
push 0xc8
mov dword [ebx + 0x24c], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0056d420
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x599dd8
push str.AddPoint
call fcn.0050b310
lea edx, [ebp - 0xcc]
add esp, 0x48
push edx
call fcn.0056dee8
push 0xc8
mov dword [ebx + 0x250], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0056d420
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x599dd4
push str.AddPoint
call fcn.0050b310
lea edx, [ebp - 0xcc]
push edx
call fcn.0056dee8
push 0xc8
mov dword [ebx + 0x254], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0056d420
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x599dd0
push str.AddPoint
call fcn.0050b310
lea edx, [ebp - 0xcc]
add esp, 0x40
push edx
call fcn.0056dee8
mov dword [ebx + 0x258], 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.0056d9d2
mov esp, ebp
pop ebp
ret
Function at 0x5063e0
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 0x599ff4
xor bl, bl
push eax
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.0056d8d2
mov edi, eax
add esp, 8
test edi, edi
je 0x5064b9
push edi
push 0x118
lea ecx, [esi + 0x14]
push 1
push ecx
call fcn.0056deb5
add esp, 0x10
cmp eax, 0x118
jne 0x506484
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
lea ecx, [eax + edx*2]
cmp dword [esi + 0x120], ecx
jne 0x506484
mov edx, dword [esi + 0x124]
push edx
call fcn.0056cd68
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x506484
mov ebx, dword [esi + 0x124]
push edi
push ebx
push 1
push eax
call fcn.0056deb5
add esp, 0x10
cmp ebx, eax
jne 0x506481
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.0056d5d1
add esp, 4
test bl, bl
jne 0x5064a8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5064a8
push eax
call fcn.0056da9b
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 0x507a80
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 0x509250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x50938a
cmp byte [edi + 0x49], bl
je 0x50938a
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x509298
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x5092ba
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, eax
cmp ebx, 0x10
jae 0x5092d0
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x50930f
dec eax
je 0x509313
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x509372
call fcn.00429c00
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x509323
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x50934c
cmp ebx, 0x10
jae 0x509332
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0056d79c
add esp, 0x10
cmp esi, eax
jne 0x50936a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x50936f
test esi, esi
jne 0x5092c4
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00509070
jmp 0x5092be
lea ecx, [ebp - 0x20]
jmp 0x5092f7
lea ecx, [ebp - 0x20]
call fcn.00429c00
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
Function at 0x50b310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6a9068]
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.00570530
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
jmp 0x50b370
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x50b370
lea edi, [ebp - 0x104]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x50b380
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.0056d9d2
mov esp, ebp
pop ebp
ret

Function at 0x50c6a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi], vtable.PingManager.0
push edi
xor edi, edi
push 0x1e
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
call fcn.00526c00
push edi
push edi
push edi
push 0x50c640
push edi
push edi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], edi
call fcn.0057083a
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x18e
mov esi, ecx
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.0056d420
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x50c87a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
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 0x50c869
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 0x50c869
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.0056d9d2
mov esp, ebp
pop ebp
ret