joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005860
Capabilities:
Create thread
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007788b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100058d3
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1b8], eax
cmp eax, 0xffffffff
jne 0x100058f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Could_not_create_socket:__d
call fcn.1000afe0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0x1b1]
mov byte [ebp - 0x1b1], 1
push ecx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10005937
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_failed:___d
call fcn.1000afe0
add esp, 8
push dword [ebp - 0x1b8]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100058cd
mov eax, 2
mov dword [ebp - 0x1c], 0
push 0xeec2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp - 0x1b8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000597b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Bind_failed_with_error_code:___d
jmp 0x10005921
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1b8]
push 8
call fcn.10075b4f
add esp, 4
test eax, eax
je 0x10005999
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x1000599b
xor eax, eax
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x10002220
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x10005a20
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x10005a31
push ecx
push eax
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x10005a38
xorps xmm0, xmm0
push 1
movlpd qword [ebp - 0x1c0], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 8
cmp dword [ebp - 0x1bc], 0
je 0x10005a19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
xor eax, eax
jmp 0x100058d8
push 6
mov dword [ebp - 0x1bc], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x100079e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21ac
call fcn.10075d90
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21a4]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x202
mov dword [ebp - 0x21ac], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10007a38
push str.WSAStartup_failed_n
call fcn.1000afe0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007a65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
jmp 0x10007ba2
xorps xmm0, xmm0
mov eax, 2
push ebx
movlpd qword [ebp - 0x200c], xmm0
mov word [ebp - 0x2014], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xef1b
mov dword [ebp - 0x2010], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2012], ax
lea eax, [ebp - 0x2014]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007ac9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
jmp 0x10007b9b
push 0
push 4
lea eax, [ebp - 0x21a8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x10007af9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
jmp 0x10007b9b
push dword [ebp - 0x21a8]
push str.recv_file_size:__d_n
call fcn.1000afe0
add esp, 8
push 0
push 2
push 0x10079914
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 2
je 0x10007b37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
jmp 0x10007b9b
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0x10
jb 0x10007b46
mov eax, dword [edi]
push 0
mov byte [eax], bl
lea eax, [ebp - 0x2004]
push 0x2000
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x10007b9b
mov ecx, dword [ebp - 0x21ac]
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.10006c10
add ebx, edi
cmp ebx, dword [ebp - 0x21a8]
jae 0x10007b9b
push 0
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x10007b63
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10075b41
mov esp, ebp
pop ebp
ret
Function at 0x100119c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100119f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100119e0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10012870
Capabilities:
Create thread
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007825b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x35c
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
sub eax, 1
je 0x100128d5
sub eax, 5
jne 0x100128ce
test ecx, ecx
je 0x100128ce
mov eax, dword [0x10091b98]
mov dword [ecx], eax
mov eax, 1
jmp 0x1001293d
lea eax, [ebp - 0x120]
mov dword [0x10091b98], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1001293b
lea eax, [ebp - 0x120]
push eax
push str._sYGXMutexFile.lock
lea eax, [ebp - 0x228]
push 0x104
push eax
call fcn.10012a90
add esp, 0x10
lea eax, [ebp - 0x228]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1001295c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x330]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x330]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov dword [ebp - 0x350], 0x40918e2
mov dword [ebp - 0x34c], 0x53b003c
mov dword [ebp - 0x348], 0x73ec708
mov word [ebp - 0x344], 0x9104
mov dword [ebp - 0x342], eax
mov word [ebp - 0x33e], ax
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0x14
jae 0x100129fa
mov eax, dword [ebp - 0x354]
mov eax, dword [ebp - 0x354]
mov eax, dword [ebp - 0x354]
mov eax, dword [ebp - 0x354]
inc eax
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0x14
jb 0x100129d2
push esi
call fcn.100131e0
push 4
call fcn.10075b4f
add esp, 8
test eax, eax
je 0x10012a16
mov dword [eax], 0x10012850
jmp 0x10012a18
xor eax, eax
mov dword [ebp - 0x360], eax
lea ecx, [ebp - 0x358]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100127b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x10012a6f
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x10012a80
push ecx
push eax
call sub.MSVCP140.dll__Thrd_detach
add esp, 8
test eax, eax
jne 0x10012a87
jmp 0x100128ce
push 6
mov dword [ebp - 0x358], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x10013130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
jne 0x1001315e
or eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x10013171
mov ebx, dword [ebx]
test edi, edi
jle 0x100131ab
nop word [eax + eax]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100131bf
add esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp esi, edi
jl 0x10013180
push dword [ebp - 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100131e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor bl, bl
push edi
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
mov esi, dword [esi + 0xc]
mov eax, esi
mov edi, dword [esi]
cmp edi, esi
je 0x100132b6
mov ecx, dword [ebp + 8]
mov ebx, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp ecx, dword [esi + 0x18]
jne 0x100132a7
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
mov byte [ebp - 1], 1
mov dword [ecx], eax
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x54]
mov dword [ecx], eax
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov dword [ecx + 4], eax
movzx eax, word [esi + 0x2e]
push eax
push 0
push dword [esi + 0x30]
call sub.VCRUNTIME140.dll_memset
movzx eax, word [esi + 0x26]
push eax
push 0
push dword [esi + 0x28]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp dword [ebp - 8], esi
mov eax, edi
cmovne eax, dword [ebp - 0xc]
mov edi, dword [ebx]
mov esi, ebx
cmp edi, eax
jne 0x10013212
mov bl, byte [ebp - 1]
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
xor eax, eax
test bl, bl
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007853b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push 0x10079d9c
push str..log.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0x10
test eax, eax
jne 0x100160f8
push str.Error_opening_log_file
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
call fcn.1000df20
mov esi, eax
mov ecx, esi
call fcn.1000d5c0
call fcn.10015b50
lea eax, [ebp - 0x12c]
cmp eax, esi
je 0x1001612e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1001611f
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x12c]
push eax
call fcn.10006d70
cmp dword [ebp - 0x11c], 0
je 0x100161ce
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.10014400
lea eax, [ebp - 0x144]
push eax
call fcn.10005860
lea eax, [ebp - 0x12c]
push eax
call fcn.10007bc0
mov edx, dword [ebp - 0x130]
add esp, 0x10
cmp edx, 0x10
jb 0x100161ce
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100161c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100161c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10075b7f
add esp, 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x1001620a
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016200
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10075b7f
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret

Function at 0x10017890
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov eax, ecx
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret
Function at 0x1001a660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078896
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10091628]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebx], eax
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
movsd qword [ebx + 0x18], xmm0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0xf
mov byte [ebx + 0x38], 0
lea esi, [ebx + 0x50]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10075b4f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0x1000
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.1000a360
mov eax, ebx
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 0x10024df0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6bb], 0
je 0x10024e8d
cmp dword [esi + 0x194], 0
je 0x10024e47
push esi
call fcn.100257c0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.10025c60
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.10025c60
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x10024e5c
sub eax, 1
je 0x10024e5c
sub eax, 1
jne 0x10024e8d
push dword [esi + 0x140]
lea eax, [ecx*2 + 0x1007b2b0]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x10025250
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 0x100252fb
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.1002f0d0
add esp, 0xc
cmp eax, 4
jne 0x100252b6
cmp byte [0x10091bf0], 0
jne 0x100252c2
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
mov ecx, eax
test eax, eax
jne 0x100252fd
mov eax, dword [esp + 0x1c]
jmp 0x100252df
imul eax, dword [0x10091bec], 0x41c64e6d
add eax, 0x3039
mov dword [0x10091bec], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100252f3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x100252e3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10025270
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10025310
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 0x100253b0
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1002f0d0
add esp, 0xc
cmp eax, 4
je 0x1002534b
test eax, eax
jne 0x100253b5
jmp 0x10025395
cmp byte [0x10091bf0], 0
jne 0x1002537a
push 2
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x10025395
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x10091bec], 0x41c64e6d
add eax, 0x3039
mov dword [0x10091bec], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x10025330
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x10025330
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100253c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
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
Function at 0x1002aab0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1002ab5f
push esi
call fcn.100445c0
add esp, 4
test al, al
jne 0x1002ab5f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1002aad7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1004d4a0
add esp, 0xc
test eax, eax
je 0x1002ab0b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1004d4a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1002ab0d
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 0x1002ab3e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.10023180
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 0x1002ab20
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 0x1002ee30
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x10091628]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
cmp dword [eax], 0x100912ec
mov ecx, dword [eax + 8]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xc]
jne 0x1002ee6a
mov esi, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
mov ebp, dword [ecx + 0x80]
jmp 0x1002ee76
mov esi, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x34]
mov ebp, dword [ecx + 0x4c0]
test esi, esi
je 0x1002ef5c
mov eax, dword [edi]
test eax, eax
je 0x1002eeb3
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1002eea6
test dl, dl
je 0x1002eea2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1002eea6
add ecx, 2
add eax, 2
test dl, dl
jne 0x1002ee86
xor eax, eax
jmp 0x1002eeab
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ef5c
push edi
call fcn.1002ede0
push esi
call dword [0x10091264]
mov edx, eax
add esp, 8
mov dword [edi], edx
test edx, edx
je 0x1002ef0b
test ebx, ebx
je 0x1002ef2c
mov ecx, ebx
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x1002eef1
test al, al
je 0x1002eeed
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x1002eef1
add esi, 2
add ecx, 2
test al, al
jne 0x1002eed1
xor eax, eax
jmp 0x1002eef6
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ef2c
push ebx
call dword [0x10091264]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x1002ef2f
push edi
call fcn.1002ede0
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10075b41
add esp, 0x18
ret
mov dword [edi + 4], edx
mov esi, dword [edi]
mov dword [edi + 8], 0
test esi, esi
je 0x1002ef8f
cmp byte [esi], 0
je 0x1002ef8f
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x14]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x1002ef78
mov dword [edi + 0xc], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [eax + 0x38], ebp
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.10075b41
add esp, 0x18
ret
lea eax, [esp + 0x14]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x1002ef8f
mov dword [edi + 0xc], 2
jmp 0x1002ef5c
mov ecx, dword [edi]
mov dword [edi + 0xc], 0
cmp byte [ecx], 0
je 0x1002ef5c
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1002efa2
sub esi, edx
je 0x1002efb5
cmp byte [ecx + esi - 1], 0x2e
jne 0x1002efb5
dec esi
cmp esi, 0xffff
jae 0x1002ef5c
lea eax, [esi + 1]
push eax
push 1
call dword [0x10091268]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x1002ef0b
push esi
push dword [edi]
push eax
call fcn.100231e0
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x1002ef5c