joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800348a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800349cb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800349c2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800349a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800349a4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800349a4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180034962
mov rcx, qword [0x180055fe8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800349c2
jmp 0x180034997
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180034997
mov rcx, qword [0x180055fe8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800349c2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180034910
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180034a23
cmp dword [rbx + 0xc], esi
jbe 0x180034a23
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180034a1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800346f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800349e0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180040140
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180034a50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180056880]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180034ac3
mov eax, 0xa
jmp 0x180034b52
test esi, esi
je 0x180034ae5
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 0x180034b08
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180034b08
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180034b01
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180034b08
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180040140
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180034b80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18005688c]
mov ebx, edi
test ecx, ecx
je 0x180034cbb
mov rax, qword [0x180056880]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180034bd8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180034bb0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180034cbb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800348a0
mov r8d, dword [0x18005688c]
cmp ebx, r8d
jae 0x180034c48
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180056880]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180034c41
mov edx, esi
mov ecx, ebx
call fcn.180034a50
mov edi, eax
test eax, eax
jne 0x180034c48
mov r8d, dword [0x18005688c]
inc ebx
cmp ebx, r8d
jb 0x180034c10
cmp qword [rsp + 0x20], 0
je 0x180034cbb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180034ca7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180034c98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180034c70
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180055fe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800350b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180055fdc], ebp
je 0x180035107
cmp rbx, 0x20
jae 0x1800350f0
xor ecx, ecx
jmp 0x1800350f2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180055fdc], ebp
jne 0x1800350e6
cmp qword [0x180055fe8], r15
je 0x180035201
test rdi, rdi
jne 0x180035127
mov ecx, esi
call fcn.180034b80
mov ebp, eax
jmp 0x180035206
mov ecx, dword [0x18005688c]
mov ebx, r15d
test ecx, ecx
je 0x18003514f
mov r8, qword [0x180056880]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180035159
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180035140
mov ebp, 4
jmp 0x180035206
cmp ebx, 0xffffffff
je 0x18003514f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800351f8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800348a0
mov edx, esi
mov ecx, ebx
call fcn.180034a50
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180035206
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800351e2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800351d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800351b0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180055fe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180035206
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180035206
mov ebp, 2
xchg dword [0x180055fdc], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180036930
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180036972
cmp edx, 1
jne 0x1800369a0
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180036480]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x180056770], 0
je 0x1800369a0
xor edx, edx
xor ecx, ecx
call fcn.1800350b0
mov rcx, qword [0x180056768]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x180056768], rax
mov dword [0x180056770], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18003bbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x18003bd73
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x18003bd73
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x18003bc79
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x18003bd97
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x18003bc8f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x18003bc8f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x18003bca2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x18003bced
mov r9d, eax
cmp eax, 0x800
jae 0x18003bcbc
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x18003bced
cmp eax, 0x10000
jae 0x18003bcd6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x18003bced
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x18003bd73
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x18003bd11
cmp r10d, 3
jae 0x18003bd1d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x18003bd4e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x18003bd30
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x18003bc2e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x18003bd82
Function at 0x140001398
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022e30
xor r8d, r8d
xor edx, edx
jmp 0x140022b14

Function at 0x14000213f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400774d0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140096038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140098ab0]
xor r11d, r11d
lea rdi, [0x140081d04]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140077540
mov rax, 0xfffffffffffffffe
jmp 0x14007768d
cmp word [r10 + 6], r11w
jne 0x1400775af
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007756a
test r14, r14
je 0x14007755b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007768d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140077578
mov r8b, 2
jmp 0x140077596
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140077586
mov r8b, 3
jmp 0x140077596
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140077682
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400775d8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140077682
cmp bl, bpl
jb 0x140077682
cmp bl, r8b
jae 0x140077682
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140077605
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140077682
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400775e7
cmp r9, rbp
jae 0x140077631
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140077534
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140077682
cmp edx, 0x110000
jae 0x140077682
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140077682
test r14, r14
je 0x140077670
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14000393b
jmp 0x14007768d
mov rdx, rsi
mov rcx, r10
call fcn.140003f71
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000258b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002185
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000c3d0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000c45d
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000c45d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c45d
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000c444
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000c43e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000c446
add rdx, 0x28
jmp 0x14000c423
xor edx, edx
test rdx, rdx
jne 0x14000c44f
xor al, al
jmp 0x14000c463
cmp dword [rdx + 0x24], 0
jge 0x14000c459
xor al, al
jmp 0x14000c463
mov al, 1
jmp 0x14000c463
xor al, al
jmp 0x14000c463
add rsp, 0x18
ret

Function at 0x1400026bc
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140019e38
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140082cc8]
mov ecx, 2
lea r8, [0x140082cc0]
lea rdx, str.FlsGetValue
call fcn.140019908
mov ecx, ebx
test rax, rax
je 0x140019e72
add rsp, 0x20
pop rbx
jmp qword [0x1400a1020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000280b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005b318
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14005b348
xor eax, eax
jmp 0x14005b40b
mov rbp, rbx
cmp word [rax], si
je 0x14005b36d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005b354
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005b350
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003152
movsxd r14, eax
test eax, eax
jne 0x14005b3ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005b341
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x14005b3c4
xor ecx, ecx
call fcn.14000116d
jmp 0x14005b3a0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003152
test eax, eax
jne 0x14005b3f5
mov rcx, rdi
call fcn.14000116d
jmp 0x14005b3ff
xor ecx, ecx
call fcn.14000116d
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140002815
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140019d88
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140082c88]
xor ecx, ecx
lea r8, [0x140082c80]
lea rdx, str.FlsAlloc
call fcn.140019908
test rax, rax
je 0x140019dc1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a1020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000288d
Capabilities:
Get geographical location

Disassembly:
jmp 0x140063cf4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140086758]
mov rbp, rcx
lea r8, [0x140086750]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140063210
test rax, rax
je 0x140063d54
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a1030]
jmp 0x140063d6e
xor edx, edx
mov rcx, rbp
call fcn.1400021d5
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002897
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a6bc
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029d7
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022dc8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140022b14

Function at 0x140002b62
Capabilities:
Parse pe header

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

Function at 0x140002e64
Capabilities:
Parse pe header

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

Function at 0x1400030d5
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14007a3f0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14007a431
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14007a425
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14007a433
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14007a413
xor eax, eax
ret
Function at 0x1400032b5
Capabilities:
Terminate process

Disassembly:
jmp 0x1400566a4
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400566be
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14000394a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a2b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140019e90
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140082ce8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140082ce0]
call fcn.140019908
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140019ed0
call qword [0x1400a1020]
jmp 0x140019ed6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003abc
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006a63c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140002117
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006a6c6
cmp byte [rbp - 0x21], r15b
je 0x14006a6c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006a6fc
call fcn.140003e59
test eax, eax
jne 0x14006a6e8
cmp byte [rbp - 0x21], r15b
je 0x14006a6e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006a6fc
cmp byte [rbp - 0x21], r15b
je 0x14006a6f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140004025
test eax, eax
jne 0x14006a79c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002117
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006a73b
cmp byte [rbp - 0x21], r15b
je 0x14006a770
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006a770
call fcn.140003e59
test eax, eax
jne 0x14006a75c
cmp byte [rbp - 0x21], r15b
je 0x14006a755
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006a770
cmp byte [rbp - 0x21], r15b
je 0x14006a76d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140004025
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006a79c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006a79f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006a7ad
mov rcx, rdi
call fcn.14000116d
cmp byte [rbp + 0x3f], r15b
je 0x14006a7bc
mov rcx, qword [rbp + 0x27]
call fcn.14000116d
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003bac
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022db8
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 0x140022b83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022b83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022b83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022b83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022b83
cmp dword [rcx + 0x84], 0xe
jbe 0x140022b83
cmp dword [rcx + 0xf8], 0
je 0x140022b83
mov ecx, ebx
call fcn.140022cfc
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.140022864
nop
cmp dword [rbp + 0x20], 0
je 0x140022bd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022c0c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140022b14

Function at 0x14000c990
Capabilities:
Parse pe header

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