joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403b2040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140045b80
cmp al, 0x25
jne 0x140045b74
cmp byte [r8 + 1], al
jne 0x140045b80
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140045b67
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140045cde
cmp byte [r8 + 1], dl
je 0x140045cde
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140045bbd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140045be5
sub dl, 0x61
cmp dl, 0x19
ja 0x140045bd7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140045be5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140045ba0
jmp 0x140045be8
inc r9
cmp r8, r9
jae 0x140045c1f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140045c14
bt rdx, rax
jb 0x140045c1a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140045c00
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.140003000
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140045c58
nop
inc rcx
cmp byte [rcx], 0x20
je 0x140045c50
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140045ccc
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x140045c78
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x140045cba
movss xmm2, dword [0x1403a7a6c]
cmp al, 0x39
ja 0x140045cba
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140045c94
cmp r8b, 0x2d
jne 0x140045cd9
xorps xmm1, xmmword [0x1403a81d0]
movaps xmm0, xmm1
jmp 0x140045ce1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140045ce1
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400803f0
add rsp, 0x90
pop rbx
ret
Function at 0x140046320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403b2040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140046360
cmp al, 0x25
jne 0x140046354
cmp byte [r8 + 1], al
jne 0x140046360
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140046347
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1400464b8
cmp byte [r8 + 1], dl
je 0x1400464b8
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004639d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1400463c5
sub dl, 0x61
cmp dl, 0x19
ja 0x1400463b7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1400463c5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140046380
jmp 0x1400463c8
inc r9
cmp r8, r9
jae 0x1400463ff
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1400463f4
bt rdx, rax
jb 0x1400463fa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1400463e0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140003000
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140046438
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140046430
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400464aa
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x140046458
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x140046498
movsd xmm2, qword [0x1403a79e8]
cmp al, 0x39
ja 0x140046498
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140046474
cmp r8b, 0x2d
jne 0x1400464b3
xorps xmm1, xmmword [0x1403a81c0]
movaps xmm0, xmm1
jmp 0x1400464bb
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400464bb
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400803f0
add rsp, 0x90
pop rbx
ret
Function at 0x140057a20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, ecx
lea rcx, [rdx + 0x20]
call fcn.1400579c0
mov rcx, qword [0x1403b4aa0]
mov r15, rax
lea rdx, [rax + 0x18]
call fcn.14007cfc0
mov rcx, qword [0x1403b4aa0]
mov rdi, rax
movzx r8d, al
add r8, 0x16
lea rdx, [rax + 0x16]
and r8d, 0x7f
mov r9, qword [rcx + 0x21]
shr rdx, 7
and edx, 7
add rdx, r9
lea rbx, [r9 + 0x7bbf72]
lea r14, [rbx + 8]
lea rdx, [rdx + r8*8]
add rdx, 0x391d900
call fcn.14007cfc0
movabs rcx, 0xca9752806442c016
mov rsi, rax
add rcx, rdi
xor rsi, rcx
xor rsi, rbx
cmp rbx, r14
jae 0x140057adb
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [0x1403b4aa0]
mov rdx, rbx
call fcn.14007cfc0
xor rsi, rax
add rbx, 8
cmp rbx, r14
jb 0x140057ac0
mov rcx, qword [0x1403b4aa0]
lea rdx, [r15 + 0x10]
xor ebp, esi
xor ebp, r14d
xor ebp, 0x9bbd3fe9
mov r8d, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp fcn.14007d180
Function at 0x1400810b4
Capabilities:
Parse pe header

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

Disassembly:
push rsi
sub rsp, 0x40
mov byte [rsp + 0x2f], 0x57
mov byte [rsp + 0x30], 0x7d
mov byte [rsp + 0x31], 0x52
mov byte [rsp + 0x32], 0x7c
mov byte [rsp + 0x33], 0x59
mov byte [rsp + 0x34], 0x7b
mov byte [rsp + 0x35], pe_nt_image_headers64
mov byte [rsp + 0x36], 0x6c
mov byte [rsp + 0x37], 0x6e
mov byte [rsp + 0x38], 0x7c
mov byte [rsp + 0x39], 0x7c
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], 0x77
mov byte [rsp + 0x3c], 0x53
mov byte [rsp + 0x3d], pe_nt_image_headers64
mov byte [rsp + 0x3e], 0x6b
mov byte [rsp + 0x3f], 0
add byte [rsp + 0x2f], 0xf7
add byte [rsp + 0x30], 0xf7
add byte [rsp + 0x31], 0xf7
add byte [rsp + 0x32], 0xf7
add byte [rsp + 0x33], 0xf7
add byte [rsp + 0x34], 0xf7
add byte [rsp + 0x35], 0xf7
add byte [rsp + 0x36], 0xf7
add byte [rsp + 0x37], 0xf7
add byte [rsp + 0x38], 0xf7
add byte [rsp + 0x39], 0xf7
add byte [rsp + 0x3a], 0xf7
add byte [rsp + 0x3b], 0xf7
add byte [rsp + 0x3c], 0xf7
add byte [rsp + 0x3d], 0xf7
add byte [rsp + 0x3e], 0xf7
mov byte [rsp + 0x25], 0x77
mov byte [rsp + 0x26], 0x7d
mov byte [rsp + 0x27], 0x6d
mov byte [rsp + 0x28], 0x75
mov byte [rsp + 0x29], 0x75
mov byte [rsp + 0x2a], 0x37
mov byte [rsp + 0x2b], 0x6d
mov byte [rsp + 0x2c], 0x75
mov byte [rsp + 0x2d], 0x75
mov byte [rsp + 0x2e], 0
add byte [rsp + 0x25], 0xf7
add byte [rsp + 0x26], 0xf7
add byte [rsp + 0x27], 0xf7
add byte [rsp + 0x28], 0xf7
add byte [rsp + 0x29], 0xf7
add byte [rsp + 0x2a], 0xf7
add byte [rsp + 0x2b], 0xf7
add byte [rsp + 0x2c], 0xf7
add byte [rsp + 0x2d], 0xf7
lea rcx, [rsp + 0x25]
lea rdx, [rsp + 0x2f]
call fcn.14002a820
test rax, rax
je 0x140029a7a
mov rsi, rax
call qword [0x1400adb98]
mov edx, 0xa
mov rcx, rax
call rsi
cmp eax, 0x125
sete al
jmp 0x140029a7c
xor eax, eax
add rsp, 0x40
pop rsi
ret
Function at 0x14003f370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1268
call fcn.14004fce0
sub rsp, rax
mov rsi, r9
mov edi, r8d
mov rbx, rdx
mov r15, rcx
lea r14, [rsp + 0x1060]
mov r8d, 0x200
mov rcx, r14
xor edx, edx
call fcn.140084fa0
mov dword [rsp + 0x40], 0x20
lea r8, [rsp + 0x44]
mov byte [rsp + 0x44], 0x7c
mov byte [rsp + 0x45], 0x7c
mov byte [rsp + 0x46], 0xe
mov byte [rsp + 0x47], 0x7c
mov byte [rsp + 0x48], 0x50
mov byte [rsp + 0x49], 0x49
mov byte [rsp + 0x4a], 0x50
mov byte [rsp + 0x4b], 0x45
mov byte [rsp + 0x4c], 0x7c
mov byte [rsp + 0x4d], 5
mov byte [rsp + 0x4e], 0x53
mov byte [rsp + 0x4f], 0
movzx eax, byte [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x44], cl
movzx eax, byte [rsp + 0x45]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x45], cl
movzx eax, byte [rsp + 0x46]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x46], cl
movzx eax, byte [rsp + 0x47]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x47], cl
movzx eax, byte [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x48], cl
movzx eax, byte [rsp + 0x49]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x49], cl
movzx eax, byte [rsp + 0x4a]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x4a], cl
movzx eax, byte [rsp + 0x4b]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x4b], cl
movzx eax, byte [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x4c], cl
movzx eax, byte [rsp + 0x4d]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x4d], cl
movzx eax, byte [rsp + 0x4e]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + 0x4e], cl
mov byte [rsp + 0x4f], 0
mov edx, 0x1ff
mov rcx, r14
mov r9, r15
call fcn.14003f550
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [0x1400adb70]
mov ebp, 1
cmp rax, 0xffffffffffffffff
je 0x14003f52f
mov r14, rax
lea rcx, [rsp + 0x48]
mov r8d, 0x1018
xor edx, edx
call fcn.140084fa0
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8d, edi
call fcn.14003f030
test eax, eax
jne 0x14003f52f
lea rdx, [rsp + 0x40]
mov r8d, 0x1020
mov rcx, rsi
call fcn.140084900
xor ebp, ebp
mov eax, ebp
add rsp, 0x1268
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14004b6d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14004b766
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14004b76d
mov r15, rsi
jmp 0x14004b72b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140084900
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14004b75e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b743
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x14004b700
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14004b75e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14004b72b
sub rsi, r15
jmp 0x14004b85a
xor esi, esi
jmp 0x14004b85a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b7c0
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14004b7c0
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140084900
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14004b7d1
jmp 0x14004b857
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14004b857
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14004b800
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x14004b833
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.140069d94
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14004b800
jmp 0x14004b857
test r14, r14
je 0x14004b854
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.140069d94
sub r14, rax
jmp 0x14004b857
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14004d100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x14005937c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140064e1f
call fcn.140067448
mov dword [rax], 0x16
call fcn.140067e2c
xor eax, eax
jmp 0x140064ead
mov rdx, r9
mov rcx, r8
call fcn.140064ed0
mov rbx, rax
test rax, rax
je 0x140064eaa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140064f34]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140064e97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140067488
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140064e7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140064e8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14006fd90
jmp 0x140064eaa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140064ea7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140065008
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140065150

Function at 0x140065150
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140065150
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 0x1400651bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400651bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400651bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400651bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400651bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400651bf
cmp dword [rcx + 0xf8], 0
je 0x1400651bf
mov ecx, ebx
call fcn.140065088
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.1400652e4
nop
cmp dword [rbp + 0x20], 0
je 0x14006520d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006511c
int3
Function at 0x140068928
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140068963
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140067488
call fcn.140067448
mov eax, dword [rax]
jmp 0x1400689da
cmp rdi, qword [rbx + 0x18]
ja 0x14006896f
mov qword [rbx + 0x20], rdi
jmp 0x1400689d8
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140068986
mov rcx, qword [rbx + 0x10]
call fcn.14006fd90
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14006fdcc
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x1400689da
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14006894d
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14006c850
Capabilities:
Parse pe header

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

Function at 0x140076cf4
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.14006fffc
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 0x140076d95
cmp ebx, dword [rsp + 0x30]
je 0x140076d8e
test esi, esi
je 0x140076d8e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140076d69
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140076d76
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140076d53
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140076d7a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140076d97
mov eax, 1
jmp 0x140076d97
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140077b80
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.14004fce0
sub rsp, rax
mov rax, qword [0x1400a7700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400742b4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140077bcf
mov rax, rbp
jmp 0x140077cd7
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 + 0xaf5a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400778b0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xaf5a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140077cd3
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 0x140077cd3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400778b0
test rax, rax
js 0x140077cd3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140077cd3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140077cc5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140077cc5
cmp byte [rcx], 0xd
jne 0x140077cab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140077cba
cmp byte [rcx + 1], 0xa
jne 0x140077cba
inc rcx
jmp 0x140077cba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa8200]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140077c8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140077cd7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400598b0
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 0x1400784dc
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 0x14007850c
xor eax, eax
jmp 0x1400785cf
mov rbp, rbx
cmp word [rax], si
je 0x140078531
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140078518
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140078514
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.14006febc
movsxd r14, eax
test eax, eax
jne 0x14007856f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140078505
mov rcx, r14
call fcn.14006fdcc
mov rdi, rax
test rax, rax
jne 0x140078588
xor ecx, ecx
call fcn.14006fd90
jmp 0x140078564
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.14006febc
test eax, eax
jne 0x1400785b9
mov rcx, rdi
call fcn.14006fd90
jmp 0x1400785c3
xor ecx, ecx
call fcn.14006fd90
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 0x140078f74
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140060378
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140078ffe
cmp byte [rbp - 0x21], r15b
je 0x140078ff9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140079034
call fcn.14007081c
test eax, eax
jne 0x140079020
cmp byte [rbp - 0x21], r15b
je 0x140079018
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140079034
cmp byte [rbp - 0x21], r15b
je 0x140079031
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140060414
test eax, eax
jne 0x1400790d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140060378
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140079073
cmp byte [rbp - 0x21], r15b
je 0x1400790a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400790a8
call fcn.14007081c
test eax, eax
jne 0x140079094
cmp byte [rbp - 0x21], r15b
je 0x14007908d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400790a8
cmp byte [rbp - 0x21], r15b
je 0x1400790a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140060414
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400790d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400790d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400790e5
mov rcx, rdi
call fcn.14006fd90
cmp byte [rbp + 0x3f], r15b
je 0x1400790f4
mov rcx, qword [rbp + 0x27]
call fcn.14006fd90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret