joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b694
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404008
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b84
test ebx, ebx
je 0x45b6df
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x45b7bc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45b7ed
mov ecx, dword [0x4bcb80]
mov dl, 1
mov eax, dword [0x45a744]
call fcn.0040b75c
call fcn.004035f4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45b81a
mov ecx, dword [0x4bcaf0]
mov dl, 1
mov eax, dword [0x45a744]
call fcn.0040b75c
call fcn.004035f4
xor eax, eax
push ebp
push 0x45b899
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00403078
cmp byte [ebp + 8], 0
je 0x45b875
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0045b724
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045b580
jmp 0x45b88f
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0045b0bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b8b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ba7c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045b33c
xor edx, edx
push ebp
push 0x45bbdc
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45bbc6
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45bac6
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45bad0
call fcn.00403694
jmp 0x45bbe3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004130e8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x45bbbb
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x45bb79
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45bb69
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403078
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045ba34
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45bbec]
cmp dl, byte [eax + 0x28]
je 0x45bbc2
call fcn.0040b638
jmp 0x45bbc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004130f8
jmp 0x45bbc2
cmp eax, ebx
jge 0x45bb92
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004130f8
jmp 0x45bad0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004130e8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00413104
cmp ebx, eax
jne 0x45bad0
push ebp
call fcn.0045ba34
pop ecx
jmp 0x45bbc2
push ebp
call fcn.0045ba34
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bbe3
mov eax, dword [ebp - 4]
call fcn.0045b348
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bbf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bd12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045b33c
xor eax, eax
push ebp
push 0x45bcf5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45bc40
call fcn.00403694
jmp 0x45bcfc
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45bcdf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45bcdf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403078
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45bcdf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ae54
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45bd2c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4bccf0]
mov dl, 1
mov eax, dword [0x45a744]
call fcn.0040b798
call fcn.004035f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bcfc
mov eax, dword [ebp - 4]
call fcn.0045b348
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd19
lea eax, [ebp - 0x28]
call fcn.00403bc4
ret
Function at 0x45bd78
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045b33c
xor eax, eax
push ebp
push 0x45bea5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45bddd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45bddd
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45be8f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45bdf0
call fcn.00403694
jmp 0x45beac
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45be8f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45be8f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403078
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45be8f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ae54
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45bedc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4bccf0]
mov dl, 1
mov eax, dword [0x45a744]
call fcn.0040b798
call fcn.004035f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45beac
mov eax, dword [ebp - 4]
call fcn.0045b348
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bec9
lea eax, [ebp - 0x28]
call fcn.00403bc4
ret
Function at 0x45c83c
Capabilities:
Create pipe

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.0045c9e0
mov dword [esp + 0xc], 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x34]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x45c87d
call fcn.0040c934
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x30]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x45c89b
call fcn.0040c934
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x38]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x45c8b9
call fcn.0040c934
push 2
push 0
push 0
lea eax, [ebx + 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x45c8e2
call fcn.0040c934
push 2
push 0
push 0
lea eax, [ebx + 0x24]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x45c90b
call fcn.0040c934
push 2
push 0
push 0
lea eax, [ebx + 0x2c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x45c934
call fcn.0040c934
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dl, 1
mov eax, dword [0x40f5b4]
call fcn.00402e6c
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x40f5b4]
call fcn.00402e6c
mov dword [ebx + 0x68], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x40]
add esp, 0x18
pop ebx
ret
Function at 0x45cea4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45cf8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x45cf6f
inc esi
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x45cfa8
call fcn.00404130
mov edi, eax
test edi, edi
jle 0x45cf1c
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040404c
mov bl, 1
jmp 0x45cf29
lea eax, [ebp - 0x10]
mov edx, 0x45cfb4
call fcn.00403e4c
cmp dword [ebp - 0x10], 0
je 0x45cf65
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403e44
push eax
lea eax, [ebp - 0x10]
call fcn.00404014
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x45cf65
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xe8
je 0x45cf65
call fcn.0040c934
inc dword [ebp - 0xc]
dec esi
jne 0x45cee3
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cf94
lea eax, [ebp - 0x10]
call fcn.00403bc4
ret
Function at 0x45ffa4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45ffd2
mov eax, ebx
call fcn.00460a48
cmp dword [ebx + 0x3c], 0
je 0x45ffcb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x460043
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x460035
cmp dword [ebx + 8], 0
je 0x45fff4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x460006
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x460035
cmp dword [ebx + 8], 0
je 0x45ffe7
cmp eax, 3
je 0x460019
dec eax
jne 0x45ffe7
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 0x45ffe7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x45ffe7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x460061
cmp dword [ebx + 0x10], 0xcc
je 0x460061
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.0046006c
pop ebx
ret

Function at 0x472708
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 0x472759
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x472740
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x472730
jmp 0x472759
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 0x472741
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fbd8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.00410bdc
mov esi, eax
xor eax, eax
push ebp
push 0x47fc52
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x47fc36
mov edx, ebx
mov eax, esi
call fcn.00410778
test byte [eax + 0x48], 1
je 0x47fc30
push 0
mov edx, ebx
mov eax, esi
call fcn.00410778
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00410618
dec ebx
cmp ebx, 0xffffffff
jne 0x47fc04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc59
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
call fcn.00410c40
ret

Function at 0x48004c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402b84
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x488ce0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x488e32
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x488e17
mov eax, dword [ebp - 0xc]
call fcn.004088d0
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x488e0f
test ebx, ebx
je 0x488e0f
test esi, esi
jne 0x488e04
lea edx, [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00409754
push 0x488e4c
push dword [ebp - 0x10]
push 0x488eb4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403f04
lea ecx, [ebp - 0x18]
mov edx, 0x488ec8
mov eax, dword [ebp - 0x14]
call fcn.00455ea4
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00403c18
lea eax, [edi + 4]
lea edx, [ebx + 0x1b0]
mov ecx, 0x10
call fcn.00403df4
lea eax, [edi + 8]
lea edx, [ebx + 0x1c0]
mov ecx, 0x10
call fcn.00403df4
lea eax, [edi + 0xc]
lea edx, [ebx + 0x1d8]
mov ecx, 0x10
call fcn.00403df4
lea eax, [edi + 0x10]
call fcn.00403bc4
xor esi, esi
lea ecx, [ebp - 0x1c]
xor eax, eax
mov al, byte [ebx + esi + 0x194]
mov edx, 2
call fcn.00408d44
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
call fcn.00403e4c
inc esi
cmp esi, 6
jne 0x488dd7
mov byte [ebp - 1], 1
jmp 0x488e0f
dec esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x488d4d
mov eax, dword [ebp - 8]
call fcn.0040279c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488e39
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403be8
ret
Function at 0x489354
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402b84
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push edi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4893cf
cmp byte [ebp + 0xc], 0
je 0x4893cd
jmp 0x4893c7
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4893cd
cmp byte [esi + 0xc], 0
je 0x4893b5
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b1d8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ff8
mov eax, dword [ebp - 8]
call fcn.00403ff8
xor eax, eax
push ebp
push 0x48b3b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 4]
call fcn.00408f10
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48b38f
mov eax, ebx
call fcn.00409444
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 8]
call fcn.00408f10
cmp eax, 0xffffffff
je 0x48b250
call fcn.00409444
fstp qword [ebp - 0x20]
wait
jmp 0x48b258
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
fld qword [ebp - 0x18]
fsub qword [ebp - 0x20]
fabs
fstp qword [0x4c6d20]
wait
fld xword [0x48b3c8]
fcomp qword [0x4c6d20]
fnstsw ax
sahf
jae 0x48b2af
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.00408fe0
push 0
lea eax, [ebp - 8]
call fcn.00404014
push eax
lea eax, [ebp - 4]
call fcn.00404014
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x48b38f
mov byte [ebp - 0xa], 2
jmp 0x48b38f
cmp byte [ebp - 9], 0
je 0x48b38b
mov dl, 1
mov eax, dword [0x40f5b4]
call fcn.00402e6c
mov esi, eax
mov dl, 1
mov eax, dword [0x40f5b4]
call fcn.00402e6c
mov edi, eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.00404350
mov eax, dword [ebp - 0x24]
push eax
push esi
call fcn.0045828c
test al, al
je 0x48b377
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.0045828c
test al, al
je 0x48b377
mov eax, esi
call fcn.00413104
push eax
mov eax, edi
call fcn.00413104
pop edx
cmp edx, eax
jne 0x48b337
mov eax, esi
call fcn.00413104
mov ecx, eax
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
call fcn.00458420
test eax, eax
je 0x48b371
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.004581e4
test al, al
je 0x48b36b
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x30]
mov edx, ebx
call fcn.00455778
mov byte [ebp - 0xa], 2
jmp 0x48b37b
mov byte [ebp - 0xa], 0
jmp 0x48b37b
mov byte [ebp - 0xa], 1
jmp 0x48b37b
mov byte [ebp - 0xa], 0
mov eax, esi
call fcn.00402e9c
mov eax, edi
call fcn.00402e9c
jmp 0x48b38f
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b3be
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.0040420c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403be8
ret

Function at 0x48f734
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
cmp dword [0x4bbe7c], 0
je 0x48f769
push 1
push 0x48f76c
push 0x48f76c
mov eax, dword [0x4bbe7c]
call fcn.00404008
push eax
push 0x48f770
mov eax, ebx
call fcn.004455d0
push eax
call sub.shell32.dll_ShellExecuteA
pop ebx
ret
Function at 0x48ff24
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402b84
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x48ffab
cmp byte [ebp - 1], 0
je 0x48ffa9
jmp 0x48ffa0
mov eax, dword [0x4bcbec]
mov eax, dword [eax]
call fcn.00431ea0
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x48ffa9
cmp byte [0x4bbe8c], 0
je 0x48ff82
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491f34
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
add esp, 0xffffffc0
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x491f63
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x491f63
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp ebx, 0x100007f
jne 0x491f63
xor ebx, ebx
mov eax, ebx
add esp, 0x40
pop ebx
ret

Function at 0x491f6c
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], 1
call fcn.00491f34
mov dword [0x4c7000], eax
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49205d
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [edi], eax
cmp dword [edi], 0xffffffff
je 0x49205d
mov word [ebp - 0x1a8], 2
xor eax, eax
mov dword [ebp - 0x1a4], eax
mov ax, word [ebp - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [edi]
push eax
call sub.wsock32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_bind
inc eax
jne 0x492016
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x49205d
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov eax, dword [edi]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x492038
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x49205d
push 0x23
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.004455d0
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x49205b
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x49205d
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4