joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140010100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400100e0]
test rbx, rbx
je 0x1400024e4
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 0x1400024db
test r12, r12
je 0x1400024db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024c0
lea rcx, [0x140010100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002710
Capabilities:
Parse pe header

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

Function at 0x140002730
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 0x140002775
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 0x14000276c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002777
add rax, 0x28
cmp rax, r9
jne 0x140002758
xor eax, eax
ret

Function at 0x140002820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000c9a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002899
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002899
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 0x140002896
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 0x14000288d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002899
add r8, 0x28
cmp r8, r9
jne 0x140002878
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002980
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000c9a0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400029ef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400029ef
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 0x1400029ed
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 0x1400029e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029f8
add rax, 0x28
cmp rax, r9
jne 0x1400029d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14000c9a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002a88
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002a88
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002a88
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002a88
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 0x140002a7c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002a90
add rdx, 0x28
cmp rdx, r10
jne 0x140002a68
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002aa0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002aae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a85
test r8d, r8d
jg 0x140002a98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140002240
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140025018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
xor edi, edi
lea rcx, str.___Allocating_memory_with_size:__d_n
mov qword [rsp + 0x30], rdi
mov eax, dword [rdx + 0x50]
mov qword [rsp + 0x38], rax
mov edx, dword [rdx + 0x50]
call fcn.140001010
mov rdx, qword [0x140026cb0]
mov ecx, dword [0x140026ca0]
call fcn.140002ba0
lea r9, [rsp + 0x38]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x30]
lea rcx, [rdi - 1]
call fcn.140002bc2
test eax, eax
je 0x1400022cf
mov edx, eax
lea rcx, str.____Failed_allocating_memory:_0x_X_n
call fcn.140001010
xor eax, eax
jmp 0x1400023bb
mov rdx, qword [rsp + 0x30]
lea rcx, str.___Copying_PE_sections_in_the_allocated_memory_with_start_address:_0x_p_n
call fcn.140001010
mov rax, qword [rbx + 0x10]
cmp di, word [rax + 6]
jae 0x140002388
mov qword [rsp + 0x68], rsi
mov eax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x18]
lea rsi, [rcx*8]
mov edx, dword [rsi + rax + 0x14]
mov ecx, dword [rsi + rax + 0x10]
mov eax, dword [rsi + rax + 0xc]
add rax, qword [rsp + 0x30]
add rdx, qword [rbx]
test rdx, rdx
jne 0x14000232f
test ecx, ecx
jle 0x140002353
movsxd r8, ecx
mov rcx, rax
call fcn.140003cf0
jmp 0x140002353
test ecx, ecx
jle 0x140002353
mov r8, rcx
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x140002340
mov rax, qword [rbx + 0x18]
mov ecx, dword [rsi + rax + 0x14]
add rcx, qword [rbx]
movsxd rdx, dword [rsi + rax + 0x10]
test edx, edx
jle 0x140002371
mov r8, rdx
xor edx, edx
call fcn.140003cf0
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 6]
cmp edi, ecx
jb 0x1400022f3
mov rsi, qword [rsp + 0x68]
lea rcx, str.___Finished_n
call fcn.140001010
mov rax, qword [rsp + 0x30]
lea rcx, [0x140026c88]
mov qword [0x140026c88], rax
mov eax, dword [rsp + 0x38]
mov dword [0x140026c90], eax
call fcn.140001550
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140002c00
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400023e0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140025018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rcx
mov r14, r8
lea rcx, [0x140026c88]
mov rbp, rdx
call fcn.140001550
movzx edx, word [rbp + 6]
lea rcx, str.___Fixing_sections_memory_permissions__number_of_sections:__d_n
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r12
call fcn.140001010
mov esi, r12d
cmp r12w, word [rbp + 6]
jae 0x1400025b1
nop
mov eax, esi
mov edi, r12d
mov dword [rsp + 0x38], r12d
lea rcx, [rax + rax*4]
cmp dword [r14 + rcx*8 + 0x10], r12d
lea rbx, [r14 + rcx*8]
jne 0x140002470
cmp dword [rbx + 0xc], r12d
jne 0x140002470
lea rcx, str.___skipping..
call fcn.140001010
jmp 0x1400025a3
mov edx, esi
lea rcx, str.___Checking_memory_protection_for_section:__d_n
call fcn.140001010
mov rdx, rbx
lea rcx, str._t__Section_name:__s_n
call fcn.140001010
cmp dword [rbx + 0x24], edi
jge 0x1400024a3
lea rcx, str._t__PAGE_WRITECOPY_n
mov edi, 8
call fcn.140001010
test dword [rbx + 0x24], 0x40000000
je 0x1400024bd
lea rcx, str._t__PAGE_READONLY_n
mov edi, 2
call fcn.140001010
mov eax, dword [rbx + 0x24]
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x1400024dd
lea rcx, str._t__PAGE_READWRITE_n
mov edi, 4
call fcn.140001010
test dword [rbx + 0x24], 0x20000000
je 0x1400024f7
lea rcx, str._t__PAGE_EXECUTE_n
mov edi, 0x10
call fcn.140001010
mov eax, dword [rbx + 0x24]
and eax, 0xa0000000
cmp eax, 0xa0000000
jne 0x140002517
lea rcx, str._t__PAGE_EXECUTE_WRITECOPY_n
mov edi, 0x80
call fcn.140001010
mov eax, dword [rbx + 0x24]
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x140002537
lea rcx, str._t__PAGE_EXECUTE_READ_n
mov edi, 0x20
call fcn.140001010
mov eax, dword [rbx + 0x24]
and eax, 0xe0000000
cmp eax, 0xe0000000
jne 0x140002557
lea rcx, str._t__PAGE_EXECUTE_READWRITE_n
mov edi, 0x40
call fcn.140001010
mov eax, dword [rbx + 0x10]
mov rdx, qword [0x140026cc8]
mov ecx, dword [0x140026cb8]
mov qword [rsp + 0x40], rax
mov eax, dword [rbx + 0xc]
add rax, r15
mov qword [rsp + 0x30], rax
call fcn.140002ba0
lea rax, [rsp + 0x38]
mov r9d, edi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call fcn.140002bc2
test eax, eax
jne 0x1400025de
movzx eax, word [rbp + 6]
inc esi
cmp esi, eax
jb 0x140002440
lea rcx, str.___Finished_applying_sections_memory_protections_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002c00
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, eax
lea rcx, str.____Failed_applying_memory_protection_for_section:__d__error:_0x_X_n
mov edx, esi
call fcn.140001010
xor eax, eax
jmp 0x1400025c2
Function at 0x140002600
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.___Initializing_NT_structure._n
call fcn.140001010
mov rbx, qword gs:[0x60]
test rbx, rbx
je 0x14000264c
mov rdx, rbx
lea rcx, str.___PEB:_0x_p_n
call fcn.140001010
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx]
sub rcx, 0x10
jne 0x140002654
lea rcx, str.____Failed_getting_LDR._n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x30]
test rcx, rcx
jne 0x140002671
lea rcx, str.____Failed_getting_DllBase._n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x14000268f
lea rcx, str.____Not_a_valid_DOS_HEADER._n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x1400026b0
lea rcx, str.____Not_a_valid_NT_HEADERS._n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov edx, dword [rax + rcx + 0x88]
add rdx, rcx
jne 0x1400026d0
lea rcx, str.____Failed_getting_export_table._n
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, dword [rdx + 0x1c]
add rax, rcx
mov qword [0x140026c80], rcx
mov qword [0x140026c60], rax
mov eax, dword [rdx + 0x20]
add rax, rcx
mov qword [0x140026c68], rax
mov eax, dword [rdx + 0x24]
add rax, rcx
lea rcx, [0x140021ec8]
mov qword [0x140026c70], rax
mov eax, dword [rdx + 0x18]
mov dword [0x140026c78], eax
call fcn.140001010
mov rdx, qword [0x140026c80]
lea rcx, str.___ntdll_base:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c68]
lea rcx, str.___Names_array:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c60]
lea rcx, str.___Addresses_array:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c70]
lea rcx, str.___Ordinals_array:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c68]
lea rcx, str.___Names_offset:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c60]
lea rcx, str.___Addrs_offset:_0x_p_n
call fcn.140001010
mov rdx, qword [0x140026c70]
lea rcx, str.___Ordls_offset:_0x_p_n
call fcn.140001010
mov edx, dword [0x140026c78]
lea rcx, str.___Number_of_functions:__d_n
call fcn.140001010
lea rcx, [0x140021ec8]
call fcn.140001010
cmp qword [0x140026c80], 0
je 0x14000264c
cmp dword [0x140026c78], 0
je 0x14000264c
cmp qword [0x140026c60], 0
je 0x14000264c
cmp qword [0x140026c68], 0
je 0x14000264c
cmp qword [0x140026c70], 0
je 0x14000264c
lea rcx, str.___Init_NT_struct_finished._n
call fcn.140001010
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400035f4
Capabilities:
Parse pe header

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

Function at 0x14000aae4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a8e0
Function at 0x1400100e4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140010114
xor eax, eax
jmp 0x1400101d7
mov rbp, rbx
cmp word [rax], si
je 0x140010139
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010120
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001011c
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.140010004
movsxd r14, eax
test eax, eax
jne 0x140010177
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001010d
mov rcx, r14
call fcn.14000cdbc
mov rdi, rax
test rax, rax
jne 0x140010190
xor ecx, ecx
call fcn.14000c144
jmp 0x14001016c
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.140010004
test eax, eax
jne 0x1400101c1
mov rcx, rdi
call fcn.14000c144
jmp 0x1400101cb
xor ecx, ecx
call fcn.14000c144
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 0x1400144fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014512
mov al, 1
jmp 0x140014572
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014523
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014570
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010a04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014570
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014570
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014570
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014572
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400155b0
Capabilities:
Set environment variable

Disassembly:
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.14000e51c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001563a
cmp byte [rbp - 0x21], r15b
je 0x140015635
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140015670
call fcn.14000c394
test eax, eax
jne 0x14001565c
cmp byte [rbp - 0x21], r15b
je 0x140015654
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140015670
cmp byte [rbp - 0x21], r15b
je 0x14001566d
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.14000e750
test eax, eax
jne 0x140015710
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e51c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400156af
cmp byte [rbp - 0x21], r15b
je 0x1400156e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400156e4
call fcn.14000c394
test eax, eax
jne 0x1400156d0
cmp byte [rbp - 0x21], r15b
je 0x1400156c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400156e4
cmp byte [rbp - 0x21], r15b
je 0x1400156e1
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.14000e750
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015710
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015713
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015721
mov rcx, rdi
call fcn.14000c144
cmp byte [rbp + 0x3f], r15b
je 0x140015730
mov rcx, qword [rbp + 0x27]
call fcn.14000c144
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 0x140017c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x1400025b4
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140002635
mov byte [rsp], 0
jmp 0x1400025cd
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140002630
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x20]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x1400025c4
jmp 0x1400025a9
add rsp, 0x18
ret

Function at 0x140002640
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x14000265b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x1400026b9
mov byte [rsp], 0
jmp 0x140002674
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x1400026b7
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, str.cw
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14000266b
jmp 0x140002650
add rsp, 0x18
ret

Function at 0x140003a60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x140003a7b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140003ad9
mov byte [rsp], 0
jmp 0x140003a94
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140003ad7
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x140035630]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x140003a8b
jmp 0x140003a70
add rsp, 0x18
ret

Function at 0x140003f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x140003f7d
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x140003fb0
movzx eax, byte [rsp]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x140003f74
add rsp, 0x18
ret
Function at 0x1400206cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400204c8
Function at 0x14002a2b4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002a2e4
xor eax, eax
jmp 0x14002a3a7
mov rbp, rbx
cmp word [rax], si
je 0x14002a309
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a2f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a2ec
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.1400288b4
movsxd r14, eax
test eax, eax
jne 0x14002a347
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a2dd
mov rcx, r14
call fcn.140024108
mov rdi, rax
test rax, rax
jne 0x14002a360
xor ecx, ecx
call fcn.140022fcc
jmp 0x14002a33c
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.1400288b4
test eax, eax
jne 0x14002a391
mov rcx, rdi
call fcn.140022fcc
jmp 0x14002a39b
xor ecx, ecx
call fcn.140022fcc
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 0x14002d070
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140022bf4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002d111
cmp ebx, dword [rsp + 0x30]
je 0x14002d10a
test esi, esi
je 0x14002d10a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d0e5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d0f2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d0cf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d0f6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d113
mov eax, 1
jmp 0x14002d113
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fe4c
Capabilities:
Get file size

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