joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001490
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400590c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140001534
mov edi, dword [rsp + 0x38]
lea rcx, [rsp + 0x58]
mov ebx, dword [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [rsp + 0x30]
mov edx, ebx
mov ecx, dword [rsp + 0x34]
shl rdx, 0x20
shl rcx, 0x20
or rdx, rdi
or rcx, rax
movabs rax, 0x346dc5d63886594b
sub rcx, rdx
mul rcx
mov rsi, rdx
shr rsi, 0xb
jmp 0x140001536
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea r8, [rsp + 0x30]
xor edi, edi
mov rcx, rax
lea rdx, [0x1400436b0]
call fcn.1400236c0
lea r14, [0x14005a440]
test rax, rax
je 0x14000159e
mov qword [rsp + 0x80], rbp
mov rbx, r14
lea rbp, [0x14005a638]
cmp rbx, rbp
jge 0x140001596
mov qword [rbx], rax
lea r8, [rsp + 0x30]
lea rdx, [0x1400436b0]
xor ecx, ecx
add rbx, 8
inc edi
call fcn.1400236c0
test rax, rax
jne 0x140001570
mov rbp, qword [rsp + 0x80]
movsxd rax, edi
mov r8, rsi
mov rdx, r14
mov ecx, edi
mov qword [r14 + rax*8], 0
call fcn.140004f70
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001d590
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140004bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004c38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140004c38
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140004c25
nop
cmp rbx, rcx
jae 0x140004c38
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140004c10
cmp rbx, rcx
jae 0x140004c38
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140004c3a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007df0
Capabilities:
Resolve function by parsing pe exports

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 r14d, ecx
call fcn.140007f10
mov rdx, qword [rax + 0x18]
mov rbp, qword [rdx + 0x20]
mov r8, rbp
mov r9, qword [r8 + 0x20]
mov r8, qword [r8]
test r9, r9
je 0x140007ece
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x140007ece
lea r10, [r9 + rcx]
xor esi, esi
mov ecx, dword [r10 + 0xc]
add rcx, r9
mov dl, byte [rcx]
test dl, dl
je 0x140007e76
mov al, dl
cmp dl, 0x61
jl 0x140007e60
cmp al, 0x7a
jg 0x140007e60
sub al, 0x20
imul esi, esi, 0x8a
inc rcx
movsx eax, al
add esi, eax
mov al, byte [rcx]
mov dl, al
test al, al
jne 0x140007e55
mov ecx, dword [r10 + 0x20]
xor edx, edx
add rcx, r9
cmp dword [r10 + 0x18], edx
jbe 0x140007ece
mov ebx, dword [rcx]
xor edi, edi
add rbx, r9
mov r11b, byte [rbx]
test r11b, r11b
je 0x140007eba
mov al, r11b
cmp r11b, 0x61
jl 0x140007ea3
cmp al, 0x7a
jg 0x140007ea3
sub al, 0x20
imul edi, edi, 0x8a
inc rbx
movsx eax, al
add edi, eax
mov al, byte [rbx]
mov r11b, al
test al, al
jne 0x140007e97
lea eax, [rdi + rsi]
cmp r14d, eax
je 0x140007ef4
inc edx
add rcx, 4
cmp edx, dword [r10 + 0x18]
jb 0x140007e85
cmp r8, rbp
jne 0x140007e1c
xor eax, eax
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
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx r8d, word [rcx + rdx*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + r8*4]
add rax, r9
jmp 0x140007ed9
Function at 0x14000c920
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
xor eax, eax
mov r14d, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rcx]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000cae3
nop
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x14000c968
mov rax, qword [rcx]
call qword [rax + 0x20]
test rax, rax
jne 0x14000c977
call fcn.1400033f0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
nop
test rax, rax
je 0x14000cafa
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
or r14d, 1
mov dword [rsp + 0x60], r14d
mov r15, qword [rbx + 0x20]
movsxd r13, dword [r15 - 0x10]
lea ebp, [r13 + 4]
test ebp, ebp
js 0x14000cb05
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, ebp
or eax, ecx
jge 0x14000c9d1
mov edx, ebp
lea rcx, [rsp + 0x68]
call fcn.1400045e0
mov rdi, qword [rsp + 0x68]
lea rsi, [r13*2]
test rsi, rsi
je 0x14000ca0f
test rdi, rdi
je 0x14000c9ff
mov r8, rsi
mov rcx, rdi
test r15, r15
je 0x14000c9f8
mov rdx, r15
call fcn.14003f6b0
jmp 0x14000ca0f
xor edx, edx
call fcn.14003fd50
call fcn.140023c08
mov dword [rax], 0x16
call fcn.140023ae4
lea rax, [rsi + rdi]
test rax, rax
jne 0x14000ca2a
call fcn.140023c08
mov dword [rax], 0x16
call fcn.140023ae4
jmp 0x14000ca37
movabs rcx, 0x6b00610062002e
mov qword [rax], rcx
cmp ebp, dword [rdi - 0xc]
jg 0x14000cb05
mov dword [rdi - 0x10], ebp
xor ecx, ecx
mov word [rdi + r13*2 + 8], cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
and r14d, 0xfffffffe
mov dword [rsp + 0x60], r14d
lea rdx, [rdi - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000ca7c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test esi, esi
je 0x14000cadf
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14000caac
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14000caa7
cmp rbx, qword [rax + 0x10]
jne 0x14000caa7
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14000ca94
mov rbx, rax
jmp 0x14000cacf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14000cacf
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14000cac0
cmp rbx, qword [r12]
je 0x14000cae3
mov r14d, dword [rsp + 0x60]
jmp 0x14000c950
xor al, al
jmp 0x14000cae5
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002a90
nop
mov ecx, 0x80070057
call fcn.140002a90
int3
Function at 0x140013340
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
lea rdx, [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x14001349b
mov esi, r15d
cmp dword [rsp + 0x60], r15d
jle 0x140013492
mov r14, rax
mov rbp, 0xffffffffffffffff
mov rbx, qword [r14]
call fcn.1400033f0
mov rcx, rax
test rax, rax
je 0x140013525
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
test rbx, rbx
je 0x1400133dd
cmp rbx, 0x10000
jae 0x1400133c4
movzx edx, bx
lea rcx, [rsp + 0x68]
call fcn.140007210
jmp 0x1400133ee
mov r8, rbp
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400133d0
jmp 0x1400133e0
mov r8d, r15d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400048b0
nop
mov rbx, qword [rsp + 0x68]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14001351a
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140013421
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1400045e0
mov rbx, qword [rsp + 0x68]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140024408
cmp edi, dword [rbx - 0xc]
jg 0x14001351a
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r15w
mov rdx, qword [0x14005a718]
test rdx, rdx
je 0x140013469
cmp dword [rbx - 0x10], 0
jl 0x140013469
mov rcx, rbx
call fcn.14001ea78
test rax, rax
je 0x140013469
sub rax, rbx
sar rax, 1
test eax, eax
je 0x1400134ad
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013482
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc esi
add r14, 8
cmp esi, dword [rsp + 0x60]
jl 0x140013384
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r15d
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [0x14005a718]
mov r8d, dword [rax - 0x10]
mov r9d, dword [rbx - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call fcn.140004440
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140029d4c
mov r15d, eax
lea rdx, [rbx - 0x18]
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400134f9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140013492
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140013492
mov ecx, 0x80070057
call fcn.140002a90
nop
mov ecx, 0x80004005
call fcn.140002a90
int3
Function at 0x140015500
Capabilities:
Check if file exists
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, rcx
mov dword [rsp + 0x30], esi
mov rax, qword [rcx]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14001560b
nop dword [rax]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001556f
lea r8, str..bak
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140002620
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
or esi, 1
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14001556f
mov dil, 1
jmp 0x140015572
xor dil, dil
test sil, 1
je 0x14001559c
mov rdx, qword [rsp + 0x30]
and esi, 0xfffffffe
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001559c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
jne 0x140015684
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x1400155d8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], dil
jne 0x1400155d3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400155d3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400155c0
mov rbx, rax
jmp 0x1400155ff
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x1400155ff
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400155f0
mov rax, qword [r14]
cmp rbx, rax
jne 0x140015530
mov rbx, qword [rax]
cmp rbx, rax
je 0x140015684
mov rdx, qword [rbx + 0x20]
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14001569c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140015658
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140015653
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140015653
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140015640
mov rbx, rax
jmp 0x14001567f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14001567f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140015670
cmp rbx, qword [r14]
jne 0x140015613
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 1
jmp 0x140015686
Function at 0x140018880
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
mov dword [rsp + 0x70], ecx
lea rax, vtable.CUpdateWrapper.0
mov qword [r12], rax
mov qword [r12 + 8], rcx
lea rcx, [rsp + 0x80]
call fcn.140003c00
mov r15, rax
mov rcx, qword [rax]
mov rcx, qword [rcx - 0x18]
test rcx, rcx
je 0x1400188d4
mov rdx, qword [rcx]
call qword [rdx + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400188e5
call fcn.1400033f0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x140018acd
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov ecx, 1
mov dword [rsp + 0x70], ecx
lea r13, str.UpdateAssist.dll
mov rsi, 0xffffffffffffffff
mov rdi, rsi
nop word [rax + rax]
inc rdi
cmp word [r13 + rdi*2], 0
jne 0x140018920
mov r15, qword [r15]
movsxd r14, dword [r15 - 0x10]
lea ebp, [r14 + rdi]
test ebp, ebp
js 0x140018ac2
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x14001895c
mov edx, ebp
lea rcx, [rsp + 0x78]
call fcn.1400045e0
mov rbx, qword [rsp + 0x78]
add r14, r14
je 0x140018992
test rbx, rbx
je 0x140018982
mov r8, r14
mov rcx, rbx
test r15, r15
je 0x14001897b
mov rdx, r15
call fcn.14003f6b0
jmp 0x140018992
xor edx, edx
call fcn.14003fd50
call fcn.140023c08
mov dword [rax], 0x16
call fcn.140023ae4
movsxd r8, edi
add r8, r8
lea rcx, [r14 + rbx]
je 0x1400189bd
test rcx, rcx
jne 0x1400189b5
call fcn.140023c08
mov dword [rax], 0x16
call fcn.140023ae4
jmp 0x1400189bd
mov rdx, r13
call fcn.14003f6b0
cmp ebp, dword [rbx - 0xc]
jg 0x140018ac2
mov dword [rbx - 0x10], ebp
movsxd rax, ebp
xor ecx, ecx
mov word [rbx + rax*2], cx
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400189f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movsxd rcx, dword [rbx - 0x10]
lea r8d, [rcx - 1]
mov rax, qword [rsp + 0x78]
test r8d, r8d
js 0x140018a3b
cmp r8d, ecx
jg 0x140018ab7
movzx edx, word [rax + rcx*2 - 2]
cmp dx, 0x5c
je 0x140018a1f
cmp dx, 0x2f
jne 0x140018a3b
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x78]
call fcn.140004320
mov rcx, qword [rsp + 0x88]
jmp 0x140018a48
lea rcx, [rax - 0x18]
call fcn.140002eb0
lea rcx, [rax + 0x18]
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
lea rdx, [rbx - 0x18]
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140018a6d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x78]
test edi, edi
je 0x140018a8c
xor edx, edx
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [r12 + 8], rax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140018aa3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r12
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070057
call fcn.140002a90
nop
mov ecx, 0x80070057
call fcn.140002a90
nop
mov ecx, 0x80004005
call fcn.140002a90
int3
Function at 0x14001e4c8
Capabilities:
Parse pe header

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

Function at 0x14002d38c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002d3fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d3fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d3fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d3fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d3fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d3fb
cmp dword [rcx + 0xf8], 0
je 0x14002d3fb
mov ecx, ebx
call fcn.14002d4ac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002d288
nop
cmp dword [rbp + 0x20], 0
je 0x14002d449
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002d454
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002d38c

Function at 0x14002d590
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002d38c
Function at 0x140036fe4
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 0x14003706b
mov rsi, rbx
cmp word [rax], bp
je 0x14003702a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037014
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140037010
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003070c
mov rdi, rax
test rax, rax
je 0x140037058
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f6b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400306d0
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 0x14003a29c
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.1400301a4
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 0x14003a33d
cmp ebx, dword [rsp + 0x30]
je 0x14003a336
test esi, esi
je 0x14003a336
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003a311
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003a31e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003a2fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003a322
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003a33f
mov eax, 1
jmp 0x14003a33f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003f258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003f258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffffffffffff
mov r15, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
xor r8d, r8d
mov edx, 4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x14000120a
lea r8, str..text
xor r15d, r15d
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400011f8
cmp rax, 6
jne 0x140001190
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, 0x40
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call fcn.140015410
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140001170
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400014c0
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 0x140001521
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 0x1400014e0
mov ecx, dword [r9]
jmp 0x14000160b
cmp ecx, 0x4e0
jb 0x14000160b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001540
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001590
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 0x140002228
Capabilities:
Parse pe header

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