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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x8f8]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14003430d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14004dc00
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
cmp r8d, 4
jge 0x14003435c
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140020898
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14004d240
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, qword [rbx + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x1400343ee
sub edx, 1
je 0x140034468
sub edx, 1
je 0x1400343c2
cmp edx, 1
je 0x1400343a5
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400bd164]
call fcn.140020898
jmp 0x140034468
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rbx
call fcn.14003400c
test eax, eax
je 0x140034468
jmp 0x140034332
movzx ecx, byte [rax + 2]
lea rdx, [0x14009bf4c]
movzx eax, byte [rax + 3]
mov r8, qword [rbx + 0x168]
shl ecx, 8
add r8, 4
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.140020968
jmp 0x140034468
cmp r8d, 4
jle 0x140034468
movzx ecx, byte [rax + 2]
mov edx, 1
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
add eax, edx
movzx eax, ax
cmp eax, ecx
jne 0x140034468
lea eax, [r8 - 4]
mov rcx, r14
mov r8, qword [rbx + 0x168]
add r8, 4
movsxd r9, eax
call fcn.140020754
mov esi, eax
test eax, eax
je 0x140034447
mov edx, 5
mov rcx, rbx
call fcn.140034cc0
mov eax, esi
jmp 0x140034332
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14002a3a4
mov rcx, r14
call fcn.14002a684
test eax, eax
je 0x140034330
mov edx, 5
mov rcx, rbx
call fcn.140034cc0
mov eax, Ordinal_46
jmp 0x140034332
Function at 0x14003cbf4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x240]
lea r8, [r11 - 0x28]
mov rsi, qword [rcx]
lea rdx, [r11 - 0x20]
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
or rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14003cc63
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.140021130
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x14003cc88
lea rdx, str.Error_accept__ing_server_connect
call fcn.140020898
lea eax, [rdi + 0x1f]
jmp 0x14003cce6
lea rdx, str.Connection_accepted_from_server_n
call fcn.140020968
mov byte [rbx + 0x55c], 0
mov ebp, 1
mov edx, ebp
mov qword [rbx + 0x240], rdi
mov rcx, rdi
call fcn.14004239c
mov byte [rbx + 0x259], bpl
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x14003cce4
mov rcx, qword [rsi + 0x2d0]
mov r8d, ebp
mov rdx, rdi
call rax
test eax, eax
je 0x14003cce4
mov rcx, rbx
call fcn.14003d138
lea eax, [rbp + 0x29]
jmp 0x14003cce6
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1f8]
cmp dword [rax + 0x18], 0
je 0x14003e721
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
mov rcx, rbx
mov dword [rbx + 0x9b0], r8d
add rsp, 0x20
pop rbx
jmp fcn.14003e804
cmp byte [rcx + 0x586], 0
je 0x14003e739
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003f118
cmp byte [rcx + 0x59e], 0
je 0x14003e7bc
mov r8, qword [rbx + 0x980]
test r8, r8
jne 0x14003e79a
mov r8, qword [rcx + 0x5f8]
test r8, r8
jne 0x14003e773
cmp byte [rcx + 0x585], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x8f8]
lea rdx, str.PRET__s
call fcn.1400466c0
test eax, eax
jne 0x14003e7c4
mov dword [rbx + 0x9b0], 0x1d
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x591], 0
lea rcx, [rbx + 0x8f8]
je 0x14003e7b3
lea rdx, str.PRET_STOR__s
jmp 0x14003e781
lea rdx, str.PRET_RETR__s
jmp 0x14003e781
mov rcx, rbx
call fcn.14003f088
add rsp, 0x20
pop rbx
ret
Function at 0x14003ee08
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x14003ee3e
lea rdx, str.Couldnt_set_desired_mode
call fcn.140020898
lea eax, [rbx + 0x11]
jmp 0x14003ee95
cmp edx, 0xc8
je 0x14003ee55
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140020968
cmp edi, 0x13
jne 0x14003ee64
mov rcx, rsi
call fcn.14003ec4c
jmp 0x14003ee91
cmp edi, 0x14
jne 0x14003ee73
mov rcx, rsi
call fcn.14003dd94
jmp 0x14003ee91
cmp edi, 0x15
jne 0x14003ee7e
lea r8d, [rdi - 8]
jmp 0x14003ee87
cmp edi, 0x16
jne 0x14003ee93
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.14003e804
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140040838
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14006725c
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x14004088b
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x14004088b
lea rcx, [rsp + 0x20]
call qword [0x1400d4018]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14004d240
add rsp, 0x140
pop rbx
ret
Function at 0x14004310c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 3
jne 0x140043146
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1400431a6
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x140043180
cmp qword [rbx + 0x10], 0
jne 0x14004316c
mov rcx, qword [rcx + 0x10]
lea rdx, [0x14009c1e4]
call fcn.1400617e4
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14004316c
or rax, 0xffffffffffffffff
jmp 0x1400431a6
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.140065b10
mov rdi, rax
test rax, rax
jne 0x1400431a3
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004319a
call fcn.1400582ec
and qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140045ff4
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rbp, r8
mov rsi, rdx
call fcn.140051300
mov rdi, rax
lea rcx, [rax + rax]
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x140046033
lea eax, [rbx + 0x1b]
jmp 0x1400460ff
xor ecx, ecx
test rdi, rdi
je 0x14004604d
mov al, byte [rcx + rsi]
mov byte [rbx + rcx*2], al
mov byte [rbx + rcx*2 + 1], 0
inc rcx
cmp rcx, rdi
jb 0x14004603a
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400460e5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400460d8
mov rcx, qword [rsp + 0x30]
lea r8d, [rdi + rdi]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
and dword [rsp + 0x20], 0
mov r8, rbp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor edx, edx
lea rcx, [rbp + 0x10]
lea r8d, [rdx + 5]
call fcn.14004e050
mov rcx, rbx
call qword [fcn.140058358]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140046114
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12d, 8
mov dword [rsp + 0x20], 0xf0000000
mov r14, r8
mov dword [rbp - 0x40], r12d
mov rdi, rdx
mov rsi, rcx
xor r8d, r8d
lea rcx, [rbp - 0x30]
lea r9d, [r12 - 7]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
test eax, eax
je 0x140046282
xor edx, edx
lea rcx, [rbp - 0x28]
lea r8d, [rdx + 0x14]
call fcn.14004e050
mov dl, byte [r14 + 1]
mov cl, byte [r14]
mov al, dl
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [r14 + 2]
mov byte [rbp - 0x1b], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [r14 + 3]
mov byte [rbp - 0x1a], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [r14 + 4]
mov byte [rbp - 0x19], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [r14 + 5]
mov byte [rbp - 0x18], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [r14 + 6]
mov byte [rbp - 0x17], al
mov al, cl
add cl, cl
shr al, 6
or al, dl
mov byte [rbp - 0x15], cl
mov rdx, r12
mov byte [rbp - 0x16], al
lea rcx, [rbp - 0x1c]
mov word [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], r12d
call fcn.140049418
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x28]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140046274
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14004dc00
mov eax, dword [rbp - 0x40]
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov bl, 1
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a8b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x14004a9b9
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14004a92e
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x14004a9ae
mov rsi, rbp
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14004a942
jmp 0x14004a9ae
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a74fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a74fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x14004a983
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400511ac
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140051189
call fcn.140057ddc
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400510d0
or eax, 0xffffffff
jmp 0x1400511a6
sub dword [rcx + 0x10], 1
jns 0x140051198
add rsp, 0x28
jmp fcn.14006db28
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140051168
Function at 0x14005a084
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140059e58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140059e58
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140059e58
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140059e58
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140059e58
cmp dword [rcx + 0x84], 0xe
jbe 0x140059e58
cmp dword [rcx + 0xf8], esi
je 0x140059e58
mov ecx, r14d
call fcn.140059fa0
mov ecx, 2
call fcn.140067660
nop
cmp byte [0x1400d6ca8], 0
jne 0x140059f22
mov r15d, 1
mov eax, r15d
xchg dword [0x1400d6c9c], eax
test ebx, ebx
jne 0x140059ecb
mov rdi, qword [0x1400d4130]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400d6ca0]
cmp rcx, rax
je 0x140059ec2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x14009b8a0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400d6ff8]
jmp 0x140059ed7
cmp ebx, r15d
jne 0x140059edd
lea rcx, [0x1400d7010]
call fcn.14006a718
nop
test ebx, ebx
jne 0x140059ef4
lea rdx, [0x14009b9b8]
lea rcx, [0x14009b998]
call fcn.14006a9f4
lea rdx, [0x14009b9c8]
lea rcx, [0x14009b9c0]
call fcn.14006a9f4
movzx eax, byte [0x1400d6ca8]
test esi, esi
cmove eax, r15d
mov byte [0x1400d6ca8], al
jmp 0x140059f22
mov ecx, 2
call fcn.1400676b4
test esi, esi
jne 0x140059f39
mov ecx, r14d
call fcn.140059f54
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140059de8
Function at 0x14006db28
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14006d9c8
call fcn.140057ddc
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400510d0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006d9b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14006d9b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14006d9fa
lock or dword [rax + 0x14], 0x10
jmp 0x14006d9b0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14006da17
mov rcx, qword [rbp + 0x10]
call fcn.14006e178
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14006d958
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14006c55c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14006da6e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14006d9b0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14006dada
mov rcx, qword [rbp + 0x10]
call fcn.14006d958
cmp eax, 0xffffffff
je 0x14006dac1
mov rcx, qword [rbp + 0x10]
call fcn.14006d958
cmp eax, 0xfffffffe
je 0x14006dac1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14006d958
movsxd rdi, eax
lea rsi, [0x1400d7080]
mov rcx, rbx
sar rdi, 6
call fcn.14006d958
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14006dac8
lea rax, [0x1400d4480]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006dada
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14006db10
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14006db0c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14006db0c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14006d9b3
jmp 0x14006d980
Function at 0x14007d56c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
call fcn.14007d7a8
xor r10d, r10d
test eax, eax
js 0x14007d795
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14007d5ee
lea rdx, [rbx + 8]
lea rdx, [rdx + r9*4]
lea r8, [rbx + 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov eax, dword [rdx - 8]
sub r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
lea r8, [r8 + 0x10]
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
lea rdx, [rdx - 0x10]
mov ecx, dword [r8 - 0xc]
mov dword [r8 - 0xc], eax
mov dword [rdx + 0x14], ecx
cmp r10, r9
jl 0x14007d5a5
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x14007d793
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 - 1]
mov r8d, dword [rdi + rdx*4 + 0xb6ed0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0xb66d0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, r9b
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0xb6ad0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xb62d0]
movzx edx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 3]
mov dword [r10 - 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xb6ed0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0xb66d0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0xb6ad0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xb62d0]
movzx edx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 7]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xb6ed0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0xb66d0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0xb6ad0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0xb62d0]
movzx edx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0xb66d0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xb6ad0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xb6ed0]
movzx ecx, byte [rdi + rax*4 + 0xb72d0]
xor r8d, dword [rdi + rcx*4 + 0xb62d0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x14007d60c
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14007ec74
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.14004e050
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret

Function at 0x14007f044
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov dword [rbp - 0xe], 0x65727275
lea r9, [rbp + 0x20]
mov dword [rbp - 0x16], 0x4e207377
lea r8, [rbp - 0x50]
mov word [rbp - 0x28], 0x5c5c
lea rdx, [rbp - 0x30]
mov word [rbp - 0x25], 0x6369
lea eax, [rbx + 4]
mov word [rbp - 5], 0x6973
mov dword [rbp + 0x20], eax
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], eax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov dword [rbp - 9], 0x72655674
mov word [rbp - 0x1d], 0x5c5c
mov word [rbp - 0x2d], 0x5754
mov dword [rbp - 0x1a], 0x6f646e69
mov word [rbp - 2], WSASetLastError
mov dword [rbp - 0x22], 0x666f736f
mov byte [rbp - 0x23], WSACleanup
mov word [rbp - 0x11], 0x5c5c
mov word [rbp - 0x30], 0x4f53
mov byte [rbp - 0xa], WSASetLastError
mov byte [rbp - 0x12], 0x54
mov word [rbp - 0x2a], 0x4552
mov byte [rbp - 0x1e], reloc.WS2_32.dll_WSACleanup
mov byte [rbp - 0x2e], 0x46
mov byte [rbp - 0x26], Ordinal_79
mov byte [rbp - 3], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x2b], 0x41
mov byte [rbp - 0x1b], 0x57
mov byte [rbp - 0xf], 0x43
mov dword [rbp - 0x48], 0x726f6a61
mov word [rbp - 0x38], WSACleanup
mov word [rbp - 0x50], 0x7543
mov word [rbp - 0x4d], 0x6572
mov word [rbp - 0x4a], 0x4d74
mov word [rbp - 0x3b], 0x626d
mov dword [rbp - 0x42], 0x6f697372
mov word [rbp - 0x3e], 0x4e6e
mov byte [rbp - 0x4b], WSASetLastError
mov word [rbp - 0x44], 0x6556
mov byte [rbp - 0x4e], WSACleanup
mov byte [rbp - 0x3c], 0x75
mov byte [rbp - 0x39], 0x65
mov dword [rbp + 0x18], ebx
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
movzx ecx, bl
lea edx, [rbx + 1]
mov rbx, qword [rsp + 0xa8]
test eax, eax
cmove ecx, edx
mov al, cl
add rsp, 0x80
pop rbp
ret