joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034e40
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov dword [rsp + 0xa8], 0x50
mov dword [rsp + 0xac], reloc.WLDAP32.dll_Ordinal_32
lea rax, [0x140034ab0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xbc], 0
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov rax, qword [rsp + 0x128]
mov rcx, rax
call fcn.1400032f0
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], 0
lea rax, [0x1400a89d0]
lea rcx, [rsp + 0xa8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x50
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x1400a89d0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x1400a89e8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 8
jb 0x140034f6e
mov dword [rsp + 0x64], 1
jmp 0x140034f76
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x140034fa5
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov rax, qword [0x1400a8a10]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x90080000
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x98]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1400a89c8], rax
lea rdx, [0x1400a89c0]
mov rcx, qword [0x1400a89c8]
call fcn.140034d00
movzx eax, al
test eax, eax
jne 0x140035093
lea rdx, [0x1400a89c0]
mov rcx, qword [0x1400a89c8]
call fcn.140034cd0
mov rcx, qword [0x1400a89c8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400a89e8]
mov rcx, qword [0x1400a8a10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor al, al
jmp 0x14003511d
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1400a89b0]
mov edx, dword [rsp + 0x130]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
lea rcx, [0x1400a89b0]
mov edx, dword [rsp + 0x138]
mov dword [rcx + rax], edx
mov rdx, qword [0x1400a89b8]
mov rcx, qword [0x1400a89c0]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
lea rcx, str.wglSwapIntervalEXT
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rsp + 0xa0], rax
mov ecx, 1
call qword [rsp + 0xa0]
mov edx, 0xa
mov rcx, qword [0x1400a89c8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400a89c8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x140035150
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400a8648]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], Ordinal_33
mov byte [rsp + 0x40], 0xea
mov byte [rsp + 0x41], Ordinal_60
mov byte [rsp + 0x42], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x43], Ordinal_46
mov byte [rsp + 0x44], 0x84
mov byte [rsp + 0x45], reloc.WLDAP32.dll_Ordinal_79
mov byte [rsp + 0x46], 0x9f
mov byte [rsp + 0x47], gethostname
mov byte [rsp + 0x48], 0xde
mov byte [rsp + 0x49], WSAStartup
mov byte [rsp + 0x4a], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x4b], 0x3d
mov byte [rsp + 0x4c], 0x82
mov byte [rsp + 0x4d], reloc.WLDAP32.dll_Ordinal_79
mov byte [rsp + 0x4e], reloc.WLDAP32.dll_Ordinal_143
mov byte [rsp + 0x4f], 0x24
mov byte [rsp + 0x50], 0xf5
mov byte [rsp + 0x51], 0x55
mov byte [rsp + 0x52], 4
mov byte [rsp + 0x53], reloc.WS2_32.dll_send
mov byte [rsp + 0x54], 0x82
mov byte [rsp + 0x55], Ordinal_79
mov byte [rsp + 0x56], 0x9a
mov byte [rsp + 0x57], 0x79
mov byte [rsp + 0x58], 0xdd
mov byte [rsp + 0x59], 0x75
mov byte [rsp + 0x5a], 3
mov byte [rsp + 0x5b], 0x7b
mov eax, 0x110
mov eax, eax
mov ecx, dword [0x1400a8ad0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1400352ea
mov eax, 0x110
mov eax, eax
mov ecx, dword [0x1400a8ad0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [0x1400a8ad0]
mov rcx, qword gs:[0x58]
mov edx, 0x110
mov edx, edx
mov rax, qword [rcx + rax*8]
mov ecx, dword [rsp + 0x28]
mov dword [rdx + rax], ecx
mov eax, 0xf0
mov eax, eax
mov ecx, dword [0x1400a8ad0]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x1c], 1
mov qword [rsp + 0x20], 0
jmp 0x1400352aa
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x1c
jae 0x1400352dd
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x40]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
jmp 0x14003529d
lea rcx, [0x140087fb0]
call fcn.1400865a4
nop
mov eax, 0xf0
mov eax, eax
mov ecx, dword [0x1400a8ad0]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140086750
add rsp, 0x78
ret
Function at 0x14003df50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14003e032
call fcn.140052a60
test al, al
jne 0x14003e032
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14003df82
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14005d0e0
test rax, rax
je 0x14003dfc7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14005d0e0
mov rsi, rax
test rax, rax
je 0x14003dfc7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14003dffb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14004e3a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14003dfe0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140049160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa8f], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14004922b
cmp qword [rcx + 0x258], 0
je 0x1400491de
mov qword [rsp + 0x40], rbx
call fcn.140038820
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140038b70
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x258]
movzx edx, bl
mov rcx, rdi
call fcn.140038b70
mov rbx, qword [rsp + 0x40]
jmp 0x14004922b
mov ecx, esi
test edx, edx
je 0x1400491ee
sub ecx, 1
je 0x1400491ee
cmp ecx, 1
jne 0x14004922b
mov r9, qword [rdi + 0x1c8]
lea rax, [0x140091978]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14004be60
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x140053890
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1400538a5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400532d0

Function at 0x140053bd0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a8648]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa8f], dil
je 0x140053def
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x140053de7
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140053de7
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140053de7
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.140049330
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14003e590
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14003e590
test rbx, rbx
je 0x140053d54
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140053cc1
cmp ecx, 2
jne 0x140053d47
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x140053cee
cmp ecx, 0x17
jne 0x140053d09
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140053cf6
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.14003e5b0
test rax, rax
je 0x140053d2d
mov r8d, 2
lea rdx, [0x14008bc68]
mov rcx, rsi
call fcn.14003e550
mov edi, eax
test edi, edi
jne 0x140053d6f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14003e4f0
mov edi, eax
test eax, eax
jne 0x140053d6f
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140053cb0
lea rcx, [rsp + 0x50]
call fcn.14003e5b0
test rax, rax
je 0x140053d80
lea rcx, [rsp + 0x50]
call fcn.14003e5c0
jmp 0x140053d83
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.140049330
jmp 0x140053dc3
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.140049330
lea rcx, [rsp + 0x30]
call fcn.14003e5b0
test rax, rax
je 0x140053db1
lea rcx, [rsp + 0x30]
call fcn.14003e5c0
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.140049330
lea rcx, [rsp + 0x30]
call fcn.14003e560
lea rcx, [rsp + 0x50]
call fcn.14003e560
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140086750
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x14005d880
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14003e340
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14005d930
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14003e340
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14003e3d0
cmp rax, 0x3e8
ja 0x14005d963
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14005d8e0
test rsi, rsi
je 0x14005d93e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005d94c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14005d971
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005d97f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14005d94e
Function at 0x14005dee0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14005e07e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14005e05e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14005df4e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005df40
inc rbx
jmp 0x14005df50
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005df5d
lea ebp, [rax + 0xe]
jmp 0x14005df69
cmp eax, 0x17
jne 0x14005e001
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14005e001
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14005e001
cmp rax, rbp
jb 0x14005e001
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14005e010
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14005dfee
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x14005dffe
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14005df30
jmp 0x14005e016
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14005e030
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14005e059
test rdi, rdi
je 0x14005e055
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [str.q_b_]
mov rdi, rbx
test rbx, rbx
jne 0x14005e040
xor edi, edi
jmp 0x14005e06d
test rdi, rdi
jne 0x14005e06d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x14005e4e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x14005e517
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x14005e580
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, Ordinal_46
mov rsi, r8
test r8, r8
je 0x14005e637
xor ebp, ebp
nop word [rax + rax]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400a8a74], bpl
jne 0x14005e5f2
mov r9d, 2
mov dword [rsp + 0x40], ebp
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg eax
sbb edx, edx
and edx, 2
test ecx, ecx
jne 0x14005e637
mov eax, dword [rsp + 0x40]
jmp 0x14005e60c
imul eax, dword [0x1400a8a70], 0x41c64e6d
mov edx, ebp
add eax, 0x3039
mov dword [0x1400a8a70], eax
ror eax, 0x10
test rbx, rbx
je 0x14005e62e
sub rsi, rbx
nop dword [rax]
nop dword [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14005e620
test rsi, rsi
jne 0x14005e5b0
mov rbx, qword [rsp + 0x30]
mov eax, edx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14005e650
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, r8
mov rbx, rdx
mov ecx, esi
sub rdi, 1
je 0x14005e70a
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
cmp byte [0x1400a8a74], sil
jne 0x14005e6b7
mov r9d, 2
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
mov edx, eax
neg eax
sbb ecx, ecx
and ecx, 2
test edx, edx
jne 0x14005e70d
mov r8d, dword [rsp + 0x40]
jmp 0x14005e6d6
imul r8d, dword [0x1400a8a70], 0x41c64e6d
mov ecx, esi
add r8d, 0x3039
mov dword [0x1400a8a70], r8d
ror r8d, 0x10
cmp r8d, 0xfffffffc
jae 0x14005e680
mov eax, 0x8421085
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub r8d, eax
movzx eax, byte [r8 + rbp]
mov byte [rbx], al
inc rbx
sub rdi, 1
jne 0x14005e680
mov byte [rbx], sil
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005e730
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rbp
push r15
sub rsp, 0xd8
mov rax, qword [0x1400a8648]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
mov rbp, r8
and rax, 0xfffffffffffffffe
mov r15, rdx
cmp rax, 0x100
jae 0x14005e885
test bpl, 1
je 0x14005e885
mov qword [r11 + 0x20], rsi
mov ecx, Ordinal_46
mov qword [r11 - 0x18], rdi
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x28], r14
lea r14, [r8 - 1]
shr r14, 1
mov qword [r11 + 8], rbx
mov rsi, r14
mov qword [r11 - 0x20], r12
je 0x14005e823
xor r12d, r12d
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400a8a74], r12b
jne 0x14005e7e6
mov r9d, 2
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
test eax, eax
jne 0x14005e829
mov eax, dword [rsp + 0x20]
jmp 0x14005e801
imul eax, dword [0x1400a8a70], 0x41c64e6d
mov ecx, r12d
add eax, 0x3039
mov dword [0x1400a8a70], eax
ror eax, 0x10
test rbx, rbx
je 0x14005e81e
sub rsi, rbx
nop dword [rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14005e810
test rsi, rsi
jne 0x14005e7a3
mov ebx, ecx
test ecx, ecx
je 0x14005e86e
mov eax, ecx
mov r12, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x108]
mov rdi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140086750
add rsp, 0xd8
pop r15
pop rbp
ret
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r15
mov rdx, r14
call fcn.140074df0
mov eax, ebx
jmp 0x14005e82b
mov eax, Ordinal_46
jmp 0x14005e853
Function at 0x140064c30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400a8648]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x190]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140064cac
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x140064cb1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x140064cd0
lea rdx, str.Error_accept__ing_server_connect
call fcn.140049250
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x140064d5c
lea rdx, str.Connection_accepted_from_server
call fcn.140049330
mov byte [rsi + 0x2b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140082550
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140076dd0
test eax, eax
jne 0x140064d5c
cmp qword [rdi + 0x268], 0
je 0x140064d5a
mov dl, 1
mov rcx, rdi
call fcn.140038b70
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x270]
call qword [rdi + 0x268]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140038b70
test ebx, ebx
je 0x140064d5a
mov rdx, rsi
mov rcx, rdi
call fcn.140065370
mov eax, Ordinal_46
jmp 0x140064d5c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140086750
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140066940
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
mov rbx, rcx
mov rdx, qword [rcx + 0x20]
cmp dword [rax + 0x10], 0
je 0x140066970
mov byte [rdx + 0x46e], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140066a60
cmp byte [rcx + 0xa7f], 0
je 0x140066985
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140067680
cmp byte [rcx + 0xa82], 0
je 0x140066a03
mov r9, qword [rdx + 0x418]
test r9, r9
jne 0x1400669c8
mov r9, qword [rcx + 0x730]
test r9, r9
jne 0x1400669bf
cmp byte [rbx + 0x138b], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x1400669df
cmp byte [rcx + 0x1390], 0
lea r8, str.PRET_STOR__s
jne 0x1400669df
lea r8, str.PRET_RETR__s
add rdx, 0x360
mov rcx, rbx
call fcn.140082940
test eax, eax
jne 0x140066a0d
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400675d0
add rsp, 0x20
pop rbx
ret

Function at 0x140066cf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
add rdx, 0x360
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140066d3b
cmp qword [rdx + 0xb8], 0
je 0x140066d3b
xor r9d, r9d
lea r8, str.REST__d
call fcn.140082940
test eax, eax
jne 0x140066d45
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140066940
add rsp, 0x20
pop rbx
ret
Function at 0x1400671e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140067220
lea rdx, str.Couldnt_set_desired_mode
call fcn.140049250
lea eax, [rdi + 0x11]
jmp 0x140067385
cmp edx, 0xc8
je 0x140067237
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140049330
cmp sil, 0x13
jne 0x14006724d
mov rdx, rbp
mov rcx, rbx
call fcn.140066f00
jmp 0x140067381
cmp sil, 0x14
jne 0x140067363
cmp byte [rbx + 0x6d8], 2
mov rbp, qword [rbx + 0x20]
jne 0x1400672cb
mov rax, qword [rbx + 0x198]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400672cb
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140074e50
test eax, eax
jne 0x140067381
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400672c0
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400672cb
mov rcx, qword [rsp + 0x40]
call qword [str.q_b_]
mov rdx, qword [rbx + 0x730]
test rdx, rdx
jne 0x1400672f0
cmp byte [rbx + 0x138b], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14008b37c]
test rdi, rdi
mov r9, r8
lea rax, [0x14008bf10]
cmovne r9, rdi
lea rcx, [0x1400916e4]
cmovne r8, rax
call fcn.140050930
mov rcx, rdi
mov rsi, rax
call qword [str.q_b_]
test rsi, rsi
jne 0x14006732e
lea edi, [rsi + 0x1b]
jmp 0x140067383
lea rdx, [rbp + 0x360]
mov r9, rsi
lea r8, [0x14008bc64]
mov rcx, rbx
call fcn.140082940
mov rcx, rsi
mov edi, eax
call qword [str.q_b_]
test edi, edi
jne 0x140067383
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1f
jmp 0x140067383
cmp sil, 0x15
jne 0x14006736e
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140067377
cmp sil, 0x16
jne 0x140067383
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.140066a60
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret