joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054680
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x1400ed040]
xor rax, rsp
mov qword [rbp + 0x540], rax
lea rax, [0x140054070]
mov dword [rsp + 0x20], 0x100e0
xor esi, esi
mov qword [rbp - 0x48], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov dword [rsp + 0x70], 0x1f4
mov bl, 1
call fcn.140059a80
test eax, eax
je 0x1400546f4
xor bl, bl
lea rcx, str.NvTopps:_Clock_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140054160]
mov dword [rbp], 0x100e0
lea rdx, [rbp]
mov qword [rbp + 0x98], rax
mov rcx, rdi
mov qword [rbp + 8], rsi
mov dword [rbp + 0x50], 0x1f4
call fcn.140059e90
test eax, eax
je 0x140054733
xor bl, bl
lea rcx, str.NvTopps:_Voltage_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140054230]
mov dword [rbp + 0xe0], 0x100e0
lea rdx, [rbp + 0xe0]
mov qword [rbp + 0x178], rax
mov rcx, rdi
mov qword [rbp + 0xe8], rsi
mov dword [rbp + 0x130], 0x1f4
call fcn.140059dc0
test eax, eax
je 0x14005477e
xor bl, bl
lea rcx, str.NvTopps:_Utilization_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140054310]
mov dword [rbp + 0x1c0], 0x100e0
lea rdx, [rbp + 0x1c0]
mov qword [rbp + 0x258], rax
mov rcx, rdi
mov qword [rbp + 0x1c8], rsi
mov dword [rbp + 0x210], 0x1f4
call fcn.140059cf0
test eax, eax
je 0x1400547c9
xor bl, bl
lea rcx, str.NvTopps:_Thermal_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x1400545d0]
mov dword [rbp + 0x2a0], 0x100e0
lea rdx, [rbp + 0x2a0]
mov qword [rbp + 0x338], rax
mov rcx, rdi
mov qword [rbp + 0x2a8], rsi
mov dword [rbp + 0x2f0], 0x1f4
call fcn.14005a510
test eax, eax
je 0x140054814
xor bl, bl
lea rcx, str.NvTopps:_Power_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x1400544c0]
mov dword [rbp + 0x380], 0x100e0
lea rdx, [rbp + 0x380]
mov qword [rbp + 0x418], rax
mov rcx, rdi
mov qword [rbp + 0x388], rsi
mov dword [rbp + 0x3d0], 0x1f4
call fcn.140059c20
test eax, eax
je 0x14005485d
lea rcx, str.NvTopps:_Perf_Policy_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x1400543e0]
mov dword [rbp + 0x460], 0x100e0
lea rdx, [rbp + 0x460]
mov qword [rbp + 0x4f8], rax
mov rcx, rdi
mov qword [rbp + 0x468], rsi
mov dword [rbp + 0x4b0], 0x1f4
call fcn.140059b50
test eax, eax
je 0x1400548a6
lea rcx, str.NvTopps:_Fan_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, bl
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14005df90
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005aec0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14005af83
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14005aef4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14005af86
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14005af3f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14005af43
test rax, rax
je 0x14005af83
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x14005af74
cmp rdx, rax
jb 0x14005af60
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b820
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x1400f6fd0]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x14005b869
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14005c470
mov qword [0x1400f6fd0], rax
test rax, rax
je 0x14005b946
cmp qword [0x1400f6fd8], rsi
jne 0x14005b899
lea rdx, [0x1400c62c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f6fd8], rax
test rax, rax
je 0x14005b946
mov rax, qword [0x1400f6fd0]
cmp qword [0x1400f6fe0], rsi
jne 0x14005b8c9
lea rdx, [0x1400c62d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f6fe0], rax
test rax, rax
je 0x14005b946
mov rax, qword [0x1400f6fd0]
cmp qword [0x1400f7110], rsi
jne 0x14005b8f5
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f7110], rax
test rax, rax
je 0x14005b946
mov rax, qword [0x1400f6fd0]
cmp qword [0x1400f6fe8], rsi
jne 0x14005b921
lea rdx, [0x1400c62f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f6fe8], rax
test rax, rax
je 0x14005b946
mov rax, qword [0x1400f6fd0]
cmp qword [0x1400f6a68], rsi
jne 0x14005b94d
lea rdx, [0x1400c61b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f6a68], rax
test rax, rax
jne 0x14005b94d
xor eax, eax
jmp 0x14005b9ed
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x1400f6fd8]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005b9e6
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x1400f6fe0]
test eax, eax
je 0x14005b9dd
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.14005bdb0
cmp eax, 1
je 0x14005ba03
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x1400f6fe0]
test eax, eax
jne 0x14005b9a0
mov rcx, rdi
call qword [0x1400f6a68]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x14005b9e8
Function at 0x14005ccb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14005ced5
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x14005ccd6
test rax, rax
je 0x14005cd14
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14005ced5
cmp r8w, 0x2f
je 0x14005ced5
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14005ccf0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14005cef0
mov rsi, rax
test rax, rax
je 0x14005ce05
mov qword [rsp + 0x50], r14
call fcn.14005d680
mov r14, rax
test rax, rax
je 0x14005cdf2
mov rcx, rsi
call fcn.14005ad20
test eax, eax
je 0x14005cddb
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14005cd87
mov r8, rbx
mov rcx, rsi
call fcn.140067e40
test eax, eax
je 0x14005cdaf
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14005cd80
jmp 0x14005cdbe
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14005c6b0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14005cde9
mov rcx, rsi
call fcn.14005acc0
test eax, eax
je 0x14005cde9
mov rbp, rsi
xor esi, esi
jmp 0x14005cde9
mov rdx, rsi
mov rcx, r14
call fcn.14005c6b0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14005cea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14005ceaa
mov rcx, rbx
call fcn.14005aba0
mov rdi, rax
test rax, rax
je 0x14005ceaa
mov ecx, 0x37e4
call fcn.14005c250
test eax, eax
je 0x14005ce3f
xor ecx, ecx
call fcn.14005d3c0
jmp 0x14005ce44
call fcn.14005d680
mov rbx, rax
test rax, rax
je 0x14005ce98
mov rdx, rdi
mov rcx, rax
call fcn.14005c6b0
mov rbp, rax
test rax, rax
je 0x14005ce8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005ce71
test al, 0x50
je 0x14005ce8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14005ce84
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14005ceaa
xor ecx, ecx
jmp 0x14005ceb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005cebd
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x14005d680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14005d6e2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005d6d7
cmp edi, eax
jb 0x14005d6d7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14006f9a8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14006f83b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f83b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f83b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f83b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f83b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f83b
cmp dword [rcx + 0xf8], 0
je 0x14006f83b
mov ecx, ebx
call fcn.14006f8dc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14006f6cc
cmp dword [rbp + 0x20], 0
je 0x14006f888
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006f890
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006f7d4
Function at 0x14007b0f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14007ae1a
call fcn.14006d428
mov dword [rax], 0x16
call fcn.140068b20
jmp 0x14007af65
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14007af65
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14007af65
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14007ae49
lock or dword [rcx + 0x14], 0x10
jmp 0x14007af65
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14007ae5d
call fcn.14007c704
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14007ae6d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14007ae70
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400786dc
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140085624
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14007af53
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14007af01
mov rcx, rbx
call fcn.1400786dc
cmp eax, 0xffffffff
je 0x14007aeec
mov rcx, rbx
call fcn.1400786dc
cmp eax, 0xfffffffe
je 0x14007aeec
mov rcx, rbx
call fcn.1400786dc
movsxd rdi, eax
lea r14, [0x1400f88f0]
mov rcx, rbx
sar rdi, 6
call fcn.1400786dc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14007aef3
lea rdx, [0x1400ed480]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14007af01
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14007af25
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14007af25
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14007af25
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14007af43
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14007af4e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14007af6a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14007ade4

Function at 0x14008c7e8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14008c7fb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140096b48
lea rdx, [0x1400ea640]
lea rcx, [rsp + 0x20]
call fcn.140066bc8
int3

Function at 0x14009757c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400f90f8]
xor edx, edx
jmp fcn.14008c7e8

Function at 0x140097f9c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400f90f8]
jmp fcn.14008c7e8
Function at 0xe85040
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xe8504d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xe8505d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xe85045
lea eax, [rcx + 1]
jmp 0xe8506b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xe8507e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xe85064
sub eax, 3
jb 0xe8509e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xe850ed
sar eax, 1
movsxd rbp, eax
jb 0xe850d4
jmp 0xe850ac
add ebx, ebx
jne 0xe850aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe850d4
inc ecx
add ebx, ebx
jne 0xe850ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe850d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xe850cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xe850bc
add ecx, 2
jmp 0xe850d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00e85002
jmp 0xe8504d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x474c00
mov dl, 0x8c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xe85139
cmp rsi, rcx
jae 0xe85141
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xe85120
cmp al, 0x8f
ja 0xe85120
cmp byte [rsi - 2], 0xf
je 0xe85126
sub al, 0xe8
cmp al, 1
ja 0xe8510a
cmp rsi, rcx
jae 0xe85141
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xe85110
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xe85141
lodsb al, byte [rsi]
jmp 0xe85120
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa77000]
mov eax, dword [rdi]
or eax, eax
je 0xe8519e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa88c0c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xe8514e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xe85198
mov qword [rbx], rax
add rbx, 8
jmp 0xe8516e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xe851e2
cmp al, 0xef
ja 0xe851ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xe851aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xe851b9
mov eax, dword [rdi]
add rdi, 4
jmp 0xe851b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xe85236
sub rsp, 0xffffffffffffff80
jmp 0x468d20
Function at 0x1400031e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004000
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004000
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003250
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003380
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000329b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003325
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003280
mov rcx, rbx
call fcn.140003ca0
mov rdi, rax
test rax, rax
je 0x1400033a2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003de0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003387
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000331e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003330
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000331e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400031e0
nop dword [rax]
xor esi, esi
jmp 0x1400032a8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400031e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400031e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000396c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003963
test rsi, rsi
je 0x140003963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003948
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003cc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003d1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003d14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003cc0
add rax, 0x28
cmp rax, r9
jne 0x140003d00
xor eax, eax
ret

Function at 0x140003d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006530]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003d3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003d48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003d3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006530]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003dff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003e08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180002ed0
Capabilities:
Encode data using base64

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 r9, qword [r8]
mov rbp, rdx
add r9, 2
mov rsi, r8
movabs r14, 0xaaaaaaaaaaaaaaab
mov r8b, 0x3d
mov rax, r14
mov rdi, rcx
mul r9
xor ebx, ebx
shr rdx, 1
shl rdx, 2
call fcn.18000d0c0
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x180002f28
mov r8, qword [rdi]
mov r10, qword [rsi]
mov rax, r14
mul r10
mov r9, r10
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr rdx, 1
lea rcx, [rdx + rdx*2]
sub r9, rcx
sub r10, r9
je 0x180002fce
lea rcx, [r10 - 1]
mov rax, r14
mul rcx
lea r11, [rbp + 2]
shr rdx, 1
inc rdx
movzx eax, byte [r11 - 1]
movzx ecx, byte [r11 - 2]
lea r11, [r11 + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [r11 - 3]
shl rcx, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + rsi]
mov byte [r8 + rbx], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [r8 + rbx + 1], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [r8 + rbx + 2], al
movzx eax, byte [rcx + rsi]
mov byte [r8 + rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x180002f62
test r9, r9
je 0x18000303a
movzx eax, byte [r10 + rbp]
sub r9, 1
je 0x180002feb
movzx edx, byte [r10 + rbp + 1]
shl eax, 8
or edx, eax
jmp 0x180002fed
mov edx, eax
mov eax, edx
mov ecx, edx
shr eax, 0xa
shr ecx, 2
test r9, r9
cmove eax, ecx
movzx eax, byte [rax + rsi]
mov byte [r8 + rbx], al
je 0x180003024
mov eax, edx
and edx, 0xf
shr eax, 4
and eax, 0x3f
shl edx, 2
movzx eax, byte [rax + rsi]
mov byte [r8 + rbx + 1], al
movzx edx, byte [rdx + rsi]
jmp 0x180003035
and edx, 3
shl edx, 4
movzx eax, byte [rdx + rsi]
mov dl, 0x3d
mov byte [rbx + r8 + 1], al
mov byte [r8 + rbx + 2], dl
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret