joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018e20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140018f48
cmp eax, 1
je 0x140018e7b
call fcn.140017d90
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400176c0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018e90
cmp r12d, 1
jne 0x140018f20
mov rcx, rbp
call fcn.140017990
test rdi, rdi
je 0x140018e7b
mov rcx, rdi
call fcn.140018120
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140018200]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018f88
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call r12
test rax, rax
je 0x140018f70
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call r12
test rax, rax
je 0x140018f60
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018e66
mov ecx, 2
call qword [fcn.140015ac0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018e66
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140018550
test rax, rax
jne 0x140018f09
jmp 0x1400f0595
call fcn.140018550
test rax, rax
jne 0x140018ee5
jmp 0x1400f05ae
call fcn.140018550
test rax, rax
jne 0x140018ebf
jmp 0x1400f05a4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140019210
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019288
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017ca0
cmp esi, dword [rbx + 0x48]
jae 0x140019263
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140019263
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140017ce0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140018550
mov rbx, rax
jmp 0x14001923d
Function at 0x1400192a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400193a0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140017ca0
cmp esi, dword [rbx + 0x48]
jae 0x140019320
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140017ce0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400193ad
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400193ad
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400192ef
call fcn.140018550
mov rbx, rax
jmp 0x1400192da
mov rcx, r13
call fcn.140017ce0
mov eax, 0xc
jmp 0x14001930d

Function at 0x140019430
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019458
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140018550
test rax, rax
jne 0x14001944a
add rsp, 0x28
ret

Function at 0x1400194c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400194e8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140018550
test rax, rax
jne 0x1400194da
jmp 0x1400194de

Function at 0x140019600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140131d28]
test eax, eax
jne 0x140019618
xor eax, eax
add rsp, 0x28
ret
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019648
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001960e
test byte [rax + 0x40], 3
je 0x14001960e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140019610
call fcn.140018550
test rax, rax
jne 0x14001962e
jmp 0x14001960e

Function at 0x140019660
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400196a0
test ebx, ebx
jle 0x140019690
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140018550
test rax, rax
jne 0x14001967d
add rsp, 0x20
pop rbx
ret
Function at 0x140019790
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019808
test byte [rbx + 0x40], 0xc
jne 0x1400197bf
mov eax, dword [0x140131d28]
test eax, eax
jne 0x1400197d0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400176c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400197f3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400197f3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001981c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140017990
call fcn.140018550
mov rbx, rax
test rax, rax
jne 0x1400197af
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001983a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140017990
call fcn.1400196b0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400198c0
call fcn.140017470
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400198f8
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019950
test esi, esi
je 0x1400198d6
call fcn.140019790
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019930
mov edx, edi
call fcn.140017520
call fcn.140019790
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019940
call fcn.140019790
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019790
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140019895
call fcn.140018550
mov rbx, rax
jmp 0x140019895
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400198ae
call fcn.140018550
jmp 0x1400198d6
call fcn.140018550
mov rbx, rax
jmp 0x140019891
Function at 0x140019850
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019808
test byte [rbx + 0x40], 0xc
jne 0x1400197bf
mov eax, dword [0x140131d28]
test eax, eax
jne 0x1400197d0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400176c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400197f3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400197f3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001981c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140017990
call fcn.140018550
mov rbx, rax
test rax, rax
jne 0x1400197af
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001983a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140017990
call fcn.1400196b0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400198c0
call fcn.140017470
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400198f8
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019950
test esi, esi
je 0x1400198d6
call fcn.140019790
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019930
mov edx, edi
call fcn.140017520
call fcn.140019790
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019940
call fcn.140019790
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019790
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140019895
call fcn.140018550
mov rbx, rax
jmp 0x140019895
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400198ae
call fcn.140018550
jmp 0x1400198d6
call fcn.140018550
mov rbx, rax
jmp 0x140019891

Function at 0x140019960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400184a0
mov ecx, dword [0x1400f1148]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400199d0
test esi, esi
je 0x1400199b0
call fcn.140019790
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400199e0
mov edx, esi
call fcn.140017520
call fcn.140019790
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140019790
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140019790
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018550
mov rbx, rax
jmp 0x140019981
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001999a
Function at 0x140087430
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140087478
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008744a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400568d0]
mov dword [rax], 1
mov rax, qword [0x1400568e0]
mov dword [rax], 1
mov rax, qword [0x1400568f0]
mov dword [rax], 1
mov rax, qword [0x140056880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001f670
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140039900
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140032950
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001f6c9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x1400385e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140049d60
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140049d60
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400392b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140060388]
test eax, eax
je 0x14003934a
lea rax, [0x140060360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140060390]
mov qword [rbp - 8], rax
jmp 0x14003932e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140039322
cmp qword [rbp - 0x10], 0
je 0x140039322
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400392e8
lea rax, [0x140060360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003934b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140039450
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140039478
mov eax, 0
jmp 0x1400394c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400394a1
mov eax, 0
jmp 0x1400394c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400394c1
mov eax, 0
jmp 0x1400394c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400394cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14003954a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140039541
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140039541
mov rax, qword [rbp - 8]
jmp 0x14003955f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140039514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret

Function at 0x1400135c0
Capabilities:
Parse url

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea edi, [rbp + 1]
cmp dword [rcx + 0x2c], ebp
jne 0x14001362d
call fcn.140013860
cmp qword [rbx + 0x18], 8
jb 0x140013613
mov rcx, qword [rbx]
jmp 0x140013616
mov rcx, rbx
lea r9, [rbx + 0x38]
mov r8d, dword [rbx + 0x28]
mov edx, dword [rbx + 0x10]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x30], eax
cmp dword [rbx + 0x30], ebp
je 0x140013647
mov r8d, dword [rbx + 0x48]
mov rdx, qword [rbx + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140013ad0
nop
jmp 0x140013678
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
xor r8d, r8d
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x30]
call fcn.140001f40
lea rax, [rsp + 0x30]
mov edi, 2
mov dword [rsp + 0x20], edi
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
mov rdx, rax
mov rcx, rsi
call fcn.140015cc0
or edi, 4
test dil, 2
je 0x1400136c7
and edi, 0xfffffffd
cmp qword [rsp + 0x48], 8
jb 0x1400136b4
mov rcx, qword [rsp + 0x30]
call fcn.1401026ec
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
test dil, 1
je 0x1400136df
cmp qword [rsp + 0x70], 8
jb 0x1400136df
mov rcx, qword [rsp + 0x58]
call fcn.1401026ec
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013710
Capabilities:
Parse url

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea edi, [rbp + 1]
cmp dword [rcx + 0x2c], ebp
jne 0x14001377d
call fcn.140013860
cmp qword [rbx + 0x18], 8
jb 0x140013763
mov rcx, qword [rbx]
jmp 0x140013766
mov rcx, rbx
lea r9, [rbx + 0x38]
mov r8d, dword [rbx + 0x28]
mov edx, dword [rbx + 0x10]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x30], eax
cmp dword [rbx + 0x30], ebp
je 0x14001379d
mov r8d, dword [rbx + 0x88]
mov rdx, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140013ad0
nop
jmp 0x1400137ce
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
xor r8d, r8d
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x30]
call fcn.140001f40
lea rax, [rsp + 0x30]
mov edi, 2
mov dword [rsp + 0x20], edi
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
mov rdx, rax
mov rcx, rsi
call fcn.140015cc0
or edi, 4
test dil, 2
je 0x14001381d
and edi, 0xfffffffd
cmp qword [rsp + 0x48], 8
jb 0x14001380a
mov rcx, qword [rsp + 0x30]
call fcn.1401026ec
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
test dil, 1
je 0x140013835
cmp qword [rsp + 0x70], 8
jb 0x140013835
mov rcx, qword [rsp + 0x58]
call fcn.1401026ec
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400160c0
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x28
mov r15, r9
mov rbx, r8
mov ebp, edx
mov rsi, rcx
test r8, r8
je 0x1400162b7
test r9, r9
je 0x1400162b7
mov ecx, edx
call fcn.140016020
cmp dword [r15], eax
jl 0x1400162b7
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x20], r14
mov eax, 0x55555556
mov edi, r8d
lea r10d, [r8 + 0x13]
mov r9d, r8d
imul ebp
mov r14d, edx
mov eax, 0x6bca1af3
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr r14d, 0x1f
add r14d, edx
lea r13d, [r14*4]
imul r13d
mov r11d, edx
sar r11d, 5
mov eax, r11d
shr eax, 0x1f
add r11d, eax
js 0x140016220
cmp r8d, r11d
jne 0x140016172
mov eax, r13d
mov ecx, r11d
imul ecx, ecx, 0x4c
sub eax, ecx
cdq
and edx, 3
lea r10d, [rdx + rax]
sar r10d, 2
test r10d, r10d
jle 0x1400161f4
mov r12d, r10d
lea r13, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 1]
movzx edx, byte [rsi]
shl edx, 8
add rbx, 4
add rsi, 3
or edx, ecx
shl edx, 8
or edx, eax
shl edx, 8
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rbx - 4], al
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rbx - 3], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rbx - 2], al
mov eax, edx
shr eax, 0x14
and eax, 0x3f
dec r12
movzx eax, byte [rax + r13]
mov byte [rbx - 1], al
jne 0x140016181
lea r13d, [r14*4]
inc r9d
mov word [rbx], 0xa0d
add rbx, 2
lea edi, [rdi + r10*4 + 2]
cmp r9d, r11d
jle 0x140016159
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test edi, edi
je 0x140016220
sub rbx, 2
sub edi, 2
mov r13, qword [rsp + 0x60]
lea eax, [r14 + r14*2]
mov r14, qword [rsp + 0x20]
sub ebp, eax
je 0x14001629b
lea r9d, [rbp + 1]
test r9d, r9d
je 0x14001629b
mov ecx, r8d
nop
cmp ecx, ebp
jge 0x14001624d
movzx eax, byte [rsi]
or r8d, eax
inc rsi
inc ecx
shl r8d, 8
cmp ecx, 3
jl 0x140016240
test r9d, r9d
jle 0x14001627d
mov edx, r9d
mov eax, r8d
inc rbx
shl r8d, 6
shr eax, 0x1a
dec rdx
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rbx - 1], al
jne 0x140016260
mov esi, 4
add edi, r9d
sub esi, r9d
test esi, esi
jle 0x140016299
mov r8d, esi
mov dl, 0x3d
mov rcx, rbx
call fcn.14024b970
add edi, esi
mov r12, qword [rsp + 0x58]
mov dword [r15], edi
mov rdi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x28
pop r15
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r15
pop rsi
pop rbp
pop rbx
ret

Function at 0x140019aa0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.WININET.dll_InternetReadFile]
xor edx, edx
mov ecx, 0x80004005
test eax, eax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14001eed0
Capabilities:
Connect to http server
Create http request

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x3540], 0
mov rbx, rcx
je 0x14001eeeb
xor eax, eax
add rsp, 0x40
pop rbx
ret
xor r9d, r9d
lea rcx, str.VCSoapClient
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 0x3538], rax
test rax, rax
je 0x14001efd1
cmp dword [rbx + 0x24a0], 0
mov qword [rsp + 0x50], rdi
je 0x14001ef7e
mov r9d, 4
lea r8, [rbx + 0x24a0]
mov rcx, rax
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rbx + 0x3538]
mov r9d, 4
lea edx, [r9 + 2]
lea r8, [rbx + 0x24a0]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rbx + 0x3538]
mov r9d, 4
lea edx, [r9 + 1]
lea r8, [rbx + 0x24a0]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
movzx r8d, word [rbx + 0x2454]
mov rcx, qword [rbx + 0x3538]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x200
lea rdx, [rbx + 0x4a]
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, qword [rsp + 0x50]
mov qword [rbx + 0x3540], rax
test rax, rax
jne 0x14001eee3
mov rcx, rbx
call fcn.14001ee60
mov eax, 0x80004005
add rsp, 0x40
pop rbx
ret