joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402804b0
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
vzeroupper
lea rbp, [rsp + 0xb0]
vxorps xmm4, xmm4, xmm4
vmovdqa xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
vxorps xmm0, xmm0, xmm0
vmovdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1402087c0
nop
mov rdx, qword [rbx]
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x88], rcx
mov qword [rbp - 0x90], rdx
mov r8d, esi
mov dword [rbp - 0x7c], r8d
mov r9d, edi
mov dword [rbp - 0x80], r9d
lea rcx, [rbp - 0x78]
call fcn.14000a8c0
mov rcx, qword [rbp - 0x88]
mov rdx, qword [rbp - 0x90]
mov r8d, dword [rbp - 0x7c]
mov r9d, dword [rbp - 0x80]
call sub.bcrypt.dll_BCryptHashData
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14000a910
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140280570
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.140208800
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1402dd9c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rbx, [0x140444ea0]
cmp qword [rbx - 8], 0
jne 0x1402ddaf4
imul esi, dword [rbx + 4], 0x32
test esi, esi
jl 0x1402ddb0f
mov rax, qword gs:[0x58]
mov ecx, dword [0x1406f3a98]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rax + rcx*8]
mov rcx, rdx
mov rdi, qword [rcx]
test rdi, rdi
je 0x1402ddafe
mov rcx, qword [rdi + 0xf8]
test rcx, rcx
jne 0x1402dda20
call fcn.14022c8b0
mov rcx, rax
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
mov r9, rdx
shl r9, 0x11
xor r8, rax
xor r10, rdx
lea r11, [rdx + rdx*4]
rol r11, 7
lea r11, [r11 + r11*8]
xor rdx, r8
xor rax, r10
xor r8, r9
rol r10, 0x2d
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x20], r10
mov r8d, esi
shr r11, 0x20
mov r10d, r11d
imul r10, r8
mov r9d, r10d
cmp r9d, esi
jae 0x1402ddae2
mov eax, esi
neg eax
xor edx, edx
div esi
cmp r9d, edx
jae 0x1402ddae2
mov r10, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
mov r11, qword [rcx + 0x20]
mov rbx, r9
shl rbx, 0x11
xor rax, r10
xor r11, r9
lea rdi, [r9 + r9*4]
rol rdi, 7
lea rsi, [rdi + rdi*8]
xor r9, rax
xor r10, r11
xor rax, rbx
rol r11, 0x2d
mov qword [rcx + 8], r10
mov qword [rcx + 0x10], r9
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], r11
shr rsi, 0x20
mov r10d, esi
imul r10, r8
mov r9d, r10d
cmp r9d, edx
jb 0x1402dda89
shr r10, 0x20
mov eax, r10d
add eax, 0x64
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400012f2
jmp 0x1402dd9d9
lea rax, [0x140222380]
call rax
mov rdi, rax
jmp 0x1402dda0c
call fcn.1401b01f0
int3
Function at 0x1403a6ca0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
xor eax, eax
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x1403a6cdc
lea r10, [rdx + rax*8 + 0x10]
mov r10, qword [r10]
test r10, r10
je 0x1403a6cc2
mov r10d, dword [r10 + 0x14]
jmp 0x1403a6cc5
xor r10d, r10d
mov r9d, ecx
rol r9d, 0xd
add r9d, ecx
mov ecx, r9d
xor ecx, r10d
inc eax
cmp r8d, eax
jg 0x1403a6caf
mov eax, ecx
rol eax, 0xf
add eax, ecx
add rsp, 0x28
ret

Function at 0x1403ec540
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov esi, edx
xor edi, edi
mov ebp, dword [rbx + 8]
test ebp, ebp
jle 0x1403ec572
mov rcx, qword [rbx + rdi*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, esi
rol ecx, 0xd
add ecx, esi
mov esi, eax
xor esi, ecx
inc edi
cmp ebp, edi
jg 0x1403ec556
mov eax, esi
rol eax, 0xf
add eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
Function at 0x180001320
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov rsi, rdx
movsxd r8, r8d
lea rdx, [rsp + 0x20]
mov rdi, qword [rax + r8*8]
lea rbx, [rax + r8*8]
mov rcx, rbx
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x44]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rbx], rsi
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18003ea20
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x180002020
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, qword [0x18008dde8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x18000209c
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x18000209c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rsp + 0x20]
cmp rax, rdi
je 0x1800020b2
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
jne 0x180002060
mov r8, rsi
mov edx, 0xfffffffc
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rdx, qword [0x18008ddc8]
test rdx, rdx
je 0x1800020e1
mov rcx, qword [0x18008ddf0]
mov r8d, 8
call fcn.180001320
mov rdx, qword [0x18008dde0]
test rdx, rdx
je 0x1800020ff
mov rcx, qword [0x18008ddf0]
mov r8d, 0xd
call fcn.180001320
mov rdx, qword [0x18008de40]
mov r8d, 0x24
mov rcx, qword [0x18008e360]
call fcn.180001320
mov rdx, qword [0x18008de48]
mov r8d, 0xb
mov rcx, qword [0x18008e388]
call fcn.180001320
mov rdx, qword [0x18008de20]
mov r8d, 0x19
mov rcx, qword [0x18008e348]
call fcn.180001320
mov rbx, qword [0x18008de28]
lea rcx, str.Game.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 1
mov rdx, rbx
mov rcx, qword [rax + 0xcec558]
mov rcx, qword [rcx + 0xc0]
call fcn.180001320
cmp byte [0x18008bcf0], 0
je 0x18000218a
mov byte [0x18008bcf0], 0
mov rcx, qword [0x18008de00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18003ea20
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180003960
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800039bd
lea rbx, [0x180078d00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800039a4
cmp r10, 2
jb 0x1800039a4
cmp byte [r9], r8b
jne 0x1800039a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180003980
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800039ff
lea rbx, [0x180078d00]
cmp r8b, 0x23
jne 0x1800039e3
cmp byte [r9], r8b
jne 0x1800039e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800039d0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180003b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180003b5a
mov qword [r8], 0
lea rdx, [0x180078a60]
call fcn.180003a10
mov rbx, rax
test rax, rax
jne 0x180003b7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1800465c4
mov esi, eax
cmp eax, 0xffffffff
je 0x180003c48
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18004719c
test eax, eax
jne 0x180003c48
mov rcx, rbx
call fcn.1800465c4
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003c48
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18004719c
test eax, eax
jne 0x180003c48
cmp rdi, 0xffffffffffffffff
je 0x180003c48
mov rax, qword [0x18008de18]
test rax, rax
je 0x180003bea
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.18004fbc0
mov rsi, rax
test rax, rax
je 0x180003c48
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.18004a558
mov rcx, rbx
cmp rax, rdi
je 0x180003c36
call fcn.180046dfc
mov rax, qword [0x18008de18]
test rax, rax
je 0x180003c2c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.18004a2e4
jmp 0x180003c50
call fcn.180046dfc
test r14, r14
je 0x180003c43
mov qword [r14], rdi
mov rax, rsi
jmp 0x180003c52
mov rcx, rbx
call fcn.180046dfc
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180005920
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x180078d00]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x18008de18]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1c5c], ebx
jne 0x1800059ad
mov dword [rax + 0x1c60], ebx
cmp dword [rax + 0x1c98], ebx
jne 0x1800059bc
mov byte [rax + 0x1c9c], 1
cmp dword [rax + 0x1c44], ebx
jne 0x1800059d3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180014dc0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180009850
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800098a0
lea r11, [0x180078d00]
nop dword [rax]
cmp r9b, 0x23
jne 0x180009883
cmp byte [r8], r9b
jne 0x180009883
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180009870
mov rcx, qword [0x18008de18]
not eax
movsxd rdx, dword [rcx + 0x1bf0]
mov r9, qword [rcx + 0x1bf8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180009901
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800098f9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800098fc
mov rdx, r8
test rdx, rdx
jne 0x1800098d0
cmp r9, r10
je 0x180009910
cmp dword [r9], eax
jne 0x180009910
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180036450
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180036472
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800364ec
mov rdi, r14
mov rcx, rbx
call fcn.180038540
test rax, rax
jle 0x1800364c4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180069a90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800364dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800364e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180036486
sub r14, rdi
jmp 0x1800365cf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180036503
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180036505
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180036537
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180069a90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800365cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180036572
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800365ad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18004a558
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800365cc
cmp rbp, rax
ja 0x180036580
test rbp, rbp
je 0x1800365cc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18004a558
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180045eb4
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 0x180045eeb
call fcn.180051818
mov dword [rax], 0x16
call fcn.180045ce4
xor eax, eax
jmp 0x180045f79
mov rdx, r9
mov rcx, r8
call fcn.180045e50
mov rbx, rax
test rax, rax
je 0x180045f76
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180045d7c]
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 0x180045f63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18005178c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180045f4a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180045f59
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180055c00
jmp 0x180045f76
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180045f73
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 0x180046344
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.18003f660
sub rsp, rax
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800566f0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180046393
mov rax, rbp
jmp 0x18004649b
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 + 0x8d7f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180056980
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8d7f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180046497
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 0x180046497
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180056980
test rax, rax
js 0x180046497
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180046497
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180046489
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180046489
cmp byte [rcx], 0xd
jne 0x18004646f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004647e
cmp byte [rcx + 1], 0xa
jne 0x18004647e
inc rcx
jmp 0x18004647e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8b4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180046451
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004649b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003ea20
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 0x180056a2c
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, [0x18008d7f0]
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 0x180056a83
cmp word [rdx], r13w
jne 0x180056a83
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180056a88
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180056bad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180056bce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180056ac1
mov rdx, r9
mov word [rbx], cx
jmp 0x180056ae8
cmp r9, r8
jae 0x180056af8
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 0x180056aa2
jmp 0x180056bad
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 0x180056ba2
cmp dword [rsp + 0x80], esi
je 0x180056ba2
lea r8, [0x18008d7f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180056b7a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180056b4a
mov word [rbx], r13w
jmp 0x180056baa
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 0x180056b57
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180056baa
cmp word [rsp + 0x70], r13w
jne 0x180056b87
cmp rbx, r14
je 0x180056b44
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180056988
cmp word [rsp + 0x70], r13w
je 0x180056bad
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, [0x18008d7f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180056ba7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180056bad
Function at 0x180058f18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180058f2e
mov al, 1
jmp 0x180058f8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180058f3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180058f8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800618bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180058f8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180058f8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180058f8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180058f8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005e584
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 0x18005e5b4
xor eax, eax
jmp 0x18005e677
mov rbp, rbx
cmp word [rax], si
je 0x18005e5d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005e5c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005e5bc
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.18005cc9c
movsxd r14, eax
test eax, eax
jne 0x18005e617
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005e5ad
mov rcx, r14
call fcn.1800598b4
mov rdi, rax
test rax, rax
jne 0x18005e630
xor ecx, ecx
call fcn.180055c00
jmp 0x18005e60c
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.18005cc9c
test eax, eax
jne 0x18005e661
mov rcx, rdi
call fcn.180055c00
jmp 0x18005e66b
xor ecx, ecx
call fcn.180055c00
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 0x180060ed0
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.180054020
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 0x180060f71
cmp ebx, dword [rsp + 0x30]
je 0x180060f6a
test esi, esi
je 0x180060f6a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180060f45
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180060f52
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180060f2f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180060f56
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180060f73
mov eax, 1
jmp 0x180060f73
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800652b0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180056988
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180056988
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180065400
cmp rax, 0xffffffffffffffff
je 0x180065400
xor edi, edi
test rbp, rbp
jle 0x1800653ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180053bec
mov rbx, rax
test rax, rax
jne 0x180065338
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800653a1
mov edx, 0x8000
mov ecx, r14d
call fcn.180065134
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180058714
cmp eax, 0xffffffff
je 0x180065381
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180065348
mov edx, r15d
mov ecx, r14d
call fcn.180065134
jmp 0x1800653a1
cmp byte [rsi + 0x38], dil
je 0x180065398
cmp dword [rsi + 0x34], 5
jne 0x180065398
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800653a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180055c00
jmp 0x180065414
jns 0x180065414
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180056988
cmp rax, 0xffffffffffffffff
jne 0x1800653cc
cmp byte [rsi + 0x30], dil
je 0x180065414
mov edi, dword [rsi + 0x2c]
jmp 0x180065414
mov ecx, r14d
call fcn.1800618bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180065414
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180065414
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006540d
mov eax, dword [rsi + 0x2c]
jmp 0x180065412
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180056988
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800665e0
Capabilities:
Parse pe header

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