joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024d0
Capabilities:
Get common file path
Map section object
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x420]
call fcn.14002c8d0
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x208
call fcn.14002c8d0
lea rdx, [rbp + 0x210]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x420]
mov r8d, 0x24
lea rdx, str.13bc55ff_b5f6_4255_9272_bb7df1435a
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, ebx
lea rcx, [rbp + 0x420]
mov rdx, rdi
call fcn.140006c60
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000267e
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x208
call fcn.14002c8d0
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r14
call fcn.140003790
mov edx, 0x104
lea rcx, [rbp]
call fcn.140012334
xor r15d, r15d
lea rbx, [rbp]
test rax, rax
lea rcx, [0x14002e660]
cmove rbx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.CreateProcessInternalW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400413d0], rax
test rax, rax
je 0x14000267e
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor ecx, ecx
mov qword [rsp + 0x60], r15
mov dword [rbp - 0xc], ecx
xor r9d, r9d
mov qword [rbp - 0x80], rcx
mov r8, r14
lea rcx, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x70], xmm0
call rax
test eax, eax
jne 0x1400026a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14002e688]
call fcn.140002770
xor al, al
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.14000b5a0
mov rbx, qword [rsp + 0x788]
add rsp, 0x740
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r15
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
je 0x1400026fa
cmp eax, 0x40000003
jne 0x14000267e
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14000267e
mov rcx, rdi
call fcn.140003b90
xor al, 1
lea r8, [rsp + 0x70]
movzx r9d, al
mov rdx, rbx
mov rcx, rdi
call fcn.140003bd0
test al, al
je 0x14000267e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140002680
Function at 0x1400027d0
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov ebx, ecx
cmp ecx, 2
jge 0x140002841
lea rcx, str.C:WINDOWS_system32csrss.exe
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, [0x14002e5fe]
xor ecx, ecx
call fcn.1400156a8
lea rdx, [0x14002e700]
lea rcx, [0x140041420]
call fcn.1400012e0
lea rdx, [0x14002e5fe]
lea rcx, [0x140041420]
call fcn.1400012e0
xor eax, eax
jmp 0x1400028de
xor edx, edx
mov qword [rsp + 0x260], rsi
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.14002c8d0
cmp ebx, 2
jle 0x140002866
mov rsi, qword [rdi + 0x10]
jmp 0x14000286b
lea rsi, [rsp + 0x30]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call fcn.140003210
mov rdi, rax
test rax, rax
je 0x1400028d1
mov rcx, rax
call fcn.140003b90
cmp ebx, 2
jg 0x1400028ac
xor al, 1
lea rcx, [rsp + 0x30]
movzx r8d, al
mov edx, 0x104
call fcn.140003770
mov r8d, dword [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
call fcn.1400024d0
mov rcx, rdi
movzx ebx, al
call fcn.140003750
neg bl
sbb eax, eax
neg eax
dec eax
jmp 0x1400028d6
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b5a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140003210
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
xor esi, esi
mov r14, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003268
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x58], rdi
mov rcx, rbx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400032b9
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x1400032c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003345
xor edx, edx
mov qword [rsp + 0x50], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov qword [r14], rdx
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x140003314
lea rdx, str.The_application_C:WINDOWS_system32csrss.exe_cannot_be_run_in_Win32.
lea rcx, [0x140041710]
call fcn.140002900
mov rcx, rax
call fcn.140002bc0
xor eax, eax
jmp 0x140003340
mov r8, qword [r14]
mov rdx, rsi
mov rcx, rbp
call fcn.14002c230
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140003770
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r8d, edx
mov rdx, rcx
lea rcx, str.The_application_C:WINDOWS_system32csrss.exe_cannot_be_run_in_Win32.
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov al, 1
add rsp, 0x28
ret

Function at 0x140003b30
Capabilities:
Parse pe header

Disassembly:
mov edx, 0x5a4d
test rcx, rcx
je 0x140003b82
cmp word [rcx], dx
jne 0x140003b5e
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b5e
cmp dword [rax + rcx], 0x4550
jne 0x140003b5e
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov eax, dword [rax + 0x28]
ret
test rcx, rcx
je 0x140003b82
cmp word [rcx], dx
jne 0x140003b82
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b82
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140003b82
mov eax, dword [rax + 0x28]
ret
xor eax, eax
ret

Function at 0x140003b90
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140003bc2
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003bc2
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003bc2
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140003bc2
mov ecx, 0x20b
cmp word [rax + 0x18], cx
sete al
ret
xor al, al
ret
Function at 0x140006c60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor r14d, r14d
mov esi, r8d
mov qword [rsp + 0x30], r14
mov rbp, rdx
mov rdi, rcx
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.ktmw32.dll_CreateTransaction
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140006cc8
lea rdx, str.Failed_to_create_transaction_
lea rcx, [0x140041840]
call fcn.1400012e0
mov rcx, rax
call fcn.140004800
mov rax, rbx
jmp 0x140006e33
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov edx, 0xc0000000
mov qword [rsp + 0x30], r14
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_transacted_file:
lea rcx, [0x140041840]
mov ebx, eax
call fcn.1400012e0
mov rcx, rax
mov edx, ebx
call fcn.140004c30
mov rcx, rax
call fcn.140004800
mov rax, 0xffffffffffffffff
jmp 0x140006e33
lea r9, [rsp + 0x98]
mov dword [rsp + 0x98], r14d
mov r8d, esi
mov qword [rsp + 0x20], r14
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006d79
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_writing_payload__Error:
jmp 0x140006d16
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
mov qword [rsp + 0x50], r14
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x140006dd1
lea rdx, str.NtCreateSection_failed
lea rcx, [0x140041840]
call fcn.1400012e0
mov rcx, rax
call fcn.140004800
mov rax, 0xffffffffffffffff
jmp 0x140006e33
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call sub.ktmw32.dll_RollbackTransaction
test eax, eax
jne 0x140006e25
lea rdx, str.RollbackTransaction_failed:
lea rcx, [0x140041840]
call fcn.1400012e0
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
jmp 0x140006d29
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140008904
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008932
xor eax, eax
jmp 0x140008a18
cmp qword [rcx + 0x68], 0
je 0x140008943
call fcn.140008a34
jmp 0x140008a18
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000895a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000895c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000898e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002c230
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140008a12
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400089c5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400089ee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001689c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008a12
cmp rsi, rbx
ja 0x1400089cc
test rsi, rsi
je 0x140008a12
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001689c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000c1ac
Capabilities:
Parse pe header

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

Function at 0x140019aa4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400198a0
Function at 0x1400216dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000bab0
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ec00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002172b
mov rax, rbp
jmp 0x140021833
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x429a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400229c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x429a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002182f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002182f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400229c4
test rax, rax
js 0x14002182f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002182f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021821
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021821
cmp byte [rcx], 0xd
jne 0x140021807
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021816
cmp byte [rcx + 1], 0xa
jne 0x140021816
inc rcx
jmp 0x140021816
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x40470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400217e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021833
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b5a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140021b50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140021b66
mov al, 1
jmp 0x140021bc6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140021b77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021bc4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400256bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021bc4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021bc4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021bc4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140021bc6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021d64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400429a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140021dbb
cmp word [rdx], r13w
jne 0x140021dbb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021dc0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021ee5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021f06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021df9
mov rdx, r9
mov word [rbx], cx
jmp 0x140021e20
cmp r9, r8
jae 0x140021e30
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140021dda
jmp 0x140021ee5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021eda
cmp dword [rsp + 0x80], esi
je 0x140021eda
lea r8, [0x1400429a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021eb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021e82
mov word [rbx], r13w
jmp 0x140021ee2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140021e8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021ee2
cmp word [rsp + 0x70], r13w
jne 0x140021ebf
cmp rbx, r14
je 0x140021e7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400229cc
cmp word [rsp + 0x70], r13w
je 0x140021ee5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400429a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021edf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021ee5
Function at 0x140024eb4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140024f3b
mov rsi, rbx
cmp word [rax], bp
je 0x140024efa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140024ee4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140024ee0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d86c
mov rdi, rax
test rax, rax
je 0x140024f28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002c230
mov rbp, rdi
xor ecx, ecx
call fcn.14001cabc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027c10
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.14001c6e4
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 0x140027cb1
cmp ebx, dword [rsp + 0x30]
je 0x140027caa
test esi, esi
je 0x140027caa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140027c85
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140027c92
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140027c6f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140027c96
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140027cb3
mov eax, 1
jmp 0x140027cb3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002be60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002be88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002be88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002ec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x1400e1fc4], 0
lea rdi, [0x1400e1fc0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002f98
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002ef0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x140002fce
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002fb0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000300f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140002ff3
cmp byte [r8], r9b
jne 0x140002ff3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140002fe0
not eax
pop rdi
ret
Function at 0x140003210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140003229
mov qword [r8], 0
lea rdx, [0x1400c7b10]
call fcn.140003020
mov rbx, rax
test rax, rax
jne 0x140003248
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003308
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003308
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003308
mov rax, qword [0x1400e1a10]
mov rbp, rsi
test rax, rax
je 0x1400032a5
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003308
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1400032f5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400e1a10]
test rax, rax
je 0x1400032ea
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003311
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003303
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140003313
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012440
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x1400e1a10]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x14001255a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x14001249a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140013470
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x1400124ae
mov edx, 8
mov rcx, rbx
call fcn.140013470
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x1400124fa
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + reloc.WLDAP32.dll_Ordinal_32]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x1400124d0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140012509
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400c7b14]
test rax, rax
movsxd rsi, esi
lea rdi, [0x1400e1a08]
mov rcx, r15
cmovne rdi, rax
call fcn.140003020
mov rbx, rax
test rax, rax
je 0x140012555
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret