joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bdc4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov ecx, dword [esi]
xor edi, edi
cmp eax, 2
je 0x1000bded
push 0x10036e18
push ecx
call fcn.1001e441
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x1000be43
cmp dword [ebp + 8], 0xc8
je 0x1000be07
push dword [ebp + 8]
push 0x10036de0
push ecx
call fcn.1001e3ce
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x13
jne 0x1000be18
push esi
call fcn.1000bd5d
pop ecx
jmp 0x1000be3f
cmp eax, 0x14
jne 0x1000be25
push esi
call fcn.100096e5
jmp 0x1000be15
cmp eax, 0x15
jne 0x1000be33
mov eax, esi
call fcn.1000bdac
jmp 0x1000be3f
cmp eax, 0x16
jne 0x1000be41
mov eax, esi
call fcn.1000bdb8
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000e2ac
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x10035328]
mov edi, eax
pop ecx
test edi, edi
je 0x1000e38a
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x1000e30e
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
je 0x1000e35d
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x1000e328
pop ebx
jmp 0x1000e380
push 1
push 0x100370da
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x100370db
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x1000e360
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1000e95d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000e97b
cmp dword [esi + 0x48], 0
je 0x1000e97b
push 2
push 3
push esi
call fcn.1001f218
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1000e298
pop ecx
test esi, esi
je 0x1000e998
cmp dword [esi + 0x48], 0
je 0x1000e998
push 3
push esi
call fcn.1001f252
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x1001e155
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001e185
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x1001e2af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x1001e2d1
push dword [esi + 0x134]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x1001e30a
cmp eax, 2
jg 0x1001e30a
imul eax, eax, 3
push edi
push dword [esi + 0x130]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push 1
add eax, 0x100398e4
push 2
push eax
call edi
push dword [esi + 0x130]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x1001e76c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [eax + ecx*4 + 0x190]
push ebx
mov ebx, dword [eax + 0x440]
push esi
mov esi, ecx
add esi, esi
lea esi, [eax + esi*8 + 0x1b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ebx + 0x3c], 3
mov dword [ebp - 4], edx
je 0x1001e809
cmp dword [eax + ecx*4 + 0x1a8], 0x1001e582
jne 0x1001e809
xor ebx, ebx
cmp dword [esi], ebx
je 0x1001e7b1
cmp edi, ebx
je 0x1001e809
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.1001d911
add esp, 0x14
cmp eax, 0xffffffff
je 0x1001e809
test al, 1
je 0x1001e809
cmp dword [esi], ebx
jne 0x1001e7ec
mov eax, 0x8000
push eax
mov dword [esi + 4], eax
call dword [0x10035328]
mov edi, dword [esi + 4]
pop ecx
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp eax, ebx
je 0x1001e806
mov eax, dword [esi]
add eax, dword [esi + 8]
push ebx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x1001e809
add dword [esi + 8], eax
jmp 0x1001e809
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.1001e76c
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1001e887
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x1001e861
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x1001e886
push ebx
push esi
call fcn.1002396e
push eax
push 0x100399a8
push dword [esi]
call fcn.1001e441
mov eax, dword [esi]
mov dword [eax + 0x473c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x1001e98d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100353bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
mov byte [eax], bl
pop ecx
mov eax, 0x10035374
pop ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e9d2
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1001e9e2
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push ebx
push ebx
mov ecx, eax
push connect
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [0x1003ff34], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push ebx
mov dword [0x1003ff3c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x1003ff40
push dword [0x1003ff3c]
mov dword [0x1003ff44], eax
push eax
push dword [0x1003ff34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x1003ff34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
push dword [0x1003ff3c]
push dword [0x1003ff44]
push 0x1003534c
call fcn.1001e8c0
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033b66
leave
ret

Function at 0x1001edbd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x40
jae 0x1001edcd
xor eax, eax
jmp 0x1001ee52
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
mov dword [ecx + 0xc], eax
cmp word [eax], dx
jne 0x1001edc6
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [ebp + 0xc], esi
jb 0x1001ee15
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x1001ee15
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x1001ee15
test dl, 2
je 0x1001ee15
mov edx, 0xe0
cmp word [eax + 0x14], dx
je 0x1001ee19
xor eax, eax
jmp 0x1001ee51
mov edx, dword [ecx + 0x10]
add eax, 0xf8
push edi
xor edi, edi
mov dword [ecx + 0x14], eax
xor esi, esi
cmp di, word [edx + 6]
jae 0x1001ee4d
xor edx, edx
mov edi, dword [edx + eax + 0x14]
add edi, dword [edx + eax + 0x10]
cmp edi, dword [ebp + 0xc]
ja 0x1001ee56
mov edi, dword [ecx + 0x10]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x1001ee31
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
xor eax, eax
jmp 0x1001ee50
Function at 0x1002426f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push 0x1003c61c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x10024384
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x1003c60c
push ebx
call esi
push 0x1003c608
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll__mbspbrk]
pop ecx
pop ecx
test eax, eax
je 0x100242ca
test edi, edi
je 0x100242bf
push 8
jmp 0x100242df
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x100242e6
test edi, edi
je 0x100242ee
push 0x1003c5f8
push ebx
call esi
test eax, eax
je 0x100242ee
push 0x800
push 0
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
jmp 0x1002437f
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x1002437f
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024306
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x10035328]
mov esi, eax
pop ecx
test esi, esi
je 0x10024377
push edi
push esi
call ebx
test eax, eax
je 0x10024377
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002432e
push 0x5c
sub eax, edx
pop ecx
mov word [eax + esi], cx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10024343
sub eax, ecx
mov ecx, dword [ebp + 8]
add eax, esi
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x10024353
cmp dword [ebp - 8], 0
je 0x1002436d
push 8
push 0
push esi
call dword [ebp - 8]
jmp 0x10024374
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x1003532c]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10024387
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100353bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100243be
push eax
push 0x1003c99c
push esi
call fcn.1001e441
add esp, 0xc
jmp 0x100243eb
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x100243de
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x100243de
xor eax, eax
jmp 0x100243ee
push 0x1003c96c
push esi
call fcn.1001e441
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033b66
leave
ret
Function at 0x10024528
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
push 3
lea eax, [ebp - 4]
mov esi, ecx
mov edi, dword [esi]
push eax
push dword [esi + 0x190]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1002456f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1003ca00
push edi
call fcn.1001e441
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, 0x1003c9f8
call fcn.1002445f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100250ee
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x1002523b
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x10025124
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002512f
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002513a
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [ebx + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002516c
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10025179
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10025183
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002518d
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10025198
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x100251a3
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, edi
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb4], ecx
mov dword [esi], edi
call fcn.100247e8
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x190]
call esi
test eax, eax
jns 0x100251f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1003ca00
push dword [ebp - 4]
call fcn.1001e441
add esp, 0xc
lea eax, [ebx + 0x1cb3]
push 4
push eax
call fcn.10024fd0
pop ecx
pop ecx
push 0
push 2
add ebx, 0x1cb7
push ebx
mov eax, edi
push dword [eax + 0x190]
call esi
pop edi
pop esi
test eax, eax
jns 0x1002523b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1003ca00
push dword [ebp - 4]
call fcn.1001e441
add esp, 0xc
pop ebx
leave
ret
Function at 0x10025eb8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push edi
push 3
pop ebx
sub eax, ebx
mov dword [ebp - 4], edx
je 0x10025ffc
dec eax
dec eax
je 0x10025fb8
dec eax
je 0x10025f5f
dec eax
je 0x10025eff
push 0x1003d02c
push 0x100362f8
push edx
call fcn.1001e441
add esp, 0xc
push 0x47
jmp 0x1002609f
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push 0x1003cff8
push edx
call fcn.1001e3ce
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x10025f32
mov dword [esi + 8], 0xffffff9d
jmp 0x10025ff5
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x100260d9
jmp 0x1002607d
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
push 4
pop ecx
lea eax, [esi + 0x160]
call fcn.10025c00
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.10025c11
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x1002607d
mov dword [esi], 1
jmp 0x100260bc
push 5
pop ecx
lea eax, [esi + 0x160]
call fcn.10025c00
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.10025c11
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x100260d9
lea eax, [esi + 0x15c]
call fcn.10025c32
movzx edi, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x10026021
and dword [esi + 0x18], 0
jmp 0x10026038
cmp eax, edi
jne 0x100260c9
push edi
push 0x1003cfcc
push edx
call fcn.1001e3ce
add esp, 0xc
push 4
pop ecx
lea eax, [esi + 0x160]
mov word [esi + 0x40], di
call fcn.10025c00
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.10025c11
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x100260a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.1002396e
push eax
push 0x100362f8
push dword [ebp - 4]
call fcn.1001e441
add esp, 0x14
push 0x37
pop eax
jmp 0x100260db
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [esi], ecx
add esi, 0x38
push esi
call dword [sym.imp.MSVCR100.dll__time64]
pop ecx
jmp 0x100260d9
push ecx
push edi
push 0x1003cf8c
push edx
call fcn.1001e3ce
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10026715
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
push 0x1003d0f4
push 0x100359a0
push dword [eax]
call fcn.1001e3ce
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10025aad
test eax, eax
jne 0x10026748
mov eax, esi
pop ebp
jmp fcn.10025eb8
pop ebp
ret
Function at 0x10026a82
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100353bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x688]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10026b13
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10026b43
push 0x1003d1a8
push ebx
call fcn.1001e441
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033b66
leave
ret
lea eax, [esi + 0x15c]
call fcn.10025c23
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x10026bc4
dec eax
je 0x10026c32
dec eax
je 0x10026b9c
dec eax
je 0x10026b7b
push 0x1003d184
push 0x100362f8
push ebx
call fcn.1001e441
jmp 0x10026c2f
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
push esi
call fcn.10025cb8
add esp, 0xc
test eax, eax
je 0x10026c32
jmp 0x10026b34
lea eax, [esi + 0x15c]
call fcn.10025c32
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x100359a0
push ebx
call fcn.1001e3ce
jmp 0x10026c2f
cmp edx, 4
jle 0x10026c32
lea eax, [esi + 0x15c]
call fcn.10025c32
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x10026c32
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.1001e73f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10026c13
push 5
mov eax, esi
call fcn.10026a10
pop ecx
mov eax, edi
jmp 0x10026b34
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.1001c2b5
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.1001c459
pop ecx
test eax, eax
je 0x10026b32
push 5
mov eax, esi
call fcn.10026a10
pop ecx
push 0x2a
pop eax
jmp 0x10026b34

Function at 0x1002ecdb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.1002ecd3
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x10
pop ebp
ret
Function at 0x10032ced
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10032d13
push 2
pop eax
leave
ret
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10032d3a
push 2
pop esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
leave
ret
xor esi, esi
jmp 0x10032d2a

Function at 0x10033b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100353bc]
jne 0x10033b70
repz ret
jmp fcn.100343fb

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045a586
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045849d
mov eax, dword [eax]
push 0x47b1c0
push eax
call fcn.0044b304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a811
test bl, bl
je 0x40a892
push 0x47b1c0
lea ecx, [esp + 0xc]
call fcn.0045aba1
push 0x47ed3c
lea ecx, [esp + 0xc]
call fcn.0045aba1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a8ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a811
jmp 0x40a999
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a952
lea edx, [esp + 0x7c]
push 0x47ed38
push edx
call fcn.0044b304
add esp, 8
test eax, eax
je 0x40a952
lea eax, [esp + 0x7c]
push 0x47ed34
push eax
call fcn.0044b304
add esp, 8
test eax, eax
je 0x40a952
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a8e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045a811
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b190
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b1f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc