joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035990
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140046484]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140035b40
mov rax, qword [0x140046488]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400359dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140035a67
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400359c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140035b9d
mov rax, qword [0x140046488]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140046488]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140035b82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140035a60
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140035af0
add dword [0x140046484], 1
cmp ebx, 8
jae 0x140035a98
test bl, 4
jne 0x140035b50
test ebx, ebx
je 0x140035a89
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140035b70
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140035a89
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140035aca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140046488]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140035a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1400359e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140035a89
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140035a89
mov rax, qword [0x140046488]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1400360b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400464e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400464c0]
test rbx, rbx
je 0x140036104
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400360fb
test r12, r12
je 0x1400360fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400360e0
lea rcx, [0x1400464e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140036330
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140036340
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140036350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140036395
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14003638c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140036397
add rax, 0x28
cmp rax, r9
jne 0x140036378
xor eax, eax
ret

Function at 0x140036440
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140040bf0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400364b9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400364b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400364b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400364ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400364b9
add r8, 0x28
cmp r8, r9
jne 0x140036498
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400365a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140040bf0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14003660f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14003660f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14003660d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140036604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140036618
add rax, 0x28
cmp rax, r9
jne 0x1400365f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140036630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140040bf0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400366a8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400366a8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400366a8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400366a8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14003669c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400366b0
add rdx, 0x28
cmp rdx, r10
jne 0x140036688
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400366c0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400366ce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400366a5
test r8d, r8d
jg 0x1400366b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140036820
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140046560], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140046568], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140036870
lea rdx, [0x140036730]
mov dword [0x140046558], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140036878
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140036867
call sym.abort
nop
nop
Function at 0x140036880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x140040b60]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x1400368c0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140036928
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x140036940
mov r13d, dword [0x140046558]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x1400369b8
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140036a00
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x1400368a9
mov rcx, r12
call fcn.140036780
mov qword [r13 + rsi*8 + 8], rax
jmp 0x1400368a9
call fcn.140036780
mov qword [r12 + 0x10], rax
jmp 0x1400368a9
mov r10d, dword [r13]
test r10d, r10d
je 0x140036a62
mov r9d, dword [0x14003c580]
test r9d, r9d
je 0x140036a90
lock add dword [0x140046560], 1
jne 0x140036ac4
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x140036a70
mov eax, dword [r13]
test eax, eax
je 0x1400368c9
mov eax, 0xffffffff
lock xadd dword [0x140046560], eax
sub eax, 1
js 0x1400368c9
mov rcx, qword [0x140046568]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400368c9
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sym.calloc
mov r13, rax
test rax, rax
je 0x140036aeb
mov qword [rax], rbx
mov ecx, dword [0x140046558]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140036907
call rdi
jmp 0x140036907
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sym.realloc
mov r13, rax
test rax, rax
je 0x140036aeb
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sym.memset
jmp 0x1400369d9
call fcn.140036820
mov dword [0x14003c580], 1
mov edx, dword [r13]
test edx, edx
jne 0x14003695d
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x1400368c9
mov rax, qword [0x140046550]
lea rsi, [rax + 1]
mov qword [0x140046550], rsi
mov qword [r12 + 0x10], rsi
jmp 0x140036979
lock add dword [0x14003c584], 1
je 0x140036a47
mov r8d, dword [0x14003c580]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14003c580]
test r8d, r8d
jne 0x140036a56
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140036ab8
jmp 0x140036a56
mov rcx, qword [0x140046568]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003696b
lock sub dword [0x140046560], 1
jmp 0x14003696b
call sym.abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400d0fe6
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140142d80
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140142da8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140142df2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x140142d9d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400d283c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401f2110
mov rax, rcx
neg rcx
test rax, 7
je 0x1401f212d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401f2188
test al, 7
jne 0x1401f2120
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401f2141
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401f21b2
test dh, dh
je 0x1401f21ac
shr rdx, 0x10
test dl, dl
je 0x1401f21a6
test dh, dh
je 0x1401f21a0
shr rdx, 0x10
test dl, dl
je 0x1401f219a
test dh, dh
je 0x1401f2194
shr edx, 0x10
test dl, dl
je 0x1401f218e
test dh, dh
jne 0x1401f2141
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400d2882
Capabilities:
Query environment variable

Disassembly:
jmp 0x140254100
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140253c80
lea rcx, [rsp + 0x20]
call fcn.140253cd0
movzx eax, al
test eax, eax
jne 0x140254145
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140253cb0
mov rax, qword [rsp + 0x40]
jmp 0x14025423f
lea rcx, [rsp + 0x20]
call fcn.140253dd0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140253d70
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400d2c51
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400d2184
lea rcx, [rsp + 0x28]
call fcn.1400d3192
movzx eax, al
test eax, eax
jne 0x1402541df
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400d480d
lea rcx, [rsp + 0x20]
call fcn.140253cb0
mov rax, qword [rsp + 0x50]
jmp 0x14025423f
lea rcx, [rsp + 0x20]
call fcn.140253dd0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400d58de
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400d2b93
lea rcx, [rsp + 0x28]
call fcn.1400d6324
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400d480d
lea rcx, [rsp + 0x20]
call fcn.140253cb0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400d2e27
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401970c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140196a40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401970ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402f6020]
jmp 0x140197109
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400d30b1
Capabilities:
Query environment variable

Disassembly:
jmp 0x140253e50
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140253c80
lea rcx, [rsp + 0x40]
call fcn.140253e00
movzx eax, al
test eax, eax
jne 0x140253e98
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140253cb0
mov rax, qword [rsp + 0x70]
jmp 0x140254069
lea rcx, [rsp + 0x40]
call fcn.140253dd0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140253d70
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140253dd0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400d43fd
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140253f3e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140253cb0
mov rax, qword [rsp + 0x80]
jmp 0x140254069
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400d2c51
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400d2a08
lea rcx, [rsp + 0x48]
call fcn.1400d23cd
movzx eax, al
test eax, eax
jne 0x140253fa5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0e42
lea rcx, [rsp + 0x40]
call fcn.140253cb0
mov rax, qword [rsp + 0x88]
jmp 0x140254069
lea rcx, [rsp + 0x48]
call fcn.1400d3624
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140253dd0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400d43fd
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14025403b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0e42
lea rcx, [rsp + 0x40]
call fcn.140253cb0
mov rax, qword [rsp + 0xa0]
jmp 0x140254069
lea rcx, [rsp + 0x48]
call fcn.1400d29b3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400d0e42
lea rcx, [rsp + 0x40]
call fcn.140253cb0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400d30ca
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140196ff0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401969c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140197031
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402f6020]
jmp 0x140197037
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400d3197
Capabilities:
Get geographical location

Disassembly:
jmp 0x14023b6c0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14023a5f0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14023b727
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402f6030]
jmp 0x14023b749
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400d232d
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400d31ab
Capabilities:
Terminate process

Disassembly:
jmp 0x140174840
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret
Function at 0x1400d35b6
Capabilities:
Print debug messages

Disassembly:
jmp 0x140262370
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402d7100]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140262396
jmp 0x140262413
mov rcx, qword [rbp + 0x30]
call fcn.1400d283c
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402623af
jmp 0x140262413
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402623cc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d109a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400d170c
test eax, eax
jne 0x140262413
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d2b66
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400d397b
Capabilities:
Create process on windows

Disassembly:
jmp 0x140266380
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400d212f
lea rcx, [rsp + 0xb8]
call fcn.1400d212f
lea rcx, [rsp + 0x88]
call fcn.1400d212f
call fcn.1400d3016
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400d1dce
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140266422
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400d26d9
lea rcx, [rsp + 0xb8]
call fcn.1400d26d9
lea rcx, [rsp + 0xe8]
call fcn.1400d26d9
mov eax, dword [rsp + 0x54]
jmp 0x1402665c8
call fcn.1400d3016
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400d1dce
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140266482
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400d26d9
lea rcx, [rsp + 0xb8]
call fcn.1400d26d9
lea rcx, [rsp + 0xe8]
call fcn.1400d26d9
mov eax, dword [rsp + 0x5c]
jmp 0x1402665c8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140266508
call fcn.1400d3016
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400d1dce
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1402664f6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400d26d9
lea rcx, [rsp + 0xb8]
call fcn.1400d26d9
lea rcx, [rsp + 0xe8]
call fcn.1400d26d9
mov eax, dword [rsp + 0x64]
jmp 0x1402665c8
lea rcx, [rsp + 0x88]
call fcn.1400d2044
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400d2044
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400d2044
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400d26d9
lea rcx, [rsp + 0xb8]
call fcn.1400d26d9
lea rcx, [rsp + 0xe8]
call fcn.1400d26d9
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400d3a48
Capabilities:
Set environment variable

Disassembly:
jmp 0x140255f70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400d3dc7
Capabilities:
Parse pe header

Disassembly:
jmp 0x140175720
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140175740
xor al, al
jmp 0x1401757c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140175753
xor al, al
jmp 0x1401757c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14017577d
xor al, al
jmp 0x1401757c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140175791
xor al, al
jmp 0x1401757c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401757a3
xor al, al
jmp 0x1401757c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401757bf
xor al, al
jmp 0x1401757c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400d46f0
Capabilities:
Terminate process

Disassembly:
jmp 0x1401980b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401980de
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400d5375
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400d53f7
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402295d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret