joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004af70
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r14b, cl
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [0x1400c2530]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r15w
call fcn.14003e3e8
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x2e0]
lea rdx, [rsp + 0x48]
mov rcx, r8
call qword [str.p_r_n_]
lea edi, [r15 + 0x64]
test eax, eax
js 0x14001d21d
mov dword [rsp + 0x40], r15d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rax, rcx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ebx, eax
test eax, eax
setne sil
xorps xmm0, xmm0
mov edx, dword [rsp + 0x40]
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
call fcn.140013694
nop
test ebx, ebx
je 0x14001d16f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rax, rcx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x60]
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
setne sil
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140077300
test sil, sil
je 0x14001d1da
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x14001d1da
call fcn.14003e3e8
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x140]
mov r8b, r14b
mov dl, byte [rbp - 0x60]
mov rcx, r9
call qword [str.p_r_n_]
mov edi, eax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14001d21d
mov rcx, qword [rsp + 0x70]
sub rcx, r8
sar rcx, 1
lea rdx, [rcx + rcx]
mov rax, r8
cmp rdx, 0x1000
jb 0x14001d214
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d291
mov rcx, r8
call fcn.140074aac
nop
lea rcx, [rsp + 0x78]
call fcn.140005f80
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001d260
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d25b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d28b
call fcn.140074aac
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140074810
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14007b80c
nop
call fcn.14007b80c
nop
int3
mov cl, dl
jmp 0x14001d064
Function at 0x14004b100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x60], edi
lea eax, [rdi + 4]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], eax
jb 0x14001ebcf
mov rcx, qword [rcx]
mov r8, rcx
lea rdx, str.SoftwareMicrosoftOneDriveAccounts
lea rcx, [rsp + 0x40]
call fcn.14000b438
cmp qword [rax + 0x18], 8
jb 0x14001ebed
mov rax, qword [rax]
lea rcx, [rsp + 0x64]
mov r9d, 0x10
mov qword [rsp + 0x30], rcx
lea r8, str.IsGoSov
lea rcx, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.140005f80
test ebx, ebx
jne 0x14001ec41
cmp dword [rsp + 0x60], 1
sete dil
mov al, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140074810
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
mov rcx, rdx
jmp 0x14001eb98

Function at 0x14004b230
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareClasses
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
lea edi, [rbx + 1]
mov r9d, edi
lea r8d, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002004b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140020040
cmp dword [rsp + 0x68], ebx
jne 0x140020040
cmp dword [rsp + 0x6c], edi
jne 0x140020040
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbx
lea r8, str.SymbolicLinkValue
mov qword [rsp + 0x28], rbx
mov r9d, 0x1000ffff
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140020040
cmp dword [rsp + 0x70], 6
movzx ebx, bl
cmove ebx, edi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140074810
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
jmp 0x14001ff60
Function at 0x14004b430
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rsp + 0x38], rax
neg byte [rsp + 0x80]
mov rsi, r9
mov rbx, r8
sbb r9d, r9d
and r9d, 0xfffe00fc
add r9d, 0x20006
cmp qword [rdx + 0x18], 8
jb 0x140022a7f
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140022adb
cmp qword [rbx + 0x10], 0
jne 0x140022aa3
xor ebx, ebx
jmp 0x140022aad
cmp qword [rbx + 0x18], 8
jb 0x140022aad
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140074810
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
push rbx
mov al, byte [rsp + 0x38]
mov r10, r9
mov r9, qword [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov byte [rsp + 0x30], al
mov r8, r10
mov rdx, r11
pop rbx
jmp 0x140022a40

Function at 0x14004b460
Capabilities:
Set registry value

Disassembly:
push rbx
mov al, byte [rsp + 0x38]
mov r10, r9
mov r9, qword [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov byte [rsp + 0x30], al
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.140022b00

Function at 0x14004b530
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov ecx, eax
mov eax, 0x8f
cmp ecx, eax
jg 0x140022ee1
je 0x140022eb7
cmp ecx, 0x54
jg 0x140022ebe
je 0x140022eb7
add ecx, 0xfffffff2
cmp ecx, 0x3f
ja 0x140022f4e
movabs rax, 0xa140a00000200081
bt rax, rcx
jae 0x140022f4e
mov al, 1
add rsp, 0x28
ret
sub ecx, 0x5e
je 0x140022eb7
sub ecx, 4
je 0x140022eb7
sub ecx, 0xa
je 0x140022eb7
sub ecx, 1
je 0x140022eb7
sub ecx, 1
je 0x140022eb7
sub ecx, 8
je 0x140022eb7
sub ecx, 0x16
jmp 0x140022f3f
mov eax, 0xc8
cmp ecx, eax
jg 0x140022f17
je 0x140022eb7
sub ecx, 0x91
je 0x140022eb7
sub ecx, 2
je 0x140022eb7
sub ecx, 0x10
je 0x140022eb7
sub ecx, 0xd
je 0x140022eb7
sub ecx, 1
je 0x140022eb7
sub ecx, 0xe
je 0x140022eb7
sub ecx, 2
je 0x140022eb7
cmp ecx, 5
jmp 0x140022f48
sub ecx, 0xd4
je 0x140022eb7
sub ecx, 5
je 0x140022eb7
sub ecx, 4
je 0x140022eb7
sub ecx, 2
je 0x140022eb7
sub ecx, 0x5e
je 0x140022eb7
sub ecx, 4
je 0x140022eb7
sub ecx, 9
je 0x140022eb7
cmp ecx, 1
je 0x140022eb7
xor al, al
jmp 0x140022eb9
jmp 0x140022e74
Function at 0x14004b5d0
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1400d7168]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, 0xffffffff80000001
mov dword [rsp + 0x20], 0xf003f
mov rax, qword [rcx]
mov rax, qword [rax + 0x108]
call qword [str.p_r_n_]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140016914
mov rcx, qword [0x1400d7168]
lea r8, [0x1400a9640]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x478]
call qword [str.p_r_n_]
mov rcx, qword [0x1400d7168]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov rdx, qword [rcx]
cmovle ebx, eax
mov rax, qword [rdx + 0x100]
mov rdx, qword [rsp + 0x40]
call qword [str.p_r_n_]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140074810
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x1400c2530]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140019034
mov ebx, eax
test eax, eax
js 0x14002221d
mov rcx, qword [0x1400d7168]
mov rax, qword [rcx]
mov r10, qword [rax + 0xd0]
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
lea r9, [0x1400a9640]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, 0xffffffff80000001
mov rax, r10
call qword [str.p_r_n_]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140005f80
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140074810
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
test cl, cl
jne 0x140022170
jmp 0x140016860
mov cl, dl
jmp 0x140023fc0
Function at 0x14004dc14
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400d7280]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14b, r8b
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rsp + 0x30], 1
call fcn.14003e3e8
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x388]
call qword [str.p_r_n_]
mov dil, al
test al, al
jne 0x14004dd46
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140077300
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004dd46
lea rdx, str.FileSyncConfig.exe
lea rcx, [rsp + 0x60]
call fcn.140077830
test rax, rax
je 0x14004dd46
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14004dcef
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005dc0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 9
lea r9, str._allusers
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call 0x140008068
cmp rax, 0xffffffffffffffff
setne dil
lea rcx, [rsp + 0x40]
call fcn.140005f80
mov rdx, rbx
mov cl, dil
call fcn.14001b3e4
mov r8d, 1
lea rdx, [0x1400a91d4]
mov rcx, rbx
call fcn.1400052b0
mov dl, r14b
mov ecx, esi
call fcn.14004df8c
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001443c
mov dword [rsp + 0x30], 3
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400052b0
nop
lea rcx, [rsp + 0x40]
call fcn.140005f80
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140074810
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400758cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140075916
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140075916
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140075916
mov eax, SHFlushSFCache
cmp word [rcx + 0x18], ax
jne 0x140075916
cmp dword [rcx + 0x84], 0xe
jbe 0x140075916
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140075918
xor al, al
add rsp, 0x28
ret

Function at 0x14008e31c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008e10c
Function at 0x14009a168
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14009a1ef
mov rsi, rbx
cmp word [rax], bp
je 0x14009a1ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009a198
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009a194
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140090a20
mov rdi, rax
test rax, rax
je 0x14009a1dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140076c50
mov rbp, rdi
xor ecx, ecx
call fcn.14008f3dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009f7ac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009f670
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f670
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009f8fc
cmp rax, 0xffffffffffffffff
je 0x14009f8fc
xor edi, edi
test rbp, rbp
jle 0x14009f8a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400909a8
mov rbx, rax
test rax, rax
jne 0x14009f834
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009f89d
mov edx, 0x8000
mov ecx, r14d
call fcn.14008f208
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009e184
cmp eax, 0xffffffff
je 0x14009f87d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009f844
mov edx, r15d
mov ecx, r14d
call fcn.14008f208
jmp 0x14009f89d
cmp byte [rsi + 0x38], dil
je 0x14009f894
cmp dword [rsi + 0x34], 5
jne 0x14009f894
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009f89d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008f3dc
jmp 0x14009f910
jns 0x14009f910
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f670
cmp rax, 0xffffffffffffffff
jne 0x14009f8c8
cmp byte [rsi + 0x30], dil
je 0x14009f910
mov edi, dword [rsi + 0x2c]
jmp 0x14009f910
mov ecx, r14d
call fcn.14009ac14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009f910
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14009f910
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009f909
mov eax, dword [rsi + 0x2c]
jmp 0x14009f90e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f670
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14009f940
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400ddb10]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14009f99e
cmp word [rdx], r12w
jne 0x14009f99e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14009f9a4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14009faff
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009fada
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14009f9dd
mov rcx, r9
jmp 0x14009fa00
cmp r9, rdx
jae 0x14009fa17
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14009f9c1
jmp 0x14009faff
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009fad4
cmp dword [rsp + 0x80], edi
je 0x14009fad4
mov rdx, r14
lea r11, [0x1400ddb10]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14009faad
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14009fa80
mov word [rbx], r12w
jmp 0x14009fafb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14009fa89
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009fafb
cmp word [rsp + 0x70], r12w
jne 0x14009faba
cmp rbx, rsi
je 0x14009fa7a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14009f670
cmp word [rsp + 0x70], r12w
je 0x14009faff
mov word [rbx], r13w
jmp 0x14009fafb
lea r11, [0x1400ddb10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14009faf7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14009faff
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a0b20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a0b48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a0b48
xor eax, eax
mov ecx, SHFlushSFCache
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x410c60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x410deb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x410cc5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x410cd4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x410cf3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x410d03
cmp rbx, 0x1000
jae 0x410ccb
jmp 0x410d6d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x410d15
xor edx, edx
jmp 0x410d64
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x410cf9
jmp 0x410ce8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0047e58d]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0047e78b]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0047fbbc]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x410e20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411046
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x410e93
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x410ea2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x410ec5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x410ed5
cmp rbx, 0x1000
jae 0x410e99
nop
jmp 0x410f58
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x410eed
xor esi, esi
jmp 0x410f4a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x410ecb
jmp 0x410eb6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00536df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x410fe0
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x0047e7a4]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x0047e78b]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0047ce1f]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x410f80
call sym.runtime.printlock
lea rax, [0x0047e7a4]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0047e78b]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0047f6a1]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS