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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0f6f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ff230]
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 0x1005aff9
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 0x1005afad
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.10059fa0
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005b052
xor bl, bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005afe3
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 0x100db776
push 0x58
call fcn.10091cf8
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1005afc9
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 0x1005b037
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.10059ed0
mov edi, eax
test edi, edi
je 0x1005afc9
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 0x1005b0c9
cmp eax, 0x3e5
je 0x1005b0c9
cmp byte [edi + 0x48], 0
je 0x1005b09a
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005b09a
push eax
call fcn.100919ab
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b0b9
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.1009197a
add esp, 8
jmp 0x1005afc9
mov bl, 1
jmp 0x1005afcb
Function at 0x1005b600
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 0x100d109d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100ff230]
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 0x1005b661
cmp eax, 0x17
jne 0x1005b76e
push 0x100db776
push 0x58
call fcn.10091cf8
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x1005b76e
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 0x1005b6a6
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.10057df0
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 0x1005b70e
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 0x1005b76e
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 0x1005b7a4
cmp eax, 0x3e5
je 0x1005b7a4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b763
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.1009197a
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x3c]
mov byte [ebp - 0x11], al
test ecx, ecx
je 0x1005b78e
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 0x1005b770
Function at 0x1005c940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d12fd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.10091630
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 0x1005cc40
push 0
push 0
call fcn.100a573b
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1005c9ba
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.1008e2ea
int3

Function at 0x1005cca0
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 0x1005cd39
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.100a3f17
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005cd39
push edi
push 0
push ebx
call fcn.10093d00
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 0x1005cd43
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.1009e727
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 0x1005cd6c
mov edi, ebx
push dword [ebp - 0xc]
push dword [edi]
call fcn.100a8b32
add esp, 8
test eax, eax
je 0x1005cd7e
inc esi
add edi, 0x2c
cmp esi, dword [ebp - 4]
jb 0x1005cd52
push ebx
call fcn.1009e727
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.1009e727
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d4f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x30], 0x290034
mov dword [ebp - 0x34], 0x3e005a
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x32]
xor eax, ecx
mov dword [ebp - 0x2c], 0x2a003b
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x30]
xor eax, ecx
mov dword [ebp - 0x28], 0x740033
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x2e]
xor eax, ecx
mov dword [ebp - 0x24], 0x36003e
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x20], 0x36
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 0x1005d60f
movaps xmm0, xmmword [0x100eac40]
xor eax, eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x1a183a0b
mov word [ebp - 0x50], 0x1c11
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 0x1005d5d0
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 0x1005d608
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.10091622
mov esp, ebp
pop ebp
ret
Function at 0x1005ec60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d16d0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100ff230]
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 0x1005ed5f
mov eax, 1
cmp ax, word [esi + 8]
jne 0x1005ed49
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 0x1005ed04
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1005ed10
lea eax, [ebp - 0x6c]
push eax
push ecx
mov ecx, edi
call fcn.10026470
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.10093d00
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.10020350
add esp, 0x24
mov eax, 1
mov esi, dword [esi]
test esi, esi
jne 0x1005ecd0
push 1
push dword [ebp - 0x68]
call dword [sym.imp.DNSAPI.dll_DnsFree]
jmp 0x1005ee4d
push ecx
lea ecx, [ebp - 0x128]
call fcn.100045c0
mov dword [ebp - 4], 0
mov dl, 0x4e
mov dword [ebp - 0x5c], 0x3d200a4e
mov dword [ebp - 0x58], 0x3c2b3b1f
mov dword [ebp - 0x54], 0x740f1137
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 0x1005eda8
mov dl, byte [ebp - 0x5c]
jmp 0x1005ed93
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.1001e810
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 0x1005ee05
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 0x1005ee42
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ee38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ee69
push ecx
push edx
call fcn.1009197a
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.10091622
mov esp, ebp
pop ebp
ret
call fcn.1009d81f
int3
Function at 0x10061160
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1a65
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100ff230]
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.10090ade
lea eax, [ebx + 0x18]
push 2
push eax
call fcn.1008e846
lea eax, [ebx + 0x48]
push eax
call fcn.10090f9c
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.10091630
mov esi, dword [ebp + 8]
mov edx, eax
add esp, 0x14
lea ecx, [edx + 4]
mov dword [edx], 0x100ea550
push esi
call fcn.10022760
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 0x10061d80
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 [0x100ff230]
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 0x10061ec6
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 [0x100eb040]
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 0x10061e00
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 0x10061ebf
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.10091622
mov esp, ebp
pop ebp
ret
Function at 0x10061ee0
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 0x100d1bf5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100ff230]
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 0x10062080
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10062077
nop
cmp word [eax + 8], 1
mov edi, dword [eax]
jne 0x1006206a
cmp dword [0x1010735c], 0
mov esi, dword [eax + 0x18]
je 0x1006206a
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 0x10061f90
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push dword [ebp - 0x34]
call fcn.10017970
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 [0x1010735c]
test ecx, ecx
je 0x1006209e
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 0x1006201b
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10062011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100620a3
push ecx
push edx
call fcn.1009197a
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 0x1006206a
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10062060
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100620a3
push ecx
push edx
call fcn.1009197a
add esp, 8
mov eax, edi
test edi, edi
jne 0x10061f50
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.10091622
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1008e560
call fcn.1009d81f
int3
Function at 0x10062860
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 0x1006287f
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 0x10062959
test byte [esi + 8], 1
je 0x10062962
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 0x100628e2
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 0x100628b0
mov eax, dword [esi + 0x14]
cmp edx, eax
jle 0x10062950
lea edi, [eax*8]
sub edi, eax
add edi, edx
cmp edi, dword [esi + 0x2c]
jge 0x10062977
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 0x10062977
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 0x10062933
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 0x1006297e
mov dword [ebp - 4], str.Query_IP_Format_error.
jmp 0x1006297e
push 0x100fc8b0
lea eax, [ebp - 4]
mov dword [ebp - 4], str.IPv4_not_support
push eax
call fcn.10093c94
mov dword [ebp - 4], str.database_error
push 0x100fc8b0
lea eax, [ebp - 4]
push eax
call fcn.10093c94
int3
Function at 0x100653d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x1006552b
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10023910
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100654fe
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x10065484
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100654f1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100654be
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x100654b6
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x100654f1
cmp ebx, edx
je 0x100654ce
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10065507
cmp ebx, edx
jne 0x100654c2
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0xc]
mov eax, ecx
cmp ecx, esi
jne 0x10065432
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x100654f1
push str.invalid_hash_bucket_count
call fcn.1008e57d
int3