joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498e14
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x498e83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20e]
push eax
push 0
push 0x498e94
mov eax, dword [ebp - 4]
call fcn.00404bfc
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
je 0x498e6b
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x498e6d
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498e8a
lea eax, [ebp - 4]
call fcn.004049b8
ret

Function at 0x4991f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x499314
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bfc
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402774
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4992e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x499324
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov si, word [eax + 8]
and si, 0xffff
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1e], dx
mov di, word [eax + 0xc]
and di, 0xffff
mov eax, dword [ebp - 8]
push eax
movzx eax, bx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, si
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, di
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x499330
call fcn.0040a3d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4992f3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00402794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49931b
lea eax, [ebp - 4]
call fcn.004049b8
ret

Function at 0x4995a0
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 0x4995d0
push 0
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4995ca
push esi
call sub.kernel32.dll_CloseHandle
mov bl, 1
jmp 0x4995d0
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x499654
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x4996a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov eax, dword [ebp - 4]
call fcn.00404bfc
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesW
push ebx
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4996af
lea eax, [ebp - 4]
call fcn.004049b8
ret

Function at 0x4996b8
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.00404fb4
xor eax, eax
push ebp
push 0x499799
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov eax, dword [ebp - 4]
call fcn.00404bfc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [0x4e3304]
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, 0x4997b0
mov edx, dword [ebp - 4]
call fcn.00404c78
mov eax, dword [ebp - 0x28]
call fcn.00404bfc
mov dword [ebp - 0x1a], eax
mov eax, 0x4997b4
mov dword [ebp - 0x16], eax
test bl, bl
je 0x499734
mov word [ebp - 0x12], 0x54
jmp 0x49973a
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 0x49976f
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 0x49977b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4997a0
lea eax, [ebp - 0x28]
call fcn.004049b8
lea eax, [ebp - 4]
call fcn.004049b8
ret

Function at 0x49b0ac
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.00404b64
add esp, 0x20c
pop ebx
ret

Function at 0x49c828
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 0x49c879
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x49c860
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x49c850
jmp 0x49c879
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 0x49c861
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac968
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 0x4acbc8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4ac9cb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ac430
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dcc4
cmp al, 1
jne 0x4ac9cb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004ac748
test al, al
je 0x4acb57
cmp dword [ebp - 8], 0
jge 0x4ac9e9
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.004ac430
mov eax, dword [ebp - 0x210]
call fcn.00404598
cmp ebx, eax
jge 0x4aca33
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ac430
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e34ec]
and eax, 0xff
bt dword [edx], eax
jae 0x4aca33
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4aca47
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ac944
cmp ebx, dword [ebp - 8]
je 0x4acb49
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 0x4aca73
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403668
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e2b7c]
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 0x4acb36
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403668
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e2b7c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00465008
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403668
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e2b7c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00465008
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acb3d
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 0x4acbaa
cmp dword [ebp - 8], 0
jge 0x4acb62
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ac430
mov eax, dword [ebp - 0x218]
call fcn.00404598
cmp eax, dword [ebp - 8]
jg 0x4acb9c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ac430
mov eax, dword [ebp - 0x21c]
call fcn.00404598
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ac944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acbcf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004042e0
ret
Function at 0x4c1a2c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, 0x4c1ac8
call fcn.00404d24
jne 0x4c1a4d
push esp
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x4c1aa6
mov eax, dword [ebx + 4]
call fcn.00404c0c
test eax, eax
jle 0x4c1aa6
mov eax, dword [ebx + 4]
call fcn.00404c0c
mov edx, dword [ebx + 4]
cmp word [edx + eax*2 - 2], 0x3a
jne 0x4c1a79
lea eax, [ebx + 4]
mov edx, 0x4c1ae0
call fcn.00404c18
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.00404bfc
push eax
push 0
push 0
mov eax, dword [0x4e2c20]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c1ab2
call fcn.0040346c
mov eax, dword [esp]
call fcn.004c1438
mov dword [ebx + 8], eax
add esp, 0xc
pop ebx
ret

Function at 0x4c1ae4
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 0x4c1b58
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.00404b64
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, 0x4c1b68
call fcn.00404c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1b5f
lea eax, [ebp - 0x210]
call fcn.004049b8
ret

Function at 0x4c3398
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x4e2c48
push 0x4c3488
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4c3485
push 0x12
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5928], eax
push 0x13
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e592c], eax
push 0x19
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5930], eax
push 0x99
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5934], eax
push 0x10
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5938], eax
push 0x15
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e594c], eax
push 0x11
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e593c], eax
push 0x98
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5940], eax
push 0x9b
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5944], eax
push 2
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2c4c], eax
push 4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2c50], eax
push 0x284
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2c54], eax
push 0x285
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2c58], eax
pop ebx
ret
Function at 0x4c4830
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
cmp byte [0x4e2c68], 0
jne 0x4c4886
push 0x4e5964
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4c487f
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, 0x4c4898
mov dl, 1
mov eax, dword [0x4c3d6c]
call fcn.0040d304
call fcn.00403c38
mov byte [0x4e2c68], 1
mov al, 1
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4c4a4c
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 0x4c4ab2
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 0x4c4a98
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4c4ab2
jmp 0x4c4a9c
pop edx
pop eax
jg 0x4c4ab2
mov ecx, 0x4c4ad4
mov dl, 1
mov eax, dword [0x407e0c]
call fcn.0040d2c8
call fcn.00403c38
push 1
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4c4a5f
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x4c4f00
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov bl, 1
jmp 0x4c5035
cmp dword [edi + 0x30], 0xffffffff
jne 0x4c4f21
mov byte [edi + 0x19c], 0
jmp 0x4c503d
mov esi, 0xfffffffe
cmp byte [edi + 0x64], 4
jne 0x4c4f75
lea eax, [esp + 4]
push eax
push 0x4004667f
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4c4f5a
mov byte [edi + 0x19c], 0
mov edx, 0x4c504c
mov eax, edi
call fcn.004c6ecc
jmp 0x4c503d
cmp dword [esp + 4], 0
jle 0x4c4f75
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 0x4c4fe7
inc dword [edi + 0x1a0]
cmp byte [esp], 0xa
je 0x4c4fae
cmp byte [esp], 0xd
je 0x4c4fae
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 0x4c4fd6
mov byte [esp], 0xa
cmp word [edi + 0x5ea], 0
je 0x4c4fd6
mov edx, edi
mov eax, dword [edi + 0x5ec]
call dword [edi + 0x5e8]
cmp byte [esp], 0xa
jne 0x4c5035
xor ebx, ebx
mov byte [edi + 0x19c], 0
jmp 0x4c5035
test esi, esi
jne 0x4c4ffd
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4c5035
inc esi
jne 0x4c5033
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x4c501e
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4c5035
cmp eax, 0x2733
je 0x4c5035
mov edx, 0x4c5060
mov eax, edi
call fcn.004c6ecc
jmp 0x4c503d
xor ebx, ebx
test bl, bl
jne 0x4c4f0f
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4c544c
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 0x4c553a
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
xor eax, eax
push ebp
push 0x4c552e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19c], 0
je 0x4c5491
mov eax, dword [ebp - 4]
call fcn.004c4f00
jmp 0x4c54e8
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 0x4c54e8
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 0x4c54e8
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], esi
cmp esi, 0x2733
jne 0x4c54e8
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 0x4c5542
mov eax, dword [ebp - 4]
cmp dword [eax + 0x7c], 0
je 0x4c54f5
xor ebx, ebx
jmp 0x4c5524
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 0x4c551c
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
xor ebx, ebx
jmp 0x4c5524
cmp dword [ebp - 0xc], 0
jne 0x4c5524
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c553a
test bl, bl
jne 0x4c5465
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5d30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404788
xor eax, eax
push ebp
push 0x4c5e22
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.00408fd4
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.00409d94
cmp byte [0x4e2c68], 0
jne 0x4c5d8c
mov eax, 0x4c5e30
call fcn.004c4830
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4c5dfe
mov edx, 0x4c5e3c
lea eax, [ebp - 0x109]
call fcn.00409dd8
test eax, eax
jne 0x4c5db6
or eax, 0xffffffff
jmp 0x4c5dfe
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4c5df7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0xb
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, 0x4c5e54
mov dl, 1
mov eax, dword [0x4c3d6c]
call fcn.0040d304
call fcn.00403c38
jmp 0x4c5dfe
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 0x4c5e29
lea eax, [ebp - 0x110]
call fcn.004042bc
lea eax, [ebp - 4]
call fcn.004042bc
ret
Function at 0x4c7f54
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.00404924
mov eax, esi
call fcn.004047f0
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402de8
cmp byte [ebp - 1], 0
jne 0x4c7fc7
mov eax, esi
call fcn.004047f0
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 0x4c7fe0
sub al, 2
jb 0x4c7fe7
jmp 0x4c7fec
mov ebx, 2
jmp 0x4c7fec
mov ebx, 1
mov eax, esi
call fcn.004047f0
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4c80ce
test edi, edi
jle 0x4c8048
mov eax, esi
call fcn.004047f0
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.004047f0
mov byte [eax + ebx - 1], 0
jmp 0x4c80c2
test edi, edi
jge 0x4c808e
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004047f0
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 0x4c80c2
mov eax, esi
call fcn.004047f0
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.004047f0
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4c8004
mov al, byte [ebp - 1]
sub al, 1
jb 0x4c80db
sub al, 2
jb 0x4c8113
jmp 0x4c8159
cmp edi, 2
jne 0x4c80e1
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4c8159
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004047f0
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4c8174
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4c80f1
jmp 0x4c8159
cmp edi, 2
jne 0x4c8119
dec ebx
test ebx, ebx
jle 0x4c8154
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004047f0
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4c81c0
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4c8125
jmp 0x4c8154
inc ebx
mov eax, esi
call fcn.004047f0
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4c8147
mov eax, esi
mov edx, ebx
call fcn.00404924
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8518
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4d8521
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 8]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x4d86f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 6
mov eax, dword [ebx + 0x424]
mov byte [eax + 0x14c], 1
mov edx, dword [ebx + 0x4e8]
mov dword [eax + 0x150], edx
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d7ae8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404d24
jne 0x4d858d
mov esi, 2
jmp 0x4d86cf
mov eax, dword [ebp - 0xc]
call fcn.004743b0
test al, al
je 0x4d85b2
mov eax, 0x4d870c
call fcn.004993c4
cmp eax, 2
jne 0x4d85b2
mov esi, 2
jmp 0x4d86cf
mov eax, dword [ebx + 0x424]
mov eax, dword [eax + 0x150]
mov dword [ebx + 0x4e8], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00474558
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004742f4
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00474558
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004742f4
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404d24
jne 0x4d8658
cmp dword [0x4e5b48], 1
jg 0x4d8621
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404560
mov eax, dword [ebp - 0x20]
call fcn.0049a3bc
test al, al
jne 0x4d8658
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404bfc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404bfc
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4d864f
mov eax, 0x4d8730
call fcn.0049934c
jmp 0x4d86cf
mov byte [0x4e5b19], 0
jmp 0x4d86cf
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404560
mov eax, dword [ebp - 0x24]
call fcn.0049a3bc
test al, al
je 0x4d86c5
cmp byte [ebx + 0x4dc], 0
je 0x4d86b2
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.00404560
mov eax, dword [ebp - 0x28]
call fcn.004999c0
cmp al, 3
jne 0x4d86b2
mov eax, dword [ebx + 0x428]
call fcn.004879bc
xor edx, edx
mov eax, ebx
call fcn.004d5778
xor edx, edx
mov eax, dword [ebx + 0x428]
call fcn.004879c4
push 1
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d8338
jmp 0x4d86cf
mov eax, 0x4d8740
call fcn.0049934c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d86fe
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004042e0
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004049d0
ret