joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x40], rdx
mov dword [rbp + 0x48], r8d
mov qword [rbp + 0x80], rcx
mov rcx, qword [rbp + 0x80]
call fcn.0040a640
nop
xor eax, eax
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x80]
call fcn.00413030
test al, al
je 0x42020c
mov rcx, qword [rbp + 0x80]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rbx, rax
jmp 0x42024c
mov rcx, qword [rbp + 0x80]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x420280
mov rcx, rbx
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x48]
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x420278
mov al, 1
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x80]
call fcn.0040a4b0
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x420aa0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x180
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
xor r13, r13
mov rcx, rbx
mov rdx, rsi
lea r8, [rbp + 0x140]
mov r9d, 0x40
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
cmp word [rbp + 0x140], 0x5a4d
jne 0x420b2f
mov rcx, rbx
mov edx, esi
add edx, dword [rbp + 0x17c]
mov edx, edx
lea r8, [rbp + 0x38]
mov r9d, 0x108
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
cmp dword [rbp + 0x38], 0x4550
jne 0x420b2f
mov qword [rdi], rsi
mov eax, dword [rbp + 0x88]
mov dword [rdi + 8], eax
lea rax, [rbp + 0x60]
mov qword [rdi + 0x10], rax
mov r13b, 1
mov eax, r13d
lea rsp, [rbp + 0x180]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x420b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
nop
mov rcx, qword [0x004311b0]
lea rdx, [0x00420d90]
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov rcx, qword [0x004311b0]
mov rdx, rax
call sub.kernel32.dll_LoadResource
mov rbx, rax
test rbx, rbx
je 0x420d52
mov rcx, rbx
call sub.kernel32.dll_LockResource
mov rsi, rax
mov rcx, rsi
lea rdx, [rbp + 0x7b]
mov r8d, 5
call fcn.00405120
add rsi, 0xa
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbp + 0x7b]
call fcn.0040b6d0
mov rcx, rsi
mov rdx, qword [rbp + 0x70]
movzx r8, byte [rbp + 0x7b]
call fcn.00405120
lea rcx, [rbp + 0x60]
xor edx, edx
call fcn.004053d0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.00412f50
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x70]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x68]
call fcn.00413030
test al, al
jne 0x420c9d
lea rcx, [rbp + 0x58]
mov edx, 6
lea r8, [0x00420da4]
mov r9, qword [rbp + 0x70]
lea rax, [0x00420dbc]
mov qword [rsp + 0x20], rax
lea rax, [0x00420dcc]
mov qword [rsp + 0x28], rax
lea rax, [0x00420e0c]
mov qword [rsp + 0x30], rax
lea rax, [0x00420e20]
mov qword [rsp + 0x38], rax
call fcn.0040b9b0
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
xor ecx, ecx
mov rdx, rax
lea r8, [0x00420e7e]
mov r9d, 0x30
call sub.user32.dll_MessageBoxW
xor ecx, ecx
call sub.kernel32.dll_ExitProcess
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.004053d0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
call fcn.00412f50
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x70]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x7c]
call fcn.0041dcd0
test al, al
jne 0x420d4a
cmp dword [rbp + 0x7c], 0
je 0x420d4a
lea rcx, [rbp + 0x40]
mov edx, 6
lea r8, [0x00420dbc]
mov r9, qword [rbp + 0x70]
lea rax, [0x00420dbc]
mov qword [rsp + 0x20], rax
lea rax, [0x00420e98]
mov qword [rsp + 0x28], rax
lea rax, [0x00420e0c]
mov qword [rsp + 0x30], rax
lea rax, [0x00420ec0]
mov qword [rsp + 0x38], rax
call fcn.0040b9b0
mov rcx, qword [rbp + 0x40]
call fcn.0040b4d0
xor ecx, ecx
mov rdx, rax
lea r8, [0x00420e7e]
mov r9d, 0x30
call sub.user32.dll_MessageBoxW
xor ecx, ecx
call sub.kernel32.dll_ExitProcess
mov rcx, rbx
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x40]
mov edx, 7
call fcn.0040a590
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret
Function at 0x420f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
lea rcx, [rbp + 0x2d]
mov rdx, qword [0x004150c0]
call fcn.0040bfc0
nop
mov rcx, qword [0x004311b0]
lea rdx, [0x00421070]
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov rcx, qword [0x004311b0]
mov rdx, rax
call sub.kernel32.dll_LoadResource
mov rbx, rax
test rbx, rbx
je 0x421034
mov rcx, rbx
call sub.kernel32.dll_LockResource
mov rsi, rax
mov rcx, rsi
lea rdx, [rbp + 0x2d]
mov r8d, 0xb
call fcn.00405120
add rsi, 0xb
lea rcx, [rbp + 0x38]
mov rdx, rsi
call fcn.0040b540
mov rax, qword [rbp + 0x38]
test rax, rax
call fcn.00414390
mov word [rbp + 0x2b], ax
movzx rax, byte [rbp + 0x2e]
sub al, 1
cmp al, 0xff
je 0x420fc8
test al, al
je 0x420fd4
sub al, 1
test al, al
jne 0x420fec
jmp 0x420fe0
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
je 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
jae 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
ja 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2f]
mov ecx, eax
cmp cl, 2
jb 0x421001
sub cl, 2
test cl, cl
jne 0x421006
jmp 0x421035
cmp al, byte [rbp + 0x2c]
je 0x421035
xor ecx, ecx
mov rdx, qword [rbp + 0x38]
lea r8, [0x00421078]
mov r9d, dword [rbp + 0x30]
add r9d, dword [rbp + 0x34]
call sub.user32.dll_MessageBoxA
cmp eax, 6
je 0x421035
xor ecx, ecx
call sub.kernel32.dll_ExitProcess
nop
lea rcx, [rbp + 0x2d]
mov rdx, qword [0x004150c0]
call fcn.0040c150
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x421080
Capabilities:
Read file via mapping

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], rdx
mov ebx, r8d
mov esi, r9d
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rdi, rax
cmp rdi, 0xffffffffffffffff
jne 0x4211b2
mov rcx, rdi
xor edx, edx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov r13, rax
test r13, r13
je 0x4211aa
mov rcx, r13
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov r14, rax
test r14, r14
je 0x4211a2
sub sil, 1
cmp sil, 0xff
je 0x421140
test sil, sil
jne 0x42119a
jmp 0x42116e
xor ecx, ecx
mov eax, ecx
cmp eax, ebx
jg 0x42116b
sub ebx, ecx
add ebx, 1
mov rsi, qword [rsp + 0x48]
mov rcx, r14
mov rdx, qword [rsi]
call fcn.00413be0
mov qword [rsi], rax
add rsi, 8
sub ebx, 1
test ebx, ebx
jne 0x421152
nop
jmp 0x42119a
xor ecx, ecx
mov eax, ecx
cmp eax, ebx
jg 0x421199
sub ebx, ecx
add ebx, 1
mov rsi, qword [rsp + 0x48]
mov rcx, r14
mov rdx, qword [rsi]
call fcn.00413ef0
mov qword [rsi], rax
add rsi, 8
sub ebx, 1
test ebx, ebx
jne 0x421180
nop
mov rcx, r14
call sub.kernel32.dll_UnmapViewOfFile
mov rcx, r13
call sub.kernel32.dll_CloseHandle
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x1400011f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov rax, qword [rsp + 0x50]
mov ecx, 0x100
div rcx
mov rax, rdx
lea rcx, [0x14003e270]
movzx eax, byte [rcx + rax]
movzx eax, al
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
imul rax, rax, 0x3e8
cqo
idiv qword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x14000af50
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000af7e
xor eax, eax
jmp 0x14000b064
cmp qword [rcx + 0x68], 0
je 0x14000af8f
call fcn.14000b080
jmp 0x14000b064
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000afa6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000afa8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000afda
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002b310
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000b05e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000b011
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000b03a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140015978
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000b05e
cmp rsi, rbx
ja 0x14000b018
test rsi, rsi
je 0x14000b05e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140015978
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000c640
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140017d83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017d83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017d83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017d83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017d83
cmp dword [rcx + 0x84], 0xe
jbe 0x140017d83
cmp dword [rcx + 0xf8], 0
je 0x140017d83
mov ecx, ebx
call fcn.140017e34
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140017c10
nop
cmp dword [rbp + 0x20], 0
je 0x140017dd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017ddc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140017d14

Function at 0x140017f18
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017d14
Function at 0x1400205b0
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.14000be00
sub rsp, rax
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001cf8c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400205ff
mov rax, rbp
jmp 0x140020707
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 + 0x3f450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400216d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140020703
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 0x140020703
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400216d0
test rax, rax
js 0x140020703
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140020703
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400206f5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400206f5
cmp byte [rcx], 0xd
jne 0x1400206db
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400206ea
cmp byte [rcx + 1], 0xa
jne 0x1400206ea
inc rcx
jmp 0x1400206ea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400206bd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140020707
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b870
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 0x140020928
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002093e
mov al, 1
jmp 0x14002099e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002094f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002099c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023ef0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002099c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002099c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002099c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002099e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020a70
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, [0x14003f450]
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 0x140020ac7
cmp word [rdx], r13w
jne 0x140020ac7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020acc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140020bf1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140020c12
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140020b05
mov rdx, r9
mov word [rbx], cx
jmp 0x140020b2c
cmp r9, r8
jae 0x140020b3c
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 0x140020ae6
jmp 0x140020bf1
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 0x140020be6
cmp dword [rsp + 0x80], esi
je 0x140020be6
lea r8, [0x14003f450]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020bbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140020b8e
mov word [rbx], r13w
jmp 0x140020bee
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 0x140020b9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140020bee
cmp word [rsp + 0x70], r13w
jne 0x140020bcb
cmp rbx, r14
je 0x140020b88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400216d8
cmp word [rsp + 0x70], r13w
je 0x140020bf1
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, [0x14003f450]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140020beb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140020bf1
Function at 0x140023688
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 0x1400236b8
xor eax, eax
jmp 0x14002377b
mov rbp, rbx
cmp word [rax], si
je 0x1400236dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400236c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400236c0
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.140021c88
movsxd r14, eax
test eax, eax
jne 0x14002371b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400236b1
mov rcx, r14
call fcn.14001bd30
mov rdi, rax
test rax, rax
jne 0x140023734
xor ecx, ecx
call fcn.14001bcf4
jmp 0x140023710
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.140021c88
test eax, eax
jne 0x140023765
mov rcx, rdi
call fcn.14001bcf4
jmp 0x14002376f
xor ecx, ecx
call fcn.14001bcf4
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 0x140026444
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.14001ab54
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 0x1400264e5
cmp ebx, dword [rsp + 0x30]
je 0x1400264de
test esi, esi
je 0x1400264de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400264b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400264c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400264a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400264ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400264e7
mov eax, 1
jmp 0x1400264e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400290b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001656c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002913e
cmp byte [rbp - 0x21], r15b
je 0x140029139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029174
call fcn.14001d65c
test eax, eax
jne 0x140029160
cmp byte [rbp - 0x21], r15b
je 0x140029158
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029174
cmp byte [rbp - 0x21], r15b
je 0x140029171
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016bbc
test eax, eax
jne 0x140029214
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001656c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400291b3
cmp byte [rbp - 0x21], r15b
je 0x1400291e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400291e8
call fcn.14001d65c
test eax, eax
jne 0x1400291d4
cmp byte [rbp - 0x21], r15b
je 0x1400291cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400291e8
cmp byte [rbp - 0x21], r15b
je 0x1400291e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016bbc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140029214
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140029217
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140029225
mov rcx, rdi
call fcn.14001bcf4
cmp byte [rbp + 0x3f], r15b
je 0x140029234
mov rcx, qword [rbp + 0x27]
call fcn.14001bcf4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002aec0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aee8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aee8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret