joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae294
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
mov eax, 0x5298bc
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 5
mov ebx, dword [edx]
xor dword [ecx], ebx
mov ebx, dword [edx + 4]
xor dword [ecx + 4], ebx
add edx, 8
mov esi, dword [ecx + 4]
shr esi, 0x17
and esi, 0x1fe
mov esi, dword [eax + esi*4]
mov edi, dword [ecx + 4]
shr edi, 0xf
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x800]
mov edi, dword [ecx + 4]
shr edi, 7
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x1000]
mov edi, dword [ecx + 4]
add edi, edi
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x1800]
mov ebx, dword [ecx]
mov edi, ebx
shr edi, 0x17
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x2000]
mov edi, ebx
shr edi, 0xf
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x2800]
mov edi, ebx
shr edi, 7
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x3000]
mov edi, ebx
add edi, edi
and edi, 0x1fe
xor esi, dword [eax + edi*4 + 0x3800]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 4]
shr esi, 0x17
and esi, 0x1fe
or esi, 1
mov esi, dword [eax + esi*4]
mov edi, dword [ecx + 4]
shr edi, 0xf
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x800]
mov edi, dword [ecx + 4]
shr edi, 7
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x1000]
mov edi, dword [ecx + 4]
add edi, edi
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x1800]
mov edi, dword [ecx]
shr edi, 0x17
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x2000]
mov edi, dword [ecx]
shr edi, 0xf
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x2800]
mov edi, ebx
shr edi, 7
and edi, 0x1fe
or edi, 1
xor esi, dword [eax + edi*4 + 0x3000]
add ebx, ebx
and ebx, 0x1fe
or ebx, 1
xor esi, dword [eax + ebx*4 + 0x3800]
mov dword [ecx + 4], esi
mov ebx, dword [ebp - 0x14]
mov dword [ecx], ebx
dec dword [ebp - 0x10]
jne 0x4ae2b6
mov eax, dword [edx]
xor dword [ecx], eax
mov eax, dword [edx + 4]
xor dword [ecx + 4], eax
add edx, 8
mov eax, dword [ecx]
mov ebx, eax
shr ebx, 0x18
and ebx, 0xff
movzx ebx, byte [ebx + 0x52967c]
shl ebx, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x52967c]
shl esi, 0x10
xor ebx, esi
mov esi, eax
shr esi, 8
and esi, 0xff
movzx esi, byte [esi + 0x52967c]
shl esi, 8
xor ebx, esi
and eax, 0xff
movzx eax, byte [eax + 0x52967c]
xor ebx, eax
mov dword [ecx], ebx
mov eax, dword [ecx + 4]
mov ebx, eax
shr ebx, 0x18
and ebx, 0xff
movzx ebx, byte [ebx + 0x52967c]
shl ebx, 0x18
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x52967c]
shl esi, 0x10
xor ebx, esi
mov esi, eax
shr esi, 8
and esi, 0xff
movzx esi, byte [esi + 0x52967c]
shl esi, 8
xor ebx, esi
and eax, 0xff
movzx eax, byte [eax + 0x52967c]
xor ebx, eax
mov dword [ecx + 4], ebx
mov eax, dword [edx]
xor eax, dword [ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [edx + 4]
xor eax, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aef18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
jmp 0x4aef2a
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
cmp edx, dword [eax]
jne 0x4aef26
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4aef81
xor eax, eax
push ebp
push 0x4aef7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aef81
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b05c8
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.00407df8
ret

Function at 0x4b06f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b083e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.004b05c8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b081d
xor eax, eax
push ebp
push 0x4b0816
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b07ff
xor eax, eax
push ebp
push 0x4b07f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b07e1
xor eax, eax
push ebp
push 0x4b07da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.004b05fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b07e1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b07ff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b081d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004b067c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0845
lea eax, [ebp - 4]
call fcn.00403e24
ret
Function at 0x4b2754
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b28c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b28a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403fcc
lea eax, [ebp - 0x118]
mov edx, 0x4b28dc
call fcn.004040ac
mov eax, dword [ebp - 0x118]
call fcn.00404268
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b2812
lea eax, [ebp - 0x111]
call fcn.00409a80
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403f0c
jmp 0x4b2819
mov eax, esi
call fcn.00403e24
cmp bl, 0x61
jae 0x4b283a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040c9a0
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00403e78
jmp 0x4b2854
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040c914
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00403e78
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4b28e8
call fcn.0040a210
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00403e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b28a7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404268
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b5bcd
test al, 0x10
jne 0x4b5bd1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4b6370
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b6444
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4b6422
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b641c
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x4b6416
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b6416
jmp 0x4b6410
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b6416
cmp edi, dword [ebp - 0x14]
ja 0x4b6416
cmp dword [ebp - 0x24], 4
jne 0x4b63f1
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b644b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e48
ret

Function at 0x4b6454
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b6523
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4b6501
push 0x24
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b64fb
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4b64f5
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b64f5
jmp 0x4b64ef
Function at 0x4b6534
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b65de
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
jbe 0x4b65c3
push 2
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b65bd
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
je 0x4b65b7
mov bl, 1
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b65e5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e48
ret
Function at 0x4b7904
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b7a40
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b7a58
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004b8e80
mov eax, dword [ebp - 4]
call fcn.004b8710
xor edx, edx
push ebp
push 0x4b7a23
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4b79c2
test si, si
jne 0x4b7974
mov eax, dword [ebp - 8]
call fcn.00409a80
mov esi, eax
cmp esi, 0xffff
jbe 0x4b7974
call fcn.00402ff8
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4b79c2
cmp eax, 0xffffffff
jle 0x4b79a3
sub ebx, eax
jmp 0x4b79b2
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004b8db4
test ebx, ebx
je 0x4b79c2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b7977
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b7a0d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x4b7a70
mov dl, 1
mov eax, dword [0x4b6e24]
call fcn.0040bc8c
call fcn.00403854
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x4b7a0d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7a2a
mov eax, dword [ebp - 4]
call fcn.004b8768
ret
Function at 0x4b7b84
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7d1a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b7d30
lea edx, [ebp - 0xc]
movzx eax, si
call fcn.0040932c
push dword [ebp - 0xc]
push 0x4b7d40
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404164
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.004b8e80
test si, si
jne 0x4b7c25
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
jne 0x4b7c14
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8db4
mov eax, dword [ebp - 4]
call fcn.00403e24
jmp 0x4b7c7b
mov esi, eax
cmp esi, 0xffff
jbe 0x4b7c7b
call fcn.00402ff8
jmp 0x4b7c7b
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
movzx edx, si
cmp eax, edx
jge 0x4b7c7b
test eax, eax
jne 0x4b7c55
mov eax, dword [ebp - 4]
call fcn.00403e24
jmp 0x4b7cff
inc eax
jne 0x4b7c66
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8db4
mov eax, dword [0x536040]
mov eax, dword [eax]
call fcn.004505b4
cmp byte [ebx + 0x10088], 0
je 0x4b7c25
cmp byte [ebx + 0x10088], 0
jne 0x4b7cca
movzx edi, si
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004043d8
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.00404274
mov edx, 1
dec edx
cmp edx, dword [eax - 4]
jb 0x4b7cac
call fcn.00402ff8
inc edx
lea eax, [eax + edx - 1]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.004043d8
jmp 0x4b7cff
mov byte [ebx + 0x10088], 0
mov ecx, 0x4b7d4c
mov dl, 1
mov eax, dword [0x4b6e24]
call fcn.0040bc8c
call fcn.00403854
cmp word [ebx + 0x10282], 0
je 0x4b7cff
mov edx, ebx
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7d21
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403e48
ret
Function at 0x4b8138
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b82f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b830c
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004b8e80
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40fedc]
call fcn.00413840
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4b8285
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4b8249
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x4b81cd
call fcn.00402ff8
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4b8249
cmp eax, 0xffffffff
jle 0x4b821a
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x4b8229
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x4b8229
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004b8db4
mov eax, dword [0x536040]
mov eax, dword [eax]
call fcn.004505b4
test ebx, ebx
je 0x4b8249
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b81ba
mov eax, dword [ebp - 0xc]
call fcn.004135b8
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004135d4
cmp ebx, eax
je 0x4b826f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b8193
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b828c
mov eax, dword [ebp - 0xc]
call fcn.004030bc
ret
Function at 0x4b8cbc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8d88
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b8d9c
mov dl, 4
mov eax, ebx
call fcn.004b8e80
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x4b8d72
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x4b8d64
test byte [ebx + 0x20], 8
jne 0x4b8d21
cmp word [ebx + 0x1004a], 0
je 0x4b8d21
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x4b8d72
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x4b8d44
call fcn.00402ff8
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x4b8d72
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8d8f
lea eax, [ebp - 4]
call fcn.00403e24
ret

Function at 0x4b8f28
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x4b8f64
mov dl, 8
mov eax, ebx
call fcn.004b8e80
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x4b8f56
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4b8f74
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4b8f7b
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x4b8fc8
mov dl, 8
mov eax, ebx
call fcn.004b8e80
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret

Function at 0x4b9200
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x4b9243
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x4b9234
mov edx, esi
mov eax, ebx
call fcn.00409cc8
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4b925c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x4b92c8
call fcn.0040a210
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4c95a4
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4c95bb
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9741
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.004182dc
mov dword [ebx + 0x90], 0xffffffff
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x84], 1
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x94], 0
xor eax, eax
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4c38e4]
call fcn.0040308c
mov dword [ebx + 0x74], eax
lea edx, [ebp - 8]
mov eax, dword [0x536148]
call fcn.00405f30
mov eax, dword [ebp - 8]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c2060]
call fcn.004c7fe8
mov esi, eax
mov dword [ebx + 0x78], esi
mov byte [esi + 4], 0
mov byte [esi + 0x2c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x536094]
call fcn.00405f30
mov eax, dword [ebp - 0xc]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c2060]
call fcn.004c7fe8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x28], 0x80000000
mov byte [ebx + 0x64], 1
mov word [ebx + 0x38], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c345c]
call fcn.004c871c
mov dword [ebx + 0x58], eax
lea edx, [ebx + 0x70]
mov eax, dword [0x536198]
call fcn.00405f30
lea edx, [ebx + 0x60]
mov eax, dword [0x536134]
call fcn.00405f30
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x54], eax
mov al, byte [0x4c9768]
mov byte [ebx + 0x95], al
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x50], 0xffffffff
mov byte [ebx + 0xea], 1
mov byte [ebx + 0xe8], 1
mov byte [ebx + 0xeb], 0
lea eax, [ebx + 0xe0]
call fcn.00403e24
mov al, byte [0x4c976c]
mov byte [ebx + 0x9c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9748
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403e48
ret

Function at 0x4dc5b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4dc5e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5c6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5d5
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5e4
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4dcc00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x536040]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4dcc2d
mov edx, dword [0x536040]
xor edx, edx
call fcn.0044a4e4
push 0
mov eax, dword [0x536040]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
ret