joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3be0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x4e3c03
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004e38d0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.004e3920
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.004e39c0
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.004cf760
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x5427dc
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4e3cb3
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.004e3bb0
test ax, ax
je 0x4e3c7d
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4e3c9f
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4e3c9f
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.004cf870
test al, al
jne 0x4e3cb3
jmp 0x4e3cae
lea edx, [esp + 8]
push esi
push edx
call fcn.004cf7d0
test al, al
jne 0x4e3cb3
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x4e3cce
cmp ax, 0xffff
je 0x4e3cce
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8

Function at 0x4e3ce0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x4e3d03
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004e38d0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.004e3920
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.004e39c0
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.004cf760
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x5427dc
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4e3dae
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.004e3bb0
test ax, ax
je 0x4e3dae
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x4e3dae
cmp byte [esp + eax + 0xa], 0x3a
jne 0x4e3dae
lea edx, [esp + eax + 0xb]
push esi
push edx
call fcn.004cf7d0
test al, al
je 0x4e3da9
mov ax, word [esi]
cmp ax, 1
jl 0x4e3da9
cmp ax, 7
jle 0x4e3dae
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x40
ret 8
Function at 0x4e3dc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.004e38d0
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.004e3920
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.004e3a80
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004e3a40
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x5427dc
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x4e3e30
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.004cf610
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x4e3e40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.004e38d0
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.004e3920
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.004e3a00
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4

Function at 0x4e3ea0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.004cf780
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.004e38d0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.004e3920
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004e3970
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.004e3ad0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.004e3b60
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004e3b20
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x5427dc
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4e3f8e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.004cf610
test al, al
je 0x4e3f4f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.004cf610
test al, al
je 0x4e3f76
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004cf610
test al, al
je 0x4e3f8e
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4

Function at 0x4fbc5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4fbc7d
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004fe6e1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4fbca0
test byte [esp + 8], 2
je 0x4fbca0
call fcn.004fe754
mov dword [eax], 0xd
call fcn.004fe75d
mov dword [eax], 5
jmp 0x4fbc79
xor eax, eax
ret
Function at 0x50c060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.gdi32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004faf30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50c12b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
je 0x50c12b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x50c0de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x50c0e9
or bh, 8
and edi, 0x8000000
je 0x50c104
mov eax, dword [0x57aa3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.user32.dll_DrawTextA]
test edi, edi
je 0x50c12b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50c52b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x50c54f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x50c56a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x510b3f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x510b77
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00514120
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005140f8
jmp 0x510b83
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x510b87
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x577558
mov ecx, edi
call fcn.00513e76
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x510bda
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x510bed
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00514120
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005140f8
jmp 0x510bed
mov ecx, esi
call fcn.00513120
test eax, eax
je 0x510bed
push edi
mov ecx, eax
call fcn.00510b3f
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x51285b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51289d
call fcn.0052ba85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x51289d
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x512894
xor eax, eax
jmp 0x5128a5
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005128ab
pop edi
pop esi
pop ebx
ret 4

Function at 0x5144be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5144e0
cmp dword [edi + 0x3c], 0
jne 0x5144e0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0052ba85
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0051450d
pop edi
pop esi
pop ebx
ret 8

Function at 0x51455b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0052ba85
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x51458c
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0051459f
pop edi
pop esi
pop ebx
ret 8
Function at 0x517031
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x517061
push edi
call ebx
push eax
call fcn.0051715e
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x51708b
test byte [ebp - 4], 1
je 0x51708b
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x51708b
push edi
call ebx
push eax
call fcn.0051715e
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x517131
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00516f7e
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x5170bd
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00516f7e
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x5170d3
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00516f7e
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5170fd
push 0
call ebx
push eax
call fcn.0051715e
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.kernel32.dll_SetFileTime]
test eax, eax
jne 0x51711b
push eax
call ebx
push eax
call fcn.0051715e
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x51712f
push eax
call ebx
push eax
call fcn.0051715e
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x517158
test byte [ebp - 4], 1
jne 0x517158
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x517158
push edi
call ebx
push eax
call fcn.0051715e
pop edi
pop ebx
leave
ret 8
Function at 0x52c775
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0052ba85
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x52c7b2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x52c7b2
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x52c7b6
xor eax, eax
jmp 0x52c834
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.005142b0
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x52c7ee
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x52c7d8
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0052c925
push ebx
mov edi, eax
call fcn.005142d9
test edi, edi
pop ecx
je 0x52c830
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0052c6ee
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0052c839
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x927bb4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00927b40
ret
Function at 0x401160
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x408a04]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x14]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xf]
push eax
call fcn.0040157d
mov edx, eax
add esp, 4
mov ebx, edx
mov dword [edx], 0x504d4153
mov cl, byte [0x408a08]
add edx, 4
push 0x10
mov byte [edx], cl
mov al, byte [0x408a09]
inc edx
mov byte [edx], al
mov cl, byte [0x408a0a]
inc edx
mov byte [edx], cl
mov al, byte [0x408a0b]
inc edx
mov byte [edx], al
mov cx, word [0x408a00]
inc edx
xor eax, eax
mov word [edx], cx
add edx, 2
or ecx, 0xffffffff
mov byte [edx], 0x78
mov edi, dword [0x408a04]
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov word [edx], cx
mov esi, dword [0x408a04]
and eax, 0xffff
mov ecx, eax
add edx, 2
mov ebp, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
add edx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, esi
add edx, 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov eax, ecx
mov word [edx - 2], cx
and eax, 0xffff
mov ecx, eax
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub eax, ebx
push 0x4089e8
add eax, edx
mov edx, dword [0x408030]
push 0
push eax
push ebx
push edx
call sub.WSOCK32.dll_sendto
push ebx
call fcn.0040154e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401260
Capabilities:
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x1a8
lea eax, [esp + 0x18]
push ebp
push esi
push edi
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
push str._n_SA:MP_Command_Line_Remote_Console_Client
call fcn.00401496
push str._________________________________________
call fcn.00401496
push str.__C__Copyright_2005_2006_SA:MP_Team__v1.0_n
call fcn.00401496
mov eax, dword [esp + 0x1c4]
add esp, 0xc
cmp eax, 3
jge 0x4012c3
push str._Usage:
call fcn.00401496
push str.___rcon__ip_host___port___password_
call fcn.00401496
add esp, 8
push 0
call fcn.004016e8
mov ebp, dword [esp + 0x1bc]
mov esi, dword [ebp + 4]
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4012fe
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x401322
push str.ERROR:_Bad_host.
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
push 0x408a0b
push 0x408a0a
push 0x408a09
push 0x408a08
push str._d._d._d._d
push esi
call fcn.00401687
mov edx, dword [ebp + 8]
push edx
call fcn.0040167c
mov word [0x408a00], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x408a00]
mov dword [0x408a04], eax
mov ax, word [0x408a0a]
and ecx, 0xffff
xor edx, edx
push ecx
mov dl, ah
xor ecx, ecx
push edx
mov cl, al
mov eax, dword [0x408a08]
xor edx, edx
mov dl, ah
push ecx
and eax, 0xff
push edx
push eax
push str.Remote_Console:__d._d._d._d:_d..._n
call fcn.00401000
mov ax, word [0x408a00]
add esp, 0x34
mov edi, 2
push eax
mov word [0x4089e8], di
call sub.WSOCK32.dll_htons
push esi
mov word [0x4089ea], ax
call sub.WSOCK32.dll_inet_addr
push 0
push edi
push edi
mov dword [0x4089ec], eax
call sub.WSOCK32.dll_socket
lea ecx, [esp + 0x14]
push 0x10
push ecx
push eax
mov dword [0x408030], eax
mov dword [esp + 0x24], 0
mov word [esp + 0x20], di
mov word [esp + 0x22], 0
call sub.WSOCK32.dll_bind
push 1
push 0x401030
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x401100
push 0
push 0
call esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x401070
push 0
push 0
call esi
push str.echo_RCON_admin_connected_to_server.
call fcn.00401160
mov al, byte [0x4089f8]
add esp, 4
test al, al
jne 0x40144e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov al, byte [0x4089f8]
test al, al
je 0x401441
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1a8
ret
Function at 0x404285
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4086c0
cmp edx, dword [eax]
je 0x4042a7
add eax, 8
inc ecx
cmp eax, 0x408750
jl 0x404298
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4086c0]
jne 0x4043d5
mov eax, dword [0x408a60]
cmp eax, 1
je 0x4043af
test eax, eax
jne 0x4042d8
cmp dword [0x408158], 1
je 0x4043af
cmp edx, 0xfc
je 0x4043d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40430f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405450
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401bd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404352
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401bd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407434
push edi
call fcn.004059b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405450
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405460
lea eax, [ebp - 0xa0]
push 0x407414
push eax
call fcn.00405460
push dword [esi + 0x4086c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405460
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405920
add esp, 0x2c
pop edi
jmp 0x4043d5
lea eax, [ebp + 8]
lea esi, [esi + 0x4086c4]
push 0
push eax
push dword [esi]
call fcn.00401bd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x46fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x46fee5
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x46fef9
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret

Function at 0x9301a4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9301aa
pop ebp
sub ebp, 6
sub ebp, 0x5301a4
jmp 0x930208
jmp 0x930211
mov eax, 0x5301a4
add eax, ebp
add eax, 0x93
mov ecx, 0x622
mov edx, 0xaa9ae146
xor byte [eax], dl
inc eax
dec ecx
jne 0x930228
jmp 0x93023b
sub al, 6
inc esi
push esi
inc esi
inc esi
inc esi
mov ch, byte [edx + 0x46]
invalid