joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132e0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x413468
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x41330a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413300
mov eax, 1
add ebx, ebx
jne 0x413323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413318
jne 0x413334
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413318
xor ecx, ecx
sub eax, 3
jb 0x413348
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4133ba
mov ebp, eax
add ebx, ebx
jne 0x413353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413360
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413384
inc ecx
add ebx, ebx
jne 0x413370
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413365
jne 0x413381
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413365
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4133a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413395
jmp 0x413306
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4133a4
add edi, ecx
jmp 0x413306
pop esi
mov edi, esi
mov ecx, 0x46d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4133c2
cmp byte [edi], 1
jne 0x4133c2
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 eax, ebx
loop 0x4133c7
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413436
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x131e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1324c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4133f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13250]
or eax, eax
je 0x413430
mov dword [ebx], eax
add ebx, 4
jmp 0x413411
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x413467
cmp al, 0xef
ja 0x41345a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41343c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x413449
popal
jmp 0x40b778
Function at 0x10001460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10001496
sub eax, 1
jne 0x1000157a
push eax
push eax
push eax
push 0x10001300
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
call fcn.10001590
cmp dword [0x10006654], 0
je 0x10001571
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push edi
xor edi, edi
mov esi, 0x100066a0
mov edx, edi
call fcn.10001f20
nop
test eax, eax
jne 0x10001507
push dword [esi]
push eax
push dword [0x10006654]
call ebx
push dword [0x10006650]
push 0
push dword [0x10006644]
call ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [0x10006650], 0
mov dword [0x10006648], 0
add esi, 0xc
inc edi
cmp esi, 0x100066d0
jl 0x100014b8
mov eax, dword [0x10006688]
mov dword [0x10006688], 0
test eax, eax
je 0x10001544
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [eax]
mov esi, dword [eax]
push 0x8000
push 0
push eax
call edi
mov eax, esi
test esi, esi
jne 0x10001530
push dword [0x10006654]
mov esi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
call esi
push dword [0x10006644]
call esi
pop edi
pop esi
mov dword [0x10006644], 0
mov dword [0x10006654], 0
pop ebx
xor eax, eax
mov ecx, 0x10006634
xchg dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
Function at 0x45f574
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45f756
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45f5be
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0045f044
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040e548
cmp al, 1
jne 0x45f5be
dec ebx
mov edi, ebx
mov eax, esi
call fcn.0045f358
test al, al
je 0x45f6f6
test edi, edi
jge 0x45f5d5
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0045f044
mov eax, dword [ebp - 0x204]
call fcn.00404054
cmp ebx, eax
jge 0x45f61c
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0045f044
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x6627c8]
and eax, 0xff
bt dword [edx], eax
jae 0x45f61c
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x45f62a
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.0045f550
cmp ebx, edi
je 0x45f6ee
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x45f654
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00403388
and eax, 0x7f
movzx eax, word [eax*2 + 0x65ed48]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403388
and eax, 0x7f
movzx eax, word [eax*2 + 0x65ed48]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.0043a1fc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403388
and eax, 0x7f
movzx eax, word [eax*2 + 0x65ed48]
push eax
push 0x101
mov eax, esi
call fcn.0043a1fc
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x45f73d
test edi, edi
jge 0x45f6fc
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0045f044
mov eax, dword [ebp - 0x204]
call fcn.00404054
cmp edi, eax
jl 0x45f732
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0045f044
mov eax, dword [ebp - 0x204]
call fcn.00404054
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.0045f550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f75d
lea eax, [ebp - 0x204]
call fcn.00403dd8
ret

Function at 0x476323
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x65faaa
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47637b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x65facb
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x476371
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47637f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x5024f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5026a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x27], 0
je 0x502528
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, 0x5026b4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov cl, 3
call fcn.004f3974
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403f8c
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x662820]
mov eax, dword [eax]
mov dl, 3
mov ebx, dword [eax]
call dword [ebx + 0x38]
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xd4]
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403f8c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov dl, 1
mov eax, dword [0x411c5c]
call fcn.0040317c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50267d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x50272c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004910bc
lea ecx, [ebp - 8]
mov edx, 1
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, 0x502738
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004910bc
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0040a2dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x50265f
lea ecx, [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004f3a80
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
jmp 0x502667
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502684
mov eax, dword [ebp - 0xc]
call fcn.004031ac
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421004]
jne 0x40100a
repz ret
jmp fcn.0040133d

Function at 0x40403b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040270a
and dword [ebp - 0x14], 0
cmp dword [0x423ad4], 0
mov dword [ebp - 0x18], eax
jne 0x4040ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404196
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404196
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423ad4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423ad8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423adc], eax
call edi
push eax
call esi
mov dword [0x423ae4], eax
test eax, eax
je 0x4040ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423ae0], eax
mov eax, dword [0x423ae0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404147
cmp dword [0x423ae4], ecx
je 0x404147
push eax
call esi
push dword [0x423ae4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404147
test ebx, ebx
je 0x404147
call edi
test eax, eax
je 0x40413e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40413e
test byte [ebp - 8], 1
jne 0x404147
or dword [ebp + 0x10], 0x200000
jmp 0x40417a
mov eax, dword [0x423ad8]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40417a
mov eax, dword [0x423adc]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423ad4]
call esi
test eax, eax
je 0x404196
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409cd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x421f60]
sub esp, 0x10
push ebx
mov ebx, dword [0x468ea0]
push edi
mov edi, dword [0x46917c]
push eax
call fcn.00409be0
add esp, 4
cmp dword [0x46917c], 0x2f
jne 0x409d2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00409c30
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x46917c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409fb2
push 0
push 0
call edi
mov eax, dword [0x46917c]
cmp esi, 0x845013
jne 0x409fc9
mov eax, dword [0x422d80]
add eax, 0xa231
mov dword [0x46917c], eax
cmp eax, 0x141
jne 0x409fe4
mov dword [0x424018], 0xec58acac
mov dword [0x42401c], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409fa0
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x100012d4
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x10008845
call fcn.1000850c
sub esp, 0x198
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1a4]
mov dword [esi], 0x100092a0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x10]
push 3
push eax
lea eax, [esi + 0x50]
push eax
mov byte [esi + 0x53], bl
mov byte [ebp - 0x10], 0x68
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x20
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x10001756
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x100088a7
call fcn.1000850c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1000178d
mov ecx, dword [ebp + 8]
push 0x1000c500
call fcn.100087be
jmp 0x10001829
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100016da
test eax, eax
je 0x100017a8
mov ecx, dword [ebp + 8]
push edi
call fcn.100087be
jmp 0x10001829
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_1
push 1
pop esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x1000180e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp + 0xc]
push str._d._d._d._d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [ebp + 0xc]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebp - 0x14]
push eax
call fcn.100016da
test eax, eax
je 0x1000180e
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_2
jmp 0x1000181b
mov ecx, dword [ebp + 8]
push 0x1000c500
call fcn.100087be
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1000183d
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.10001c34
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
xor ebx, ebx
push 1
push 2
mov byte [esi + 0x53], bl
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
je 0x100018af
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x100018af
push dword [ebp + 0xc]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x48]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100018b3
xor al, al
jmp 0x1000191c
push 1
lea eax, [ebp - 4]
pop edi
push 4
push eax
push 8
push 0xffff
push dword [esi + 0x48]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001900
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x98000004
push dword [esi + 0x48]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x2bf20
mov dword [ebp - 0xc], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
push ebx
push esi
push 0x10001943
push ebx
push ebx
mov byte [esi + 0x53], 1
call fcn.10007b40
mov dword [esi + 0x44], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10001923
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x10001942
mov dl, byte [ecx + eax]
sub dl, 0x7a
xor dl, 0x19
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x1000192f
ret
Function at 0x10002afa
Capabilities:
Resolve dns

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002b16
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10002b16
mov esi, dword [eax]
mov eax, esi
pop esi
ret

Function at 0x10002b4d
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002bac
push dword [ebp + 8]
call fcn.10002afa
test eax, eax
pop ecx
jne 0x10002b7d
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002bb1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10002bb3
mov eax, esi
pop esi
leave
ret

Function at 0x10002cac
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
xor esi, esi
cmp eax, 0xffffffff
jne 0x10002cee
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x10002cfa
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.192.168.1.2
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
or dword [0x1000b188], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [0x1000b17c], eax
mov eax, dword [ebp + 0x10]
cmp ebx, esi
mov dword [0x1000b180], eax
mov dword [0x1000c604], esi
jle 0x10002d3f
push esi
push esi
push esi
push 0x10002bb6
push esi
push esi
call edi
inc dword [0x1000c604]
cmp dword [0x1000c604], ebx
jl 0x10002d25
cmp dword [0x1000b180], esi
pop ebx
je 0x10002d54
push esi
push esi
push esi
push 0x10002b1a
push esi
push esi
call edi
pop edi
pop esi
pop ebp
ret
Function at 0x10002e4e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c4
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
pop ecx
pop ecx
call esi
cdq
mov ecx, 0x200
idiv ecx
lea eax, [ebp - 0x1c4]
push eax
push 0x202
mov dword [ebp - 0x20], edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
and byte [ebp - 0x34], 0
xor eax, eax
lea edi, [ebp - 0x33]
push 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ebx, 0x400
lea eax, [ebp - 0x5c4]
push ebx
push dword [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [0x1000ccc4], 0x41c
call esi
mov edi, 0xfa
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
mov ecx, edi
idiv ecx
inc edx
push edx
call esi
cdq
idiv edi
lea eax, [ebp - 0x34]
inc edx
push edx
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ax, word [0x1000ccc4]
mov edi, dword [sym.imp.WS2_32.dll_htons]
and byte [ebp - 0x1b], 0
add esp, 0x18
mov byte [ebp - 0x1c], 0x45
push eax
call edi
mov word [ebp - 0x1a], ax
xor eax, eax
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
mov byte [ebp - 0x14], 0x80
push str.192.168.1.2
mov byte [ebp - 0x13], 0x11
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
call esi
cdq
mov ecx, 0xea60
idiv ecx
inc edx
push edx
call edi
mov word [ebp - 8], ax
mov ax, word [0x1000b17c]
push eax
call edi
push 0x408
mov word [ebp - 6], ax
call edi
mov word [ebp - 4], ax
lea eax, [ebp - 0x34]
xor edi, edi
push eax
mov word [ebp - 2], di
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x43c
mov esi, 0x1000c71c
push edi
push esi
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x10]
push 4
push eax
push esi
mov word [ebp - 2], di
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1000c720
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x13]
push 1
push eax
push 0x1000c725
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 2
push eax
push 0x1000c726
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 8
push eax
push 0x1000c728
call sub.MSVCRT.dll_memcpy
add esp, 0x48
lea eax, [ebp - 0x5c4]
mov edi, 0x1000c730
push ebx
push eax
push edi
call sub.MSVCRT.dll_memcpy
push 0x414
push esi
call fcn.10002798
mov word [ebp - 2], ax
lea eax, [ebp - 0x1c]
push 0x14
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 8
push eax
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x5c4]
push ebx
push eax
push 0x1000c738
call sub.MSVCRT.dll_memcpy
add esp, 0x38
pop edi
pop esi
pop ebx
leave
ret