joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b8d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x48b959
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58c098
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x48b943
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004111d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x48b970
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x583eb4]
mov dl, 1
mov eax, dword [0x48b04c]
call fcn.00411b0c
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b960
lea eax, [ebp - 0x1c]
call fcn.004055e4
ret

Function at 0x48c000
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x48c05c]
cmp al, byte [ebx + 0x28]
je 0x48c024
mov esi, 0x401
mov eax, ebx
call fcn.0048c16c
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x48c05c]
cmp al, byte [ebx + 0x28]
jne 0x48c054
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x48c0e8
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.0048c000
mov cl, 1
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048a0
mov edx, dword [0x58c230]
mov eax, 0x58c244
mov ecx, 5
call fcn.004035b8
push 0x10
lea eax, [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x48c164
mov eax, edi
call fcn.0048b814
mov byte [edi + 0x29], 0
test byte [edi + 0x28], 0x10
jne 0x48c157
cmp dword [edi + 4], 0xffffffff
setne al
mov byte [edi + 8], al
mov cl, 2
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048a0
pop edi
pop esi
ret

Function at 0x48c188
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405a74
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403e38
test ebx, ebx
je 0x48c1d7
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x48c2b4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x48c2e5
mov ecx, dword [0x583c04]
mov dl, 1
mov eax, dword [0x48b04c]
call fcn.00411ad0
call fcn.00404f18
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48c312
mov ecx, dword [0x583ac0]
mov dl, 1
mov eax, dword [0x48b04c]
call fcn.00411ad0
call fcn.00404f18
xor eax, eax
push ebp
push 0x48c39e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048bb58
mov eax, dword [ebp - 4]
call fcn.0048bb94
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004048a0
cmp byte [ebp + 8], 0
je 0x48c37a
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0048c21c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0048c0e8
jmp 0x48c394
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0048bbc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48c3bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48c59c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0048be90
xor eax, eax
push ebp
push 0x48c724
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x48c70e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x48c5e8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48c5f2
call fcn.00404fc4
jmp 0x48c72b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004210e8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x48c703
mov edx, dword [0x58c228]
mov eax, 0x58c234
mov ecx, 5
call fcn.004035b8
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x48c6b6
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x48c6a3
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0048c554
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x48c738]
cmp dl, byte [eax + 0x28]
je 0x48c70a
call fcn.004119e8
jmp 0x48c70a
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421108
jmp 0x48c70a
cmp edi, ebx
jge 0x48c6d2
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421108
jmp 0x48c5f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004210e8
cmp edx, dword [esp + 4]
jne 0x48c6f2
cmp eax, dword [esp]
pop edx
pop eax
jne 0x48c5f2
push ebp
call fcn.0048c554
pop ecx
jmp 0x48c70a
push ebp
call fcn.0048c554
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c72b
mov eax, dword [ebp - 4]
call fcn.0048be9c
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c73c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c873
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048be90
xor eax, eax
push ebp
push 0x48c856
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48c78c
call fcn.00404fc4
jmp 0x48c85d
mov edx, dword [0x58c228]
mov eax, 0x58c234
mov ecx, 5
call fcn.004035b8
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48c840
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x48c840
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x48c840
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004111d0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x48c88c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x583eb4]
mov dl, 1
mov eax, dword [0x48b04c]
call fcn.00411b0c
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c85d
mov eax, dword [ebp - 4]
call fcn.0048be9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c87a
lea eax, [ebp - 0x28]
call fcn.004055e4
ret
Function at 0x48c8dc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ca3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048be90
xor eax, eax
push ebp
push 0x48ca1e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x48c941
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x48c941
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x48ca08
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x48c954
call fcn.00404fc4
jmp 0x48ca25
mov edx, dword [0x58c22c]
mov eax, 0x58c23c
mov ecx, 5
call fcn.004035b8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48ca08
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x48ca08
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x48ca08
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004111d0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x48ca54
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x583eb4]
mov dl, 1
mov eax, dword [0x48b04c]
call fcn.00411b0c
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ca25
mov eax, dword [ebp - 4]
call fcn.0048be9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ca42
lea eax, [ebp - 0x28]
call fcn.004055e4
ret

Function at 0x48d098
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0048af94
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.0048af84
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x48d4b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push 0x48d584
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x48d581
push 0x48d590
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58c22c], eax
push 0x58c254
push 0x40
push 8
mov eax, dword [0x58c22c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48d509
mov edx, 0x58c23c
mov eax, dword [0x58c22c]
mov ecx, 5
call fcn.004035b8
push 0x48d598
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58c228], eax
push 0x58c24c
push 0x40
push 8
mov eax, dword [0x58c228]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48d545
mov edx, 0x58c234
mov eax, dword [0x58c228]
mov ecx, 5
call fcn.004035b8
push 0x48d5a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58c230], eax
push 0x58c25c
push 0x40
push 8
mov eax, dword [0x58c230]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48d581
mov edx, 0x58c244
mov eax, dword [0x58c230]
mov ecx, 5
call fcn.004035b8
pop ebx
ret

Function at 0x48d704
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48d804
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040567c
lea eax, [ebp - 4]
call fcn.00405acc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48d7ee
mov eax, ebx
call fcn.0040320c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48d7e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x48d7d1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x48d818
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x48d7d1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d7ee
mov eax, dword [ebp - 0x10]
call fcn.00403228
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d80b
lea eax, [ebp - 4]
call fcn.004055e4
ret
Function at 0x48e4fc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405a64
xor eax, eax
push ebp
push 0x48e6d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403e38
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00403e38
mov dword [ebp - 0x50], 0x44
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [ebp - 5], 0
je 0x48e6ba
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [edi], 0x10007
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetThreadContext
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
jmp 0x48e69d
cmp dword [ebp - 0x5c], 0x10000
je 0x48e6b0
add ebx, dword [ebp - 0x60]
push 0x1c
lea eax, [ebp - 0x6c]
push eax
push ebx
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x48e691
mov eax, dword [ebp + 0x10]
sub ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e6d7
lea eax, [ebp - 4]
call fcn.004055e4
ret
Function at 0x490448
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4904e2
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x577708]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x577708]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x577708]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x577708]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x490467
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4904f8
dec edx
je 0x49052d
jmp 0x49057e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x577708]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x577708]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x49057e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x577708]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x577708]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x577708]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4905fc
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x49061b
add edx, 3
sar edx, 2
test edx, edx
jle 0x490729
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x490650
je 0x490693
sub ecx, 0x2b
je 0x490689
sub ecx, 4
je 0x49068e
dec ecx
sub ecx, 0xa
jb 0x49067b
jmp 0x490696
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x490662
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x49066d
jmp 0x490696
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x490696
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x490696
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x490696
mov byte [eax], 0x3e
jmp 0x490696
mov byte [eax], 0x3f
jmp 0x490696
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x490633
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4906e7
cmp byte [esp + 7], 0xff
jne 0x4906e7
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x49071e
cmp dl, 0xff
je 0x49071e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x49062a
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4953f4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40af28]
call fcn.004060c0
xor eax, eax
push ebp
push 0x495595
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x577c3c], 0
jne 0x49544f
mov ecx, dword [0x5833a8]
mov dl, 1
mov eax, dword [0x40b74c]
call fcn.00411ad0
call fcn.00404f18
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403e38
mov eax, ebx
call fcn.00405f70
mov dword [ebp - 0x24], eax
mov esi, 0x4955a4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00407400
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405f80
test eax, eax
jle 0x495538
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x495524
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405854
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4954ca
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040586c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4954e0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040586c
mov eax, dword [ebp - 0x54]
call fcn.00405a74
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405854
mov eax, dword [ebp - 0x58]
call fcn.00405a74
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x495526
xor eax, eax
test al, al
je 0x495531
mov ebx, 0x15
jmp 0x49553d
mov ebx, 0x10
jmp 0x49553d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x577c3c]
call fcn.00495274
mov eax, dword [ebp - 4]
call fcn.00495274
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49559c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405608
lea eax, [ebp - 0xc]
mov edx, dword [0x40af28]
call fcn.00406190
ret