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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4e0348
add esp, 0xfffffff0
call fcn.00405d88
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4e0462
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404350
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4e044c
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004dbc88
xor eax, eax
push ebp
push 0x4e0439
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004dbc88
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00407f14
jmp 0x4e040a
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.004084bc
mov eax, dword [ebx + 4]
call fcn.0040801c
dec eax
jle 0x4e041e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4e03f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0440
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0469
lea eax, [ebp - 4]
call fcn.00407784
ret
Function at 0x4f73a0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x6b1644
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4f73c2
shr eax, 1
xor eax, 0xedb88320
jmp 0x4f73c4
shr eax, 1
dec edx
jne 0x4f73b0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4f73a9
mov byte [0x6b1a44], 1
pop esi
pop ebx
ret

Function at 0x4f73e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6b1a44], 0
jne 0x4f73f7
call fcn.004f73a0
mov eax, edi
dec eax
test eax, eax
jl 0x4f741f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6b1644]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4f7401
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4fa1c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4fa262.0
jmp dword [ecx*4 + 0x4fa1fb]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4fa22d
sub dl, 8
je 0x4fa23c
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4f9e70
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4f9ec8
jmp case.0x4fa262.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4fa262.0
movzx ecx, byte [ecx + 0x4fa269]
jmp dword [ecx*4 + 0x4fa27a]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4f9f74
jmp case.0x4fa262.0
cmp dl, 3
jne 0x4fa2a7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4f9fcc
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4f9f88
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4fa010
jmp case.0x4fa262.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4fa2d2
sub dl, 8
je 0x4fa2de
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4fa03c
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4fa0a8
jmp case.0x4fa262.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4fa2fd
sub dl, 8
je 0x4fa309
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4fa164
jmp case.0x4fa262.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4fa18c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x4fa3ab
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004f9374
test eax, eax
je 0x4fa3ab
mov eax, ebx
call fcn.004fa3b4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x4fa344
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fa3b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4fa3e5
dec al
je 0x4fa420
dec al
je 0x4fa465
dec al
je 0x4fa4ce
jmp 0x4fa558
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4fa558
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4fa3f5
jmp 0x4fa558
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fa558
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4fa430
jmp 0x4fa558
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fa558
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4fa494
xor ebp, ebp
jmp 0x4fa4a4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4fa4ad
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fa475
jmp 0x4fa558
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fa558
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4fa527
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004f7428
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fa4e2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x505290
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x5052e1
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x5052c8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5052b8
jmp 0x5052e1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5052c9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x519abc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x519aea
mov eax, ebx
call fcn.0051a570
cmp dword [ebx + 0x40], 0
je 0x519ae3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x519b5b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x519b4d
cmp dword [ebx + 8], 0
je 0x519b0c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x519b1e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x519b4d
cmp dword [ebx + 8], 0
je 0x519aff
cmp eax, 3
je 0x519b31
dec eax
jne 0x519aff
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x519aff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x519aff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x519b79
cmp dword [ebx + 0x14], 0xcc
je 0x519b79
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00519b84
pop ebx
ret
Function at 0x580124
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x580137
add esp, 0xfffffff0
call fcn.00405d88
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5801b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00405824
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x14], 0
lea edx, [ebp - 4]
mov eax, esi
call fcn.005804d0
mov edx, dword [ebp - 4]
lea eax, [esi + 8]
call fcn.00407c9c
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
mov edx, 0x5801e0
call fcn.00408180
mov ecx, esi
mov dl, 1
mov eax, dword [0x57fae8]
call fcn.00580a9c
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5801b7
lea eax, [ebp - 4]
call fcn.00407c8c
ret

Function at 0x580250
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407c84
xor eax, eax
push ebp
push 0x580325
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x30]
call fcn.00580a90
mov ebx, eax
lea eax, [ebx + 0x18]
mov edx, edi
call fcn.00407c9c
lea eax, [ebx + 0x10]
mov edx, dword [ebp + 8]
call fcn.00407c9c
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 4]
call fcn.00406d2c
call fcn.0040801c
test eax, eax
jle 0x5802be
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.00407c9c
jmp 0x5802ef
mov eax, dword [ebx + 0x10]
call fcn.0040801c
test eax, eax
jle 0x5802e2
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x10]
call fcn.00560794
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x14]
call fcn.00407c9c
jmp 0x5802ef
lea eax, [ebx + 0x14]
mov edx, 0x580344
call fcn.00407c9c
mov eax, ebx
call fcn.00580d94
cdq
add eax, dword [esi + 0x28]
adc edx, dword [esi + 0x2c]
jno 0x580304
call fcn.0040571c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58032c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c94
ret
Function at 0x5acb08
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x34], 0
jne 0x5acb88
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [eax*4 + 0x6a7220]
push eax
movzx eax, byte [ebx + 0x40]
mov eax, dword [eax*4 + 0x6a71c0]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebx + 0x44], esi
inc esi
setne al
mov byte [ebx + 0x34], al
test al, al
je 0x5acb88
cmp byte [ebx + 0x35], 1
jne 0x5acb73
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov si, 0xfff0
call fcn.00405ae0
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x5acda4
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x5acf26
cmp dword [ebp - 8], 0
je 0x5acdf5
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.005aa7f4
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7e4
jmp 0x5acdf7
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x5ace21
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.005aa7f4
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7e4
jmp 0x5ace23
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x5ace50
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.005aa7f4
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7e4
jmp 0x5ace55
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x5ace81
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x5ace86
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5acec6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5aced2
cmp dword [ebp - 8], 0
je 0x5aceee
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7cc
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x5acf0a
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7cc
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x5acf26
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.005aa7cc
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5acf34
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 0xffffffff
je 0x5acf71
add dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x5ad3a8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x5ad48b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406b30
test ebx, ebx
je 0x5ad469
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x5ad3ff
mov eax, ebx
call fcn.004072a0
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x5ad475
mov eax, esi
mov edx, ebx
call fcn.00406b84
jmp 0x5ad475
mov eax, ebx
call fcn.004072a0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x5ad475
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x5ad4a8
call fcn.00417aac
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.00407ef0
jmp 0x5ad475
mov eax, esi
mov edx, 0x5ad4cc
call fcn.00406b84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ad492
lea eax, [ebp - 4]
call fcn.00407c8c
ret

Function at 0x5ad5fc
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406b30
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x5ad63b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.00406e98
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x5af7ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
lea eax, [ebp - 0x20a]
call fcn.00417904
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407d28
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5b4048
test al, 0x10
jne 0x5b404d
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x5b6518
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x5b655d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x5b655d
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x5b65fe
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0xc]
call fcn.00404368
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x5b65f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x6a76cc
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x5b65ee
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x5b65ea
mov byte [ebp - 1], 1
jmp 0x5b65ee
inc edi
dec ebx
jne 0x5b65d2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00404384
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b68dc
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c84
mov eax, dword [ebp - 8]
call fcn.00407c84
xor eax, eax
push ebp
push 0x5b69ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00407c9c
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 8]
call fcn.00407d28
push eax
mov eax, dword [ebp - 4]
call fcn.00407d28
mov edi, eax
push edi
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 0x14]
call fcn.00417930
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.00404350
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 8]
call fcn.00407d28
push eax
push edi
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
je 0x5b69a1
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005b67c0
push ebx
call sub.advapi32.dll_GetSidSubAuthorityCount
push ebx
call sub.advapi32.dll_GetLengthSid
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00417904
mov eax, esi
call fcn.00417970
mov eax, ebx
call fcn.00404384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b69d1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407c94
ret