joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015a970
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14015ab29
push rsi
push rdi
push r13
sub rsp, 0x30
mov rsi, qword [rcx + 0x1b8]
mov rdi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x28], r14
lea rbx, [rsi + 0x1ed8]
lea r14, [rsi + 0x1cd8]
mov qword [rsp + 0x20], r15
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x14015a9c7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14015a9e0
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14015a9e0
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
shr bp, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x14015aa1d
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x14015aa30
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x60]
cmp r9, rbx
jae 0x14015aa6f
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015aa6f
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015aa6f
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14015aa6f
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ee0], r9
lea r8, [rsi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.140159c00
mov rcx, qword [r13 + 0x220]
xor r9d, r9d
mov r8d, 3
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
test eax, eax
jns 0x14015aad3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140101e00
lea rdx, [rsi + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.14015b4b0
mov rcx, qword [r13 + 0x220]
lea rdx, [rsi + 0x1cdf]
xor r9d, r9d
mov r8d, 2
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14015ab21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140101e00
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x14015c250
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1402e1040]
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 0x14015c3d0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14015c3b0
mov qword [rsp + 0x38], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14015c2ce
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14015c2c0
inc rbx
jmp 0x14015c2d1
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x14015c35d
cmp qword [rdi + 0x20], r13
je 0x14015c35d
cmp qword [rdi + 0x10], 0x10
jb 0x14015c35d
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14015c36c
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 0x14015c34a
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 0x14015c35a
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14015c2b0
jmp 0x14015c372
mov r15d, 8
mov rcx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
test rcx, rcx
je 0x14015c387
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x14015c3ab
test rsi, rsi
je 0x14015c3a6
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [0x1402e1138]
mov rsi, rbx
test rbx, rbx
jne 0x14015c391
mov rsi, r13
jmp 0x14015c3bf
test rsi, rsi
jne 0x14015c3bf
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.140171bd0
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x14015da00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10, qword [rcx + 0x20]
mov rbp, r8
mov r15, qword [rcx + 0x1b8]
mov r12, rdx
mov rbx, rcx
test r10, r10
je 0x14015dbad
mov rax, qword [r10 + 0x3f0]
xor edi, edi
cmp rax, 0xffffffffffffffff
je 0x14015da56
mov edx, 1
cmp rax, qword [r10 + 0x228]
je 0x14015da58
mov edx, edi
lea rcx, [rsp + 0x34]
mov eax, edx
mov qword [rsp + 0x20], rcx
mov r9, rbp
mov rcx, rbx
mov dword [rsp + 0x34], edi
mov r8, r12
call qword [r10 + rax*8 + 0x240]
test rax, rax
mov rsi, rax
mov eax, dword [rsp + 0x34]
cmovs rsi, rdi
cmp eax, 0x51
jne 0x14015da93
mov eax, edi
mov rsi, rdi
jmp 0x14015daa7
test eax, eax
jne 0x14015dbb2
test rsi, rsi
je 0x14015daa7
add qword [rbx + 0x12d0], rsi
test eax, eax
jne 0x14015dbb2
mov qword [rsp + 0x40], r14
cmp byte [rbx + 0xa56], dil
je 0x14015db60
cmp qword [rbx + 0x270], rdi
je 0x14015db28
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x14015dae4
cmp byte [rcx + 0x22b], dil
je 0x14015dae4
mov r14b, 1
jmp 0x14015daec
xor r14b, r14b
test rcx, rcx
je 0x14015daf3
mov byte [rcx + 0x22b], 1
mov rax, qword [rbx + 0x1e8]
mov r9, rsi
mov r8, r12
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rbx
call qword [rbx + 0x270]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14015db60
mov byte [rax + 0x22b], r14b
jmp 0x14015db60
mov r9, qword [rbx + 0x1e0]
lea rcx, [0x14026f8a6]
mov edx, 2
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1e0]
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x40]
cmp rbp, rsi
je 0x14015db9f
sub rbp, rsi
mov rcx, rbp
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14015db98
lea rdx, [rsi + r12]
mov r8, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [r15], rdi
xor eax, eax
mov qword [r15 + 8], rbp
jmp 0x14015dbb2
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14015dbb2
mov qword [r15], rdi
mov rbp, rdi
mov qword [r15 + 8], rdi
xor eax, eax
jmp 0x14015dbb2
mov eax, 2
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140165900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r8
mov rsi, rcx
cmp rdx, r8
jae 0x140165af4
movzx r9d, byte [rdx]
lea rcx, [r11 - 0x38]
mov qword [r11 + 0x18], rbx
mov eax, 0xcccccccd
lea rbx, [rdx + 1]
mov qword [r11 - 0x38], 0
mul r9d
mov qword [r11 - 0x30], 0
shr edx, 5
mov r8d, edx
mov qword [r11 - 0x28], 0
mov qword [r11 - 0x20], 0x2710
lea eax, [rdx + rdx*4]
shl eax, 3
lea rdx, str._u._u
sub r9d, eax
call fcn.1401004e0
test eax, eax
jne 0x140165ad7
cmp rbx, rdi
jae 0x1401659cd
nop word [rax + rax]
xor r8d, r8d
test r8d, 0xff000000
jne 0x1401659d5
movzx edx, byte [rbx]
mov eax, r8d
shl eax, 7
mov ecx, edx
and ecx, 0x7f
inc rbx
mov r8d, ecx
or r8d, eax
test dl, dl
js 0x140165993
lea rdx, [0x1402ba32c]
lea rcx, [rsp + 0x20]
call fcn.1401004e0
cmp rbx, rdi
jb 0x140165990
test eax, eax
jne 0x140165ad7
mov rax, qword [str.1.2.840.10040.4.1]
lea r10, str.1.2.840.10040.4.1
mov r9, qword [rsp + 0x20]
test rax, rax
je 0x140165aac
lea r11, [0x14026f9e0]
nop dword [rax + rax]
mov r8, r9
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140165a23
inc rax
test ecx, ecx
jne 0x140165a10
test edx, edx
je 0x140165a76
mov rax, qword [r10 + 8]
test rax, rax
je 0x140165a96
test r9, r9
je 0x140165a9b
cmp byte [rax], 0
mov r8, r9
je 0x140165a61
nop dword [rax]
movzx ecx, byte [r8]
test cl, cl
je 0x140165a61
movzx edx, byte [rax]
movzx ecx, byte [rcx + r11]
cmp byte [rdx + r11], cl
jne 0x140165a92
inc rax
inc r8
cmp byte [rax], 0
jne 0x140165a40
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
je 0x140165a9b
test r10, r10
je 0x140165aac
mov rdx, qword [r10 + 8]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140165a86
jmp 0x140165ac0
xor ecx, ecx
jmp 0x140165a72
test r9, r9
je 0x140165a76
mov rax, qword [r10 + 0x10]
add r10, 0x10
test rax, rax
jne 0x140165a00
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r9 + r8], 0
jne 0x140165ab3
mov rdx, r9
mov rcx, rsi
call fcn.1401002b0
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [0x1402e1138]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140171bd0
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor eax, eax
jmp 0x140165adc
Function at 0x14016f2d0
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 [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0x304]
movzx ebp, r8b
mov r14, qword [rcx + 0x20]
mov rsi, rcx
mov ebx, eax
test eax, eax
jne 0x14016f316
mov rbx, qword [rdx + 0x38]
cmp byte [0x1402e3f79], 0
movups xmm0, xmmword [rdx + 0x28]
movaps xmmword [rsp + 0x20], xmm0
je 0x14016f359
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402e3f70]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402e3f70]
mov rcx, rax
jmp 0x14016f37c
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 0x14016f3bb
mov rcx, rdi
jmp 0x14016f3ee
cmp r8, r12
jg 0x14016f3c5
mov rcx, r15
jmp 0x14016f3ee
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 + 0x2f8], 0
je 0x14016f4cb
test bpl, bpl
jne 0x14016f4cb
cmp byte [0x1402e3f79], bpl
movups xmm0, xmmword [r14 + 0x1f0]
movaps xmmword [rsp + 0x20], xmm0
je 0x14016f44e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cqo
idiv qword [0x1402e3f70]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402e3f70]
mov r9, rax
jmp 0x14016f472
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 0x14016f4b9
cmp r8, r12
jg 0x14016f48e
mov rdi, r15
jmp 0x14016f4b9
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 + 0x2f8]
sub rax, rdi
cmp rbx, rax
cmovl rax, rbx
jmp 0x14016f4ce
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140171bd0
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 0x14016f800
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x20], 0
mov r10, r9
mov r9, r8
mov rbx, rdx
mov rdi, rcx
jne 0x14016f833
mov eax, gethostname
jmp 0x14016fa4d
cmp qword [rdx + 0x48], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r12
je 0x14016f84b
mov rax, qword [rdx + 0x40]
mov byte [rax], 0
xor r12d, r12d
lea rcx, [rbx + 0x40]
mov qword [rdx + 0x48], r12
mov r8, r10
mov rdx, r9
call fcn.140100440
test eax, eax
jne 0x14016fa43
mov r8d, 2
lea rdx, [0x1402acb18]
lea rcx, [rbx + 0x40]
call fcn.1401002b0
test eax, eax
jne 0x14016fa43
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x38]
mov rbp, qword [rbx + 0x48]
xor edx, edx
mov byte [rbx + 8], 1
mov r9, rbp
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov qword [rsp + 0x50], r15
mov r15, qword [rbx + 0x40]
mov r8, r15
mov dword [rsp + 0x38], r12d
call qword [rax + 0x240]
test rax, rax
mov rsi, rax
mov eax, dword [rsp + 0x38]
cmovs rsi, r12
cmp eax, 0x51
jne 0x14016f8d9
mov esi, r12d
jmp 0x14016f8e1
test eax, eax
jne 0x14016fa39
mov qword [rsp + 0x58], r14
cmp byte [rdi + 0xa56], r12b
je 0x14016f992
cmp qword [rdi + 0x270], r12
je 0x14016f95a
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x14016f916
cmp byte [rcx + 0x22b], r12b
je 0x14016f916
mov r14b, 1
jmp 0x14016f91e
xor r14b, r14b
test rcx, rcx
je 0x14016f925
mov byte [rcx + 0x22b], 1
mov rax, qword [rdi + 0x1e8]
mov r9, rsi
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rdi
call qword [rdi + 0x270]
mov rax, qword [rdi + 0xd8]
test rax, rax
je 0x14016f992
mov byte [rax + 0x22b], r14b
jmp 0x14016f992
mov r9, qword [rdi + 0x1e0]
lea rcx, [0x14026f8a6]
mov edx, 2
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1e0]
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x58]
cmp rsi, rbp
je 0x14016f9b0
mov qword [rbx + 0x20], rbp
sub rbp, rsi
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], r15
jmp 0x14016fa37
cmp byte [0x1402e3f79], r12b
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x20], r12
mov qword [rbx + 0x18], r12
je 0x14016f9ff
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x38]
mov r8, qword [0x1402e3f70]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x38], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14016fa2a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x38], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x28], xmm0
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x78
pop rdi
pop rbx
ret
Function at 0x1401707e0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14017082c
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401708f7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140170870
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1401708f7
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1401708d3
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401708e3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401708f5
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140170910
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rax, qword [0x1402e1040]
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 0x140170a4b
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 0x14017099d
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 0x140170a00
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 0x1401709c0
mov eax, dword [rdi + 0x1c]
mov r14, qword [rsp + 0x30]
cmp rbp, rax
jae 0x140170a43
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140226e3f]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140226e3e]
mov r8d, 1
call qword [rdi + reloc.WS2_32.dll_htonl]
mov eax, dword [rdi + 0x1c]
inc rbp
cmp rbp, rax
jb 0x140170a10
mov rbp, qword [rsp + 0x78]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret

Function at 0x140170fec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140171026
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14017102b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140171074
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140171074
dec r8
sub rdx, 1
jne 0x14017105a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140172b48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140172b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140172b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140172b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140172b92
cmp dword [rcx + 0x84], 0xe
jbe 0x140172b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140172b94
xor al, al
add rsp, 0x28
ret
Function at 0x140184ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140173950
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140184cf6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x140184d4d
mov ebp, 0x4b0000
jmp 0x140184d5b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140175ed0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140184d71
mov eax, r12d
jmp 0x140184d7a
mov edx, edi
mov ecx, ebp
call fcn.140175ed0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140184d96
shl esi, 0x10
mov ecx, esi
jmp 0x140184e85
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140184df4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140173950
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140184de4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140175da0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140173950
add ebx, eax
jmp 0x140184e8e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140184e01
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140184e40
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140173950
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140184e45
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140175da0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140173950
add ebx, eax
jmp 0x140184e8e
cmp eax, r12d
jge 0x140184e7e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140173950
sub ebp, eax
sub r15d, esi
je 0x140184e7e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140175da0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140173950
add ebx, eax
jmp 0x140184e8e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140173950
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.140173950