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

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, eax
and r10d, 7
je 0x180029151
cmp eax, r10d
jge 0x18002913f
call fcn.180022c20
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x10]
xor r8d, r8d
mov r9d, eax
test eax, eax
jle 0x180029192
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, cl
nop word [rax + rax]
shr ecx, 8
lea eax, [r9 - 8]
mov byte [rdx], r10b
lea rdx, [rdx + 1]
inc r8d
mov dword [rbx + 0x14], ecx
mov r9d, eax
movzx r10d, cl
test eax, eax
jg 0x180029170
mov dword [rbx + 0x10], eax
jns 0x1800291bf
mov edx, dword [0x1800b9350]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1800291f2
mov r8, qword [rbx + 8]
nop dword [rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1800291dc
xor dl, dl
jmp 0x1800291e5
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1800291d0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180029194
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180029267
mov edx, dword [0x1800b9350]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x180029281
mov rcx, rbx
call fcn.18002e550
test eax, eax
je 0x18002925a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.180085fd0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800470a0
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.180047070
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800472b0
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 0x1800472c9
call fcn.180047590
jmp 0x1800472d5
cmp eax, 0x4e0
jb 0x1800472d5
call fcn.1800474a0
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 0x1800472b0
mov rcx, qword [rcx]
jmp 0x180047320

Function at 0x180047460
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 0x1800472c9
call fcn.180047590
jmp 0x1800472d5
cmp eax, 0x4e0
jb 0x1800472d5
call fcn.1800474a0
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 0x1800472b0
mov rcx, qword [rcx]
jmp 0x180047320

Function at 0x1800474a0
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 0x1800474c0
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 0x180047510
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 0x180047590
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 0x1800475a0
ret

Function at 0x1800475e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r10d, r10d
mov r11, rcx
test r9, r9
je 0x1800476c5
cmp r9, 0x40
jb 0x1800476a3
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 0x18004762d
cmp rcx, r8
jae 0x1800476a3
cmp rdx, r11
ja 0x180047637
cmp rcx, r11
jae 0x1800476a3
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 0x180047651
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r10, r9
jae 0x1800476c5
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 0x1800476b0
add rsp, 8
ret

Function at 0x180047c50
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 0x180047c60
mov dword [rcx], 0x270
ret
Function at 0x18004c230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x18004c241
mov ecx, edx
jmp 0x18004c28a
mov ecx, 1
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rcx, rax
mov rdx, rbx
call 0x18004c440
test rax, rax
jne 0x18004c2a7
mov ecx, 3
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rcx, rax
mov rdx, rbx
call 0x18004c440
test rax, rax
jne 0x18004c2a7
mov ecx, 2
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x18004c440
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 0x18004c49f
sub bp, word [rdi + 0x10]
movzx eax, bp
cmp eax, dword [rdi + 0x14]
jae 0x18004c4ca
movzx eax, bp
mov eax, dword [r12 + rax*4]
add rax, rcx
jmp 0x18004c4cc
mov r15d, dword [rdi + 0x20]
xor ebx, ebx
add r15, rsi
cmp dword [rdi + 0x18], ebx
jbe 0x18004c4ca
nop dword [rax]
mov edx, dword [r15 + rbx*4]
mov rcx, rbp
add rdx, rsi
call 0x18005b7d0
test eax, eax
je 0x18004c4e9
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x18004c4b0
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 0x18004c4cc

Function at 0x18004c3e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp qword [rcx + 0x30], 0
jne 0x18004c3fe
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x20]
jmp 0x18004c402
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 0x18004c440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x18004c241
mov ecx, edx
jmp 0x18004c28a
mov ecx, 1
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rcx, rax
mov rdx, rbx
call 0x18004c440
test rax, rax
jne 0x18004c2a7
mov ecx, 3
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rcx, rax
mov rdx, rbx
call 0x18004c440
test rax, rax
jne 0x18004c2a7
mov ecx, 2
call fcn.18004c340
mov rcx, rax
call fcn.18004c2b0
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x18004c440
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 0x18004c49f
sub bp, word [rdi + 0x10]
movzx eax, bp
cmp eax, dword [rdi + 0x14]
jae 0x18004c4ca
movzx eax, bp
mov eax, dword [r12 + rax*4]
add rax, rcx
jmp 0x18004c4cc
mov r15d, dword [rdi + 0x20]
xor ebx, ebx
add r15, rsi
cmp dword [rdi + 0x18], ebx
jbe 0x18004c4ca
nop dword [rax]
mov edx, dword [r15 + rbx*4]
mov rcx, rbp
add rdx, rsi
call 0x18005b7d0
test eax, eax
je 0x18004c4e9
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x18004c4b0
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 0x18004c4cc

Function at 0x180053cb0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, dl
xor eax, ecx
imul eax, eax, 0x1000193
ret
Function at 0x1800571a0
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 0x180057358
cmp ecx, 0x7c
je 0x180057358
cmp ecx, 0x29
jne 0x1800571e8
cmp dword [rbx + 0x1c], 0
jne 0x180057358
test dword [rbx + 0x80], 0x10000000
je 0x180057371
jmp 0x180057328
cmp ecx, 0x2e
jne 0x1800571fb
lea rcx, [rbx + 0x40]
call fcn.180056ac0
jmp 0x180057335
cmp ecx, 0x5c
jne 0x18005725f
mov rcx, rbx
call fcn.18005a060
test byte [rbx + 0x80], 0x80
je 0x180057252
movzx eax, byte [rbx + 0x78]
cmp al, 0x62
jne 0x18005722f
lea rcx, [rbx + 0x40]
call fcn.180057140
mov rcx, rbx
call fcn.18005a060
jmp 0x180057345
cmp al, 0x42
jne 0x180057252
lea rcx, [rbx + 0x40]
call fcn.180057140
lea rcx, [rbx + 0x40]
call fcn.180059fe0
mov rcx, rbx
call fcn.18005a060
jmp 0x180057345
mov rcx, rbx
call fcn.1800573f0
jmp 0x18005733d
cmp ecx, 0x5b
jne 0x18005728c
mov rcx, rbx
call fcn.18005a060
mov rcx, rbx
call fcn.180057e50
mov edx, 0x5d
mov r8d, 4
mov rcx, rbx
call fcn.180059350
jmp 0x18005733d
cmp ecx, 0x28
jne 0x1800572c2
mov rcx, rbx
call fcn.18005a060
mov rcx, rbx
call fcn.18005aa30
mov edx, 0x29
mov r8d, 5
mov rcx, rbx
movzx edi, al
call fcn.180059350
test dil, dil
je 0x180057345
jmp 0x18005733d
cmp ecx, 0x5e
jne 0x1800572da
lea rcx, [rbx + 0x40]
call fcn.180056850
mov rcx, rbx
call fcn.18005a060
jmp 0x180057345
cmp ecx, 0x24
jne 0x1800572f2
lea rcx, [rbx + 0x40]
call fcn.180056b70
mov rcx, rbx
call fcn.18005a060
jmp 0x180057345
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x180057363
cmp ecx, 0x3f
je 0x180057363
cmp ecx, 0x7b
je 0x180057363
cmp ecx, 0x7d
jne 0x180057317
test dword [rbx + 0x80], 0x10000000
je 0x18005737f
jmp 0x180057328
cmp ecx, 0x5d
jne 0x180057328
test dword [rbx + 0x80], 0x10000000
je 0x18005738d
movzx edx, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.180056860
mov rcx, rbx
call fcn.18005a060
mov rcx, rbx
call fcn.18005a110
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
je 0x180057358
cmp ecx, 0x7c
jne 0x1800571c4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.180059300
int3
mov edx, 5
mov rcx, rbx
call fcn.180059300
int3
mov edx, 6
mov rcx, rbx
call fcn.180059300
int3
mov edx, 4
mov rcx, rbx
call fcn.180059300
int3
Function at 0x180061f9c
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 0x180061fd3
call fcn.180070a1c
mov dword [rax], 0x16
call fcn.180061db4
xor eax, eax
jmp 0x180062065
mov rdx, r9
mov rcx, r8
call fcn.180061f38
mov rbx, rax
test rax, rax
je 0x180062062
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x180061e6c]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18006204f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800709ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180062036
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180062045
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800742f0
jmp 0x180062062
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18006205f
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 0x18006d5f8
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.18005c270
sub rsp, rax
mov rax, qword [0x1800af380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180077d18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006d647
mov rax, rbp
jmp 0x18006d753
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb9f70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007a6c4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xb9f70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006d74f
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006d74f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007a6c4
test rax, rax
js 0x18006d74f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006d74f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006d741
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006d741
cmp byte [rcx], 0xd
jne 0x18006d727
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006d736
cmp byte [rcx + 1], 0xa
jne 0x18006d736
inc rcx
jmp 0x18006d736
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xaf7e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18006d709
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006d753
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005ba30
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 0x180071508
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 0x180071577
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180071577
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180071577
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180071577
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180071577
cmp dword [rcx + 0x84], 0xe
jbe 0x180071577
cmp dword [rcx + 0xf8], 0
je 0x180071577
mov ecx, ebx
call fcn.18007161c
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.180071410
nop
cmp dword [rbp + 0x20], 0
jne 0x1800715d8
call fcn.180074e14
cmp eax, 1
jne 0x1800715c8
xor dl, dl
jmp 0x1800715d2
call fcn.18007c5ac
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800715e3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800715ec
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180071508

Function at 0x180074778
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 [0x1800c2050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1800747dd
test rax, rax
jne 0x1800747cb
lea r9, str.GetLocaleInfoEx
lea r8, [0x18009bef8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1800743f0
test rax, rax
je 0x1800747dd
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180085ef0
jmp 0x1800747f7
xor edx, edx
mov rcx, rbp
call fcn.180074a68
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 0x180079858
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007986e
mov al, 1
jmp 0x1800798da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007987f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800798d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.180082890
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800798d8
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 0x1800798d8
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800798d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800798da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800799ac
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, [0x1800b9f70]
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 0x180079a02
cmp word [rdx], r9w
jne 0x180079a02
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180079a07
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180079b86
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x180079b51
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x180079a4f
cmp rcx, r8
jae 0x180079a6f
cmp word [rcx], r9w
jne 0x180079a4f
add rax, 4
mov edx, r9d
jmp 0x180079a52
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180079a24
jmp 0x180079b86
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 0x180079b4a
cmp dword [rsp + 0x80], edi
je 0x180079b4a
lea r9, [0x1800b9f70]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180079b24
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180079ad7
mov word [rbx], bp
jmp 0x180079b83
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 0x180079af2
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 0x180079b83
cmp word [rsp + 0x70], bp
jne 0x180079b30
cmp rbx, rsi
je 0x180079acf
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18007a6cc
cmp word [rsp + 0x70], bp
je 0x180079b86
mov word [rbx], 0xd
jmp 0x180079b83
mov rcx, r15
lea r9, [0x1800b9f70]
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 0x180079b80
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180079b86
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