joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eb80
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0x38
cmp dword [0x14005ebd0], 1
jne 0x14000ebc7
lea r8, [rsp + 0x20]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [0x140064290]
test eax, eax
jne 0x14000ebc7
lea rdx, [0x14005f554]
mov rcx, qword [rsp + 0x20]
call qword [0x1400642e0]
mov rcx, qword [rsp + 0x20]
call qword [0x140064298]
cmp dword [0x14005ebcc], 1
jne 0x14000ec0a
lea r8, [rsp + 0x20]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [0x140064290]
test eax, eax
jne 0x14000ec0a
lea rdx, [0x14005f5a2]
mov rcx, qword [rsp + 0x20]
call qword [0x1400642e0]
mov rcx, qword [rsp + 0x20]
call qword [0x140064298]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140017490
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rax, [0x1400647b8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140017550]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400647a8], rax
cmp qword [0x1400647a8], 0
je 0x1400174d4
mov eax, 1
jmp 0x1400174d6
xor eax, eax
add rsp, 0x38
ret
Function at 0x14001d480
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x3f0
lea rcx, str.UNLOAD.TXT
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001d510
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [0x140063d10]
mov qword [0x140063ae0], rax
cmp qword [0x140063ae0], 0
je 0x14001d510
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400092c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140063ae8], rax
cmp qword [0x140063ae8], 0
je 0x14001d4f8
jmp 0x14001d510
mov rcx, qword [0x140063ae0]
call qword [0x140063d08]
mov qword [0x140063ae0], 0
cmp dword [0x14005ebe0], 1
jne 0x14001d5fc
call fcn.140019030
cmp eax, 1
jne 0x14001d5fc
mov qword [rsp + 0x1d8], 0
mov dword [rsp + 0x1d0], 0
lea rdx, [rsp + 0x1d0]
lea rcx, [0x14005cf20]
call fcn.14000ed20
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0
je 0x14001d5fc
xor eax, eax
mov word [rsp + 0x1e0], ax
lea rax, [rsp + 0x1e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.froggo.exe
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1d8]
lea r8, str.__s_s_
mov edx, 0x104
lea rcx, [rsp + 0x1e0]
call fcn.14002356c
mov eax, dword [0x14005ec84]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14005ec80]
mov dword [rsp + 0x20], eax
lea r9, [0x14005ec32]
lea r8, [0x14005ebe4]
lea rdx, str.6F9F2972_BE18_46AE_A51A_6DC1FDB63150
lea rcx, [rsp + 0x1e0]
call fcn.140006af0
mov rcx, qword [rsp + 0x1d8]
call qword [0x140063d08]
cmp dword [0x14005ebd4], 0
jne 0x14001d60a
call fcn.14000ea10
cmp dword [0x14005ebd8], 1
jne 0x14001d618
call fcn.14000e690
cmp dword [0x14005ebd4], 1
jne 0x14001d626
call fcn.140017490
mov ecx, 0x15
call fcn.140004a80
cmp dword [0x14005d510], 1
jne 0x14001d6a2
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140063af8], rax
cmp qword [0x140063af8], 0
je 0x14001d6a2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000d410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140063b00], rax
cmp qword [0x140063b00], 0
je 0x14001d695
jmp 0x14001d6a2
mov rcx, qword [0x140063af8]
call qword [0x140063ce0]
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [0x1400645c8]
test eax, eax
jne 0x14001d72d
cmp dword [0x14005cddc], 1
jne 0x14001d6ea
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140018320]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400648b0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140020f90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140064da0], rax
cmp qword [0x140064da0], 0
je 0x14001d727
mov eax, 1
jmp 0x14001d732
call qword [0x1400645d0]
mov eax, 1
add rsp, 0x3f0
pop rdi
ret
Function at 0x14001e3d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], 0
jmp 0x14001e409
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x64
jge 0x14001e590
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x20
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x10]
call qword [0x140063d30]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14001e448
cmp dword [rsp + 0x38], 0x102
je 0x14001e58b
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x14001e489
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [0x140063ce0]
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14001e4b1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [0x140063ce0]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [0x140063d10]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14001e564
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001e559
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rcx, qword [rsp + 0x50]
call qword [0x140063eb8]
cmp eax, 0xffffffff
je 0x14001e54e
mov eax, 1
jmp 0x14001e592
mov rcx, qword [rsp + 0x50]
call qword [0x140063ce0]
mov rcx, qword [rsp + 0x48]
call qword [0x140063ce0]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
jmp 0x14001e3ff
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400296f4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140029564

Function at 0x14002bebb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140062470]
jne 0x14002738a
rol rcx, 0x10
test cx, 0xffff
jne 0x140027386
repz ret
ror rcx, 0x10
jmp 0x14002be14
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400658a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140065998]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002be99
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400658a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002bebb
mov rax, qword [rsp + 0x88]
mov qword [0x140065998], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140065938], rax
mov rax, qword [0x140065998]
mov qword [0x140065810], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140065920], rax
mov dword [0x140065800], 0xc0000409
mov dword [0x140065804], 1
mov rax, qword [0x140062470]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140062478]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140065898], eax
mov ecx, 1
call fcn.14002b908
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140039860]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140065898], 0
jne 0x14002bf42
mov ecx, 1
call fcn.14002b908
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14002d30c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140062470]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400259ac
xor ebx, ebx
cmp qword [0x140065dc8], rbx
mov rdi, rax
jne 0x14002d41f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002d4f6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d4f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140065dc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140065dd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140065dd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140065de8], rax
test rax, rax
je 0x14002d416
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140065de0], rax
jmp 0x14002d426
mov rax, qword [0x140065de0]
jmp 0x14002d42d
mov rax, qword [0x140065de0]
mov r11, qword [0x140065de8]
cmp rax, rdi
je 0x14002d494
cmp r11, rdi
je 0x14002d494
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140065de8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002d494
test rax, rax
je 0x14002d494
call rsi
test rax, rax
je 0x14002d48e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002d48e
test byte [rsp + 0x40], 1
jne 0x14002d494
bts ebp, 0x15
jmp 0x14002d4d4
mov rcx, qword [0x140065dd0]
cmp rcx, rdi
je 0x14002d4d4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4d4
call rax
mov rbx, rax
test rax, rax
je 0x14002d4d4
mov rcx, qword [0x140065dd8]
cmp rcx, rdi
je 0x14002d4d4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4d4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140065dc8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4f6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14002d4f8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140027370
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002b70
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x10
mov r11d, dword [rdx + 0xb0]
mov r15, r8
mov rsi, rdx
mov r12, rcx
test r11d, r11d
je 0x140002cea
movzx r9d, word [rdx + 0x14]
xor r10d, r10d
movzx r8d, word [rdx + 6]
add r9, 0x18
add r9, rdx
test r8d, r8d
je 0x140002cea
mov edx, dword [r9 + 0xc]
cmp r11d, edx
jb 0x140002bc4
mov ecx, dword [r9 + 8]
add ecx, edx
cmp r11d, ecx
jb 0x140002bda
inc r10d
add r9, 0x28
cmp r10d, r8d
jl 0x140002bb0
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, edx
mov qword [rsp], r14
mov r14d, dword [r9 + 0x14]
mov eax, r11d
add rax, r12
add r14, rax
je 0x140002ce6
mov qword [rsp + 0x38], rbp
xor ebp, ebp
cmp dword [rsi + 0xb4], ebp
jbe 0x140002ce1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 8], r13
mov r13d, 0xf000
nop dword [rax]
mov edi, dword [r14 + 4]
lea r10, [r14 + 8]
movzx eax, word [rsi + 0x14]
sub rdi, 8
movzx ebx, word [rsi + 6]
add rax, 0x18
mov r11d, dword [r14]
add rax, rsi
shr rdi, 1
xor r9d, r9d
test ebx, ebx
je 0x140002c74
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp r11d, r8d
jb 0x140002c68
mov edx, dword [rax + 8]
add edx, r8d
cmp r11d, edx
jb 0x140002cf4
inc r9d
add rax, 0x28
cmp r9d, ebx
jl 0x140002c50
xor r8d, r8d
xor ecx, ecx
test rdi, rdi
je 0x140002cbf
mov r9d, 0xa000
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r10]
movzx edx, ax
and ax, r13w
cmp ax, r9w
jne 0x140002cb2
and edx, 0xfff
mov rax, r15
sub rax, qword [rsi + 0x30]
add qword [rdx + r8], rax
inc ecx
add r10, 2
mov eax, ecx
cmp rax, rdi
jb 0x140002c90
add ebp, dword [r14 + 4]
mov r14, r10
cmp ebp, dword [rsi + 0xb4]
jb 0x140002c20
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp]
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, r8d
mov r8d, dword [rax + 0x14]
lea rax, [r12 + r11]
add r8, rax
jmp 0x140002c77
Function at 0x140003de0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003e02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140003e7c
mov rdi, r14
mov rcx, rbx
call fcn.140005530
test rax, rax
jle 0x140003e54
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140009110
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003e6c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003e74
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003e16
sub r14, rdi
jmp 0x140003f5f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e93
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e95
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003ec7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140009110
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140003f5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f02
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140003f3d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400113d0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140003f5c
cmp rbp, rax
ja 0x140003f10
test rbp, rbp
je 0x140003f5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400113d0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140007ff0
Capabilities:
Parse pe header

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

Function at 0x140016564
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016360
Function at 0x14001ba5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ba72
mov al, 1
jmp 0x14001bad2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ba83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bad0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400226f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bad0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bad0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bad0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bad2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400078d0
sub rsp, rax
mov rax, qword [0x140040060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b7d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001d25f
mov rax, rbp
jmp 0x14001d367
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x422d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e15c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x422d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001d363
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d363
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e15c
test rax, rax
js 0x14001d363
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001d363
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001d355
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001d355
cmp byte [rcx], 0xd
jne 0x14001d33b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001d34a
cmp byte [rcx + 1], 0xa
jne 0x14001d34a
inc rcx
jmp 0x14001d34a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x40440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001d31d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001d367
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007260
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d4fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400422d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001d553
cmp word [rdx], r13w
jne 0x14001d553
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d558
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d67d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d69e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d591
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d5b8
cmp r9, r8
jae 0x14001d5c8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001d572
jmp 0x14001d67d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d672
cmp dword [rsp + 0x80], esi
je 0x14001d672
lea r8, [0x1400422d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d64a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d61a
mov word [rbx], r13w
jmp 0x14001d67a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001d627
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d67a
cmp word [rsp + 0x70], r13w
jne 0x14001d657
cmp rbx, r14
je 0x14001d614
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e164
cmp word [rsp + 0x70], r13w
je 0x14001d67d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400422d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d677
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d67d
Function at 0x140021c88
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140021cb8
xor eax, eax
jmp 0x140021d7b
mov rbp, rbx
cmp word [rax], si
je 0x140021cdd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021cc4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021cc0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140020444
movsxd r14, eax
test eax, eax
jne 0x140021d1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021cb1
mov rcx, r14
call fcn.14001a64c
mov rdi, rax
test rax, rax
jne 0x140021d34
xor ecx, ecx
call fcn.140018fb4
jmp 0x140021d10
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140020444
test eax, eax
jne 0x140021d65
mov rcx, rdi
call fcn.140018fb4
jmp 0x140021d6f
xor ecx, ecx
call fcn.140018fb4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140024c44
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001a214
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140024ce5
cmp ebx, dword [rsp + 0x30]
je 0x140024cde
test esi, esi
je 0x140024cde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024cb9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024cc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024ca3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024cca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024ce7
mov eax, 1
jmp 0x140024ce7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret