joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042440
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x140042470
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x1400424f2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400424be
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x1400424c6
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140042465
mov qword [rsp + 8], 0xe3
jmp 0x14004250a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140042591
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14004255b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x140042563
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400424fd
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x1400425e5
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x1400425ed
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x140042640
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140042661
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400426e5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x1400426b0
mov dword [rsp + 4], 0x9908b0df
jmp 0x1400426b8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140042654
add rsp, 0x18
ret
Function at 0x140052ad0
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Set console window title

Disassembly:
push rdi
mov eax, 0x1470
call fcn.14007a230
sub rsp, rax
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x1460], rax
lea rcx, [rsp + 0xa0]
call fcn.1400046a0
mov edx, eax
lea rcx, [rsp + 0xd0]
call fcn.140038d30
mov r8d, 0x33
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.14000ddb0
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x20]
movzx r8d, byte [rsp + 0x21]
movzx edx, byte [rsp + 0x22]
lea rcx, [rsp + 0x70]
call fcn.140037420
mov rcx, rax
call fcn.14004e4a0
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140002510
nop
mov byte [rsp + 0x28], 0x61
mov byte [rsp + 0x29], 0x62
mov byte [rsp + 0x2a], 0x63
mov byte [rsp + 0x2b], 0x64
mov byte [rsp + 0x2c], 0x65
mov byte [rsp + 0x2d], 0x66
mov byte [rsp + 0x2e], 0x67
mov byte [rsp + 0x2f], 0x68
mov byte [rsp + 0x30], 0x69
mov byte [rsp + 0x31], 0x6a
mov byte [rsp + 0x32], 0x6b
mov byte [rsp + 0x33], 0x6c
mov byte [rsp + 0x34], 0x6d
mov byte [rsp + 0x35], 0x6e
mov byte [rsp + 0x36], 0x6f
mov byte [rsp + 0x37], 0x70
mov byte [rsp + 0x38], 0x71
mov byte [rsp + 0x39], 0x72
mov byte [rsp + 0x3a], 0x73
mov byte [rsp + 0x3b], 0x74
mov byte [rsp + 0x3c], 0x75
mov byte [rsp + 0x3d], 0x76
mov byte [rsp + 0x3e], 0x77
mov byte [rsp + 0x3f], 0x78
mov byte [rsp + 0x40], 0x79
mov byte [rsp + 0x41], 0x7a
mov byte [rsp + 0x42], 0x41
mov byte [rsp + 0x43], 0x42
mov byte [rsp + 0x44], 0x43
mov byte [rsp + 0x45], 0x44
mov byte [rsp + 0x46], 0x45
mov byte [rsp + 0x47], 0x46
mov byte [rsp + 0x48], 0x47
mov byte [rsp + 0x49], 0x48
mov byte [rsp + 0x4a], 0x49
mov byte [rsp + 0x4b], 0x4a
mov byte [rsp + 0x4c], 0x4b
mov byte [rsp + 0x4d], 0x4c
mov byte [rsp + 0x4e], 0x4d
mov byte [rsp + 0x4f], 0x4e
mov byte [rsp + 0x50], 0x4f
mov byte [rsp + 0x51], 0x50
mov byte [rsp + 0x52], 0x51
mov byte [rsp + 0x53], 0x52
mov byte [rsp + 0x54], 0x53
mov byte [rsp + 0x55], 0x54
mov byte [rsp + 0x56], 0x55
mov byte [rsp + 0x57], 0x56
mov byte [rsp + 0x58], 0x57
mov byte [rsp + 0x59], 0x58
mov byte [rsp + 0x5a], 0x59
mov byte [rsp + 0x5b], 0x5a
mov dword [rsp + 0x60], 0
jmp 0x140052ca1
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xf
jge 0x140052d16
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa8]
call fcn.140032ad0
cdqe
movzx r8d, byte [rsp + rax + 0x28]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
call fcn.140032a10
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.140004e00
lea rcx, [rsp + 0x80]
call fcn.1400024b0
lea rcx, [rsp + 0xb0]
call fcn.1400024a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x140052c97
lea rcx, [rsp + 0xb0]
call fcn.1400024b0
mov rcx, qword [rsp + 0x1460]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x1470
pop rdi
ret
Function at 0x140053c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140053c84
xor eax, eax
jmp 0x140053e7a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140053cb5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140053e90
jmp 0x140053e7a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140040fa0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140053d63
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140027570
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140051c00
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.1400298b0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140051ad0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140053e6a
mov rcx, qword [rsp + 0x80]
call fcn.140042770
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140053e18
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14008e31c
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140053e13
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140053e7a
jmp 0x140053d8f
cmp qword [rsp + 0x50], 0
jbe 0x140053e6a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14008e31c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x78
ret
Function at 0x140056b20
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140027870
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140027800
lea rcx, [rsp + 0x30]
call fcn.140027910
movzx eax, al
test eax, eax
je 0x140056bb7
lea rcx, [rsp + 0x30]
call fcn.14002a730
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x140056bb7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14002a670
mov rcx, rax
call fcn.140027330
cmp eax, 0xfaba0065
jne 0x140056bb5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140028d60
jmp 0x140056bce
jmp 0x140056b6f
lea rcx, [rsp + 0x28]
call fcn.14002a6b0
movzx eax, al
test eax, eax
jne 0x140056b3d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x58
ret

Function at 0x140056d60
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140027870
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140027800
lea rcx, [rsp + 0x30]
call fcn.140027910
movzx eax, al
test eax, eax
je 0x140056df7
lea rcx, [rsp + 0x30]
call fcn.14002a730
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x140056df7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14002a670
mov rcx, rax
call fcn.140027330
cmp eax, 0xf8f45725
jne 0x140056df5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140028d60
jmp 0x140056e0e
jmp 0x140056daf
lea rcx, [rsp + 0x28]
call fcn.14002a6b0
movzx eax, al
test eax, eax
jne 0x140056d7d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x58
ret

Function at 0x140057060
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140027870
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140027800
lea rcx, [rsp + 0x30]
call fcn.140027910
movzx eax, al
test eax, eax
je 0x1400570f7
lea rcx, [rsp + 0x30]
call fcn.14002a730
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x1400570f7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14002a670
mov rcx, rax
call fcn.140027330
cmp eax, 0xbdcac9ce
jne 0x1400570f5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140028d60
jmp 0x14005710e
jmp 0x1400570af
lea rcx, [rsp + 0x28]
call fcn.14002a6b0
movzx eax, al
test eax, eax
jne 0x14005707d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x58
ret
Function at 0x140072f10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov r10, qword [rsp + 0x40]
xor ecx, ecx
mov r11, rdx
test r10, r10
je 0x140073090
cmp r10, 0x40
jb 0x140073058
mov qword [rsp + 0x20], rbx
lea rdx, [r8 - 1]
lea rbx, [r10 - 1]
add rdx, r10
add rbx, r11
cmp r8, rbx
ja 0x140072f52
cmp rdx, r11
jae 0x140073053
lea rax, [r9 - 1]
add rax, r10
cmp r8, rax
ja 0x140072f67
cmp rdx, r9
jae 0x140073053
cmp r11, rax
ja 0x140072f75
cmp rbx, r9
jae 0x140073053
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x10], rdi
mov rdi, r10
mov qword [rsp + 8], r14
and rdi, 0xffffffffffffffc0
mov qword [rsp], r15
mov rax, r9
lea rdx, [r8 + 0x10]
sub rax, r8
mov rsi, r9
sub rsi, r11
mov rbx, r11
sub rbx, r8
lea rbp, [rax + 0x10]
lea r14, [rax + 0x20]
lea r15, [rax - 0x10]
nop word [rax + rax]
movdqu xmm0, xmmword [rdx - 0x10]
lea rax, [rbx + rdx]
add rcx, 0x40
movdqu xmm1, xmmword [r15 + rdx]
lea rdx, [rdx + 0x40]
movdqu xmm2, xmmword [rax + rsi]
pxor xmm0, xmm1
movdqu xmmword [rdx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmmword [rbx + rdx - 0x50], xmm0
movdqu xmm0, xmmword [rdx - 0x40]
movdqu xmmword [rdx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx - 0x30]
movdqu xmm2, xmmword [r14 + rdx - 0x40]
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rdx + rbp - 0x40]
pxor xmm0, xmm1
movdqu xmmword [rbx + rdx - 0x30], xmm0
movdqu xmmword [rdx - 0x30], xmm1
movdqu xmm0, xmmword [rdx - 0x20]
movdqu xmmword [rdx - 0x20], xmm2
pxor xmm0, xmm2
movdqu xmmword [rbx + rdx - 0x20], xmm0
cmp rcx, rdi
jb 0x140072fc0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
cmp rcx, r10
jae 0x140073090
sub r9, r11
lea rax, [rcx + r8]
sub r11, r8
sub r10, rcx
nop word [rax + rax]
lea rdx, [rax + r11]
movzx r8d, byte [rdx + r9]
lea rax, [rax + 1]
movzx ecx, r8b
xor cl, byte [rax - 1]
mov byte [rdx], cl
mov byte [rax - 1], r8b
sub r10, 1
jne 0x140073070
add rsp, 0x18
ret
Function at 0x14007a8ec
Capabilities:
Parse pe header

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

Function at 0x140099e30
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140099c2c
Function at 0x1400a08c0
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.14007a230
sub rsp, rax
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009f22c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a090f
mov rax, rbp
jmp 0x1400a0a17
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 + 0x237630]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a19e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x237630]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a0a13
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 0x1400a0a13
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a19e0
test rax, rax
js 0x1400a0a13
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a0a13
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a0a05
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a0a05
cmp byte [rcx], 0xd
jne 0x1400a09eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a09fa
cmp byte [rcx + 1], 0xa
jne 0x1400a09fa
inc rcx
jmp 0x1400a09fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x230e50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a09cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a0a17
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140079bc0
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 0x1400a0c38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a0c4e
mov al, 1
jmp 0x1400a0cae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a0c5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a0cac
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a881c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a0cac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a0cac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a0cac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a0cae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a0d80
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, [0x140237630]
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 0x1400a0dd7
cmp word [rdx], r13w
jne 0x1400a0dd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a0ddc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a0f01
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a0f22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a0e15
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a0e3c
cmp r9, r8
jae 0x1400a0e4c
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 0x1400a0df6
jmp 0x1400a0f01
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 0x1400a0ef6
cmp dword [rsp + 0x80], esi
je 0x1400a0ef6
lea r8, [0x140237630]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a0ece
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a0e9e
mov word [rbx], r13w
jmp 0x1400a0efe
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 0x1400a0eab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a0efe
cmp word [rsp + 0x70], r13w
jne 0x1400a0edb
cmp rbx, r14
je 0x1400a0e98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a19e8
cmp word [rsp + 0x70], r13w
je 0x1400a0f01
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, [0x140237630]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a0efb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a0f01
Function at 0x1400a1cd0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a1cf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400895b0
or eax, 0xffffffff
jmp 0x1400a1cf2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400a76a8
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 0x1400a76d8
xor eax, eax
jmp 0x1400a779b
mov rbp, rbx
cmp word [rax], si
je 0x1400a76fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a76e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a76e0
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.1400a59bc
movsxd r14, eax
test eax, eax
jne 0x1400a773b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a76d1
mov rcx, r14
call fcn.1400a1be0
mov rdi, rax
test rax, rax
jne 0x1400a7754
xor ecx, ecx
call fcn.14009d184
jmp 0x1400a7730
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.1400a59bc
test eax, eax
jne 0x1400a7785
mov rcx, rdi
call fcn.14009d184
jmp 0x1400a778f
xor ecx, ecx
call fcn.14009d184
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 0x1400a77b8
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 0x1400a783f
mov rsi, rbx
cmp word [rax], bp
je 0x1400a77fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a77e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a77e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a1be0
mov rdi, rax
test rax, rax
je 0x1400a782c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b1190
mov rbp, rdi
xor ecx, ecx
call fcn.14009d184
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 0x1400aad70
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.14009ce24
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 0x1400aae11
cmp ebx, dword [rsp + 0x30]
je 0x1400aae0a
test esi, esi
je 0x1400aae0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400aade5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400aadf2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400aadcf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400aadf6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400aae13
mov eax, 1
jmp 0x1400aae13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret