joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042030
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140042096
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140042079
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140042073
shr ax, 8
cmp al, 2
je 0x140042096
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14009a250
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400420c9
mov qword [0x1400fb2b8], rsi
jmp 0x140042254
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExW
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1400bac40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x14004212e
mov rcx, rbx
test rbp, rbp
je 0x140042120
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14004221c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14004221c
test rbp, rbp
je 0x14004215d
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004215d
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14004221c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x140042214
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14004220b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004220b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400421b0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x1400421c2
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400421e0
mov rcx, rdi
test rbp, rbp
je 0x140042202
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140042208
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14009aecc]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400fb2b8], rsi
test rsi, rsi
je 0x140042254
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140042254
mov qword [0x1400fb2b0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14005d430
test al, al
lea rcx, [0x1400feec8]
setne byte [0x1400feec0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14009a250
add rsp, 0x1e8
ret
Function at 0x140048300
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140048315
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140047d80
Function at 0x140052070
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.140033aa0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400507d0
mov rcx, rdi
mov rsi, rax
call fcn.1400507d0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140052120
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140033aa0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140033b30
cmp rax, 0x3e8
ja 0x140052153
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_MoveFileExW]
test eax, eax
je 0x1400520d0
test rsi, rsi
je 0x14005212e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005213c
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 0x140052161
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14005216f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14005213e
Function at 0x1400525f0
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 0x14005278e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14005276e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14005265e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140052650
inc rbx
jmp 0x140052660
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005266d
lea ebp, [rax + 0xe]
jmp 0x140052679
cmp eax, 0x17
jne 0x140052711
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140052711
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140052711
cmp rax, rbp
jb 0x140052711
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 0x140052720
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 0x1400526fe
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 0x14005270e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140052640
jmp 0x140052726
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140052740
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140052769
test rdi, rdi
je 0x140052765
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14009aecc]
mov rdi, rbx
test rbx, rbx
jne 0x140052750
xor edi, edi
jmp 0x14005277d
test rdi, rdi
jne 0x14005277d
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 0x140052bf0
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 0x140052c27
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x140052c90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140052d6b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1400399b0
cmp eax, 4
je 0x140052ce8
mov edx, eax
jmp 0x140052d15
cmp byte [0x1400fb2c4], r14b
jne 0x140052d1f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x140052d6d
mov eax, dword [rsp + 0x50]
jmp 0x140052d3e
imul eax, dword [0x1400fb2c0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400fb2c0], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140052d62
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140052d50
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140052cc0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140052d80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x140052f2c
test r14b, 1
je 0x140052f2c
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, 0x2b
mov qword [r11 - 0x38], r13
je 0x140052eab
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.1400399b0
cmp eax, 4
je 0x140052e28
mov ecx, eax
jmp 0x140052e55
cmp byte [0x1400fb2c4], r13b
jne 0x140052e63
mov r9d, 2
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x140052eed
mov eax, dword [rsp + 0x20]
jmp 0x140052e82
imul eax, dword [0x1400fb2c0], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1400fb2c0], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x140052ea2
sub rbp, rbx
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140052e90
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x140052e00
mov eax, ecx
test ecx, ecx
jne 0x140052eed
test r14, r14
je 0x140052ee8
lea rdx, [0x1400c3550]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x140052ec0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14009a250
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x140052f0d
Function at 0x140059e40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rdi, r9
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]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x140059eeb
mov qword [rsp + 0x130], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140059ea7
mov dword [rdi], 0x51
jmp 0x140059edc
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140050a30
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14003fea0
mov rax, qword [rsi + 8]
mov dword [rax + 0xce4], ebx
mov dword [rdi], 0x38
mov rbx, qword [rsp + 0x130]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14009a250
add rsp, 0x138
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
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
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140059fc6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140050a30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14003fea0
mov eax, 2
jmp 0x14005a03a
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.140040ce0
test al, al
jne 0x14005a038
mov qword [rsp + 0x1e0], rdi
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]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140050a30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14003fea0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14005a03a
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14009a250
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140061e90
Capabilities:
Check http status code

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, 0x30
mov r14, r8
mov rdi, rdx
mov r8d, send
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rbx, r9
call fcn.140044260
test eax, eax
je 0x140061eda
mov ebp, dword [rdi + 0x148]
cmp ebp, 0x191
je 0x140061f01
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.140044260
test eax, eax
je 0x140061f47
mov ebp, dword [rdi + 0x148]
cmp ebp, 0x197
jne 0x140061f47
mov rcx, rbx
call fcn.140049f00
mov rbx, rax
test rax, rax
jne 0x140061f19
lea eax, [rbx + 0x1b]
jmp 0x14006210b
cmp ebp, 0x197
mov r8, rbx
mov rcx, rdi
sete dl
call fcn.14004bc60
mov rcx, rbx
mov edi, eax
call qword [fcn.14009aecc]
test edi, edi
je 0x140062109
mov eax, edi
jmp 0x14006210b
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.140044260
test eax, eax
je 0x140061fa2
mov r8d, dword [rdi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140061f87
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.14003ff90
jmp 0x140062109
xor edx, edx
lea r9, [r14 + 0x2a8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140051710
jmp 0x140062109
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rbx
call fcn.140049e30
test al, al
jne 0x140062101
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.140044260
test eax, eax
je 0x140062060
mov r8d, dword [rdi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14006200f
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.14003ff90
jmp 0x140062109
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.140049e30
test al, al
je 0x140062109
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.14003ff90
mov rcx, rdi
mov byte [r14 + 0x2b4], 1
call fcn.14005d6f0
jmp 0x140062109
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.140049e30
test al, al
jne 0x140062101
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140062109
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x140062109
cmp byte [rbx + 8], 0x20
jne 0x140062109
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140062109
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140062109
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x140062109
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x140062109
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x148], ecx
mov dword [rdi + 0x12d4], ecx
jmp 0x140062109
mov byte [r14 + 0x2b5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140063220
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140063263
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400632b0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140063312
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x1400632d0
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x140063351
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400c5a09]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400c5a0a]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140063320
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x140064d70
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r15
sub rsp, 0x5c0
mov rax, qword [0x1400f9b40]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
xor r12d, r12d
mov rbp, rdx
mov ebx, r12d
mov r15, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rdx], bl
jne 0x140064da4
mov qword [rsp + 0x600], rsi
mov qword [rsp + 0x608], r14
cmp rdi, 0x101
ja 0x140064f1e
xor edx, edx
lea rcx, [rsp + 0x3a0]
mov r8d, 0x208
call fcn.14009ae90
mov esi, 0x104
lea rcx, [rsp + 0x290]
mov r8d, esi
xor edx, edx
call fcn.14009ae90
mov r8, rdi
lea rcx, [rsp + 0x290]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x290], 0x5c
lea rax, [rsp + 0x3a0]
inc rdi
mov dword [rsp + 0x28], 0x101
lea r14, [rsp + 0x290]
mov qword [rsp + 0x20], rax
add r14, rdi
lea r8, [rsp + 0x290]
inc rdi
xor edx, edx
mov r9d, edi
xor ecx, ecx
mov byte [r14], 0x2a
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140064f1e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140064e7d
mov eax, 0xffffd700
jmp 0x140064f23
sub rsi, rdi
mov r8, rsi
xor edx, edx
mov rcx, r14
call fcn.14009ae90
test byte [rsp + 0x40], 0x10
jne 0x140064eda
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x30], r12
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140064f0c
lea rdx, [rsp + 0x290]
mov rcx, r15
call fcn.140064b30
test eax, eax
jns 0x140064ed8
inc ebx
jmp 0x140064eda
add ebx, eax
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140064e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffd700
cmp eax, 0x12
cmovne ebx, edi
mov edi, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140064f23
mov rcx, rbp
mov edi, 0xffffd700
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x140064f23
mov eax, 0xffffd800
mov r14, qword [rsp + 0x608]
mov rsi, qword [rsp + 0x600]
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.14009a250
add rsp, 0x5c0
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140068ef0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, r8
lea rdx, [0x1400bdf6c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x140068f2f
mov eax, 0xffffc200
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
mov rcx, rbx
cmp ebp, 0xffffffff
jne 0x140068f72
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xffffc200
jmp 0x140069012
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
lea rdx, [rbp + 1]
mov qword [rdi], rbp
test rdx, rdx
je 0x140069004
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsi], rax
test rax, rax
je 0x140069004
mov r8, qword [rdi]
mov r9, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, qword [rdi]
je 0x140068fd9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.140071030
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffc200
jmp 0x140069012
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsi]
lea rdx, str._____BEGIN
mov rax, qword [rdi]
mov byte [rcx + rax], 0
mov rcx, qword [rsi]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140069000
inc qword [rdi]
xor eax, eax
jmp 0x140069012
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xffffc080
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006bdb0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
cmp edx, 1
jbe 0x14006bdbb
mov eax, 0xffffff8c
ret
xor eax, eax
mov r8d, 0xc1059ed8
mov qword [rcx], rax
test edx, edx
mov eax, 0x6a09e667
cmovne eax, r8d
mov r8d, 0x367cd507
mov dword [rcx + 8], eax
mov eax, 0xbb67ae85
cmovne eax, r8d
mov r8d, 0x3070dd17
mov dword [rcx + 0xc], eax
mov eax, 0x3c6ef372
cmovne eax, r8d
mov r8d, 0xf70e5939
mov dword [rcx + 0x10], eax
mov eax, 0xa54ff53a
cmovne eax, r8d
mov r8d, 0xffc00b31
mov dword [rcx + 0x14], eax
mov eax, 0x510e527f
cmovne eax, r8d
mov r8d, 0x68581511
mov dword [rcx + 0x18], eax
mov eax, 0x9b05688c
cmovne eax, r8d
mov r8d, 0x64f98fa7
mov dword [rcx + 0x1c], eax
mov eax, 0x1f83d9ab
cmovne eax, r8d
mov r8d, 0xbefa4fa4
mov dword [rcx + 0x20], eax
mov eax, 0x5be0cd19
cmovne eax, r8d
mov dword [rcx + 0x24], eax
xor eax, eax
mov dword [rcx + 0x68], edx
ret