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

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov rbx, rcx
call fcn.180001fd0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x180002290
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1800022a9
call fcn.1800024f0
jmp 0x1800022b5
cmp eax, 0x4e0
jb 0x1800022b5
call fcn.180002400
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret
jmp 0x180002290
mov rcx, qword [rcx]
jmp 0x180002300

Function at 0x1800023c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1800022a9
call fcn.1800024f0
jmp 0x1800022b5
cmp eax, 0x4e0
jb 0x1800022b5
call fcn.180002400
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret
jmp 0x180002290
mov rcx, qword [rcx]
jmp 0x180002300

Function at 0x180002400
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
nop word [rax + rax]
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 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180002420
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 0x180002470
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
mov dword [r9], ebx
mov rbx, qword [rsp + 8]
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
ret
Function at 0x1800024f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x180002500
ret

Function at 0x180002560
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r10d, r10d
mov r11, rcx
test r9, r9
je 0x180002645
cmp r9, 0x40
jb 0x180002623
movsx eax, byte [rcx]
lea rcx, [rdx - 1]
add rcx, r9
movd xmm2, eax
lea rax, [r8 - 1]
punpcklbw xmm2, xmm2
add rax, r9
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
cmp rdx, rax
ja 0x1800025ad
cmp rcx, r8
jae 0x180002623
cmp rdx, r11
ja 0x1800025b7
cmp rcx, r11
jae 0x180002623
mov rcx, r9
mov qword [rsp + 0x10], rbx
and rcx, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rbx, r8
lea rax, [rdx + 0x10]
sub rbx, rdx
movdqu xmm0, xmmword [rbx + rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rbx + rax]
lea rax, [rax + 0x40]
xorps xmm0, xmm2
xorps xmm1, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [rbx + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm1
xorps xmm0, xmm2
movdqu xmm1, xmmword [rbx + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm0
xorps xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp r10, rcx
jb 0x1800025d1
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r10, r9
jae 0x180002645
sub r8, rdx
lea rax, [r10 + rdx]
sub r9, r10
nop dword [rax]
movzx ecx, byte [r8 + rax]
lea rax, [rax + 1]
xor cl, byte [r11]
mov byte [rax - 1], cl
sub r9, 1
jne 0x180002630
add rsp, 8
ret

Function at 0x180002af0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rcx + 4], edx
lea r10, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r9d, edx
lea r10, [r10 + 4]
shr r9d, 0x1e
xor edx, r9d
imul edx, r8d
add edx, eax
inc rax
mov dword [r10 - 4], edx
cmp rax, 0x270
jb 0x180002b00
mov dword [rcx], 0x270
ret

Function at 0x180008990
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, dl
xor eax, ecx
imul eax, eax, 0x1000193
ret
Function at 0x18000ce30
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x18000cfe8
cmp ecx, 0x7c
je 0x18000cfe8
cmp ecx, 0x29
jne 0x18000ce78
cmp dword [rbx + 0x1c], 0
jne 0x18000cfe8
test dword [rbx + 0x80], 0x10000000
je 0x18000d001
jmp 0x18000cfb8
cmp ecx, 0x2e
jne 0x18000ce8b
lea rcx, [rbx + 0x40]
call fcn.18000c6d0
jmp 0x18000cfc5
cmp ecx, 0x5c
jne 0x18000ceef
mov rcx, rbx
call fcn.180010610
test byte [rbx + 0x80], 0x80
je 0x18000cee2
movzx eax, byte [rbx + 0x78]
cmp al, 0x62
jne 0x18000cebf
lea rcx, [rbx + 0x40]
call fcn.18000cd50
mov rcx, rbx
call fcn.180010610
jmp 0x18000cfd5
cmp al, 0x42
jne 0x18000cee2
lea rcx, [rbx + 0x40]
call fcn.18000cd50
lea rcx, [rbx + 0x40]
call fcn.180010590
mov rcx, rbx
call fcn.180010610
jmp 0x18000cfd5
mov rcx, rbx
call fcn.18000d080
jmp 0x18000cfcd
cmp ecx, 0x5b
jne 0x18000cf1c
mov rcx, rbx
call fcn.180010610
mov rcx, rbx
call fcn.18000dc90
mov edx, 0x5d
mov r8d, 4
mov rcx, rbx
call fcn.18000f310
jmp 0x18000cfcd
cmp ecx, 0x28
jne 0x18000cf52
mov rcx, rbx
call fcn.180010610
mov rcx, rbx
call fcn.180011280
mov edx, 0x29
mov r8d, 5
mov rcx, rbx
movzx edi, al
call fcn.18000f310
test dil, dil
je 0x18000cfd5
jmp 0x18000cfcd
cmp ecx, 0x5e
jne 0x18000cf6a
lea rcx, [rbx + 0x40]
call fcn.18000c460
mov rcx, rbx
call fcn.180010610
jmp 0x18000cfd5
cmp ecx, 0x24
jne 0x18000cf82
lea rcx, [rbx + 0x40]
call fcn.18000c780
mov rcx, rbx
call fcn.180010610
jmp 0x18000cfd5
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x18000cff3
cmp ecx, 0x3f
je 0x18000cff3
cmp ecx, 0x7b
je 0x18000cff3
cmp ecx, 0x7d
jne 0x18000cfa7
test dword [rbx + 0x80], 0x10000000
je 0x18000d00f
jmp 0x18000cfb8
cmp ecx, 0x5d
jne 0x18000cfb8
test dword [rbx + 0x80], 0x10000000
je 0x18000d01d
movzx edx, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.18000c470
mov rcx, rbx
call fcn.180010610
mov rcx, rbx
call fcn.1800106c0
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
je 0x18000cfe8
cmp ecx, 0x7c
jne 0x18000ce54
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.18000f2c0
int3
mov edx, 5
mov rcx, rbx
call fcn.18000f2c0
int3
mov edx, 6
mov rcx, rbx
call fcn.18000f2c0
int3
mov edx, 4
mov rcx, rbx
call fcn.18000f2c0
int3
Function at 0x180016680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x180016691
mov ecx, edx
jmp 0x1800166da
mov ecx, 1
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rcx, rax
mov rdx, rbx
call 0x180016890
test rax, rax
jne 0x1800166f7
mov ecx, 3
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rcx, rax
mov rdx, rbx
call 0x180016890
test rax, rax
jne 0x1800166f7
mov ecx, 2
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x180016890
add rsp, 0x20
pop rbx
ret
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, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbp, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r12, rcx
add r13, rcx
cmp rdx, 0xffff
ja 0x1800168ef
sub bp, word [rdi + 0x10]
movzx eax, bp
cmp eax, dword [rdi + 0x14]
jae 0x18001691a
movzx eax, bp
mov eax, dword [r12 + rax*4]
add rax, rcx
jmp 0x18001691c
mov r15d, dword [rdi + 0x20]
xor ebx, ebx
add r15, rsi
cmp dword [rdi + 0x18], ebx
jbe 0x18001691a
nop dword [rax]
mov edx, dword [r15 + rbx*4]
mov rcx, rbp
add rdx, rsi
call 0x1800195e0
test eax, eax
je 0x180016939
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x180016900
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x18001691c

Function at 0x180016830
Capabilities:
Access peb ldr_data

Disassembly:
cmp qword [rcx + 0x30], 0
jne 0x18001684e
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x20]
jmp 0x180016852
mov rdx, qword [rcx + 0x10]
movups xmm0, xmmword [rdx - 0x10]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x50], xmm1
movsd xmm0, qword [rdx + 0x50]
movsd qword [rcx + 0x60], xmm0
mov rax, qword [rcx + 0x30]
ret
Function at 0x180016890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x180016691
mov ecx, edx
jmp 0x1800166da
mov ecx, 1
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rcx, rax
mov rdx, rbx
call 0x180016890
test rax, rax
jne 0x1800166f7
mov ecx, 3
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rcx, rax
mov rdx, rbx
call 0x180016890
test rax, rax
jne 0x1800166f7
mov ecx, 2
call fcn.180016790
mov rcx, rax
call fcn.180016700
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x180016890
add rsp, 0x20
pop rbx
ret
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, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbp, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r12, rcx
add r13, rcx
cmp rdx, 0xffff
ja 0x1800168ef
sub bp, word [rdi + 0x10]
movzx eax, bp
cmp eax, dword [rdi + 0x14]
jae 0x18001691a
movzx eax, bp
mov eax, dword [r12 + rax*4]
add rax, rcx
jmp 0x18001691c
mov r15d, dword [rdi + 0x20]
xor ebx, ebx
add r15, rsi
cmp dword [rdi + 0x18], ebx
jbe 0x18001691a
nop dword [rax]
mov edx, dword [r15 + rbx*4]
mov rcx, rbp
add rdx, rsi
call 0x1800195e0
test eax, eax
je 0x180016939
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x180016900
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x18001691c

Function at 0x180016950
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x180016994
nop word [rax + rax]
cmp qword [rax + 0x30], rcx
je 0x18001697f
mov rax, qword [rax]
test rax, rax
jne 0x180016970
ret
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
ret
Function at 0x180019190
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1800194ab
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov r15, r8
mov rbx, rdx
mov r12, rcx
test r8, r8
je 0x180019499
cmp qword [rsp + 0x120], 0
je 0x180019499
lea rax, [r8 + r9]
mov qword [rsp + 0x40], rax
mov r13d, 0x5a4d
mov r14d, 0x2000
cmp r15, qword [rsp + 0x40]
jae 0x180019499
mov r8d, 0x30
mov rsi, qword [rsp + 0x120]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x180019499
mov qword [rsp + 0x38], rsi
test dword [rsi + 0x28], 0x1020000
je 0x180019301
test byte [rsi + 0x24], 0x60
je 0x180019301
mov rcx, r15
call fcn.180018e00
test al, al
jne 0x180019301
mov rdi, r15
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsi + 0x18]
add rcx, r15
cmp rdi, rcx
jae 0x180019301
mov eax, dword [r12 + 8]
cmp eax, 4
jne 0x180019315
xor cl, cl
mov byte [rsp + 0x20], cl
xor eax, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x3c
jae 0x18001929e
cmp byte [rax + rdi], 0xff
jne 0x180019293
cmp byte [rax + rdi + 1], 0x25
jne 0x180019293
mov cl, 1
jmp 0x180019295
xor cl, cl
mov byte [rsp + 0x20], cl
add eax, 6
jmp 0x180019279
jmp 0x1800192d3
test cl, cl
je 0x180019491
mov qword [rbx], r15
mov rax, qword [rsi + 8]
mov qword [rbx + 0x18], rax
mov eax, dword [rsi + 0x10]
mov qword [rbx + 0x10], rax
mov eax, dword [rsi + 0x18]
mov dword [rbx + 0x20], eax
mov dword [rbx + 8], 4
mov rcx, rbx
call qword [r12]
mov r15, qword [rsi + 0x18]
add r15, qword [rsi]
mov qword [rsp + 0x110], r15
jmp 0x1800191ea
cmp eax, 3
jne 0x180019414
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x22]
call fcn.180018b20
movzx edx, byte [rsp + 0x100]
mov rcx, rax
call fcn.180016b40
mov r14, rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x22]
call fcn.180018bc0
movzx edx, byte [rsp + 0x100]
mov rcx, rax
call fcn.180017140
mov r10, rax
xor r9b, r9b
mov byte [rsp + 0x21], r9b
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r9b
jne 0x180019374
xor ecx, ecx
mov dword [rsp + 0x34], ecx
cmp ecx, r8d
jae 0x1800193ab
cmp byte [rcx + r10], 0x3f
je 0x18001939d
movzx eax, byte [rcx + rdi]
cmp byte [rcx + r14], al
je 0x18001939d
xor al, al
jmp 0x18001939f
mov al, 1
and r9b, al
mov byte [rsp + 0x21], r9b
inc ecx
jmp 0x18001937f
mov r14d, 0x2000
jmp 0x1800193e7
test r9b, r9b
je 0x180019491
mov qword [rbx], r15
mov rax, qword [rsi + 8]
mov qword [rbx + 0x18], rax
mov eax, dword [rsi + 0x10]
mov qword [rbx + 0x10], rax
mov eax, dword [rsi + 0x18]
mov dword [rbx + 0x20], eax
mov dword [rbx + 8], 3
jmp 0x1800192fa
cmp eax, 1
jne 0x180019491
cmp word [rdi], r13w
jne 0x180019461
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x180019461
test word [rax + rdi + 0x16], r14w
je 0x180019461
mov qword [rbx], r15
mov rax, qword [rsi + 8]
mov qword [rbx + 0x18], rax
mov eax, dword [rsi + 0x10]
mov qword [rbx + 0x10], rax
mov eax, dword [rsi + 0x18]
mov dword [rbx + 0x20], eax
mov dword [rbx + 8], 1
mov rax, qword [r12]
mov rcx, rbx
call rax
jmp 0x180019301
jmp 0x180019491
inc rdi
jmp 0x18001924e
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180020ba0
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 0x180020c0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180020c0f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180020c0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180020c0f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180020c0f
cmp dword [rcx + 0x84], 0xe
jbe 0x180020c0f
cmp dword [rcx + 0xf8], 0
je 0x180020c0f
mov ecx, ebx
call fcn.180020cb4
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.180020aa8
nop
cmp dword [rbp + 0x20], 0
jne 0x180020c70
call fcn.180025a6c
cmp eax, 1
jne 0x180020c60
xor dl, dl
jmp 0x180020c6a
call fcn.180025a38
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180020c7b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180020c84
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180020ba0

Function at 0x180021fd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180053050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x180022035
test rax, rax
jne 0x180022023
lea r9, str.GetLocaleInfoEx
lea r8, [0x180039998]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180021ca4
test rax, rax
je 0x180022035
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180034c40
jmp 0x18002204f
xor edx, edx
mov rcx, rbp
call fcn.1800222c0
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180027538
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 0x180027568
xor eax, eax
jmp 0x18002762b
mov rbp, rbx
cmp word [rax], si
je 0x18002758d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180027574
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180027570
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.180027458
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800275ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180027561
call fcn.180024900
mov rdi, rax
test rax, rax
jne 0x1800275e4
xor ecx, ecx
call fcn.180024500
jmp 0x1800275c3
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.180027458
test eax, eax
jne 0x180027615
mov rcx, rdi
call fcn.180024500
jmp 0x18002761f
xor ecx, ecx
call fcn.180024500
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 0x18002aeec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18002af5f
cmp word [rcx], si
je 0x18002af5f
lea rdx, [0x18003ee20]
call fcn.18002debc
test eax, eax
je 0x18002af5f
lea rdx, [0x18003ee38]
mov rcx, rbx
call fcn.18002debc
test eax, eax
jne 0x18002af55
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002af7c
mov eax, dword [rsp + 0x30]
jmp 0x18002af8e
mov rcx, rbx
call fcn.1800219bc
jmp 0x18002af8e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18002af80
xor eax, eax
jmp 0x18002af8e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18002af8e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002afa0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180022a18
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002b043
cmp edi, dword [rsp + 0x30]
je 0x18002b03c
test ebp, ebp
je 0x18002b03c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18002b018
sub dx, 0x61
cmp dx, 0x19
ja 0x18002b024
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18002b005
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18002b028
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18002b045
mov eax, 1
jmp 0x18002b045
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002b664
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002b67a
mov al, 1
jmp 0x18002b6e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002b68b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18002b6e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002bac4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002b6e4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002b6e4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002b6e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18002b6e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002e4b8
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
xor edi, edi
mov rax, r15
lea rcx, [0x18004ced0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18002e50e
cmp word [rdx], r9w
jne 0x18002e50e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18002e513
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18002e692
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18002e65d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18002e55b
cmp rcx, r8
jae 0x18002e57b
cmp word [rcx], r9w
jne 0x18002e55b
add rax, 4
mov edx, r9d
jmp 0x18002e55e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18002e530
jmp 0x18002e692
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002e656
cmp dword [rsp + 0x80], edi
je 0x18002e656
lea r9, [0x18004ced0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18002e630
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18002e5e3
mov word [rbx], bp
jmp 0x18002e68f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18002e5fe
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18002e68f
cmp word [rsp + 0x70], bp
jne 0x18002e63c
cmp rbx, rsi
je 0x18002e5db
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002e330
cmp word [rsp + 0x70], bp
je 0x18002e692
mov word [rbx], 0xd
jmp 0x18002e68f
mov rcx, r15
lea r9, [0x18004ced0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18002e68c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18002e692
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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