joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bcb30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x1078
call fcn.1800eaee0
sub rsp, rax
mov rax, qword [0x18019e008]
xor rax, rsp
mov qword [rsp + 0x1060], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1802089e4]
cmp eax, 1
jbe 0x1800bcc9d
xor edx, edx
mov qword [rsp + 0x1070], rbx
mov r8d, 0x800
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x1088]
call fcn.18005d9c0
mov r9, qword [rsp + 0x1080]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov r8d, 0x800
xor ebx, ebx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
xor edx, edx
lea rcx, [rsp + 0x860]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x60]
lea rdx, [0x180103e48]
lea rcx, [rsp + 0x860]
call fcn.1800a9430
movabs rax, 0x202709f4c58a0424
mov dword [0x1801b79c0], ebx
mov qword [0x1802008b8], rax
lea rax, str.STRING
mov qword [0x1801b7a88], rax
mov dword [0x1801b79b0], 1
call fcn.1800ba210
movabs rax, 0x6c188be134e074aa
mov dword [0x1801b79c0], ebx
mov qword [0x1802008b8], rax
lea rax, [rsp + 0x860]
mov qword [0x1801b7a88], rax
mov dword [0x1801b79b0], 1
call fcn.1800ba210
movss xmm0, dword [0x18018003c]
lea rax, str.Information
movss dword [rsp + 0x38], xmm0
lea r8, str.syslx_info
mov qword [rsp + 0x30], rax
call fcn.1800e24e0
call fcn.1800bc420
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [rsp + 0x1070]
mov dword [0x1802089e4], eax
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.1800e99a0
add rsp, 0x1078
ret

Function at 0x1800bcfa0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0xd8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18019e008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
xor ebx, ebx
mov dword [rsp + 0x30], ebx
cmp qword [rcx + 0x18], 0x10
jb 0x1800bcfeb
mov rcx, qword [rcx]
cmp qword [r9 + 0x18], 0x10
jb 0x1800bcff7
mov rdx, qword [r9]
jmp 0x1800bcffa
mov rdx, rsi
cmp qword [r8 + 0x18], 0x10
jb 0x1800bd006
mov rax, qword [r8]
jmp 0x1800bd009
mov rax, r14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x50]
lea r8, str.NULL
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1800bd043
mov rax, qword [rdi]
jmp 0x1800bd046
mov rax, rdi
mov byte [rax], 0
cmp byte [rsp + 0x50], 0
je 0x1800bd069
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800bd060
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.18005c3b0
nop
mov rcx, r14
call fcn.18005bfd0
nop
mov rcx, rsi
call fcn.18005bfd0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800e99a0
add rsp, 0xd8
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800e83dc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800e8440
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800e842e
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800e8427
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800e83fb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1801cc008]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800e8450
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov r14d, edx
imul rbx, rax, 0x38
mov esi, 5
add rbx, qword [0x180208a00]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x1800e848b
sub rdi, rsi
mov esi, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800e84b0
mov eax, 0xa
jmp 0x1800e853a
test r14d, r14d
je 0x1800e84d3
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800e84f4
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800e84f4
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800e84ee
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800e84f4
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and dword [rbx + 0x20], 0xfffffff9
and r14d, 1
mov ecx, r14d
and ecx, 0xfffffffd
lea eax, [r14 + r14]
or ecx, eax
add ecx, ecx
or dword [rbx + 0x20], ecx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800e8b08
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9, rcx
test r8b, r8b
je 0x1800e8b22
cmp r8b, 0x90
je 0x1800e8b22
cmp r8b, 0xcc
je 0x1800e8b22
xor eax, eax
ret
mov r10d, 1
mov ecx, r10d
cmp edx, r10d
jbe 0x1800e8b3f
mov eax, ecx
cmp byte [rax + r9], r8b
jne 0x1800e8b1f
add ecx, r10d
cmp ecx, edx
jb 0x1800e8b30
mov eax, r10d
ret
Function at 0x1800e8edc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x50]
cmp rdi, 0x40000000
jbe 0x1800e8f2a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1802089f8]
lea rax, [rdi + 0x40000000]
cmp r15, rax
cmova r15, rax
sub r15, 0xfff
test rbx, rbx
je 0x1800e8f65
cmp rbx, r14
jb 0x1800e8f60
cmp rbx, r15
jae 0x1800e8f60
cmp qword [rbx + 8], 0
jne 0x1800e90bb
mov rbx, qword [rbx]
jmp 0x1800e8f46
mov rsi, rdi
cmp rdi, r14
jb 0x1800e8fe2
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rsi
div r12
sub rsi, rdx
jmp 0x1800e8fa8
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800e8fb0
cmp dword [rbp - 0x10], 0x10000
je 0x1800e8fb2
mov rsi, qword [rbp - 0x28]
cmp rsi, r12
jb 0x1800e8fb0
sub rsi, r12
cmp rsi, r14
jae 0x1800e8f7e
xor esi, esi
test rsi, rsi
je 0x1800e8fe2
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800e907b
cmp rsi, r14
jae 0x1800e8f6d
test rbx, rbx
jmp 0x1800e906e
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800e9047
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800e9047
cmp dword [rbp - 0x10], 0x10000
je 0x1800e9049
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jbe 0x1800e900a
xor edi, edi
test rdi, rdi
je 0x1800e90bb
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800e907b
cmp rdi, r15
jbe 0x1800e8fea
jmp 0x1800e90bb
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800e908e
mov rax, qword [0x1802089f8]
mov qword [rbx], rax
mov qword [0x1802089f8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1802186e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18021870d
xor al, al
jmp 0x18021886f
mov rax, qword [0x1802396c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1802396c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1802396d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1802396d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1802396e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1802396e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1802396f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1802396f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x180239700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x180218861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1802187b9
mov r11d, 2
jmp 0x1802187dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1802187d3
mov r11d, 1
jmp 0x1802187dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x180218885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x180218822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18021883a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x18021884a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x180218858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1802187a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x18021886a
Function at 0x1804d7ac9
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
push r10
xchg r10b, r10b
mov r10w, 0x12a0
push rdi
seto r10b
movsxd r10, r9d
push rdx
movsx edi, sp
cmove di, r8w
push r12
mov r10w, 0x4774
movsxd rdi, r12d
movsx rdx, cx
push rcx
pushfq
inc r10b
movsx rdi, bx
bsf rdi, rbp
push r9
btr r9, r13
add r9b, r11b
xchg dx, dx
push rax
sal dil, cl
movsx rdi, bp
push r15
push r11
push r13
sbb r9d, 0x2d9f6ccb
cmp r15b, 0x44
cmc
push rsi
bts dx, r10w
cwde
xchg r10w, r11w
push rbx
push r14
shrd edi, r13d, 0x6e
rol edx, 0x32
push r8
rdtsc
cmp dil, 0xf8
movabs rdi, 0
sub r8d, esp
bsr r8, r9
push rdi
adc edx, ecx
rcr ax, cl
rol dx, cl
mov r10, qword [rsp + 0x90]
btc r8d, 2
rdtsc
ror al, 0x52
neg r10d
ror r10d, 3
not r10d
inc r8b
movzx r8w, dl
sub r10d, 0x61095f9e
test si, si
bswap r10d
btr rdx, rsi
movsx r8w, r10b
add r10, rdi
movabs rdx, 0x100000000
cmp r8w, 0x473b
not r8b
bsf r9, r12
add r10, rdx
movsx r11d, bx
mov r9, rsp
or r8b, 0x9a
sub ah, 0x78
clc
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
movsx edi, sp
btc r8, rbx
and r11, rax
mov r11, r10
movabs rax, 0
mov dil, r9b
xchg r8w, r8w
sub r11, rax
shl dil, cl
lea r8, [0x1804d7bf6]
rcl dil, cl
xchg dil, dil
stc
sub r10, 4
sbb dil, 0x95
btr di, r8w
movsxd rdi, esp
mov edi, dword [r10]
xor edi, r11d
jmp 0x1805888e6
neg edi
test eax, 0x70b63acf
push r11
bsr r11w, si
setp r11b
xor dword [rsp], edi
pop r11
movsxd rdi, edi
cmp sil, 0xa7
clc
stc
add r8, rdi
push r8
ret
inc edi
rol edi, 3
not edi
jmp 0x18054b480
ror edi, 3
jmp 0x18054e189
Function at 0x180b3453f
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc edi
rol edi, 3
not edi
jmp 0x180b791f7
ror edi, 3
jmp 0x180aab572
push rbp
push r10
xchg r10b, r10b
mov r10w, 0x12a0
push rdi
seto r10b
movsxd r10, r9d
push rdx
movsx edi, sp
cmove di, r8w
push r12
mov r10w, 0x4774
movsxd rdi, r12d
movsx rdx, cx
push rcx
pushfq
inc r10b
movsx rdi, bx
bsf rdi, rbp
push r9
btr r9, r13
add r9b, r11b
xchg dx, dx
push rax
sal dil, cl
movsx rdi, bp
push r15
push r11
push r13
sbb r9d, 0x2d9f6ccb
cmp r15b, 0x44
cmc
push rsi
bts dx, r10w
cwde
xchg r10w, r11w
push rbx
push r14
shrd edi, r13d, 0x6e
rol edx, 0x32
push r8
rdtsc
cmp dil, 0xf8
movabs rdi, 0
sub r8d, esp
bsr r8, r9
push rdi
adc edx, ecx
rcr ax, cl
rol dx, cl
mov r10, qword [rsp + 0x90]
btc r8d, 2
rdtsc
ror al, 0x52
neg r10d
ror r10d, 3
not r10d
inc r8b
movzx r8w, dl
sub r10d, 0x61095f9e
test si, si
bswap r10d
btr rdx, rsi
movsx r8w, r10b
add r10, rdi
movabs rdx, 0x100000000
cmp r8w, 0x473b
not r8b
bsf r9, r12
add r10, rdx
movsx r11d, bx
mov r9, rsp
or r8b, 0x9a
sub ah, 0x78
clc
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
movsx edi, sp
btc r8, rbx
and r11, rax
mov r11, r10
movabs rax, 0
mov dil, r9b
xchg r8w, r8w
sub r11, rax
shl dil, cl
lea r8, [0x180b3466c]
rcl dil, cl
xchg dil, dil
stc
sub r10, 4
sbb dil, 0x95
btr di, r8w
movsxd rdi, esp
mov edi, dword [r10]
xor edi, r11d
jmp 0x180b1f1c2
neg edi
test eax, 0x70b63acf
push r11
bsr r11w, si
setp r11b
xor dword [rsp], edi
pop r11
movsxd rdi, edi
cmp sil, 0xa7
clc
stc
add r8, rdi
push r8
ret
Function at 0x1400a780b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401a9a00
mov rax, rcx
neg rcx
test rax, 7
je 0x1401a9a1d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401a9a78
test al, 7
jne 0x1401a9a10
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 0x1401a9a31
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401a9aa2
test dh, dh
je 0x1401a9a9c
shr rdx, 0x10
test dl, dl
je 0x1401a9a96
test dh, dh
je 0x1401a9a90
shr rdx, 0x10
test dl, dl
je 0x1401a9a8a
test dh, dh
je 0x1401a9a84
shr edx, 0x10
test dl, dl
je 0x1401a9a7e
test dh, dh
jne 0x1401a9a31
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 0x1400a7b5d
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14013b430
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14013adb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013b46f
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 [0x1402b9020]
jmp 0x14013b479
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400a7cca
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401c4a30
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401c4860
lea rcx, [rsp + 0x40]
call fcn.1401c49e0
movzx eax, al
test eax, eax
jne 0x1401c4a78
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401c4890
mov rax, qword [rsp + 0x70]
jmp 0x1401c4c49
lea rcx, [rsp + 0x40]
call fcn.1401c49b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401c4950
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.1401c49b0
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.1400a87d3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401c4b1e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401c4890
mov rax, qword [rsp + 0x80]
jmp 0x1401c4c49
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400a7a63
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400a7923
lea rcx, [rsp + 0x48]
call fcn.1400a7590
movzx eax, al
test eax, eax
jne 0x1401c4b85
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400a682f
lea rcx, [rsp + 0x40]
call fcn.1401c4890
mov rax, qword [rsp + 0x88]
jmp 0x1401c4c49
lea rcx, [rsp + 0x48]
call fcn.1400a7fd1
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401c49b0
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.1400a87d3
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401c4c1b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400a682f
lea rcx, [rsp + 0x40]
call fcn.1401c4890
mov rax, qword [rsp + 0xa0]
jmp 0x1401c4c49
lea rcx, [rsp + 0x48]
call fcn.1400a7900
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400a682f
lea rcx, [rsp + 0x40]
call fcn.1401c4890
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400a7cd4
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14013b360
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14013ad30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013b3a1
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 [0x1402b9020]
jmp 0x14013b3a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400a7d5b
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401bd330
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.1401bc260
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401bd397
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 [0x1402b9030]
jmp 0x1401bd3b9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400a7531
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 0x1400a7d6f
Capabilities:
Terminate process

Disassembly:
jmp 0x140117450
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]
add rsp, 0x28
ret
Function at 0x1400a7f7c
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401db9f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402a4f08]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401dba16
jmp 0x1401dba93
mov rcx, qword [rbp + 0x30]
call fcn.1400a780b
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401dba2f
jmp 0x1401dba93
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401dba4c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a6997
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.1400a6db6
test eax, eax
jne 0x1401dba93
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400a79eb
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400a845e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140118cc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140118ce0
xor al, al
jmp 0x140118d61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140118cf3
xor al, al
jmp 0x140118d61
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 0x140118d1d
xor al, al
jmp 0x140118d61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140118d31
xor al, al
jmp 0x140118d61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140118d43
xor al, al
jmp 0x140118d61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140118d5f
xor al, al
jmp 0x140118d61
mov al, 1
add rsp, 0x38
ret
Function at 0x1400a897c
Capabilities:
Terminate process

Disassembly:
jmp 0x14013c4e0
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 0x14013c50e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400a9151
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 0x1400a91a6
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401b1d90
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
Function at 0x1400a925a
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14013b4a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14013adf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013b4e9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402b9020]
jmp 0x14013b4f8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret