joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001996c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
call fcn.10026de2
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], esi
je 0x100199b9
push dword [ebp + 0x18]
push edi
call sym.libcurl.dll_curl_multi_perform
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 1
je 0x10019aed
mov esi, dword [edi + 4]
jmp 0x100199b0
push edi
call fcn.10017d91
mov esi, dword [esi]
pop ecx
test esi, esi
jne 0x100199a7
jmp 0x10019aed
cmp dword [ebp + 0x10], 0xffffffff
je 0x10019a7f
push dword [ebp + 0x10]
lea eax, [edi + 0x60]
push eax
call fcn.100173b4
pop ecx
pop ecx
test eax, eax
je 0x10019a8c
mov esi, dword [eax]
cmp dword [esi + 0x4990], 0xc0dedbad
je 0x100199ef
push 4
pop eax
jmp 0x10019aef
mov eax, dword [esi + 8]
test eax, eax
je 0x10019a1c
test byte [ebp + 0x14], 2
je 0x10019a0a
mov ecx, dword [eax + 0x4b8]
test ecx, ecx
je 0x10019a0a
mov esi, dword [ecx]
jmp 0x10019a1c
test byte [ebp + 0x14], 1
je 0x10019a1c
mov eax, dword [eax + 0x4c8]
test eax, eax
je 0x10019a1c
mov esi, dword [eax]
mov eax, dword [esi + 8]
test eax, eax
je 0x10019a38
mov ecx, dword [eax + 0x440]
test byte [ecx + 0x40], 8
jne 0x10019a38
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x728], ecx
push dword [ebp - 8]
mov ebx, esi
push dword [ebp - 0xc]
push edi
call fcn.10018b9b
mov ebx, eax
mov eax, dword [esi + 8]
add esp, 0xc
test eax, eax
je 0x10019a65
mov ecx, dword [eax + 0x440]
test byte [ecx + 0x40], 8
jne 0x10019a65
and dword [eax + 0x728], 0
test ebx, ebx
jg 0x10019a70
push edi
call fcn.10017d91
pop ecx
xor esi, esi
call fcn.10026de2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jmp 0x10019a8c
xor eax, eax
add edi, 0xec
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test esi, esi
je 0x10019aae
push dword [ebp - 8]
mov ebx, esi
push dword [ebp - 0xc]
push edi
call fcn.10018b9b
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x10019aae
push edi
call fcn.10017d91
pop ecx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x5c]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10022e85
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x10019ae5
mov esi, dword [eax + 0x18]
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10017fee
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x10019a8c
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a48e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
mov esi, dword [ebx]
mov ecx, dword [esi + 0x1ec]
push edi
mov edi, ecx
test ecx, ecx
jne 0x1001a4ad
mov edi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.10026de2
push edx
push eax
call fcn.10026df8
mov ecx, eax
mov eax, edi
mov dword [ebp + 8], edx
cdq
add esp, 0x10
sub eax, ecx
mov edi, edx
sbb edi, dword [ebp + 8]
cmp dword [esi + 0x1e0], 0
mov dword [ebp - 8], eax
je 0x1001a517
push dword [ebx + 0x184]
push dword [ebx + 0x180]
call fcn.10026de2
push edx
push eax
call fcn.10026df8
mov ecx, eax
mov eax, dword [esi + 0x1e0]
mov ebx, edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, ebx
cmp edi, edx
jl 0x1001a517
jg 0x1001a512
cmp dword [ebp - 8], eax
jb 0x1001a517
mov dword [ebp - 8], eax
mov edi, edx
mov eax, dword [ebp - 8]
mov edx, edi
pop edi
pop esi
pop ebx
leave
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, 0x10039954
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 0x10039a18
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 0x1001e8c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 8]
push eax
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1001e987
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001e97d
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e90e
push ebx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001e974
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1001e974
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push 1
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
mov eax, dword [ebp + 0x14]
je 0x1001e969
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
inc esi
jmp 0x1001e96b
mov dword [eax], ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001e98d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10035448]
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, 0x10035400
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 [0x10040034], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push ebx
mov dword [0x1004003c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x10040040
push dword [0x1004003c]
mov dword [0x10040044], eax
push eax
push dword [0x10040034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x10040034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
push dword [0x1004003c]
push dword [0x10040044]
push 0x10039a30
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 0x1001ef75
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x1001ef8a
xor eax, eax
jmp 0x1001f04e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001edbd
test eax, eax
je 0x1001ef83
call fcn.1001ee71
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x1001ef83
push edi
push 0x40
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x1001f041
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.1001eee9
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xa0], ebx
jbe 0x1001efe5
cmp dword [eax + 0xa4], ebx
jbe 0x1001efe5
push edi
mov ecx, esi
call fcn.1001ec0b
push edi
mov ecx, esi
call fcn.1001ec7c
test eax, eax
jne 0x1001f000
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001f041
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
push 1
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x1001f045
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
xor eax, eax
jmp 0x1001f04d
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [esi + 8], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
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 0x1003c714
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 0x1003c704
push ebx
call esi
push 0x1003c700
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 0x1003c6f0
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 [0x10035448]
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 0x1003ca94
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 0x1003ca64
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 0x1003caf8
push edi
call fcn.1001e441
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, 0x1003caf0
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 0x1003caf8
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 0x1003caf8
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 0x1003d124
push 0x10036368
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 0x1003d0f0
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 0x1003d0c4
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 0x10036368
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 0x1003d084
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 0x1003d1ec
push 0x10035a20
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 [0x10035448]
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 0x1003d2a0
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 0x1003d27c
push 0x10036368
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 0x10035a20
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 [0x10035448]
jne 0x10033b70
repz ret
jmp fcn.100343fb