joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400053d0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14000540d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14000556c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000550c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000556c
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140005480
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140001d88
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14000554b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000554b
call fcn.14000454c
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140005532
mov rcx, r14
call fcn.14000454c
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140041e50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140041e60]
mov dword [rax], 1
mov rax, qword [0x140041e70]
mov dword [rax], 1
mov rax, qword [0x140041d90]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140041e40]
mov dword [0x14004700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140041f20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140041f00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140041d70]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000f5d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000f5ef
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush
Function at 0x140021a20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, str.echoBinSafe
lea rdi, [0x14003e9b0]
mov rbx, rcx
mov rsi, rdx
xor edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [0x14003d340]
mov word [rsp + 0x50], dx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
call sym.__emutls_get_address
mov rdx, qword [rax]
mov r14, rax
test rdx, rdx
je 0x140021bc0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov qword [r14], rdx
add eax, 1
mov word [rsp + 0x52], ax
cmp ax, 0x7d0
je 0x140021b40
mov qword [rsp + 0x40], 0xad7
lea rcx, [0x140047040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x140021b4a
mov rbp, qword [dbg.__acrt_iob_func]
xor r15d, r15d
lea r13, [rsp + 0x20]
lea r12, [0x14003d360]
jmp 0x140021ae5
add r15, 1
add rbx, 0x10
cmp rsi, r15
je 0x140021b58
mov ecx, 1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0xaef
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r13
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u9086
mov rcx, r12
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x140021ad8
mov rax, qword [r14]
mov rax, qword [rax]
mov qword [r14], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.callDepthLimitReached__system_u4599
jmp 0x140021a9c
mov rbp, qword [dbg.__acrt_iob_func]
nop dword [rax]
mov qword [rsp + 0x40], 0xaf3
mov ecx, 1
mov qword [rsp + 0x48], rdi
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14003efc9]
mov r9, rax
call sym.fwrite
mov ecx, 1
mov qword [rsp + 0x40], 0xaf4
call rbp
mov rcx, rax
call sym.fflush
lea rcx, [0x140047040]
mov qword [rsp + 0x40], 0xaf8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140021b1e
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x30]
mov qword [r14], rax
jmp 0x140021a9c

Function at 0x140035a90
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140035b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140047484]
mov rbx, rcx
test esi, esi
jle 0x140035c30
mov rax, qword [0x140047488]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140035b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140035bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140035b30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140035c52
mov rax, qword [0x140047488]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140047488]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140035c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140035bce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140035be0
add dword [0x140047484], 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 [0x140047488]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140035bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140035b58
mov rax, qword [0x140047488]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400361e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400474e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400474c0]
test rbx, rbx
je 0x14003623c
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 rsi, rsi
je 0x140036233
test eax, eax
jne 0x140036233
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140036218
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 0x140036450
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140036468
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140036470
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140036480
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400364cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400364c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400364cf
add rax, 0x28
cmp rax, r9
jne 0x1400364b0
xor eax, eax
ret

Function at 0x1400364d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140036560
mov rdx, qword [0x140041d90]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14003654e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14003654e
cmp word [rax + 0x18], 0x20b
jne 0x14003654e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140036560
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140036539
add rbx, 0x28
cmp rbx, rdi
je 0x140036560
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140036530
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140036570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140041d90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140036590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140036598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140036590
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400365ed
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 0x1400365e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140036590
add rax, 0x28
cmp rax, r9
jne 0x1400365d0
xor eax, eax
ret

Function at 0x1400365f0
Capabilities:
Parse pe header

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

Function at 0x140036630
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140041d90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140036650
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140036658
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140036650
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400366a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140036697
test rcx, rcx
je 0x140036650
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140036688
xor eax, eax
ret
Function at 0x1400366b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140041d90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400366cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400366d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400366f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140041d90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140036710
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140036718
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140036710
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140036710
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140036764
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140036770
add rdx, 0x28
cmp rdx, r9
jne 0x140036750
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140036780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140041d90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400367a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400367b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400367a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400367a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400367a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140036805
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140036818
add rdx, 0x28
cmp r10, rdx
jne 0x1400367f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140036827
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140036837
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14003680e
test ecx, ecx
jg 0x140036820
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140036980
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140041d60]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x1400369b8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140036a20
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140036a30
mov esi, dword [0x140047568]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140036a88
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140036ad0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x1400369a7
mov rcx, rbx
call fcn.1400368e0
mov qword [rsi + r12*8 + 8], rax
jmp 0x1400369a7
call fcn.1400368e0
mov qword [rbx + 0x10], rax
jmp 0x1400369a7
mov r10d, dword [rsi]
test r10d, r10d
je 0x140036b61
mov r9d, dword [0x14003d550]
test r9d, r9d
je 0x140036b89
lea rcx, [0x140047580]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140036b6e
mov eax, dword [rsi]
test eax, eax
je 0x1400369c1
lea rcx, [0x140047580]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400369c1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x140036bc4
mov qword [rax], rdi
mov ecx, dword [0x140047568]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400369fb
call r13
jmp 0x1400369fb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x140036bc4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x140036aab
lea rcx, [0x140047580]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140036bbc
lea rdx, [0x140036890]
mov ecx, eax
mov dword [0x140047568], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140036bc4
mov dword [0x14003d550], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140036a4c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400369c1
mov rax, qword [0x140047560]
lea r12, [rax + 1]
mov qword [0x140047560], r12
mov qword [rbx + 0x10], r12
jmp 0x140036a66
lock add dword [0x14003d554], 1
je 0x140036b19
mov r8d, dword [0x14003d550]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14003d550]
test r8d, r8d
jne 0x140036b57
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140036bb0
jmp 0x140036b57
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140036b49
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000b590
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x30
and qword [rax + 8], 0
mov r14, r9
xor ebx, ebx
lea r9, [rax + 8]
mov rcx, 0xffffffff80000002
lea r8d, [rbx + 1]
call fcn.14000c7e8
mov esi, eax
test eax, eax
jns 0x14000b5d6
mov ecx, eax
jmp 0x14000b690
and dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400232d0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14000b619
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x14000b649
test rbx, rbx
jne 0x14000b654
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000b64d
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000b5da
mov esi, 0x8007000e
mov ecx, esi
jmp 0x14000b690
mov esi, 0x8000ffff
jmp 0x14000b649
cmp dword [rsp + 0x58], 0xb
je 0x14000b662
mov esi, 0x8007000d
jmp 0x14000b649
xor ebp, ebp
cmp dword [rsp + 0x60], 8
je 0x14000b67b
mov esi, 0x8007000d
mov ecx, esi
mov ebp, esi
call fcn.140009374
jmp 0x14000b681
mov rax, qword [rbx]
mov qword [r14], rax
mov ecx, ebp
call fcn.140009390
mov esi, ebp
test ebp, ebp
jns 0x14000b695
mov ecx, ebp
call fcn.140009374
mov ecx, esi
call fcn.140009390
test rbx, rbx
je 0x14000b6b5
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp qword [rsp + 0x50], 0
je 0x14000b6c8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000d84c
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r11, r8
mov r10, rdx
xor r8d, r8d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
mov rdi, rcx
mov rbx, rdx
shr rbx, 1
lea rax, [rbx + rbx*2]
sub r10, rax
lea rcx, [rbx*4 + 1]
cmp r10, 1
mov rax, r10
setne r8b
add r8d, 2
neg rax
sbb eax, eax
and eax, r8d
add rcx, rax
cmp rcx, 0x81
ja 0x14000d9c0
xor r9d, r9d
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_W
xor esi, esi
test rbx, rbx
je 0x14000d936
movzx ecx, byte [rdi]
inc esi
movzx edx, byte [rdi + 2]
mov eax, ecx
movzx r8d, byte [rdi + 1]
and cl, 3
shr rax, 2
add rdi, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, r8d
shr rax, 4
and r8b, 0xf
or rcx, rax
shl r8b, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
mov eax, edx
shr rax, 6
and edx, 0x3f
movzx ecx, r8b
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 2], al
mov al, byte [rdx + r14]
mov byte [r9 + r11 + 3], al
add r9, 4
mov eax, esi
cmp rax, rbx
jb 0x14000d8c5
sub r10, 1
je 0x14000d98c
cmp r10, 1
jne 0x14000d9bb
movzx ecx, byte [rdi]
movzx edx, byte [rdi + 1]
mov eax, ecx
shr rax, 2
and cl, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, edx
shr rax, 4
and dl, 0xf
or rcx, rax
shl dl, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
movzx eax, dl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 2], al
mov byte [r9 + r11 + 3], 0x3d
jmp 0x14000d9b7
movzx ecx, byte [rdi]
mov eax, ecx
and cl, 3
shr rax, 2
shl cl, 4
mov al, byte [rax + r14]
mov byte [r9 + r11], al
movzx eax, cl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 1], al
mov word [r9 + r11 + 2], 0x3d3d
add r9, 4
mov byte [r9 + r11], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x14000ee34
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x1d0]
mov r13, rcx
mov qword [rsp + 0x30], rdx
lea rcx, [rsp + 0x40]
mov r14d, 0x104
mov qword [rsp + 0x38], rax
xor esi, esi
mov edx, r14d
and qword [rsp + 0x20], rsi
mov r12, r9
mov r15, r8
xor edi, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000efdc
lea r8, str.kernel32.dll
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002c40
mov ebx, eax
test eax, eax
js 0x14000eff4
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000ef08
mov edx, r14d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000ef4d
lea r8, str._ntdll.dll
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002c40
mov ebx, eax
test eax, eax
js 0x14000eff4
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x14000ef4d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rsi, rax
test rax, rax
je 0x14000ef4d
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000ef57
mov ebx, 0x8007000e
jmp 0x14000eff4
mov ebx, 0x8000ffff
jmp 0x14000eff4
mov r9, rdi
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000efdc
lea r9, [rsp + 0x28]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x140021d30]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x14000efdc
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
movzx eax, word [rcx + 0xa]
mov dword [r13], eax
movzx eax, word [rcx + 8]
mov dword [rdx], eax
movzx r8d, word [rcx + 0xe]
mov rax, qword [rsp + 0x38]
mov dword [rax], r8d
cmp r8d, 0x23f0
jae 0x14000efcf
mov eax, 0xcccccccd
mul r8d
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
jmp 0x14000efd2
xor r8d, r8d
mov dword [r15], r8d
and dword [r12], 0
jmp 0x14000efe1
mov ebx, 0x8000ffff
test rdi, rdi
je 0x14000eff4
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14001c430
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret