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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400070fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400070c5
mov dword [rsi], 0x51
jmp 0x1400070f4
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140053f40
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140013150
mov rax, qword [rdi + 8]
mov dword [rax + 0xd5c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.140013370
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140065250
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400073f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2c8]
test dword [rcx + 0x84], 0x800
jne 0x140007599
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400074c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.140053f40
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140013150
mov eax, 2
jmp 0x14000759b
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x140007562
cmp ecx, 1
jne 0x140007509
lea r8d, [rcx + 0x2d]
lea rcx, [rsp + 0x34]
lea rdx, [rbx + 0x114]
call fcn.140034250
test rax, rax
je 0x140007509
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx + 0x144], eax
jmp 0x140007599
mov byte [rbx + 0x114], 0
mov dword [rbx + 0x144], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140053f40
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140013150
mov eax, 2
jmp 0x14000759b
cmp dword [rsp + 0x20], 2
jle 0x140007588
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x14006a64c]
lea rcx, [rbx + 0x114]
call fcn.140039c30
jmp 0x14000758f
mov byte [rbx + 0x114], 0
mov dword [rbx + 0x144], 0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140065250
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000d630
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
test rcx, rcx
je 0x14000d741
lea rdx, [rsp + 0x20]
call fcn.140034770
test eax, eax
jg 0x14000d741
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x14000d670
test rdx, rdx
je 0x14000d6cc
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x14000d6cc
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x14000d69f
dec rcx
cmp rcx, rbx
jae 0x14000d690
jmp 0x14000d6cc
cmp rcx, rbx
je 0x14000d6cc
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x14000d6cc
nop dword [rax]
cmp byte [rax], 0x2e
je 0x14000d6bf
dec rax
cmp rax, rbx
jae 0x14000d6b0
jmp 0x14000d6cc
lea r8, [rax + 1]
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x14000d707
lea rdx, [0x140069160]
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x14000d6f0
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
add rsp, 0x30
pop rbx
ret
Function at 0x140010260
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x20]
mov ebp, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r15d, eax
test eax, eax
jne 0x1400103e0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x1400103c0
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400102de
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1400102d0
inc rbx
jmp 0x1400102e1
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x14001036d
cmp qword [rdi + 0x20], r13
je 0x14001036d
cmp qword [rdi + 0x10], 0x10
jb 0x14001036d
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14001037c
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
test rbx, rbx
je 0x14001035a
add rcx, 0x10
mov r8, rbx
mov qword [r14 + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rsi, rsi
cmove rsi, r14
test rbp, rbp
je 0x14001036a
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400102c0
jmp 0x140010382
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x140010397
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x1400103bb
test rsi, rsi
je 0x1400103b6
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [0x14007c4b8]
mov rsi, rbx
test rbx, rbx
jne 0x1400103a1
mov rsi, r13
jmp 0x1400103cf
test rsi, rsi
jne 0x1400103cf
mov r15d, 0x2af9
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x40]
mov eax, r15d
mov rbx, qword [rsp + 0x48]
mov qword [r12], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1400114c0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rbx + rcx], 0
jne 0x1400114e5
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x88], rdi
cmp rbx, rax
ja 0x14001166b
test rbx, rbx
je 0x14001151a
lea rcx, [rbx + rbx]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x140011527
lea rcx, [0x140067813]
call qword [case.0x14005c177.0]
mov rdi, rax
test rax, rax
je 0x14001166b
mov qword [rsp + 0x80], rsi
xor esi, esi
mov ecx, esi
test rbx, rbx
je 0x140011564
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rbp]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], sil
inc rcx
cmp rcx, rbx
jb 0x140011550
mov r9d, 1
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400115c6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400115e3
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x38], rsi
mov esi, 2
mov rcx, rdi
call qword [0x14007c4b8]
mov eax, esi
mov rsi, qword [rsp + 0x80]
jmp 0x140011670
mov rcx, qword [rsp + 0x40]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], esi
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x14001163a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, r14
mov dword [rsp + 0x20], esi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001164a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001165c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [r14 + 0x10], eax
mov byte [r14 + 0x14], al
jmp 0x1400115cb
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140065250
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
Function at 0x140013000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa87], 0
mov rbp, r9
mov r14, r8
mov rbx, rcx
je 0x1400130d6
cmp qword [rcx + 0x258], 0
je 0x1400130e7
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
test rax, rax
je 0x14001305f
cmp byte [rax + 0x1a3], 0
je 0x14001305f
lea rdi, [rcx + 0xe0]
mov sil, 1
jmp 0x14001307f
lea rdi, [rcx + 0xe0]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001307c
cmp byte [rcx + 0x1a3], 0
je 0x14001307c
mov sil, 1
jmp 0x14001307f
xor sil, sil
mov rcx, qword [rdi]
test rcx, rcx
je 0x140013090
mov byte [rcx + 0x1a3], 1
jmp 0x14001309c
test rax, rax
je 0x14001309c
mov byte [rax + 0x1a3], 1
mov rax, qword [rbx + 0x1d0]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rbx + 0x258]
mov rax, qword [rdi]
mov rdi, qword [rsp + 0x48]
test rax, rax
jne 0x1400130ca
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x1400130d1
mov byte [rax + 0x1a3], sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov ecx, edx
test edx, edx
je 0x1400130f7
sub ecx, 1
je 0x1400130f7
cmp ecx, 1
jne 0x1400130d6
mov r9, qword [rbx + 0x1c8]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140067d10]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
Function at 0x140019bb0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x28]
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rdi, qword [rsi + 0x190]
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140019d1a
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x20], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140019d1a
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
call fcn.140013280
lea r8, [rsp + 0x2c]
mov byte [rsi + 0x2b5], 0
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.140008c90
test eax, eax
jne 0x140019d2e
cmp qword [rbx + 0x268], 0
je 0x140019d16
mov rax, qword [rbx + 0xe0]
lea rdi, [rbx + 0xd8]
test rax, rax
jne 0x140019c9e
mov rax, qword [rdi]
test rax, rax
je 0x140019ca5
mov byte [rax + 0x1a3], 1
mov rdx, qword [rsp + 0x20]
mov r8d, 1
mov rcx, qword [rbx + 0x270]
call qword [rbx + 0x268]
mov rcx, qword [rbx + 0xe0]
mov edx, eax
test rcx, rcx
je 0x140019cd4
mov byte [rcx + 0x1a3], 0
jmp 0x140019ce3
mov rax, qword [rdi]
test rax, rax
je 0x140019ce3
mov byte [rax + 0x1a3], 0
test edx, edx
je 0x140019d16
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140019d00
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
lea rcx, [rsi + 0x1c0]
mov rdx, rbx
call fcn.140009140
mov eax, Ordinal_46
jmp 0x140019d2e
xor eax, eax
jmp 0x140019d2e
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.140013150
mov eax, 0x1e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001b3d0
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 0x14001b400
mov byte [rdx + 0x46e], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.14001bc10
cmp byte [rcx + 0xa77], 0
je 0x14001b415
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14001a8a0
cmp byte [rcx + 0xa7a], 0
je 0x14001b493
mov r9, qword [rdx + 0x418]
test r9, r9
jne 0x14001b458
mov r9, qword [rcx + 0x730]
test r9, r9
jne 0x14001b44f
cmp byte [rbx + 0x1383], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14001b46f
cmp byte [rcx + 0x1388], 0
lea r8, str.PRET_STOR__s
jne 0x14001b46f
lea r8, str.PRET_RETR__s
add rdx, 0x360
mov rcx, rbx
call fcn.140042880
test eax, eax
jne 0x14001b49d
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x46e], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14001b320
add rsp, 0x20
pop rbx
ret

Function at 0x14001cbb0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x14001cbed
lea rdx, str.Couldnt_set_desired_mode
call fcn.140013150
lea eax, [rdi + 0x11]
jmp 0x14001cc49
cmp edx, 0xc8
je 0x14001cc04
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140013280
cmp sil, 0x13
jne 0x14001cc17
mov rdx, rbp
mov rcx, rbx
call fcn.14001b4b0
jmp 0x14001cc45
cmp sil, 0x14
jne 0x14001cc27
mov rcx, rbx
call fcn.14001b550
jmp 0x14001cc45
cmp sil, 0x15
jne 0x14001cc32
mov r8b, reloc.WS2_32.dll_listen
jmp 0x14001cc3b
cmp sil, 0x16
jne 0x14001cc47
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.14001bc10
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400213a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14007c4d0]
mov rdi, rax
test rax, rax
je 0x14002141d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140021448
cmp ebx, esi
je 0x140021448
cmp ebx, 0x8000
ja 0x140021448
cmp ebx, esi
jb 0x140021443
mov edx, ebx
mov rcx, rdi
call qword [0x14007c4d0]
mov rdi, rax
test rax, rax
jne 0x1400213e0
mov rcx, rbp
call qword [0x14007c4b8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140021428
mov rcx, rdi
jmp 0x140021420
Function at 0x1400221f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea edx, [rax + rax]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14002232b
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rsp + 0x78], rbp
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x30], r14
cmp r15d, dword [rdi + 0x1c]
jbe 0x14002227d
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi + reloc.WS2_32.dll_htonl]
mov esi, dword [rdi + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rdi + reloc.WS2_32.dll_recv]
mov r15d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
xor ebp, ebp
test r15, r15
je 0x1400222e0
mov rbp, r15
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x20], al
mov rcx, qword [rbx + 8]
call qword [rdi + reloc.WS2_32.dll_htonl]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x20], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400222a0
mov eax, dword [rdi + 0x1c]
mov r14, qword [rsp + 0x30]
cmp rbp, rax
jae 0x140022323
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140067a54]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140067a53]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov eax, dword [rdi + 0x1c]
inc rbp
cmp rbp, rax
jb 0x1400222f0
mov rbp, qword [rsp + 0x78]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400420a0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0x2ec]
movzx ebp, r8b
mov r14, qword [rcx + 0x20]
mov rsi, rcx
mov ebx, eax
test eax, eax
jne 0x1400420e6
mov rbx, qword [rdx + 0x38]
cmp byte [0x14007eb28], 0
movups xmm0, xmmword [rdx + 0x28]
movaps xmmword [rsp + 0x20], xmm0
je 0x140042129
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x14007eb20]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x14007eb20]
mov rcx, rax
jmp 0x14004214c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov r8d, edx
sub ecx, eax
imul ecx, ecx, 0x3e8
movaps xmm0, xmmword [rsp + 0x20]
movabs r13, 0x20c49ba5e353f7
movq rax, xmm0
movabs rdi, 0x7fffffffffffffff
sub r8, rax
movabs r12, 0xffdf3b645a1cac09
movabs r15, 0x8000000000000000
cmp r8, r13
jl 0x14004218b
mov rcx, rdi
jmp 0x1400421be
cmp r8, r12
jg 0x140042195
mov rcx, r15
jmp 0x1400421be
psrldq xmm0, 8
movd eax, xmm0
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rcx, edx
add rcx, rax
sub rbx, rcx
cmp dword [rsi + 0x2e0], 0
je 0x14004229b
test bpl, bpl
jne 0x14004229b
cmp byte [0x14007eb28], bpl
movups xmm0, xmmword [r14 + 0x158]
movaps xmmword [rsp + 0x20], xmm0
je 0x14004221e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x14007eb20]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x14007eb20]
mov r9, rax
jmp 0x140042242
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov r8d, edx
sub ecx, eax
imul r9d, ecx, 0x3e8
movaps xmm0, xmmword [rsp + 0x20]
movq rax, xmm0
sub r8, rax
cmp r8, r13
jge 0x140042289
cmp r8, r12
jg 0x14004225e
mov rdi, r15
jmp 0x140042289
mov eax, 0x10624dd3
psrldq xmm0, 8
movd ecx, xmm0
sub r9d, ecx
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rdi, edx
add rdi, rax
mov eax, dword [rsi + 0x2e0]
sub rax, rdi
cmp rbx, rax
cmovl rax, rbx
jmp 0x14004229e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400455a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rdx
mov edx, Ordinal_46
mov rsi, r8
test r8, r8
je 0x140045667
xor ebp, ebp
nop dword [rax]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x14007eadc], bpl
jne 0x140045623
mov r9d, 2
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, eax
neg eax
sbb edx, edx
and edx, 2
test ecx, ecx
jne 0x140045667
mov eax, dword [rsp + 0x20]
jmp 0x14004563d
imul eax, dword [0x14007eaf0], 0x41c64e6d
mov edx, ebp
add eax, 0x3039
mov dword [0x14007eaf0], eax
ror eax, 0x10
test rbx, rbx
je 0x14004565e
sub rsi, rbx
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140045650
test rsi, rsi
jne 0x1400455e0
mov eax, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140045740
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor esi, esi
mov rdi, r8
mov rbx, rdx
mov ecx, esi
sub rdi, 1
je 0x14004580b
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
cmp byte [0x14007eadc], sil
jne 0x1400457b8
mov r9d, 2
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov edx, eax
neg eax
sbb ecx, ecx
and ecx, 2
test edx, edx
jne 0x14004580e
mov r8d, dword [rsp + 0x20]
jmp 0x1400457d7
imul r8d, dword [0x14007eaf0], 0x41c64e6d
mov ecx, esi
add r8d, 0x3039
mov dword [0x14007eaf0], r8d
ror r8d, 0x10
cmp r8d, 0xfffffffc
jae 0x140045780
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 0x140045780
mov byte [rbx], sil
mov eax, ecx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret