joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006d585
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10077758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005f1c8
mov dword [ebp - 0x14], eax
cmp dword [0x1061a978], esi
jne 0x1006d678
push 0x800
push esi
push 0x10008e60
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006d605
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006d758
push esi
push esi
push 0x10008e60
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006d758
push 0x10008e78
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006d758
push eax
call ebx
push 0x10008e84
push edi
mov dword [0x1061a978], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008e94
push edi
mov dword [0x1061a97c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008ea8
push edi
mov dword [0x1061a980], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061a988], eax
test eax, eax
je 0x1006d675
push 0x10008ec4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061a984], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006d69d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006d690
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006d6b2
push 4
pop eax
jmp 0x1006d75a
cmp dword [ebp - 0x14], esi
je 0x1006d6b2
push dword [0x1061a978]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006d697
mov eax, dword [0x1061a984]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006d710
cmp dword [0x1061a988], edi
je 0x1006d710
push eax
call ebx
push dword [0x1061a988]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006d710
test eax, eax
je 0x1006d710
call ecx
test eax, eax
je 0x1006d705
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006d705
test byte [ebp - 8], 1
jne 0x1006d710
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006d740
mov eax, dword [0x1061a97c]
cmp eax, edi
je 0x1006d73d
push eax
call ebx
test eax, eax
je 0x1006d73d
call eax
mov esi, eax
test esi, esi
je 0x1006d73d
mov eax, dword [0x1061a980]
cmp eax, edi
je 0x1006d73d
push eax
call ebx
test eax, eax
je 0x1006d73d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1061a978]
call ebx
test eax, eax
je 0x1006d758
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006d75a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c22c
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
lea ebp, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4012f0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x3c], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x34], eax
call eax
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
je 0x4012e5
mov edx, dword [esp + 0x3c]
call edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402150
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4021c0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004014e0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x10001000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001044
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000104e
or eax, 2
test cl, 2
je 0x10001056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001110
test al, 1
je 0x1000111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001004
pop edi
pop ebx
ret

Function at 0x10001140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100124c4
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10001172
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100011a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001203
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100011e9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100011c8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100011c0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10001230
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100124c8
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001262
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001290
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x100012f3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012d9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100012b8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012b0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10001360
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001399
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10015284], eax
cmp eax, 0xffffffff
je 0x10001389
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10015288], eax
test eax, eax
je 0x10001389
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10019294], 0x10002090
mov al, 1
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x100013e0
Capabilities:
Connect socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10015284], 0xffffffff
push esi
mov esi, edx
je 0x10001470
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10001441
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001441
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [0x10015284]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001481
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10001481
mov esi, 0x10015280
call fcn.10001510
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10015288]
mov eax, dword [0x10015284]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10001466
push 0x2000
push 0
push 0x1001528c
call sub.MSVCR100.dll_memset
push 0x2000
push 0
push 0x10017290
mov dword [0x1001728c], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x10023a8c
push 0
push 0x10015280
push 0x100019f0
push 0
push 0
mov dword [0x10019290], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [0x100192b4], eax
mov al, 1
xor ecx, ebp
mov byte [0x100192b8], al
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret

Function at 0x10001510
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x4034], ebx
je 0x10001546
mov dword [0x10023a8c], 0xffffffff
mov eax, dword [esi + 0x4034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x4034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000155c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000156d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x4038], bl
pop ebx
ret
Function at 0x100015a0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x200c]
xor ebx, ebx
push ebx
mov ecx, 0x2000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100015f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100015e4
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10001510
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x200c], eax
mov eax, dword [esi + 0x200c]
cmp eax, 4
jl 0x100015dc
push edi
mov al, byte [esi + ebx + 0xc]
lea ecx, [esi + 0xc]
cmp al, 0xc1
jne 0x10001615
movzx edi, byte [ebx + esi + 0xd]
jmp 0x10001630
cmp al, 0xc2
jne 0x10001722
movzx edx, byte [ebx + esi + 0xd]
shl dx, 8
movzx edi, dx
movzx edx, byte [ebx + esi + 0xe]
or edi, edx
cmp edi, 4
jl 0x10001722
cmp edi, 0x2000
jg 0x10001722
cmp edi, dword [esi + 0x200c]
jg 0x100016f0
cmp al, 0xc1
jne 0x1000168a
mov al, byte [ebx + esi + 0xe]
mov byte [ebp - 4], al
lea edx, [edi - 3]
xor eax, eax
lea ecx, [ebx + esi + 0xf]
test edx, edx
jle 0x100016b8
lea esp, [esp]
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [ebx + esi + 0xf]
xor dl, 0xb7
mov byte [ecx + eax], dl
inc eax
lea edx, [edi - 3]
cmp eax, edx
jl 0x10001670
jmp 0x100016b8
mov cl, byte [ebx + esi + 0xf]
lea edx, [edi - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [ebx + esi + 0x10]
test edx, edx
jle 0x100016b8
mov edi, edi
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [ebx + esi + 0x10]
xor dl, 0xb7
mov byte [ecx + eax], dl
inc eax
lea edx, [edi - 4]
cmp eax, edx
jl 0x100016a0
mov al, byte [ecx]
mov edx, dword [esi + 0x4014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push edi
lea eax, [esi + ebx + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x200c], edi
add esp, 0xc
add ebx, edi
cmp dword [esi + 0x200c], 0
jg 0x10001603
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x10001719
mov eax, dword [esi + 0x200c]
test eax, eax
jle 0x10001719
mov edx, 0x2000
sub edx, ebx
cmp eax, edx
jg 0x10001719
push eax
lea eax, [ebx + esi + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10001510
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.1000d840
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1001929c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10015284], 0xffffffff
je 0x10001806
cmp byte [0x100192b8], 0
je 0x10001806
push esi
lea eax, [ebp - 0x2004]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x2004], 0xc1
jne 0x100017ba
mov cl, byte [ebp - 0x2002]
lea edi, [esi - 3]
test edi, edi
jle 0x100017e8
jmp 0x100017a0
mov dl, byte [ebp + eax - 0x2001]
xor dl, 0xb8
sub dl, cl
mov byte [ebp + eax - 0x2001], dl
inc eax
cmp eax, edi
jl 0x100017a0
jmp 0x100017e8
mov cl, byte [ebp - 0x2001]
lea edi, [esi - 4]
test edi, edi
jle 0x100017e8
jmp 0x100017d0
mov dl, byte [ebp + eax - 0x2000]
xor dl, 0xb8
sub dl, cl
mov byte [ebp + eax - 0x2000], dl
inc eax
cmp eax, edi
jl 0x100017d0
mov eax, dword [0x10019290]
test eax, eax
jle 0x1000185d
lea ecx, [eax + esi]
cmp ecx, 0x2000
jle 0x10001823
mov esi, 0x10015280
call fcn.10001510
push 0x1001929c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0x2004]
push edx
lea eax, [eax + 0x10017290]
push eax
call sub.MSVCR100.dll_memcpy
add dword [0x10019290], esi
add esp, 0xc
push 0x1001929c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
xor edi, edi
push ebx
test esi, esi
jle 0x10001891
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
mov edx, dword [0x10015284]
push 0
push esi
lea ecx, [ebp + edi - 0x2004]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x100018af
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001870
push 0x1001929c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100018ec
mov eax, dword [0x10019290]
lea ecx, [eax + esi]
cmp ecx, 0x2000
jg 0x100018ec
push esi
lea edx, [ebp + edi - 0x2004]
push edx
lea eax, [eax + 0x10017290]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x10019290], esi
jmp 0x10001891
mov esi, 0x10015280
call fcn.10001510
push 0x1001929c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x10001920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x401c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x4010], edi
jle 0x10001980
lea ebx, [esi + 0x2010]
lea esp, [esp]
mov eax, dword [esi + 0x4010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001990
sub dword [esi + 0x4010], eax
add edi, eax
cmp dword [esi + 0x4010], 0
jg 0x10001950
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100019c9
mov eax, dword [esi + 0x4010]
push eax
lea ecx, [edi + esi + 0x2010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10001510
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003940
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x10015018]
xor eax, esp
mov dword [esp + 0x2a0], eax
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp + 0x10]
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [esp + 0x14], eax
jne 0x100039e2
cmp dword [0x1001e9fc], 0
jne 0x10003ab2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001e9fc], eax
mov word [esp + 0xc], 0x5c1
call edi
and eax, 0x800000ff
jns 0x100039a5
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x10015284], 0xffffffff
mov byte [esp + 0xe], al
mov byte [esp + 0xf], 0xd2
mov byte [esp + 0x10], bl
je 0x100039c4
cmp byte [0x100192b8], 0
jne 0x100039e2
lea eax, [esp + 0xc]
call fcn.10002d40
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov word [esp + 0x18], 0x85c1
call edi
and eax, 0x800000ff
jns 0x100039f9
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0xd2
mov byte [esp + 0x1c], bl
test esi, esi
jne 0x10003a1c
push 0x40
lea ecx, [esp + 0x21]
push esi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x10003a27
mov ecx, 0x10
lea edi, [esp + 0x1d]
rep movsd dword es:[edi], dword [esi]
push 0x40
lea edx, [esp + 0x61]
push 0
push edx
call sub.MSVCR100.dll_memset
mov esi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
je 0x10003aa4
push 0x40
lea eax, [esp + 0x61]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10003aa4
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10003a9d
lea esi, [esp + 0xa0]
call fcn.1000ba50
push eax
lea edx, [esp + 0x61]
push 0x10012510
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [esp + 0x19]
lea edx, [esp + 0x18]
call fcn.10001730
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret