joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034e30
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, [0x140034aa0]
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, [0x1400a79d0]
lea rcx, [rsp + 0xa8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x50
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x1400a79d0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x1400a79e8]
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 0x140034f5e
mov dword [rsp + 0x64], 1
jmp 0x140034f66
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x140034f95
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 [0x1400a7a10]
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 [0x1400a79c8], rax
lea rdx, [0x1400a79c0]
mov rcx, qword [0x1400a79c8]
call fcn.140034cf0
movzx eax, al
test eax, eax
jne 0x140035083
lea rdx, [0x1400a79c0]
mov rcx, qword [0x1400a79c8]
call fcn.140034cc0
mov rcx, qword [0x1400a79c8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400a79e8]
mov rcx, qword [0x1400a7a10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor al, al
jmp 0x14003510d
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1400a79b0]
mov edx, dword [rsp + 0x130]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
lea rcx, [0x1400a79b0]
mov edx, dword [rsp + 0x138]
mov dword [rcx + rax], edx
mov rdx, qword [0x1400a79b8]
mov rcx, qword [0x1400a79c0]
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 [0x1400a79c8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400a79c8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x140035140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400a7648]
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 [0x1400a7ad0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1400352da
mov eax, 0x110
mov eax, eax
mov ecx, dword [0x1400a7ad0]
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 [0x1400a7ad0]
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 [0x1400a7ad0]
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 0x14003529a
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x1c
jae 0x1400352cd
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 0x14003528d
lea rcx, [0x140087fa0]
call fcn.140086594
nop
mov eax, 0xf0
mov eax, eax
mov ecx, dword [0x1400a7ad0]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140086740
add rsp, 0x78
ret
Function at 0x14003df40
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14003e022
call fcn.140052a50
test al, al
jne 0x14003e022
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14003df72
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14005d0d0
test rax, rax
je 0x14003dfb7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14005d0d0
mov rsi, rax
test rax, rax
je 0x14003dfb7
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 0x14003dfeb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14004e390
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14003dfd0
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 0x140049150
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 0x14004921b
cmp qword [rcx + 0x258], 0
je 0x1400491ce
mov qword [rsp + 0x40], rbx
call fcn.140038810
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140038b60
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.140038b60
mov rbx, qword [rsp + 0x40]
jmp 0x14004921b
mov ecx, esi
test edx, edx
je 0x1400491de
sub ecx, 1
je 0x1400491de
cmp ecx, 1
jne 0x14004921b
mov r9, qword [rdi + 0x1c8]
lea rax, [0x140090978]
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 0x14004be50
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 0x140053880
Capabilities:
Convert ip address from string

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

Function at 0x140053bc0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a7648]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa8f], dil
je 0x140053ddf
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x140053dd7
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140053dd7
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140053dd7
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.140049320
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14003e580
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14003e580
test rbx, rbx
je 0x140053d44
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140053cb1
cmp ecx, 2
jne 0x140053d37
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 0x140053cde
cmp ecx, 0x17
jne 0x140053cf9
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140053ce6
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.14003e5a0
test rax, rax
je 0x140053d1d
mov r8d, 2
lea rdx, [0x14008ac68]
mov rcx, rsi
call fcn.14003e540
mov edi, eax
test edi, edi
jne 0x140053d5f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14003e4e0
mov edi, eax
test eax, eax
jne 0x140053d5f
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140053ca0
lea rcx, [rsp + 0x50]
call fcn.14003e5a0
test rax, rax
je 0x140053d70
lea rcx, [rsp + 0x50]
call fcn.14003e5b0
jmp 0x140053d73
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.140049320
jmp 0x140053db3
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.140049320
lea rcx, [rsp + 0x30]
call fcn.14003e5a0
test rax, rax
je 0x140053da1
lea rcx, [rsp + 0x30]
call fcn.14003e5b0
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.140049320
lea rcx, [rsp + 0x30]
call fcn.14003e550
lea rcx, [rsp + 0x50]
call fcn.14003e550
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.140086740
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x14005d870
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.14003e330
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 0x14005d920
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14003e330
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14003e3c0
cmp rax, 0x3e8
ja 0x14005d953
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 0x14005d8d0
test rsi, rsi
je 0x14005d92e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005d93c
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 0x14005d961
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005d96f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14005d93e
Function at 0x14005ded0
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 0x14005e06e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14005e04e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14005df3e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005df30
inc rbx
jmp 0x14005df40
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005df4d
lea ebp, [rax + 0xe]
jmp 0x14005df59
cmp eax, 0x17
jne 0x14005dff1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14005dff1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14005dff1
cmp rax, rbp
jb 0x14005dff1
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 0x14005e000
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 0x14005dfde
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 0x14005dfee
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14005df20
jmp 0x14005e006
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14005e020
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14005e049
test rdi, rdi
je 0x14005e045
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [case.0x14003f66b.0]
mov rdi, rbx
test rbx, rbx
jne 0x14005e030
xor edi, edi
jmp 0x14005e05d
test rdi, rdi
jne 0x14005e05d
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 0x14005e4d0
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 0x14005e507
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x14005e570
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 0x14005e627
xor ebp, ebp
nop word [rax + rax]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400a7a74], bpl
jne 0x14005e5e2
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 0x14005e627
mov eax, dword [rsp + 0x40]
jmp 0x14005e5fc
imul eax, dword [0x1400a7a70], 0x41c64e6d
mov edx, ebp
add eax, 0x3039
mov dword [0x1400a7a70], eax
ror eax, 0x10
test rbx, rbx
je 0x14005e61e
sub rsi, rbx
nop dword [rax]
nop dword [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14005e610
test rsi, rsi
jne 0x14005e5a0
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 0x14005e640
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 0x14005e6fa
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
cmp byte [0x1400a7a74], sil
jne 0x14005e6a7
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 0x14005e6fd
mov r8d, dword [rsp + 0x40]
jmp 0x14005e6c6
imul r8d, dword [0x1400a7a70], 0x41c64e6d
mov ecx, esi
add r8d, 0x3039
mov dword [0x1400a7a70], r8d
ror r8d, 0x10
cmp r8d, 0xfffffffc
jae 0x14005e670
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 0x14005e670
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 0x14005e720
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rbp
push r15
sub rsp, 0xd8
mov rax, qword [0x1400a7648]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
mov rbp, r8
and rax, 0xfffffffffffffffe
mov r15, rdx
cmp rax, 0x100
jae 0x14005e875
test bpl, 1
je 0x14005e875
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 0x14005e813
xor r12d, r12d
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400a7a74], r12b
jne 0x14005e7d6
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 0x14005e819
mov eax, dword [rsp + 0x20]
jmp 0x14005e7f1
imul eax, dword [0x1400a7a70], 0x41c64e6d
mov ecx, r12d
add eax, 0x3039
mov dword [0x1400a7a70], eax
ror eax, 0x10
test rbx, rbx
je 0x14005e80e
sub rsi, rbx
nop dword [rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14005e800
test rsi, rsi
jne 0x14005e793
mov ebx, ecx
test ecx, ecx
je 0x14005e85e
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.140086740
add rsp, 0xd8
pop r15
pop rbp
ret
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r15
mov rdx, r14
call fcn.140074de0
mov eax, ebx
jmp 0x14005e81b
mov eax, Ordinal_46
jmp 0x14005e843
Function at 0x140064c20
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 [0x1400a7648]
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 0x140064c9c
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 0x140064ca1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x140064cc0
lea rdx, str.Error_accept__ing_server_connect
call fcn.140049240
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x140064d4c
lea rdx, str.Connection_accepted_from_server
call fcn.140049320
mov byte [rsi + 0x2b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140082540
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140076dc0
test eax, eax
jne 0x140064d4c
cmp qword [rdi + 0x268], 0
je 0x140064d4a
mov dl, 1
mov rcx, rdi
call fcn.140038b60
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.140038b60
test ebx, ebx
je 0x140064d4a
mov rdx, rsi
mov rcx, rdi
call fcn.140065360
mov eax, Ordinal_46
jmp 0x140064d4c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140086740
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140066930
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 0x140066960
mov byte [rdx + 0x46e], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140066a50
cmp byte [rcx + 0xa7f], 0
je 0x140066975
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140067670
cmp byte [rcx + 0xa82], 0
je 0x1400669f3
mov r9, qword [rdx + 0x418]
test r9, r9
jne 0x1400669b8
mov r9, qword [rcx + 0x730]
test r9, r9
jne 0x1400669af
cmp byte [rbx + 0x138b], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x1400669cf
cmp byte [rcx + 0x1390], 0
lea r8, str.PRET_STOR__s
jne 0x1400669cf
lea r8, str.PRET_RETR__s
add rdx, 0x360
mov rcx, rbx
call fcn.140082930
test eax, eax
jne 0x1400669fd
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400675c0
add rsp, 0x20
pop rbx
ret

Function at 0x140066ce0
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 0x140066d2b
cmp qword [rdx + 0xb8], 0
je 0x140066d2b
xor r9d, r9d
lea r8, str.REST__d
call fcn.140082930
test eax, eax
jne 0x140066d35
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140066930
add rsp, 0x20
pop rbx
ret
Function at 0x1400671d0
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 0x140067210
lea rdx, str.Couldnt_set_desired_mode
call fcn.140049240
lea eax, [rdi + 0x11]
jmp 0x140067375
cmp edx, 0xc8
je 0x140067227
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140049320
cmp sil, 0x13
jne 0x14006723d
mov rdx, rbp
mov rcx, rbx
call fcn.140066ef0
jmp 0x140067371
cmp sil, 0x14
jne 0x140067353
cmp byte [rbx + 0x6d8], 2
mov rbp, qword [rbx + 0x20]
jne 0x1400672bb
mov rax, qword [rbx + 0x198]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400672bb
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140074e40
test eax, eax
jne 0x140067371
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400672b0
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400672bb
mov rcx, qword [rsp + 0x40]
call qword [case.0x14003f66b.0]
mov rdx, qword [rbx + 0x730]
test rdx, rdx
jne 0x1400672e0
cmp byte [rbx + 0x138b], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14008a37c]
test rdi, rdi
mov r9, r8
lea rax, [0x14008af10]
cmovne r9, rdi
lea rcx, [0x1400906e4]
cmovne r8, rax
call fcn.140050920
mov rcx, rdi
mov rsi, rax
call qword [case.0x14003f66b.0]
test rsi, rsi
jne 0x14006731e
lea edi, [rsi + 0x1b]
jmp 0x140067373
lea rdx, [rbp + 0x360]
mov r9, rsi
lea r8, [0x14008ac64]
mov rcx, rbx
call fcn.140082930
mov rcx, rsi
mov edi, eax
call qword [case.0x14003f66b.0]
test edi, edi
jne 0x140067373
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1f
jmp 0x140067373
cmp sil, 0x15
jne 0x14006735e
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140067367
cmp sil, 0x16
jne 0x140067373
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.140066a50
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