joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015adfc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14015ae7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14015ae71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14015ae71
mov rax, qword [rbp - 8]
jmp 0x14015ae8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14015ae44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6980
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7a60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7382
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d741a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d73fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d73f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d73f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d73b8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d741b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7520
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7548
mov eax, 0
jmp 0x2fc4d7596
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7571
mov eax, 0
jmp 0x2fc4d7596
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7591
mov eax, 0
jmp 0x2fc4d7596
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d759c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d761a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7611
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7611
mov rax, qword [rbp - 8]
jmp 0x2fc4d762f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d75e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5527f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc5538d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5531f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc575108]
test eax, eax
je 0x2fc55328a
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc575110]
mov qword [rbp - 8], rax
jmp 0x2fc55326e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc553262
cmp qword [rbp - 0x10], 0
je 0x2fc553262
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc553228
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55328b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc553390
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5533b8
mov eax, 0
jmp 0x2fc553406
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc5533e1
mov eax, 0
jmp 0x2fc553406
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc553401
mov eax, 0
jmp 0x2fc553406
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55340c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55348a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc553481
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc553481
mov rax, qword [rbp - 8]
jmp 0x2fc55349f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc553454
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5335b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc534690
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc533fb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc556108]
test eax, eax
je 0x2fc53404a
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc556110]
mov qword [rbp - 8], rax
jmp 0x2fc53402e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc534022
cmp qword [rbp - 0x10], 0
je 0x2fc534022
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc533fe8
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc53404b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc534150
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc534178
mov eax, 0
jmp 0x2fc5341c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc5341a1
mov eax, 0
jmp 0x2fc5341c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5341c1
mov eax, 0
jmp 0x2fc5341c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5341cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc53424a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc534241
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc534241
mov rax, qword [rbp - 8]
jmp 0x2fc53425f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc534214
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov rdi, rcx
mov ecx, 0x27
call fcn.1400024cc
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
cmp dword [rdi + 0x18], esi
jbe 0x140001076
lea rbx, [rdi + 0x20]
mov r8, qword [rbx]
lea rdx, str._t0x_p_n
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add esi, 1
add rbx, 8
cmp esi, dword [rdi + 0x18]
jb 0x140001042
lea rcx, [rsp + 0x120]
call fcn.14000c50c
call fcn.140005930
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001624
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test rdx, rdx
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x14000164a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + VariantCopy]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140001659
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
lea rcx, [rdi + 0x18]
mov rdx, rsi
mov qword [rdi + 0x10], rbx
call fcn.140001358
lea rcx, [rdi + 0x18]
mov dx, 0x5c
call fcn.14000145c
and dword [0x140026c18], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x1400012e0]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [0x140026c08], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140026c78], 2
mov qword [0x140026c10], rax
je 0x1400016c3
call fcn.14000b9c4
mov rax, qword [0x140026c10]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [0x140026c18]
and qword [0x140026d40], 0
test r8d, r8d
je 0x140001732
cmp r8d, 1
je 0x140001724
cmp r8d, 2
je 0x14000171d
cmp r8d, 3
je 0x140001716
cmp r8d, 0x67
jle 0x140001705
cmp r8d, 0x6a
jle 0x14000179d
mov edx, 0x14
xor ecx, ecx
call fcn.14000c668
jmp 0x14000179d
mov edx, 0x12
jmp 0x140001729
mov edx, 0x13
jmp 0x140001729
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000c668
jmp 0x14000179d
cmp dword [0x140026d3c], 0
jne 0x14000179d
mov rcx, qword [0x140026c10]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x14000175d
test ecx, ecx
jne 0x14000175d
xor eax, eax
jmp 0x1400017a2
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140001774
mov r8d, ecx
mov edx, 0x21
jmp 0x14000170a
movzx ecx, cx
cmp ecx, 0xe
jne 0x140001785
cmp dword [0x140026c7c], 0xffffffff
je 0x14000179d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000c668
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001c50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140001c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001c7e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140001c9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001c97
test al, 0x10
jne 0x140001c97
mov ecx, 0xb7
jmp 0x140001c74
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001ca4
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov byte [rsp + 0x41], InitCommonControls
mov byte [rsp + 0x42], 0xa
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x140001f58
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x70
mov r12, rcx
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, word [0x140026c1c]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
jne 0x140001fc0
mov r9w, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
je 0x140001ff6
test rsi, rsi
je 0x140001fd7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001ff6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140002092
cmp dword [0x140026c20], 0
jne 0x140002090
lea rcx, str.kernel32
mov dword [0x140026c20], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetProcessPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x140026c1c]
and qword [rsp + 0x28], 0
lea rdx, str._04X_c_04X_c
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
mov dword [rsp + 0x20], 0x409
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x140002082
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x140002090
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 4]
call rbx
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000245c
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x140026c1c]
test dx, dx
jne 0x1400024c1
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov word [0x140026c1c], ax
and cx, 0x3ff
cmp cx, 9
je 0x14000248c
movzx eax, ax
jmp 0x1400024c4
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp ax, 0x409
jne 0x1400024ba
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x1400217a8]
mov dx, word [0x140026c1c]
cmp eax, ecx
cmove dx, cx
mov word [0x140026c1c], dx
jmp 0x1400024c1
mov dx, word [0x140026c1c]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x1400024cc
Capabilities:
Get geographical location
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
xor edx, edx
xor r8d, r8d
mov edi, ecx
cmp dword [0x140026060], edx
lea r12, [0x140026060]
je 0x14000251a
mov rax, r12
cmp dword [rax], ecx
je 0x14000251a
add r8, 1
add edx, 1
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140002500
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140002533
lea rax, [0x140020938]
jmp 0x1400026b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.7zSfxString_d
lea rcx, [rsp + 0x30]
mov r8d, edi
mov ebp, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x1400025d9
lea edx, [rsi + 2]
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
ja 0x1400025d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400025d1
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x1400025ca
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400025d1
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x1400025d9
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + r12 + 0x18]
test rax, rax
jne 0x1400026b0
cmp qword [rbx + r12 + 0x10], rax
mov rdi, qword [rbx + r12 + 8]
je 0x14000260d
call fcn.14000245c
cmp eax, dword [0x1400217a8]
jne 0x14000260d
mov rdi, qword [rbx + r12 + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [rax + 3]
mov eax, 2
movsxd rdx, ecx
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov ecx, dword [0x140026004]
cmp ecx, 0xffffffff
mov qword [rbx + r12 + 0x18], rax
jne 0x14000268b
movzx ecx, word [0x140026c1c]
and dword [0x140026004], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140002685
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x140026004], eax
jmp 0x14000268b
mov ecx, dword [0x140026004]
lea eax, [rsi + 2]
lea r9d, [rsi + 1]
mov r8, rdi
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + r12 + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [rbx + r12 + 0x18]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14000277c
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rax - 0x10], ebx
mov qword [rax], rbx
mov byte [rax - 8], bl
mov byte [rax - 7], bl
mov byte [rax - 6], bl
mov byte [rax - 5], bl
mov byte [rax - 4], bl
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x1400027df
xor eax, eax
jmp 0x140002806
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x14000298c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
test rcx, rcx
mov rbx, rcx
jne 0x14000299e
xor eax, eax
jmp 0x1400029f2
test byte [0x140026c7c], 2
mov dword [rsp + 0x20], 0x40
jne 0x1400029ed
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400029ed
cmp qword [rsp + 0x30], rbx
jae 0x1400029ed
mov ecx, 0x2b
call fcn.1400024cc
mov rcx, rax
call fcn.14000c5c0
cmp rax, 1
je 0x1400029e6
or dword [0x140026c7c], 0xffffffff
jmp 0x14000299a
or dword [0x140026c7c], 2
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x1400030d0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and dword [rax - 0x10], 0
and dword [rax - 0xc], 0
mov rsi, rcx
lea rcx, [rax - 0x18]
mov edx, 3
call fcn.140001114
mov edi, dword [rsp + 0x2c]
cmp edi, 1
jg 0x14000311e
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140001114
mov edi, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400031bf
lea ebp, [rax + 1]
cmp ebp, edi
jl 0x140003155
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.140001114
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edi, edi
cmp word [rbx], di
je 0x14000317b
mov rax, rbx
add rax, 2
add edi, 1
cmp word [rax], 0
jne 0x14000316e
movsxd rax, edi
and word [rbx + rax*2], 0
lea rax, [rsp + 0x20]
cmp rax, rsi
je 0x1400031bf
mov rax, qword [rsi]
and dword [rsi + 8], 0
mov edx, edi
and word [rax], 0
mov rcx, rsi
call fcn.140001114
mov rcx, qword [rsi]
mov r11, rbx
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x1400031a8
mov dword [rsi + 8], edi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_