joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800455f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x1800d33b4], 0
jne 0x180045794
lea rcx, [0x1800d3130]
mov edi, 1
mov dword [0x1800d3130], 0x114
mov dword [0x1800d33b4], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r11d, r11d
cmp dword [0x1800d3140], 2
sete r11b
mov dword [reloc.WS2_32.dll_accept], r11d
test r11d, r11d
je 0x180045778
lea rcx, [0x1800d3250]
mov qword [rsp + 0x160], rbx
mov dword [0x1800d3250], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [0x180095900]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProductInfo
mov rcx, rbx
mov qword [0x1800d3128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800d3370]
mov qword [0x1800d33a0], rax
mov rax, qword [0x1800d3128]
test rax, rax
je 0x1800456cc
call rax
jmp 0x1800456d2
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1800d3254]
cmp eax, 6
jae 0x1800456eb
cmp eax, 5
jne 0x180045702
cmp dword [0x1800d3258], 2
jb 0x180045702
mov eax, dword [0x1800d3120]
cmp word [0x1800d3370], 9
cmove eax, edi
mov dword [0x1800d3120], eax
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180045730
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1800d33a8], rax
jmp 0x180045737
mov rbx, qword [0x1800d33a8]
test rbx, rbx
je 0x180045770
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call fcn.180031540
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call rbx
mov ecx, dword [0x1800d313c]
test eax, eax
cmove ecx, dword [rsp + 0x2c]
mov dword [0x1800d313c], ecx
mov rbx, qword [rsp + 0x160]
lea rdx, [0x1800d3138]
lea rcx, [0x1800d3134]
call fcn.1800454b0
call fcn.1800451f0
mov eax, edi
jmp 0x180045799
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x150
pop rdi
ret
Function at 0x180045df0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800d3644], 0
jne 0x180045ed1
lea rcx, [0x1800d33d0]
mov ebx, 1
mov dword [0x1800d33d0], 0x114
mov dword [0x1800d3644], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r11d, r11d
cmp dword [0x1800d33e0], 2
sete r11b
mov dword [reloc.WS2_32.dll_accept], r11d
test r11d, r11d
je 0x180045ec4
lea rcx, [0x1800d34f0]
mov dword [0x1800d34f0], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [0x180095900]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800d3610]
mov qword [0x1800d33c8], rax
test rax, rax
je 0x180045e8e
call rax
jmp 0x180045e94
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1800d34f4]
cmp eax, 6
jae 0x180045ead
cmp eax, 5
jne 0x180045ec4
cmp dword [0x1800d34f8], 2
jb 0x180045ec4
mov ecx, dword [0x1800d33c0]
cmp word [0x1800d3610], 9
cmove ecx, ebx
mov dword [0x1800d33c0], ecx
call fcn.180045bf0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180046010
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1800d3648]
test eax, eax
jne 0x18004603e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.SeDebugPrivilege
mov r8d, 1
mov ecx, eax
call fcn.18002cbf0
mov dword [0x1800d3648], eax
add rsp, 0x28
ret

Function at 0x180046320
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x130], rax
test rdx, rdx
jne 0x18004635b
mov eax, 0xf0000001
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x148
ret
lea rcx, [0x180095900]
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x140], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.comctl32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rdi, rdi
je 0x180046439
test rax, rax
je 0x180046439
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180031540
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.180045f00
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x49
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180081828]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180081800]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800817f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180081810]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.RemoteLoadDll9x_____Can_not_get_function_address
call fcn.180055f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x148
ret
Function at 0x180046dc0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
jne 0x180046dc9
xor eax, eax
jmp 0x180046e11
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x180046dd7
xor eax, eax
jmp 0x180046e11
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x180046dea
xor eax, eax
jmp 0x180046e11
cmp word [rax + 0x14], 0
jne 0x180046df5
xor eax, eax
jmp 0x180046e11
test edx, edx
je 0x180046e08
mov ecx, 0x8664
cmp word [rax + 4], cx
je 0x180046e08
xor eax, eax
jmp 0x180046e11
mov eax, 1
jmp 0x180046e11
repz ret

Function at 0x1800470c0
Capabilities:
Parse pe header

Disassembly:
mov edx, 1
jmp fcn.180046dc0

Function at 0x180047460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180047479
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x180081d70]
cmp r11d, 8
jb 0x180047571
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x1800474a0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18004759f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x180047580
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret
Function at 0x180048700
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
call fcn.180045800
test eax, eax
je 0x18004873c
mov dword [0x1800d4248], 0x32
xor eax, eax
jmp 0x1800487df
xor eax, eax
mov qword [rsp + 0x90], rbx
xor ebx, ebx
lea rcx, [rsp + 0x20]
lea r9d, [rbx + 4]
lea r8d, [rbx + 1]
mov rdx, rsi
mov dword [0x1800d4248], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
call fcn.1800485a0
lea rcx, [rsp + 0x20]
call fcn.180048640
test rax, rax
je 0x1800487b7
lea rcx, [rsp + 0x20]
call fcn.180048640
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, eax
test eax, eax
jne 0x1800487af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x1800487bb
mov eax, dword [rsp + 0x54]
mov dword [rdi], eax
jmp 0x1800487cb
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x1800487c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1800d4248], eax
lea rcx, [rsp + 0x20]
call fcn.1800486a0
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18002f6f0
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x180051660
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x1800d4298], 0
jne 0x1800516d3
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x196
mov word [rsp + 0x20], ax
call fcn.180031540
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800516c9
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x1d8
ret
mov dword [0x1800d4298], 1
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x1d8
ret

Function at 0x180053550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbp, rdx
mov rdi, rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
cmp dword [rdi + 0x140], r12d
je 0x1800535da
lea rdx, [rdi + 0xf0]
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x28]
call fcn.1800237b0
nop
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rdi + 0x128]
call fcn.1800231a0
lea rdx, [rdi + 0xd8]
lea rcx, [rdi + 0x128]
call fcn.180023300
mov dword [rdi + 0x140], r12d
lea rcx, [rsp + 0x28]
call fcn.1800237f0
cmp qword [rbp + 0x30], 0
je 0x1800535f0
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x30]
jmp 0x180053628
mov ebx, r12d
cmp dword [rdi + 0x130], ebx
jle 0x180053636
mov rsi, r12
nop
mov rax, qword [rdi + 0x128]
mov rcx, qword [rsi + rax]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x30]
test eax, eax
jne 0x180053628
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x130]
jl 0x180053600
jmp 0x180053636
mov rcx, rbp
call fcn.180053d10
mov r12d, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp dword [rdi + 0x148], eax
jae 0x180053656
mov dword [rdi + 0x148], eax
mov ecx, dword [rbp + 0x18]
mov dword [rdi + 0x14c], ecx
mov eax, r12d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x1800543d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x1800543e8
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, rbx
mov dword [rbx + 0x44], 0
add rsp, 0x20
pop rbx
jmp fcn.180024f80
Function at 0x180055d20
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1800237b0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x180055daf
test rsi, rsi
je 0x180055daf
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.1800237f0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x180055f30
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x838
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp dword [0x1800d4910], 0
je 0x180055f92
xor eax, eax
mov r8, rcx
lea r9, [r11 + 0x10]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
mov edx, 0x3ff
mov word [r11 - 0x1a], ax
call fcn.1800309b8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x838
ret

Function at 0x1800562c0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180021e00
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.180021e00
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x1800563e8
mov eax, dword [0x1800855a8]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1800855ac]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1800217e0
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180022010
mov r11, qword [0x18007cb48]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.180031540
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.180020640
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180022010
nop
lea rcx, [rsp + 0x20]
call fcn.1800204c0
nop
lea rcx, [rsp + 0x28]
call fcn.1800204c0
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180056324
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180056430
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180021e00
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.180021e00
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1800d49f8]
test ecx, ecx
je 0x1800564e1
cmp eax, ecx
jne 0x1800564e1
mov eax, dword [0x1800d49fc]
test eax, eax
je 0x1800564e1
cmp ebx, eax
jb 0x1800564e1
add eax, 0x493e0
cmp eax, ebx
jb 0x1800564e1
inc dword [0x1800d4a00]
mov r8d, 1
lea rdx, [0x1800d4b08]
lea rcx, [rsp + 0x28]
call fcn.1800237b0
nop
lea rdx, [0x1800d4ad8]
mov rcx, rsi
call fcn.180021f70
lea rdx, [0x1800d4af0]
mov rcx, rdi
call fcn.180021f70
nop
jmp 0x18005655d
mov dword [0x1800d4a00], 0
mov rdx, rdi
mov rcx, rsi
call fcn.1800562c0
mov r8d, 1
lea rdx, [0x1800d4b08]
lea rcx, [rsp + 0x28]
call fcn.1800237b0
nop
mov dword [0x1800d49f8], ebp
mov dword [0x1800d49fc], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800d4ad8]
call fcn.180021e00
mov rdx, rsi
lea rcx, [0x1800d4ad8]
call fcn.180021f70
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800d4af0]
call fcn.180021e00
mov rdx, rdi
lea rcx, [0x1800d4af0]
call fcn.180021f70
nop
lea rcx, [rsp + 0x28]
call fcn.1800237f0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180057f30
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.180031ae0
sub rsp, rax
xor r11d, r11d
mov r9, rcx
test r8d, r8d
jle 0x18005803d
mov qword [rsp], rbx
lea r10, [rdx + 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
movzx ecx, byte [r10 - 1]
cmp r8d, 3
jl 0x180057fbf
movzx eax, byte [r10]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov edx, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
movzx eax, byte [rdx + rbx]
mov byte [r9 + 3], al
jmp 0x180058014
shl ecx, 0x10
cmp r8d, 2
jne 0x180057fd1
movzx eax, byte [r10]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
cmp r8d, 1
jne 0x180058000
lea eax, [r8 + 0x3c]
jmp 0x18005800b
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x180057f60
mov rbx, qword [rsp]
mov byte [r9], 0
mov eax, r11d
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x180058050
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0xb8
call fcn.180031ae0
sub rsp, rax
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x110]
xor esi, esi
mov r13, r9
movsxd rdi, r8d
mov r12, rdx
mov rbp, rcx
mov eax, esi
test r9, r9
je 0x18005809e
lea eax, [rsi + 1]
mov qword [rcx], r9
jmp 0x1800580a1
mov r13, qword [rcx]
mov qword [rsp + 0xb0], rbx
test rdx, rdx
je 0x180058171
mov rcx, r13
call fcn.18005de80
mov ebx, eax
cmp eax, 0x80
jle 0x1800580db
lea r8, str.j____int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x54
call fcn.180058d20
cmp ebx, edi
jge 0x180058113
lea rcx, [rbp + 8]
mov r8, r14
mov rdx, r13
call fcn.180057930
lea rcx, [rbp + 8]
mov r8, rdi
mov rdx, r12
call fcn.180057a10
lea r12, [rbp + 0x68]
lea rdx, [rbp + 0x6c]
lea rcx, [rbp + 8]
mov r8, r12
call fcn.180057a30
jmp 0x18005814e
test edi, edi
js 0x18005811f
cmp edi, 0x80
jle 0x180058137
lea r8, str.len_0__len__int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x5e
call fcn.180058d20
lea rcx, [rbp + 0x6c]
mov r8, rdi
mov rdx, r12
call fcn.180030e40
lea r12, [rbp + 0x68]
mov dword [r12], edi
mov ecx, dword [r12]
cmp ecx, 0x80
je 0x180058179
mov r8d, 0x80
xor edx, edx
sub r8d, ecx
lea rcx, [rcx + rbp + 0x6c]
call fcn.180031540
jmp 0x180058179
test eax, eax
je 0x18005822d
lea rax, [rsp + 0x20]
mov rdi, rbp
mov rdx, rsi
sub rdi, rax
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x20]
add rdx, 2
movzx eax, byte [rdi + rcx + 0x6c]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rdi + rcx + 0x6d]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x180058190
lea rcx, [rbp + 0x28]
mov r8, r14
mov rdx, r13
call fcn.180057930
mov rcx, r13
call fcn.18005de80
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x28]
movsxd r8, eax
call fcn.180057a10
nop dword [rax]
lea rdx, [rsp + rsi + 0x20]
add rsi, 2
movzx eax, byte [rdi + rdx + 0x6c]
xor al, 0x5c
mov byte [rdx], al
movzx eax, byte [rdi + rdx + 0x6d]
xor al, 0x5c
mov byte [rdx + 1], al
cmp rsi, 0x80
jl 0x1800581e0
lea rcx, [rbp + 0x48]
mov r8, r14
mov rdx, r13
call fcn.180057930
mov rcx, r13
call fcn.18005de80
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x48]
movsxd r8, eax
call fcn.180057a10
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.180057bd0
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0xb8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180058d20
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.180031ae0
sub rsp, rax
mov r9, r8
mov r8d, edx
mov rdx, rcx
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
call fcn.180058a50
add rsp, 0x28
jmp fcn.18003823c
Function at 0x18005cf90
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.180031ae0
sub rsp, rax
mov rbx, r8
call fcn.18005c9a0
test eax, eax
js 0x18005d1ce
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x18005d019
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x18005cfd0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x18005d1cc
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x180000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
mov r9d, dword [rdi + rdx*4 + 0x881b0]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x889b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x88db0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
xor r9d, dword [rdi + rcx*4 + 0x885b0]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
mov r8d, dword [rdi + rdx*4 + 0x881b0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x889b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x885b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x88db0]
mov eax, r9d
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
mov r8d, dword [rdi + rdx*4 + 0x881b0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x889b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x885b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x88db0]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x875b0]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
mov r8d, dword [rdi + rdx*4 + 0x889b0]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x885b0]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x875b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x881b0]
movzx ecx, byte [rdi + rax*4 + 0x875b0]
xor r8d, dword [rdi + rcx*4 + 0x88db0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x18005d040
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret