joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005fc80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d59bf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x1005fd29
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005fcdd
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
xor edx, edx
mov byte [ebp - 4], 0
push edi
lea ecx, [edx + 3]
call fcn.1005ecd0
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005fd82
xor bl, bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005fd13
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
push 0x100e074e
push 0x58
call fcn.100954f9
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1005fcf9
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x18], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005fd67
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x10]
push ebx
push 3
call fcn.1005ec00
mov edi, eax
test edi, edi
je 0x1005fcf9
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 0x54]
push 0
push edi
push eax
push 0
push 1
lea eax, [edi + 0x4c]
mov dword [edi + 0x14], ecx
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1005fdf9
cmp eax, 0x3e5
je 0x1005fdf9
cmp byte [edi + 0x48], 0
je 0x1005fdca
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005fdca
push eax
call fcn.100951ac
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005fde9
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.1009517b
add esp, 8
jmp 0x1005fcf9
mov bl, 1
jmp 0x1005fcfb
Function at 0x10060330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5aed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x10060391
cmp eax, 0x17
jne 0x1006049e
push 0x100e074e
push 0x58
call fcn.100954f9
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x1006049e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x100603d6
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 0x20]
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 1
call fcn.1005cb20
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x14]
mov byte [edi + 0x48], 0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x54], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1006043e
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x1006049e
push 0
push edi
push dword [ebp - 0x18]
lea eax, [edi + 0x54]
push dword [ebp - 0x1c]
push eax
push 0
push 1
lea eax, [edi + 0x4c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x100604d4
cmp eax, 0x3e5
je 0x100604d4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x10060493
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.1009517b
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x3c]
mov byte [ebp - 0x11], al
test ecx, ecx
je 0x100604be
mov esi, dword [ecx]
lea eax, [ebx + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38
mov al, 1
jmp 0x100604a0
Function at 0x10061710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5d6d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.10094e31
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x10061a10
push 0
push 0
call fcn.100aca12
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1006178a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call fcn.10091b3a
int3

Function at 0x10061a70
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 5
push 0
push 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x10061b09
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov edi, dword [ebp - 8]
add edi, 0x2c
push edi
call fcn.100a7ef7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10061b09
push edi
push 0
push ebx
call fcn.10097780
add esp, 0xc
lea eax, [ebp - 4]
push 0
push 0
push eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push esi
test eax, eax
jne 0x10061b13
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.100a21a6
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x10061b3c
mov edi, ebx
push dword [ebp - 0xc]
push dword [edi]
call fcn.100acb63
add esp, 8
test eax, eax
je 0x10061b4e
inc esi
add edi, 0x2c
cmp esi, dword [ebp - 4]
jb 0x10061b22
push ebx
call fcn.100a21a6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
imul eax, esi, 0x2c
push ebx
mov esi, dword [eax + ebx + 0x24]
call fcn.100a21a6
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100622c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x30], 0x7c0061
mov dword [ebp - 0x34], 0x6b000f
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x32]
xor eax, ecx
mov dword [ebp - 0x2c], 0x7f006e
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x30]
xor eax, ecx
mov dword [ebp - 0x28], 0x210066
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x2e]
xor eax, ecx
mov dword [ebp - 0x24], 0x63006b
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x20], 0x63
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x2a]
xor eax, ecx
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x28]
xor eax, ecx
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x26]
xor eax, ecx
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x24]
xor eax, ecx
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x22]
xor eax, ecx
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x20]
xor eax, ecx
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x22], ebx
mov word [ebp - 0x1e], bx
xorps xmm0, xmm0
movups xmmword [ebp - 0x32], xmm0
test esi, esi
je 0x100623df
movaps xmm0, xmmword [0x100f0120]
xor eax, eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x67654776
mov word [ebp - 0x50], 0x616c
mov byte [ebp - 0x4e], bl
nop dword [eax]
mov cl, byte [ebp + eax - 0x63]
xor cl, byte [ebp - 0x64]
mov byte [ebp + eax - 0x4d], cl
inc eax
cmp eax, 0x15
jb 0x100623a0
lea eax, [ebp - 0x4d]
mov byte [ebp - 0x38], bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x53], ebx
xorps xmm0, xmm0
mov word [ebp - 0x4f], bx
movups xmmword [ebp - 0x63], xmm0
test eax, eax
je 0x100623d8
call eax
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10094e23
mov esp, ebp
pop ebp
ret
Function at 0x10062400
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5e20
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, dword [ebp + 8]
push ecx
mov dword [ebp - 0x64], 1
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], 0
push eax
push 0x48
push 1
push ebx
call dword [sym.imp.DNSAPI.dll_DnsQuery_A]
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x100624ff
mov eax, 1
cmp ax, word [esi + 8]
jne 0x100624e9
mov eax, dword [esi + 0x18]
mov ebx, eax
mov ecx, dword [edi + 4]
mov edx, eax
shr edx, 0x10
mov dword [ebp - 0x70], edx
mov edx, eax
shr edx, 8
shr ebx, 0x18
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], edx
cmp ecx, dword [edi + 8]
je 0x100624a4
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x100624b0
lea eax, [ebp - 0x6c]
push eax
push ecx
mov ecx, edi
call fcn.10026f70
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.10097780
mov eax, dword [ebp - 0x70]
movzx eax, al
push ebx
push eax
mov eax, dword [ebp - 0x74]
movzx eax, al
push eax
mov eax, dword [ebp - 0x78]
movzx eax, al
push eax
lea eax, [ebp - 0x40]
push str._d._d._d._d
push eax
call fcn.100208f0
add esp, 0x24
mov eax, 1
mov esi, dword [esi]
test esi, esi
jne 0x10062470
push 1
push dword [ebp - 0x68]
call dword [sym.imp.DNSAPI.dll_DnsFree]
jmp 0x100625ed
push ecx
lea ecx, [ebp - 0x128]
call fcn.100045c0
mov dword [ebp - 4], 0
mov dl, 0x77
mov dword [ebp - 0x5c], 0x4193377
mov dword [ebp - 0x58], 0x5120226
mov dword [ebp - 0x54], 0x4d36280e
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 1
xor ecx, ecx
mov al, byte [ebp + ecx - 0x5b]
xor al, dl
mov byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0xb
jae 0x10062548
mov dl, byte [ebp - 0x5c]
jmp 0x10062533
lea edx, [ebp - 0x4f]
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x118]
call fcn.10006770
mov edx, ebx
mov ecx, eax
call fcn.10006770
mov edx, str._err:
mov ecx, eax
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.1001ec80
mov byte [ebp - 4], 0
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x128]
lea eax, [ebp - 0x5c]
push eax
call fcn.100044d0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x100625a5
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 3
call fcn.10003ef0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x100625e2
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100625d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10062609
push ecx
push edx
call fcn.1009517b
add esp, 8
lea ecx, [ebp - 0x128]
call fcn.10004400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
call fcn.100a129f
int3
Function at 0x10063d20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6015
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 0x10]
mov dword [ebx], vtable.std::_Associated_state_struct_std::pair_unsigned_long_int__unsigned_long_int__.0
mov dword [ebx + 4], 1
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.100943cd
lea eax, [ebx + 0x18]
push 2
push eax
call fcn.10092096
lea eax, [ebx + 0x48]
push eax
call fcn.10093a67
mov byte [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov word [ebx + 0x78], 0
mov byte [ebx + 0x7a], 0
mov dword [ebx + 0x7c], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x80]
mov dword [ebx], vtable.std::_Packaged_state_struct_std::pair_unsigned_long_int__unsigned_long_int_____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x38
mov byte [ebp - 4], 1
call fcn.10094e31
mov esi, dword [ebp + 8]
mov edx, eax
add esp, 0x14
lea ecx, [edx + 4]
mov dword [edx], 0x100ef684
push esi
call fcn.100232a0
mov eax, dword [esi + 0x30]
mov dword [ecx + 0x30], eax
mov eax, ebx
mov dword [edi + 0x24], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10064750
Capabilities:
Convert ip address from string
Create udp socket
Encode data using xor
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x10105230]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10064896
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x20], xmm0
push 0x35
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
movaps xmm0, xmmword [0x100f01f0]
xor ecx, ecx
mov word [esp + 0x22], ax
movups xmmword [esp + 0x3c], xmm0
mov byte [esp + 0x4c], 0
nop word [eax + eax]
mov al, byte [esp + ecx + 0x3d]
xor al, byte [esp + 0x3c]
mov byte [esp + ecx + 0x4d], al
inc ecx
cmp ecx, 0xf
jb 0x100647d0
lea eax, [esp + 0x24]
mov byte [esp + 0x5c], 0
push eax
lea eax, [esp + 0x51]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x10]
push 4
push eax
push 0x1006
push 0xffff
push edi
mov dword [esp + 0x24], 0x7d0
call esi
push 4
lea eax, [esp + 0x14]
push eax
push 0x1005
push 0xffff
push edi
call esi
push 0x10
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x1006488f
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x10], 0x10
push eax
push 0
push dword [esi]
xorps xmm0, xmm0
push dword [esp + 0x2c]
movaps xmmword [esp + 0x74], xmm0
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [esp + 8]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovg ecx, edx
mov dword [esi], eax
mov dword [esp + 8], ecx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
Function at 0x100648b0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d60d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push 0
push 0x10
push edx
push eax
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x10064a50
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10064a47
nop
cmp word [eax + 8], 1
mov edi, dword [eax]
jne 0x10064a3a
cmp dword [0x1010ee8c], 0
mov esi, dword [eax + 0x18]
je 0x10064a3a
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10064960
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push dword [ebp - 0x34]
call fcn.10017a20
push ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], esi
call fcn.10010210
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [0x1010ee8c]
test ecx, ecx
je 0x10064a6e
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x38]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x100649eb
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100649e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10064a73
push ecx
push edx
call fcn.1009517b
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 8
jb 0x10064a3a
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10064a30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10064a73
push ecx
push edx
call fcn.1009517b
add esp, 8
mov eax, edi
test edi, edi
jne 0x10064920
mov eax, dword [ebp - 0x30]
push 1
push eax
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10091db0
call fcn.100a129f
int3
Function at 0x10065930
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 0x14], 0x10
mov esi, ecx
jb 0x1006594f
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x10065a29
test byte [esi + 8], 1
je 0x10065a32
mov edx, dword [esi + 0x28]
xor ebx, ebx
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
nop dword [eax]
cmp edx, dword [esi + 0x14]
jg 0x100659b2
mov al, bl
mov ecx, 7
and al, 7
sub cl, al
mov eax, ebx
sar eax, 3
movzx eax, byte [ebp + eax - 8]
shr eax, cl
and eax, 1
lea ecx, [eax + edx*2]
mov eax, dword [esi + 0x34]
push dword [eax + ecx*4]
call edi
inc ebx
mov edx, eax
cmp ebx, 0x20
jl 0x10065980
mov eax, dword [esi + 0x14]
cmp edx, eax
jle 0x10065a20
lea edi, [eax*8]
sub edi, eax
add edi, edx
cmp edi, dword [esi + 0x2c]
jge 0x10065a47
mov edx, dword [esi + 0x34]
add edx, edi
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
add eax, 2
add eax, edi
cmp eax, dword [esi + 0x30]
jg 0x10065a47
mov ebx, dword [ebp - 4]
add edx, 2
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
lea esi, [ecx + 1]
mov dword [ebx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10065a03
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.1000ad50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], str.data_is_not_exists
jmp 0x10065a4e
mov dword [ebp - 4], str.Query_IP_Format_error.
jmp 0x10065a4e
push 0x10102240
lea eax, [ebp - 4]
mov dword [ebp - 4], str.IPv4_not_support
push eax
call fcn.10097714
mov dword [ebp - 4], str.database_error
push 0x10102240
lea eax, [ebp - 4]
push eax
call fcn.10097714
int3
Function at 0x1006fa20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d72a8
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [0x1010ec08]
xor ebx, ebx
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x34], eax
cmp dword [eax], ebx
je 0x1006fbe6
cmp dword [ebp + 8], ebx
je 0x1006fbe6
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1006fbe6
cmp dword [esi + 0x14], 0x10
jb 0x1006fa8e
mov esi, dword [esi]
mov eax, dword [ebp + 8]
push str.LdrGetProcedureAddress
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov dword [ebp - 0x58], eax
call esi
push str.NtAllocateVirtualMemory
push edi
mov dword [ebp - 0x54], eax
call esi
push str.LdrLoadDll
push edi
mov dword [ebp - 0x50], eax
call esi
push str.RtlInitAnsiString
push edi
mov dword [ebp - 0x4c], eax
call esi
push str.RtlAnsiStringToUnicodeString
push edi
mov dword [ebp - 0x48], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [ebp - 0x44], eax
call esi
push 0x40
mov dword [ebp - 0x40], eax
call fcn.100953db
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
push 0x40
push 0
push esi
call fcn.10097780
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x38], eax
call fcn.1006f1c0
mov ecx, eax
mov eax, dword [0x1010ec0c]
test ecx, ecx
cmovne eax, esi
xor ebx, ebx
mov dword [0x1010ec0c], eax
test ecx, ecx
mov eax, dword [ebp - 0x34]
setne bl
cmp dword [eax], 0
jbe 0x1006fbe6
test ebx, ebx
jne 0x1006fbe6
push ecx
lea ecx, [ebp - 0x10c]
call fcn.100045c0
mov edx, str.Load_RemoteDll_Version
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xfc]
call fcn.10006770
mov edx, 0x100ef384
mov ecx, eax
call fcn.10006770
mov edx, str._Error:
mov ecx, eax
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.1001ec80
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x10c]
lea eax, [ebp - 0x2c]
push eax
call fcn.100044d0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1006fb9e
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003ef0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1006fbdb
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fbd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fc04
push ecx
push edx
call fcn.1009517b
add esp, 8
lea ecx, [ebp - 0x10c]
call fcn.10004400
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
call fcn.100a129f
int3