joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064a8b
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10157040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x10064aad
or eax, 0xffffffff
jmp 0x10064b54
push ebx
push esi
push dword [ebp + 0x18]
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov word [ebp - 0x12], ax
xor dl, dl
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 2
pop eax
mov word [ebp - 0x14], ax
test esi, esi
jle 0x10064ae2
mov al, byte [edi + ecx]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x10064ad6
push esi
push edi
push 0x1018f819
mov byte [0x1018f818], dl
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor ecx, ecx
test esi, esi
jle 0x10064b27
movzx eax, byte [ecx + 0x1018f819]
mov al, byte [eax + 0x100fdf80]
mov byte [ecx + 0x1018f819], al
test ebx, ebx
je 0x10064b1f
xor al, byte [ebp + 0x18]
xor al, 0xcc
mov byte [ecx + 0x1018f819], al
xor ebx, 1
inc ecx
cmp ecx, esi
jl 0x10064afd
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1018f818
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x10064b28
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x10064b4e
xor eax, eax
jmp 0x10064b54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100e1471
leave
ret 0x14

Function at 0x10064b85
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10157040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x10064bf5
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10064bf4
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x10064bf4
push esi
xor esi, esi
cmp esi, 0x28
jge 0x10064bf3
mov eax, dword [esi + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x10064bda
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x10064bc6
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100e1471
leave
ret 4
Function at 0x1007f230
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x100ef045
call fcn.100e35bc
mov eax, dword [ebp + 8]
test eax, eax
je 0x1007f3b1
push 0x10107880
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1007f3b1
push 0xc
call fcn.100e147f
mov esi, eax
mov dword [ebp - 0x3c], esi
and dword [ebp - 4], 0
push 0x30
mov dword [esi], vtable.CColModelSA.0
call fcn.100e147f
pop ecx
pop ecx
mov dword [esi + 4], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x40fb60
mov ecx, dword [ebp - 0x38]
call dword [ebp - 0x34]
mov byte [esi + 8], 1
or dword [ebp - 4], 0xffffffff
xor eax, eax
push 8
pop ecx
push ebx
lea edi, [ebp - 0x30]
push 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [ebp - 0x30], 0x43
jne 0x1007f398
cmp byte [ebp - 0x2f], 0x4f
jne 0x1007f398
cmp byte [ebp - 0x2e], 0x4c
jne 0x1007f398
mov eax, dword [ebp - 0x2c]
add eax, 0xffffffe8
push eax
call fcn.100e1c9e
mov ecx, dword [ebp - 0x2c]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov al, byte [ebp - 0x2d]
add esp, 0x14
cmp al, 0x4c
jne 0x1007f324
mov eax, dword [0x1015a684]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, method.CColModelSA.virtual_0
jne 0x1007f314
mov eax, dword [esi + 4]
jmp 0x1007f318
mov ecx, esi
call eax
push 0
push eax
push edi
call dword [ebp - 0x34]
add esp, 0xc
jmp 0x1007f385
cmp al, 0x32
jne 0x1007f354
mov eax, dword [0x1015a67c]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, method.CColModelSA.virtual_0
jne 0x1007f340
mov eax, dword [esi + 4]
jmp 0x1007f344
mov ecx, esi
call eax
push 0
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xffffffe8
push eax
push edi
call dword [ebp - 0x34]
jmp 0x1007f382
cmp al, 0x33
jne 0x1007f385
mov eax, dword [0x1015a680]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, method.CColModelSA.virtual_0
jne 0x1007f370
mov eax, dword [esi + 4]
jmp 0x1007f374
mov ecx, esi
call eax
push 0
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xffffffe8
push eax
push edi
call dword [ebp - 0x34]
add esp, 0x10
push edi
call fcn.100e1ca7
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
pop ecx
mov eax, esi
jmp 0x1007f3b3
mov ecx, esi
call fcn.1006c798
push 0xc
push esi
call fcn.100e14af
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0xc
xor eax, eax
call fcn.100e356b
ret 4
Function at 0x10090754
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push 0
mov eax, 0x100f2244
call fcn.100e3589
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1009085d
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.samp.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1009078c
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp + 8]
mov dword [0x1018ef24], esi
push eax
push 0x40
push 0x4a3000
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cl, bl
mov byte [0x1018ef7b], bl
call fcn.100276d5
call dword [sym.imp.MinHook.x86.dll_MH_Initialize]
test eax, eax
jne 0x100908ab
push 0x18
call fcn.100e147f
mov dword [ebp + 0xc], eax
xor edi, edi
mov dword [ebp - 4], edi
sub esp, 0xc
mov ecx, eax
call fcn.1003540a
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [0x101f3be4], esi
call fcn.100355b5
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ecx
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x14]
call fcn.10035888
push 0x10090378
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1008fe5e
lea ecx, [ebp + 0xc]
mov dword [0x101d36f4], eax
call fcn.10014ea5
mov dword [ebp - 4], ebx
mov ecx, eax
call fcn.100df040
mov dword [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.100df040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10014213
push edi
push edi
push edi
push 0x100906bb
push edi
push 3
push 3
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov dword [0x101d36f0], eax
jmp 0x100908ab
cmp dword [ebp + 0xc], 0
jne 0x100908ab
call dword [sym.imp.MinHook.x86.dll_MH_Uninitialize]
mov esi, dword [0x101f3be4]
test esi, esi
je 0x10090884
mov ecx, esi
call fcn.10035593
push 0x18
push esi
call fcn.100e14af
pop ecx
pop ecx
push dword [0x101d36f0]
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov esi, dword [0x1018ef08]
test esi, esi
je 0x100908ab
mov ecx, esi
call fcn.100cd2c3
push 0x4a
push esi
call fcn.100e14af
pop ecx
pop ecx
mov eax, ebx
call fcn.100e3557
ret 0xc

Function at 0x10090a60
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100f2312
call fcn.100e3589
mov edi, ecx
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
xor esi, esi
inc esi
push esi
call fcn.100e147f
xor ecx, ecx
mov dword [ebp - 0x14], eax
lea ebx, [edi + 4]
mov dword [ebp - 0x10], esi
push ebx
push ecx
push eax
push 0x10090f91
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x10090abe
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
and esi, 0xfffffffe
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.100e3557
ret 4
and dword [ebx], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x100920fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
call fcn.10098a30
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, eax
push 0x11
call esi
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x1000
mov ecx, edi
call fcn.10095c1a
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.10095c1a
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.10095c1a
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.10095c1a
pop edi
pop esi
pop ecx
ret
Function at 0x10096284
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
mov edx, dword [esp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe2a8]
inc edi
sub esi, 1
jne 0x10096290
pop edi
not edx
pop esi
mov eax, edx
ret

Function at 0x100962af
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x10096311
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x100962d9
cmp edi, 2
jb 0x100962d9
cmp byte [esi], al
jne 0x100962d9
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe2a8]
test edi, edi
jne 0x100962c2
jmp 0x10096318
cmp al, 0x23
jne 0x100962ff
cmp byte [esi], al
jne 0x100962ff
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe2a8]
mov al, byte [esi]
inc esi
test al, al
jne 0x100962f1
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x100964b3
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x100964d5
push 0x77e
push str.C:Usersmegaw_source_reposTEProjectd3d9imguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [esp + 0x14]
test edi, edi
je 0x100964e0
and dword [edi], 0
mov edx, 0x10107880
mov ecx, esi
call fcn.10096320
mov esi, eax
test esi, esi
je 0x10096545
mov ecx, esi
call fcn.10096435
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009653e
mov ecx, ebx
call fcn.1009890b
mov ebp, eax
test ebp, ebp
je 0x1009653e
push esi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, esi
cmp eax, ebx
je 0x1009652f
call fcn.10096426
mov ecx, ebp
call fcn.10098923
jmp 0x10096545
call fcn.10096426
test edi, edi
je 0x1009653a
mov dword [edi], ebx
mov eax, ebp
jmp 0x10096547
mov ecx, esi
call fcn.10096426
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100a7620
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x5a24], 0
lea edi, [esi + 0x5a28]
mov ecx, edi
je 0x100a767b
push 0
call fcn.100aaedf
push dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.10096a9d
mov edx, dword [edi]
mov ecx, 0x1018f576
push dword [esi + 0x5a24]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5a30]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x100a7685
push dword [esp + 0x10]
push ebx
call fcn.10096a9d
pop edi
pop esi
pop ebx
ret

Function at 0x100a7e52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x101d36fc]
push esi
mov esi, ecx
push edi
and dword [eax + 0x59d8], 0
test esi, esi
je 0x100a7ea1
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.100a7ea5
mov edx, 0x1011dd60
mov ecx, esi
mov edi, eax
call fcn.10096320
mov esi, eax
test esi, esi
je 0x100a7ea1
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, esi
call fcn.10096426
pop edi
pop esi
leave
ret
Function at 0x100b367c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100b3696
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.10098923
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.1001fb17
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100b36b3
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.10098923
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100b36d4
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.10098923
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100b36e9
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.10098923
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100b36fe
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.10098923
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100b5d3e
Function at 0x100b6cf9
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, str.C:Usersmegaw_source_reposTEProjectd3d9imguiimgui_draw.cpp
cmp dword [esi + 0x1c], 0
jle 0x100b6d0f
cmp dword [esi + 0x20], 0
jg 0x100b6d23
push 0x8af
push ebp
push str.TexWidth___0__TexHeight___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, 0xffff
cmp word [ebx + 4], ax
jne 0x100b6d46
push 0x8b0
push ebp
push str.rect__IsPacked__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
movzx eax, word [ebx + 4]
movd xmm1, eax
movzx eax, word [ebx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mulss xmm1, dword [esi + 0x24]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x28]
movss dword [eax], xmm1
movss dword [eax + 4], xmm0
movzx eax, word [ebx]
movzx ecx, word [ebx + 4]
add ecx, eax
movzx eax, word [ebx + 6]
movd xmm1, ecx
movzx ecx, word [ebx + 2]
add ecx, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
mulss xmm1, dword [esi + 0x24]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x28]
pop esi
pop ebp
movss dword [eax], xmm1
movss dword [eax + 4], xmm0
pop ebx
ret 0xc
Function at 0x100cae30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x38
mov eax, dword [0x10157040]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x100cae4f
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x100cae72
mov dword [edi + 0x38], 3
xor al, al
jmp 0x100caf99
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], eax
movzx eax, word [edi + 0x18]
push esi
push eax
mov dword [edi + 0x38], ebp
mov word [esp + 0x34], bp
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, 0xffff
push 4
mov word [esp + 0x36], ax
lea eax, [esp + 0x18]
push eax
push 0x1006
push ebp
push dword [edi]
mov dword [esp + 0x28], 0x2710
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 0x1005
push ebp
push dword [edi]
call esi
push 0x10
lea eax, [esp + 0x34]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100caf8f
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [esp + 0x10]
push 0
push 3
push eax
push dword [edi]
mov word [esp + 0x20], 0x105
mov byte [esp + 0x22], 0
call esi
mov ebp, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esp + 0xc]
push 0
push 2
push eax
push dword [edi]
call ebp
cmp eax, 0xffffffff
je 0x100caf87
cmp byte [esp + 0xc], 5
jne 0x100caf87
cmp byte [esp + 0xd], 0
jne 0x100caf87
xor ecx, ecx
mov dword [esp + 0x18], 0x1000305
xor eax, eax
mov dword [esp + 0x1c], ecx
push ecx
mov word [esp + 0x24], ax
lea eax, [esp + 0x1c]
push 0xa
push eax
push dword [edi]
call esi
push 0
push 0xa
lea eax, [esp + 0x2c]
push eax
push dword [edi]
call ebp
cmp eax, 0xffffffff
je 0x100caf87
cmp byte [esp + 0x24], 5
jne 0x100caf87
cmp byte [esp + 0x25], 0
jne 0x100caf87
mov cx, word [esp + 0x2c]
push 2
pop eax
mov word [edi + 6], cx
mov ecx, dword [esp + 0x28]
mov word [edi + 4], ax
mov al, 1
mov dword [edi + 8], ecx
mov dword [edi + 0x38], 1
jmp 0x100caf98
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov dword [edi + 0x38], 3
pop esi
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
xor ecx, esp
call fcn.100e1471
add esp, 0x38
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
lea ebx, [esi + 0xa]
push ebx
call fcn.100e1c9e
mov ebp, eax
push esi
push dword [esp + 0x20]
lea ecx, [ebp + 0xa]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov dword [ebp], 0x1000000
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
mov ax, word [ecx + 2]
push 0x10
mov word [ebp + 8], ax
lea eax, [edi + 4]
push eax
push 0
push ebx
push ebp
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
push ebp
mov esi, eax
call fcn.100e1ca7
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x100cb016
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x24a
push esi
call fcn.100e1c9e
mov ebp, dword [esp + 0x28]
xor ebx, ebx
pop ecx
push dword [esp + 0x28]
mov edi, eax
push ebp
push ebx
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x100cb05b
cmp esi, 0xa
jg 0x100cb066
push esi
push edi
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, esi
push edi
call fcn.100e1ca7
pop ecx
mov eax, ebx
jmp 0x100cb091
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov ax, word [edi + 8]
mov word [ebp + 2], ax
lea eax, [esi - 0xa]
push eax
lea eax, [edi + 0xa]
push eax
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
push edi
call fcn.100e1ca7
add esp, 0x10
lea eax, [esi - 0xa]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x100cb677
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push ebp
push esi
push edi
push 0
push 1
push 2
pop eax
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
lea ebp, [esi + 0x39]
cmp edi, 0xffffffff
jne 0x100cb69f
call dword [sym.imp.WS2_32.dll_WSACleanup]
or edi, edi
jmp 0x100cb6cf
push 2
pop eax
mov word [ebp], ax
movzx eax, word [esi + 0x35]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esi + 0x1d]
mov word [esi + 0x3b], ax
cmp dword [ecx + 0x14], 0xf
jbe 0x100cb6c0
mov ecx, dword [ecx]
lea eax, [esi + 0x3d]
push eax
push ecx
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_inet_pton]
push 4
lea eax, [esp + 0x10]
mov dword [esi + 0x49], edi
push eax
push 0x1005
push 0xffff
push edi
mov dword [esp + 0x20], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push ebp
push dword [esi + 0x49]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100cb714
push dword [esi + 0x49]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x100cbabc
Capabilities:
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x100cbad0
mov al, 1
jmp 0x100cbb90
push edi
push 0x11
push 2
pop edi
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100cbb8d
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100cbb1b
mov esi, dword [0x101d3880]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._CBotConnection::CreateSocket__ioctlsocket___has_failed._Error_code:__d
push esi
jmp 0x100cbb85
mov eax, dword [esi]
cmp dword [eax + 0x14], 0xf
jbe 0x100cbb25
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100cbb44
mov esi, dword [0x101d3880]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._CBotConnection::CreateSocket__gethostbyname___has_failed._Error_code:__d
jmp 0x100cbb18
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100cbb6f
mov ecx, dword [eax]
test ecx, ecx
je 0x100cbb6f
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov word [esi + 8], di
movzx ecx, word [ecx + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xa], ax
mov al, 1
jmp 0x100cbb8f
mov eax, dword [esi]
cmp dword [eax + 0x14], 0xf
jbe 0x100cbb79
mov eax, dword [eax]
push eax
push str._CBotConnection::CreateSocket__Failed_to_find_IP_address_from___s_.
push dword [0x101d3880]
call fcn.100cf94d
add esp, 0xc
xor al, al
pop edi
pop esi
leave
ret
Function at 0x100d65c4
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 0x64
mov esi, 0x10102608
pop edi
xor cl, byte [esi]
xor cl, dl
inc esi
sub edi, 1
jne 0x100d65ce
pop edi
pop esi
mov al, cl
ret

Function at 0x100d664e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10157040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
mov ebp, ecx
test edx, edx
je 0x100d675e
push ebx
push esi
push edi
push edx
push 0x1010613c
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.1002941b
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
call fcn.100d6354
push 5
pop esi
lea edi, [esp + 0x10]
mov ebx, esi
mov cl, byte [edi]
mov dl, 0x2f
call fcn.100d65c4
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100d669e
lea edi, [esp + 0x15]
mov ebx, esi
mov cl, byte [edi]
mov dl, 0x45
call fcn.100d65c4
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100d66b5
lea edi, [esp + 0x1a]
mov ebx, esi
mov cl, byte [edi]
mov dl, 0x6f
call fcn.100d65c4
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100d66cc
lea edi, [esp + 0x1f]
mov cl, byte [edi]
mov dl, 0xdb
call fcn.100d65c4
mov byte [edi], al
inc edi
sub esi, 1
jne 0x100d66e1
push 0x14
xor ecx, ecx
pop edx
mov al, byte [ecx + 0x1010266c]
xor byte [esp + ecx + 0x10], al
inc ecx
sub edx, 1
jne 0x100d66f7
push 0x39
xor ch, ch
lea esi, [esp + 0x14]
pop edi
mov bl, byte [esi]
mov dl, bl
shr dl, 4
movzx eax, dl
add eax, 0x30
cmp edi, eax
movzx eax, ch
sbb cl, cl
and bl, 0xf
and cl, 7
add cl, 0x30
add cl, dl
inc ch
mov byte [eax + ebp], cl
movzx eax, bl
add eax, 0x30
cmp edi, eax
movzx eax, ch
sbb cl, cl
and cl, 7
add cl, 0x30
add cl, bl
inc ch
inc esi
mov byte [eax + ebp], cl
cmp ch, 0x28
jb 0x100d6710
pop edi
movzx eax, ch
pop esi
pop ebx
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x11c]
pop ebp
xor ecx, esp
call fcn.100e1471
add esp, 0x11c
ret

Function at 0x100d827b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100d82a2
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100d82a5
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100d8257
pop esi
leave
ret 8