joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400469e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b30
add rax, 0x28
cmp rax, r9
jne 0x140002b70
xor eax, eax
ret

Function at 0x140002b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400469e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002baf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002bb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002baf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002c50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400469e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002c6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002c78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002d54
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140002dbb
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.140015cd0
mov rcx, rbx
test eax, eax
je 0x140002deb
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002d9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ac20
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002dca

Function at 0x140002df8
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140002e78
mov ebx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
test eax, eax
jne 0x140002e6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x140002e6d
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jne 0x140002e2f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ac20
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140003448
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x4060
call fcn.14000b520
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov rsi, r8
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov rcx, 0xffffffff80000001
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebp, ebp
test eax, eax
jne 0x140003513
mov edi, ebp
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov edx, edi
mov qword [rsp + 0x28], rbp
add edi, ebx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x3fff
mov byte [rsp + 0x50], bpl
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140003504
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14000c9d4
test rax, rax
je 0x14000349f
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
cmovne ebx, ebp
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x140003515
xor al, al
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.14000ac20
mov rbx, qword [rsp + 0x4080]
add rsp, 0x4060
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003538
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4070]
mov eax, 0x4170
call fcn.14000b520
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rbp + 0x4060], rax
mov r14, r8
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SYSTEMControlSet001Services_bamUserSettings
mov rcx, 0xffffffff80000002
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003678
xor edi, edi
xor esi, esi
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov edx, esi
mov byte [rsp + 0x60], 0
mov r9d, 0xff
inc esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x14000366e
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003678
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rbp + 0x60]
and qword [rsp + 0x28], 0
mov edx, edi
mov rcx, qword [rsp + 0x48]
inc edi
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x3fff
mov byte [rbp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x14000365e
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.14000c9d4
test rax, rax
je 0x1400035f6
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400035f6
xor bl, bl
jmp 0x1400035f6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400035a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x14000367a
xor al, al
mov rcx, qword [rbp + 0x4060]
xor rcx, rsp
call fcn.14000ac20
lea r11, [rsp + 0x4170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400036a4
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4070]
mov eax, 0x4170
call fcn.14000b520
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rbp + 0x4060], rax
mov rsi, r9
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionSearchRecentApps
mov rcx, 0xffffffff80000001
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r14d, r14d
test eax, eax
jne 0x1400037e5
mov edi, r14d
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov edx, edi
mov byte [rsp + 0x60], r14b
mov r9d, 0xff
inc edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x1400037db
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400037e5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, str.AppId
lea rax, [rbp + 0x60]
mov dword [rsp + 0x40], 0x3fff
mov qword [rsp + 0x28], rax
mov r9d, 0x10000006
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1400037cb
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.14000c9d4
test rax, rax
je 0x1400037cb
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
movzx ebx, bl
cmovne ebx, r14d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003712
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x1400037e7
xor al, al
mov rcx, qword [rbp + 0x4060]
xor rcx, rsp
call fcn.14000ac20
lea r11, [rsp + 0x4170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140009ce8
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 0x140009d16
xor eax, eax
jmp 0x140009dfc
cmp qword [rcx + 0x68], 0
je 0x140009d27
call fcn.140004fa8
jmp 0x140009dfc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009d3e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009d40
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009d72
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002bce0
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 0x140009df6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009da9
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 0x140009dd2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140017b60
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009df6
cmp rsi, rbx
ja 0x140009db0
test rsi, rsi
je 0x140009df6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140017b60
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 0x14000b980
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140011b38
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140015eff
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140015f33
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015f33
call fcn.14001d4a4
xor ebx, ebx
test eax, eax
jne 0x140015f21
cmp byte [rbp - 0x48], bl
je 0x140015f1a
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140015f33
cmp byte [rbp - 0x48], bl
je 0x140015f31
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140015d38
mov esi, eax
test eax, eax
je 0x140015f6f
call fcn.1400192fc
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140015fc8
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140015d38
mov edi, eax
test eax, eax
je 0x140015fab
call fcn.1400192fc
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140015fba
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14001f954
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140015fc8
mov rcx, qword [rbp - 0x50]
call fcn.14001d1a0
cmp byte [rbp - 8], bl
je 0x140015fd6
mov rcx, qword [rbp - 0x20]
call fcn.14001d1a0
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001a62c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a428
Function at 0x140021a84
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.14000b520
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f730
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021ad3
mov rax, rbp
jmp 0x140021bdb
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 + 0x41710]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022ba4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41710]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021bd7
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 0x140021bd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022ba4
test rax, rax
js 0x140021bd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021bd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021bc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021bc9
cmp byte [rcx], 0xd
jne 0x140021baf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021bbe
cmp byte [rcx + 1], 0xa
jne 0x140021bbe
inc rcx
jmp 0x140021bbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021b91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021bdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ac20
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 0x140021dfc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140021e12
mov al, 1
jmp 0x140021e72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140021e23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021e70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400255b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021e70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021e70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021e70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140021e72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021f44
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, [0x140041710]
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 0x140021f9b
cmp word [rdx], r13w
jne 0x140021f9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021fa0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400220c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400220e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021fd9
mov rdx, r9
mov word [rbx], cx
jmp 0x140022000
cmp r9, r8
jae 0x140022010
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 0x140021fba
jmp 0x1400220c5
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 0x1400220ba
cmp dword [rsp + 0x80], esi
je 0x1400220ba
lea r8, [0x140041710]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140022092
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140022062
mov word [rbx], r13w
jmp 0x1400220c2
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 0x14002206f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400220c2
cmp word [rsp + 0x70], r13w
jne 0x14002209f
cmp rbx, r14
je 0x14002205c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022bac
cmp word [rsp + 0x70], r13w
je 0x1400220c5
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, [0x140041710]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400220bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400220c5
Function at 0x140024da8
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 0x140024e2f
mov rsi, rbx
cmp word [rax], bp
je 0x140024dee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140024dd8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140024dd4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e5ac
mov rdi, rax
test rax, rax
je 0x140024e1c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002bce0
mov rbp, rdi
xor ecx, ecx
call fcn.14001d1a0
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 0x140027b04
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.14001ce40
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 0x140027ba5
cmp ebx, dword [rsp + 0x30]
je 0x140027b9e
test esi, esi
je 0x140027b9e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140027b79
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140027b86
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140027b63
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140027b8a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140027ba7
mov eax, 1
jmp 0x140027ba7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002b910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002b938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140e82e10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140e82e1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140e82e2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140e82e15
lea eax, [rcx + 1]
jmp 0x140e82e3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140e82e4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140e82e34
sub eax, 3
jb 0x140e82e6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140e82ebd
sar eax, 1
movsxd rbp, eax
jb 0x140e82ea4
jmp 0x140e82e7c
add ebx, ebx
jne 0x140e82e7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140e82ea4
inc ecx
add ebx, ebx
jne 0x140e82e8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140e82ea4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140e82e9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140e82e8c
add ecx, 2
jmp 0x140e82ea9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140e82dd2
jmp 0x140e82e1d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xe72000]
mov eax, dword [rdi]
or eax, eax
je 0x140e82f1d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe834ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140e82ecd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140e82f17
mov qword [rbx], rax
add rbx, 8
jmp 0x140e82eed
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140e82f61
cmp al, 0xef
ja 0x140e82f49
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140e82f29
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140e82f38
mov eax, dword [rdi]
add rdi, 4
jmp 0x140e82f38
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140e82fe0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140e82fe0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140e82fd0
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140039b40
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140039b75
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140039b50
and r10, 0xf
je 0x140039ba5
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x140039b80
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140039b99
mov rax, r8
repz ret

Function at 0x140039bb0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140039bed
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140039bc0
pxor xmm1, xmm1
and r10, 0xf
je 0x140039c23
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x140039bfb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140039c17
mov rax, r8
repz ret