joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff4b413424
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov qword [rcx], rdx
mov qword [rsp + 0x28], rcx
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov rbx, rcx
mov qword [rcx + 0x18], rbp
mov byte [rcx + 0x3f8], bpl
mov esi, r9d
mov edi, r8d
lea rcx, [0x7ff4b4133b4]
lea rdx, [rbp - 3]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call sub.SHLWAPI.dll_SHCreateWorkerWindowW
mov qword [rbx + 0x20], rax
cmp rax, rbp
je 0x7ff4b41354d
lea rcx, [rbx + 0x28]
xor edx, edx
mov r8d, 0x3d0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHQueryUserNotificationState]
cmp eax, ebp
jl 0x7ff4b4134cd
cmp dword [rsp + 0x70], 6
jne 0x7ff4b4134cd
mov rcx, qword [rbx + 0x20]
lea edx, [rbp + 1]
xor r9d, r9d
mov r8d, 0x3b8260
call qword [sym.imp.USER32.dll_SetTimer]
cmp rax, rbp
je 0x7ff4b4134cd
cmp edi, 3
mov byte [rbx + 0x3f8], 1
cmovne edi, ebp
mov edx, edi
mov rcx, rbx
call fcn.7ff4b413f44
cmp eax, ebp
jl 0x7ff4b41353f
call fcn.7ff4b414900
cmp eax, ebp
jne 0x7ff4b41354d
cmp esi, ebp
je 0x7ff4b41354d
lea rax, [rsp + 0x78]
lea r8, [0x7ff4b40e9d8]
lea rdx, [0x7ff4b40e590]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov r9d, 0x20000010
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov edx, 2
cmp dword [rsp + 0x40], edx
jae 0x7ff4b41354d
mov rcx, rbx
call fcn.7ff4b414664
jmp 0x7ff4b41354d
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x20], rbp
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x7ff4b4149c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x60]
lea rdx, [0x7ff4b40e590]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, ebx
jne 0x7ff4b414a72
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea edi, [rbx + 4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x7ff4b40e9d8]
mov qword [rsp + 0x28], rax
mov r9d, 0x20000010
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], edi
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov rcx, qword [rsp + 0x60]
inc dword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x10]
lea r8, [0x7ff4b40e9d8]
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.SHLWAPI.dll_Ordinal_631]
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x7ff4b414a81
movzx eax, di
or eax, 0x80070000
cmp edi, ebx
cmovle eax, edi
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff4b4153d0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, r9
mov r12d, r8d
mov r13, rdx
mov r14, qword [0x7ff4b426e20]
mov rbx, qword [0x7ff4b426eb8]
and qword [rax - 0x28], 0
xor edi, edi
mov eax, dword [0x7ff4b426e3c]
test eax, eax
je 0x7ff4b415424
lea rcx, [0x7ff4b40e798]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7ff4b426e3c]
test eax, eax
jne 0x7ff4b415431
call fcn.7ff4b4120bc
test eax, eax
je 0x7ff4b41544d
lea rdx, [rsp + 0x20]
mov rcx, qword [0x7ff4b426118]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x7ff4b415477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov ecx, 0x54f
test eax, eax
cmove r11d, ecx
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x7ff4b4154d6
test rbx, rbx
jne 0x7ff4b4154b7
lea rcx, [0x7ff4b40e9f8]
call fcn.7ff4b412008
mov rbx, rax
test rax, rax
jne 0x7ff4b4154b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x54f
test eax, eax
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x7ff4b4154c7
mov qword [0x7ff4b426eb8], rax
mov r9, rsi
mov r8d, r12d
mov rdx, r13
mov rcx, r14
call rbx
mov ebx, eax
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x7ff4b4177a4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
push r12
sub rsp, 0x70
mov rsi, qword [0x7ff4b426e20]
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor edi, edi
mov eax, dword [0x7ff4b426e3c]
test eax, eax
je 0x7ff4b4177e5
lea rcx, [0x7ff4b40e798]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7ff4b426e3c]
test eax, eax
jne 0x7ff4b4177f2
call fcn.7ff4b4120bc
test eax, eax
je 0x7ff4b41780e
lea rdx, [rsp + 0x60]
mov rcx, qword [0x7ff4b426118]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x7ff4b417819
xor eax, eax
jmp 0x7ff4b4178a2
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rsi
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x190
mov dword [rsp + 0x30], 0x12c
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, 0x84800000
xor r8d, r8d
lea rdx, [0x7ff4b40ecf8]
mov ecx, 0x8000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r12, rax
mov qword [rsp + 0x68], rax
xor edi, edi
test rax, rax
sete dil
test edi, edi
je 0x7ff4b417884
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x7ff4b417886
xor esi, esi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x7ff4b41789f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
Function at 0x7ff4b4178bc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rsi, rcx
xor ebx, ebx
mov word [rax - 0x18], bx
mov qword [rax + 0x10], rbx
mov edi, ebx
mov eax, dword [0x7ff4b426e3c]
cmp eax, ebx
je 0x7ff4b4178fd
lea rcx, [0x7ff4b40e798]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7ff4b426e3c]
cmp eax, ebx
jne 0x7ff4b41790a
call fcn.7ff4b4120bc
cmp eax, ebx
je 0x7ff4b417926
lea rdx, [rsp + 0x48]
mov rcx, qword [0x7ff4b426118]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
cmp eax, ebx
cmovne edi, ecx
cmp edi, ebx
jne 0x7ff4b41792f
mov ax, bx
jmp 0x7ff4b417978
mov rcx, rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx edi, ax
mov word [rsp + 0x20], ax
mov esi, ebx
cmp di, bx
sete sil
cmp esi, ebx
je 0x7ff4b417958
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x7ff4b41795b
mov r12d, ebx
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, ebx
je 0x7ff4b417975
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ax, di
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x7ff4b41f804
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
xor edi, edi
mov r12, rdx
mov rbx, rcx
mov bpl, dil
cmp rcx, rdi
jne 0x7ff4b41f832
mov qword [rdx], rdi
jmp 0x7ff4b41f990
cmp word [rcx], 0x40
jne 0x7ff4b41f848
cmp word [rcx + 2], 0x40
je 0x7ff4b41f844
mov bpl, 1
jmp 0x7ff4b41f848
lea rbx, [rcx + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
cmp eax, edi
jne 0x7ff4b41f882
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, edi
cmovle ecx, eax
mov eax, 0x80004005
cmp ecx, edi
cmovge ecx, eax
mov edi, ecx
jmp 0x7ff4b41f990
lea ecx, [rax + 1]
mov eax, 2
mov r15, 0xffffffffffffffff
mul rcx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
cmp rax, rdi
je 0x7ff4b41f98b
mov r8d, r13d
mov rdx, rax
mov rcx, rbx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jne 0x7ff4b41f8e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, edi
cmovle ecx, eax
mov eax, 0x80004005
cmp ecx, edi
cmovge ecx, eax
mov edi, ecx
jmp 0x7ff4b41f981
cmp bpl, dil
je 0x7ff4b41f953
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
mov ebx, eax
neg ebx
cmp ebx, edi
jle 0x7ff4b41f94c
mov rcx, qword [0x7ff4b426e30]
cmp rcx, rdi
jne 0x7ff4b41f92e
lea r8, [0x7ff4b426e30]
lea rdx, [fcn.7ff4b41f804]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rcx, qword [0x7ff4b426e30]
cmp rcx, rdi
je 0x7ff4b41f8c2
lea r8, [rsp + 0x60]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, edi
jle 0x7ff4b41f8c2
mov r8, qword [rsp + 0x60]
movsxd r9, eax
jmp 0x7ff4b41f968
mov edi, 0x80004005
jmp 0x7ff4b41f981
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
mov r8, rsi
not rcx
lea r9, [rcx - 1]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 1
call fcn.7ff4b4151e8
mov edi, eax
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x7ff4b41f990
mov edi, 0x8007000e
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x7ff4b420510
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x7ff4b426108]
jne 0x7ff4b42052b
rol rcx, 0x10
test cx, 0xffff
jne 0x7ff4b420527
ret 0
ror rcx, 0x10
jmp 0x7ff4b420714
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x7ff4b4268e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x7ff4b4269d8]
mov qword [rsp + 0x58], r11
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 0x7ff4b420799
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, [0x7ff4b4268e0]
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 0x7ff4b4207bb
mov rax, qword [rsp + 0x88]
mov qword [0x7ff4b4269d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x7ff4b426978], rax
mov rax, qword [0x7ff4b4269d8]
mov qword [0x7ff4b426850], rax
mov rax, qword [rsp + 0x90]
mov qword [0x7ff4b426960], rax
mov dword [0x7ff4b426840], 0xc0000409
mov dword [0x7ff4b426844], 1
mov rax, qword [0x7ff4b426108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x7ff4b426110]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x7ff4b401968]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x7ff4b4208fc
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea r8, [rsp + 0x20]
lea r9d, [rbx + 0x10]
lea edx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
jle 0x7ff4b420923
bt dword [rsp + 0x2c], 0x1b
setb bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x7ff4b420934
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x7ff4b426dbc]
xor ebx, ebx
mov rsi, rcx
cmp eax, ebx
jne 0x7ff4b420983
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x7ff4b426db8], ax
cmp ax, bx
je 0x7ff4b420970
movzx ecx, ax
call fcn.7ff4b4208fc
mov edi, eax
neg edi
sbb eax, eax
add eax, 2
xchg dword [0x7ff4b426dbc], eax
mov eax, dword [0x7ff4b426dbc]
cmp eax, 1
jne 0x7ff4b4209a0
cmp rsi, rbx
je 0x7ff4b42099d
movzx ecx, word [0x7ff4b426db8]
mov word [rsi], cx
mov eax, dword [0x7ff4b426dbc]
cmp eax, 1
mov rsi, qword [rsp + 0x38]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
jmp 0x7ff4b420934
Function at 0x7ff4b4209bc
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x7ff4b426dbc]
xor ebx, ebx
mov rsi, rcx
cmp eax, ebx
jne 0x7ff4b420983
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x7ff4b426db8], ax
cmp ax, bx
je 0x7ff4b420970
movzx ecx, ax
call fcn.7ff4b4208fc
mov edi, eax
neg edi
sbb eax, eax
add eax, 2
xchg dword [0x7ff4b426dbc], eax
mov eax, dword [0x7ff4b426dbc]
cmp eax, 1
jne 0x7ff4b4209a0
cmp rsi, rbx
je 0x7ff4b42099d
movzx ecx, word [0x7ff4b426db8]
mov word [rsi], cx
mov eax, dword [0x7ff4b426dbc]
cmp eax, 1
mov rsi, qword [rsp + 0x38]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
jmp 0x7ff4b420934
Function at 0x140002c20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400048b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400048b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002dc0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002cdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cc0
mov rcx, rbx
call fcn.1400036e0
mov rdi, rax
test rax, rax
je 0x140002de2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002dc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d70
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c20
nop dword [rax]
xor esi, esi
jmp 0x140002ce8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033a3
test rsi, rsi
je 0x1400033a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003388
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400036e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000375d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003700
add rax, 0x28
cmp rax, r9
jne 0x140003740
xor eax, eax
ret

Function at 0x140003760
Capabilities:
Parse pe header

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

Function at 0x140003820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000383f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400025e8
Capabilities:
Parse pe header

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

Function at 0x1400061b0
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 0x14000601b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000601b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000601b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000601b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000601b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000601b
cmp dword [rcx + 0xf8], 0
je 0x14000601b
mov ecx, ebx
call fcn.1400060cc
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.140005ea8
nop
cmp dword [rbp + 0x20], 0
je 0x140006069
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006074
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005fac
Function at 0x140012f0c
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, [0x14002b790]
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 0x140012f63
cmp word [rdx], r13w
jne 0x140012f63
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140012f68
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001308d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400130ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140012fa1
mov rdx, r9
mov word [rbx], cx
jmp 0x140012fc8
cmp r9, r8
jae 0x140012fd8
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 0x140012f82
jmp 0x14001308d
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 0x140013082
cmp dword [rsp + 0x80], esi
je 0x140013082
lea r8, [0x14002b790]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001305a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001302a
mov word [rbx], r13w
jmp 0x14001308a
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 0x140013037
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001308a
cmp word [rsp + 0x70], r13w
jne 0x140013067
cmp rbx, r14
je 0x140013024
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400189d0
cmp word [rsp + 0x70], r13w
je 0x14001308d
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, [0x14002b790]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140013087
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001308d
Function at 0x140014dac
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 0x140014e33
mov rsi, rbx
cmp word [rax], bp
je 0x140014df2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014ddc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014dd8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000f118
mov rdi, rax
test rax, rax
je 0x140014e20
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003f50
mov rbp, rdi
xor ecx, ecx
call fcn.14000f0dc
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 0x1400183c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400183de
mov al, 1
jmp 0x14001843e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400183ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001843c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140015750
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001843c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001843c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001843c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001843e
xor al, al
add rsp, 0x20
pop rbx
ret