joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9970
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004050a4
xor eax, eax
push ebp
push 0x4a9a51
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov eax, dword [ebp - 4]
call fcn.00404cec
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [0x50258c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], 3
lea eax, [ebp - 0x28]
mov ecx, 0x4a9a68
mov edx, dword [ebp - 4]
call fcn.00404d68
mov eax, dword [ebp - 0x28]
call fcn.00404cec
mov dword [ebp - 0x1a], eax
mov eax, 0x4a9a6c
mov dword [ebp - 0x16], eax
test bl, bl
je 0x4a99ec
mov word [ebp - 0x12], 0x454
jmp 0x4a99f2
mov word [ebp - 0x12], 0x40
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a9a27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a9a33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9a58
lea eax, [ebp - 0x28]
call fcn.00404aa8
lea eax, [ebp - 4]
call fcn.00404aa8
ret

Function at 0x4ab324
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, edx
push 0
push eax
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404c54
add esp, 0x20c
pop ebx
ret

Function at 0x4ab6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ab70c
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4ab7bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetDesktopFolder
call fcn.00417f48
test al, al
je 0x4ab7a5
lea eax, [ebp - 0x18]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00417f48
test al, al
je 0x4ab7a5
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x5025ec]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.00417f48
test al, al
je 0x4ab79d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.00404cec
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.00417f54
test al, al
je 0x4ab79d
mov eax, dword [ebp - 4]
call fcn.004061a4
lea eax, [ebp - 0x18]
call fcn.004ab354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab7c2
lea eax, [ebp - 0x14]
call fcn.004061a4
ret
Function at 0x4b3760
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4b37aa
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404c54
jmp 0x4b37b1
mov eax, ebx
call fcn.00404aa8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b37b8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x4b37f0
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x4b37f0
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x4b37f0
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4b97d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4b9821
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4b9808
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4b97f8
jmp 0x4b9821
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 0x4b9809
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9b00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c9d60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c9b63
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c95c8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e3a4
cmp al, 1
jne 0x4c9b63
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c98e0
test al, al
je 0x4c9cef
cmp dword [ebp - 8], 0
jge 0x4c9b81
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c95c8
mov eax, dword [ebp - 0x210]
call fcn.0040465c
cmp ebx, eax
jge 0x4c9bcb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c95c8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x502790]
and eax, 0xff
bt dword [edx], eax
jae 0x4c9bcb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c9bdf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c9adc
cmp ebx, dword [ebp - 8]
je 0x4c9ce1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c9c0b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040371c
and eax, 0x7f
movzx eax, word [eax*2 + 0x501dc0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c9cce
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040371c
and eax, 0x7f
movzx eax, word [eax*2 + 0x501dc0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00467d84
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040371c
and eax, 0x7f
movzx eax, word [eax*2 + 0x501dc0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00467d84
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9cd5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c9d42
cmp dword [ebp - 8], 0
jge 0x4c9cfa
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c95c8
mov eax, dword [ebp - 0x218]
call fcn.0040465c
cmp eax, dword [ebp - 8]
jg 0x4c9d34
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c95c8
mov eax, dword [ebp - 0x21c]
call fcn.0040465c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c9adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9d67
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404394
ret
Function at 0x4dec78
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, 0x4ded14
call fcn.00404e14
jne 0x4dec99
push esp
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x4decf2
mov eax, dword [ebx + 4]
call fcn.00404cfc
test eax, eax
jle 0x4decf2
mov eax, dword [ebx + 4]
call fcn.00404cfc
mov edx, dword [ebx + 4]
cmp word [edx + eax*2 - 2], 0x3a
jne 0x4decc5
lea eax, [ebx + 4]
mov edx, 0x4ded2c
call fcn.00404d08
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00404cec
push eax
push 0
push 0
mov eax, dword [0x501e64]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4decfe
call fcn.00403520
mov eax, dword [esp]
call fcn.004de680
mov dword [ebx + 8], eax
add esp, 0xc
pop ebx
ret

Function at 0x4ded30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor ecx, ecx
mov dword [ebp - 0x210], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4deda4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push eax
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00404c54
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, 0x4dedb4
call fcn.00404d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dedab
lea eax, [ebp - 0x210]
call fcn.00404aa8
ret

Function at 0x4df7ac
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4df7dc
push 0
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4df7d6
push esi
call sub.kernel32.dll_CloseHandle
mov bl, 1
jmp 0x4df7dc
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4df7e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
jmp 0x4df84e
push 1
push 0
push 0
mov eax, dword [esi + 0x34]
push eax
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4df81b
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
test bl, bl
je 0x4df84e
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, edi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4df842
cmp eax, 0xbb8
jbe 0x4df84e
jmp 0x4df844
jle 0x4df84e
call sub.kernel32.dll_GetCurrentProcessId
call fcn.004df7ac
mov eax, esi
call fcn.004df408
test al, al
jne 0x4df7f7
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4e06c8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x501e8c
push 0x4e07b8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4e07b5
push 0x12
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d440], eax
push 0x13
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d444], eax
push 0x19
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d448], eax
push 0x99
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d44c], eax
push 0x10
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d450], eax
push 0x15
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d464], eax
push 0x11
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d454], eax
push 0x98
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d458], eax
push 0x9b
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51d45c], eax
push 2
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x501e90], eax
push 4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x501e94], eax
push 0x284
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x501e98], eax
push 0x285
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x501e9c], eax
pop ebx
ret

Function at 0x4e16e0
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
cmp byte [0x501ea8], 0
jne 0x4e1736
push 0x51d474
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e172f
mov dword [esp], esi
mov byte [esp + 4], 6
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
push esp
push 1
mov ecx, 0x4e1748
mov dl, 1
mov eax, dword [0x4e0c1c]
call fcn.0040d9dc
call fcn.00403cec
mov byte [0x501ea8], 1
mov al, 1
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4e18fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov ebx, eax
mov edi, esp
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x4e1962
push edi
call sub.user32.dll_TranslateMessage
push edi
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebx + 0x600]
cdq
cmp edx, dword [esp + 4]
jne 0x4e1948
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4e1962
jmp 0x4e194c
pop edx
pop eax
jg 0x4e1962
mov ecx, 0x4e1984
mov dl, 1
mov eax, dword [0x408050]
call fcn.0040d9a0
call fcn.00403cec
push 1
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4e190f
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4e1db0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, eax
mov bl, 1
jmp 0x4e1eea
cmp dword [edi + 0x30], 0xffffffff
jne 0x4e1dd2
mov byte [edi + 0x19c], 0
jmp 0x4e1ef2
mov esi, 0xfffffffe
cmp byte [edi + 0x64], 4
jne 0x4e1e26
lea eax, [esp + 4]
push eax
push 0x4004667f
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4e1e0b
mov byte [edi + 0x19c], 0
mov edx, 0x4e1f04
mov eax, edi
call fcn.004e3e24
jmp 0x4e1ef2
cmp dword [esp + 4], 0
jle 0x4e1e26
push 0
push 1
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 1
jne 0x4e1e98
inc dword [edi + 0x1a0]
cmp byte [esp], 0xa
je 0x4e1e5f
cmp byte [esp], 0xd
je 0x4e1e5f
inc dword [edi + 0x198]
mov eax, dword [edi + 0x198]
mov dl, byte [esp]
mov byte [edi + eax + 0x96], dl
mov eax, dword [edi + 0x198]
mov byte [edi + 0x96], al
cmp dword [edi + 0x198], 0xfe
jl 0x4e1e87
mov byte [esp], 0xa
cmp word [edi + 0x5ea], 0
je 0x4e1e87
mov edx, edi
mov eax, dword [edi + 0x5ec]
call dword [edi + 0x5e8]
cmp byte [esp], 0xa
jne 0x4e1eea
xor ebx, ebx
mov byte [edi + 0x19c], 0
jmp 0x4e1eea
test esi, esi
jne 0x4e1eae
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4e1eea
inc esi
jne 0x4e1ee8
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
cmp ebp, 0x2746
jne 0x4e1ed2
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4e1eea
cmp ebp, 0x2733
je 0x4e1eea
mov edx, 0x4e1f18
mov eax, edi
call fcn.004e3e24
jmp 0x4e1ef2
xor ebx, ebx
test bl, bl
jne 0x4e1dc0
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e2358
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
jmp 0x4e2446
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
xor eax, eax
push ebp
push 0x4e243a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19c], 0
je 0x4e239d
mov eax, dword [ebp - 4]
call fcn.004e1db0
jmp 0x4e23f4
mov edx, dword [ebp - 8]
mov dx, word [edx + 0xa]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
test al, al
jne 0x4e23f4
push 0
push 0x400
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_recv
inc eax
jne 0x4e23f4
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], esi
cmp esi, 0x2733
jne 0x4e23f4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e244e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x7c], 0
je 0x4e2401
xor ebx, ebx
jmp 0x4e2430
lea eax, [ebp - 0xc]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4e2428
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
xor ebx, ebx
jmp 0x4e2430
cmp dword [ebp - 0xc], 0
jne 0x4e2430
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e2446
test bl, bl
jne 0x4e2371
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e2c78
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x4e2d72
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
call fcn.00409218
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.0040a3cc
cmp byte [0x501ea8], 0
jne 0x4e2cd4
mov eax, 0x4e2d80
call fcn.004e16e0
lea eax, [ebp - 0x10d]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4e2d4e
mov edx, 0x4e2d8c
lea eax, [ebp - 0x10d]
call fcn.0040a410
test eax, eax
jne 0x4e2cfe
or eax, 0xffffffff
jmp 0x4e2d4e
lea eax, [ebp - 0x10d]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e2d44
mov eax, dword [ebp - 4]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
lea eax, [ebp - 0x11c]
push eax
push 0
mov ecx, 0x4e2da4
mov dl, 1
mov eax, dword [0x4e0c1c]
call fcn.0040d9dc
call fcn.00403cec
jmp 0x4e2d4e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2d79
lea eax, [ebp - 0x114]
call fcn.00404370
lea eax, [ebp - 4]
call fcn.00404370
ret
Function at 0x4e4eac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.004049e8
mov eax, esi
call fcn.004048b4
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402e9c
cmp byte [ebp - 1], 0
jne 0x4e4f1f
mov eax, esi
call fcn.004048b4
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x4e4f38
sub al, 2
jb 0x4e4f3f
jmp 0x4e4f44
mov ebx, 2
jmp 0x4e4f44
mov ebx, 1
mov eax, esi
call fcn.004048b4
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4e5026
test edi, edi
jle 0x4e4fa0
mov eax, esi
call fcn.004048b4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.004048b4
mov byte [eax + ebx - 1], 0
jmp 0x4e501a
test edi, edi
jge 0x4e4fe6
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004048b4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4e501a
mov eax, esi
call fcn.004048b4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc dword [ebp - 0x10]
inc ebx
mov eax, esi
call fcn.004048b4
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4e4f5c
mov al, byte [ebp - 1]
sub al, 1
jb 0x4e5033
sub al, 2
jb 0x4e506b
jmp 0x4e50b1
cmp edi, 2
jne 0x4e5039
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4e50b1
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4e50cc
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4e5049
jmp 0x4e50b1
cmp edi, 2
jne 0x4e5071
dec ebx
test ebx, ebx
jle 0x4e50ac
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004048b4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4e5118
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4e507d
jmp 0x4e50ac
inc ebx
mov eax, esi
call fcn.004048b4
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4e509f
mov eax, esi
mov edx, ebx
call fcn.004049e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ed900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4eda6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50226c]
cmp byte [eax], 0
jne 0x4ed95b
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404624
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.0043b7ac
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404c70
jmp 0x4eda42
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404cec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4ed98d
mov eax, esi
call fcn.00404aa8
jmp 0x4eda42
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x4ed9c4
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x5023b8]
call fcn.00406684
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x43b150]
call fcn.0040d9dc
call fcn.00403cec
cmp dword [ebp - 8], 1
jne 0x4ed9d1
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00405060
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00404cec
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404cec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4eda32
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x5027bc]
call fcn.00406684
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x43b150]
call fcn.0040d9dc
call fcn.00403cec
mov eax, dword [esi]
call fcn.00404cec
mov edx, eax
mov eax, esi
call fcn.00404c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eda71
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404394
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404394
ret