joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fb20
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x41fb61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push ecx
call fcn.0041fdb0
add esp, 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.0057c747
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
cmp esi, edi
jne 0x41fb90
mov eax, dword [ebp + 8]
push str.GetMAC_Failed__Because_malloc_failed_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x41fbc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push edx
call fcn.0041fdb0
push esi
call fcn.0057c70d
add esp, 0x14
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [esi + 0x190]
cmp eax, 6
jb 0x41fc07
cmp eax, 8
ja 0x41fc07
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.0057c0d0
mov edi, dword [esi + 0x190]
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0041f900
test al, 4
jne 0x41fc0d
mov esi, dword [esi]
test esi, esi
jne 0x41fbd0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0057c70d
add esp, 4
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4237b5
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5c5148]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 0xc], 1
cmp dword [esi + 0x10], 0
push 0
mov ecx, 0x5c5140
push 0
je 0x4237eb
push 3
mov dword [0x6c2428], 1
call fcn.0040cc50
mov dword [esi + 0x10], 0
jmp 0x4237f2
push 2
call fcn.0040cc50
cmp dword [0x6b3cf0], 0
pop esi
jne 0x423810
mov dword [0x6b3cf0], 1
mov ecx, 0x6b3c58
jmp fcn.004cff50
ret
Function at 0x48ba10
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 0x48ba5a
mov eax, dword [0x6d0c08]
add eax, 0x1d4c0
push edi
mov dword [esi + 0x238], eax
call fcn.00449cb0
push str.ANRaster.tga
lea ecx, [esi + 0x284]
call fcn.00449ce0
pop edi
push ebx
mov ecx, esi
call fcn.00429300
pop esi
pop ebx
pop ebp
ret 4
call fcn.00449cb0
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, esi
call fcn.00429300
pop esi
pop ebx
pop ebp
ret 4

Function at 0x48ba80
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 0x48bacf
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
add eax, dword [0x6d0c08]
push edi
mov dword [esi + 0x238], eax
call fcn.00449cb0
push str.ANRaster.tga
lea ecx, [esi + 0x284]
call fcn.00449ce0
pop edi
push ebx
mov ecx, esi
call fcn.00429300
pop esi
pop ebx
pop ebp
ret 8
call fcn.00449cb0
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, esi
call fcn.00429300
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4afb20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x6c0558]
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 0x4afb4e
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4afc3c
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4afb84
test eax, eax
je 0x4afb81
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4afb75
push edi
push 0
push 2
mov dword [ebp - 0x1ac], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4afc3b
lea ecx, [ebp - 0x1ac]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4afc2c
jmp 0x4afbc0
lea edx, [ebp - 0x188]
push edx
lea eax, [ebp - 0x84]
push 0x5999a4
push eax
call fcn.0057acb0
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
call fcn.004aabe0
test eax, eax
je 0x4afc1b
mov ecx, 0x6bda68
call fcn.005251e0
push 0x230
mov ecx, 0x6d1870
call fcn.004d1c70
push eax
push 1
push 0x179e
push 0x6b1410
call fcn.004451b0
add esp, 0x10
lea edx, [ebp - 0x1ac]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4afbc0
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.0057ad52
mov esp, ebp
pop ebp
ret
Function at 0x4c3250
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x6b3551], 0
push esi
mov esi, ecx
je 0x4c3273
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6d0c0c], eax
mov byte [0x6b3551], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6d0c0c], eax
cmp eax, ecx
jae 0x4c328a
dec edx
mov dword [0x6d0c04], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6d0c04]
add dword [0x6d0c08], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4c32b4
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret
Function at 0x4cbb10
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 0x4cbb42
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 0x4cbb72
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 0x4cbb63
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4cfea0
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 0x4cfed6
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 0x4cff16
cmp dword [ebp - 8], 0x61208
jne 0x4cff16
push 0
lea edx, [ebp - 4]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x4cff26
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 0x4cff17
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d0510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x80]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, dword [esi + 0x7c]
je 0x4d052f
mov dword [ecx + 0xb0], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
push 0
push 0x40000000
mov ecx, 0x2b
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 0x4d0591
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], 0x61208
call edi
push 0
lea eax, [ebp - 4]
push eax
push 0xac
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 4
Function at 0x4d0a80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6c0558]
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.004309c0
test eax, eax
je 0x4d0c66
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4d0aff
cmp ecx, 0xffb9f145
je 0x4d0aff
cmp ecx, 0xff01d1f7
je 0x4d0aff
cmp ecx, 0xfff0ff00
je 0x4d0aff
cmp ecx, 0xfff7b618
je 0x4d0aff
cmp ecx, 0xffebc3ce
jne 0x4d0c66
push ebx
lea ebx, [eax + 4]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d0b08
sub eax, edx
push esi
mov dword [ebp - 0x2c], eax
mov esi, 0
je 0x4d0b1e
mov esi, ebx
xor ebx, ebx
cmp byte [esi], 0x5b
jne 0x4d0c64
xor ecx, ecx
inc esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
cmp eax, ecx
jle 0x4d0c64
lea ecx, [ecx]
cmp byte [ecx + esi], 0x5d
jne 0x4d0baf
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.00526130
push 5
push 0x5a5b98
push esi
call fcn.0057ccfa
add esp, 0x18
test eax, eax
je 0x4d0b95
push 5
push 0x5a5b90
push esi
call fcn.0057ccfa
add esp, 0xc
test eax, eax
jne 0x4d0bba
cmp dword [ebp - 0x1c], 0
jne 0x4d0bba
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ebx, edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
jmp 0x4d0bb0
inc ebx
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x4d0b40
jmp 0x4d0bbd
mov edi, dword [ebp - 0x20]
cmp ebx, 0x10
jg 0x4d0c64
cmp dword [ebp - 0x28], 0
je 0x4d0c64
cmp dword [ebp - 0x1c], 0
je 0x4d0bdb
add ebx, 2
jmp 0x4d0bdc
inc ebx
push ebx
push esi
push edi
call fcn.00526130
mov edx, dword [0x6c1cc0]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d0c64
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 0x4d0c37
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x12
push edi
push eax
mov byte [eax], 0
call fcn.00526130
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, 0x6d1870
call fcn.004d1c70
push eax
push 0x1d
push 0x6d1870
call fcn.004d3020
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0057ad52
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c0558]
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 0x4f94d0
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 0x4f945e
cmp dword [ebp - 0x18], 0x6060801
je 0x4f9478
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.0057ad52
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 0x4f945f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4f94cf
mov ecx, dword [0x6cfd4c]
test ecx, ecx
je 0x4f94cf
mov edx, dword [ebp - 0xc]
push edx
call fcn.00497190
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6cfd4c]
push eax
call fcn.00496510
fld dword [ebp - 8]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x6f4610
call fcn.00553840
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ad52
mov esp, ebp
pop ebp
ret 4

Function at 0x4f94f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c0558]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x6cfd4c]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x4f9583
call fcn.00497180
fld dword [0x6f4650]
push 0
push 0x80
push 2
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [0x6cfd4c]
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 0x4f9583
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.0057ad52
mov esp, ebp
pop ebp
ret 4
Function at 0x4fa440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6c0558]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x4fa535
push ebx
push edi
push 0
mov ecx, 0x6bfb98
call fcn.005612e0
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, 0x6bfb98
call fcn.005612e0
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 0x4fa4fd
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6bfb98
call fcn.005612e0
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.004f9df0
test bl, 2
je 0x4fa533
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6bfb98
call fcn.005612e0
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.004f94f0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057ad52
mov esp, ebp
pop ebp
ret 4
Function at 0x50dfd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x6c0558]
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.0057d230
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 0x50e018
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.0057d230
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 0x50e060
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.0050d660
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a7a0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push str.Power
push str.AddPoint
call fcn.00514450
lea edx, [ebp - 0xcc]
push edx
call fcn.0057b268
push 0xc8
mov dword [ebx + 0x24c], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a7a0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5a7d70
push str.AddPoint
call fcn.00514450
lea edx, [ebp - 0xcc]
add esp, 0x48
push edx
call fcn.0057b268
push 0xc8
mov dword [ebx + 0x250], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a7a0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5a7d6c
push str.AddPoint
call fcn.00514450
lea edx, [ebp - 0xcc]
push edx
call fcn.0057b268
push 0xc8
mov dword [ebx + 0x254], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0057a7a0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [ebp - 0xcc]
push ecx
push 0x5a7d68
push str.AddPoint
call fcn.00514450
lea edx, [ebp - 0xcc]
add esp, 0x40
push edx
call fcn.0057b268
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.0057ad52
mov esp, ebp
pop ebp
ret
Function at 0x50f290
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 0x5a7f8c
xor bl, bl
push eax
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.0057ac52
mov edi, eax
add esp, 8
test edi, edi
je 0x50f369
push edi
push 0x118
lea ecx, [esi + 0x14]
push 1
push ecx
call fcn.0057b235
add esp, 0x10
cmp eax, 0x118
jne 0x50f334
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
lea ecx, [eax + edx*2]
cmp dword [esi + 0x120], ecx
jne 0x50f334
mov edx, dword [esi + 0x124]
push edx
call fcn.0057a0e8
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x50f334
mov ebx, dword [esi + 0x124]
push edi
push ebx
push 1
push eax
call fcn.0057b235
add esp, 0x10
cmp ebx, eax
jne 0x50f331
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.0057a951
add esp, 4
test bl, bl
jne 0x50f358
mov eax, dword [esi + 0x10]
test eax, eax
je 0x50f358
push eax
call fcn.0057ae1b
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 0x512280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c0558]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x5123ba
cmp byte [edi + 0x49], bl
je 0x5123ba
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x5122c8
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ad52
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 0x5122ea
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 0x512300
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 0x51233f
dec eax
je 0x512343
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x5123a2
call fcn.0042a8c0
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ad52
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 0x512353
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x51237c
cmp ebx, 0x10
jae 0x512362
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0057ab1c
add esp, 0x10
cmp esi, eax
jne 0x51239a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x51239f
test esi, esi
jne 0x5122f4
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.005120a0
jmp 0x5122ee
lea ecx, [ebp - 0x20]
jmp 0x512327
lea ecx, [ebp - 0x20]
call fcn.0042a8c0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ad52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0057ad52
mov esp, ebp
pop ebp
ret
Function at 0x514450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6c0558]
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.0057d230
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
jmp 0x5144b0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5144b0
lea edi, [ebp - 0x104]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5144c0
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.0057ad52
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x6c0558]
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.0057a7a0
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x515b2a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ad52
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 0x515b19
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 0x515b19
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.0057ad52
mov esp, ebp
pop ebp
ret