joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800352c8
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180035322
mov r11b, 0x23
lea rdi, [0x18010e7d0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18003530c
cmp rdx, 2
jb 0x18003530c
cmp byte [r10], r11b
jne 0x18003530c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x1800352ea
jmp 0x180035363
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180035363
mov r11b, 0x23
lea rdi, [0x18010e7d0]
cmp dl, r11b
jne 0x180035347
cmp byte [r10], r11b
jne 0x180035347
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180035335
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18007c9f4
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov r10d, 1
imul eax, edx, 0x15b0
sub ebx, eax
test r8d, r8d
je 0x18007cae6
xor ecx, ecx
cmp ebx, 7
jbe 0x18007ca93
lea edx, [rcx + 7]
movzx eax, byte [r11]
add ecx, 8
add r10d, eax
add edx, 8
movzx eax, byte [r11 + 1]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 2]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 3]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 4]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 5]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 6]
add r9d, r10d
add r10d, eax
movzx eax, byte [r11 + 7]
add r9d, r10d
add r10d, eax
add r11, 8
add r9d, r10d
cmp edx, ebx
jb 0x18007ca2e
cmp ecx, ebx
jae 0x18007cab0
mov eax, ebx
sub eax, ecx
mov ecx, eax
movzx eax, byte [r11]
inc r11
add r10d, eax
add r9d, r10d
sub rcx, 1
jne 0x18007ca9d
mov eax, 0x80078071
mul r10d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r10d, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul ecx, edx, 0xffff000f
add r9d, ecx
sub r8d, ebx
mov ebx, 0x15b0
jne 0x18007ca24
mov rbx, qword [rsp + 8]
shl r9d, 0x10
lea eax, [r10 + r9]
ret
Function at 0x18007e1d4
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18007e1b0
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18007e20d
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x18007e45c
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x1800a6c78
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
lea rcx, [0x1800a6c08]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a6cc5
lea r8, [0x1800a6a7c]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [0x180147d68], rax
lea edx, [r9 + 6]
call qword [sym.imp.USER32.dll_PostMessageA]
add rsp, 0x20
pop rbx
ret

Function at 0x1800a8104
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1800a5b04
mov ecx, 1
mov rbx, rax
call fcn.1800a5bd4
mov rcx, rbx
call fcn.1800a5ba8
mov rcx, rax
mov edx, 1
call fcn.1800a5c5c
and qword [rsp + 0x28], 0
lea r9, [0x180000000]
and dword [rsp + 0x20], 0
lea r8, [0x1800a8178]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800a8162
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret

Function at 0x1800a8270
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.CS2____TripIt.cc
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x180130354]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
test eax, eax
jne 0x1800a82ba
call fcn.1800a8188
add rsp, 0x20
pop rbx
ret
Function at 0x1800a887c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r10d, 0x811c9dc5
mov al, byte [rdx]
test al, al
je 0x1800a88b2
mov r8, rdx
movzx eax, al
xor eax, r10d
imul r10d, eax, 0x1000193
inc r8
mov al, byte [r8]
test al, al
jne 0x1800a889b
mov dword [rsp + 0x40], r10d
lea rcx, [rsp + 0x40]
call fcn.1800211d4
mov rcx, qword [rdi + 0x30]
and rcx, rax
mov rdx, qword [rdi + 0x18]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8 + 8]
cmp rax, qword [rdi + 8]
je 0x1800a88f7
add rcx, rcx
mov rdx, qword [rdx + rcx*8]
jmp 0x1800a88ef
cmp rax, rdx
je 0x1800a88f7
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x1800a88e6
jmp 0x1800a88f9
xor eax, eax
test rax, rax
cmove rax, qword [rdi + 8]
cmp rax, qword [rdi + 8]
je 0x1800a8910
add rax, 0x18
jmp 0x1800a89aa
mov ecx, 0x38
call fcn.1800b29b8
mov qword [rsp + 0x48], rax
mov rdx, rbx
mov rcx, rax
call fcn.18000d524
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rcx, rax
call fcn.18000d5a0
test al, al
je 0x1800a8963
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800a8a84
mov rdi, qword [rax]
add rdi, 0x18
mov rbx, qword [rsp + 0x48]
jmp 0x1800a898d
mov ecx, dword [0x180147570]
mov rax, qword gs:[0x58]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x18014a404], eax
jg 0x1800a89b5
lea rdi, [0x180149380]
test rbx, rbx
je 0x1800a89a7
mov rcx, rbx
call fcn.18000d4c8
mov edx, 0x38
mov rcx, rbx
call fcn.1800b29a8
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x18014a404]
call fcn.1800b25c0
cmp dword [0x18014a404], 0xffffffff
jne 0x1800a8986
lea rcx, [0x1800b52a8]
call fcn.1800b2990
lea rcx, [0x18014a404]
call fcn.1800b2554
jmp 0x1800a8986

Function at 0x1800a89e8
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
mov rdx, r8
mov rdi, r9
call fcn.1800a887c
mov rcx, qword [rax]
test rcx, rcx
je 0x1800a8a2f
mov edx, 0x811c9dc5
jmp 0x1800a8a21
movzx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc rdi
mov al, byte [rdi]
test al, al
jne 0x1800a8a13
call fcn.18000d5d0
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ac460
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x38
and dword [rax + 8], 0
lea rdx, [rax + 8]
and dword [rax + 0xc], 0
lea rcx, str.Github
call fcn.180089cc0
test al, al
je 0x1800ac4ae
mov dword [rsp + 0x28], 0xa
lea r8, str.https:__github.com_control0forver_TripIt.cc_
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x1800b243c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800b2476
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800b247b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800b24c4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800d3c20]
cmp byte [rcx + rax], 0
je 0x1800b24c4
dec r8
sub rdx, 1
jne 0x1800b24aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004940
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140004adb
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140003ac0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140004aa4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140004a1e
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140004a93
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140004a5b
mov r10, qword [rdx]
cmp r10, rax
je 0x140004a55
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140004a93
cmp r9, rdx
je 0x140004a6f
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140004ab5
cmp r9, rdx
jne 0x140004a60
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400049d1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140004a93
lea rcx, str.invalid_hash_bucket_count
call fcn.14003d360
int3
Function at 0x140006980
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 0x1400069dd
lea rbx, [0x140073130]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400069c4
cmp r10, 2
jb 0x1400069c4
cmp byte [r9], r8b
jne 0x1400069c4
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 0x1400069a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140006a1f
lea rbx, [0x140073130]
cmp r8b, 0x23
jne 0x140006a03
cmp byte [r9], r8b
jne 0x140006a03
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 0x1400069f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140006b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140006b7a
mov qword [r8], 0
lea rdx, [0x140072ca0]
call fcn.140006a30
mov rbx, rax
test rax, rax
jne 0x140006b9a
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.1400451a4
mov esi, eax
cmp eax, 0xffffffff
je 0x140006c68
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140045c00
test eax, eax
jne 0x140006c68
mov rcx, rbx
call fcn.1400451a4
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140006c68
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140045c00
test eax, eax
jne 0x140006c68
cmp rdi, 0xffffffffffffffff
je 0x140006c68
mov rax, qword [0x140088ec0]
test rax, rax
je 0x140006c0a
inc dword [rax + 0xf4]
mov rcx, rdi
call fcn.14004ece0
mov rsi, rax
test rax, rax
je 0x140006c68
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400495e4
mov rcx, rbx
cmp rax, rdi
je 0x140006c56
call fcn.1400458f8
mov rax, qword [0x140088ec0]
test rax, rax
je 0x140006c4c
dec dword [rax + 0xf4]
mov rcx, rsi
call fcn.140049370
jmp 0x140006c70
call fcn.1400458f8
test r14, r14
je 0x140006c63
mov qword [r14], rdi
mov rax, rsi
jmp 0x140006c72
mov rcx, rbx
call fcn.1400458f8
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 0x140009e90
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x140073130]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f10], ebx
jne 0x140009f26
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001d280
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140016740
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140088ec0]
mov edi, ecx
cmp byte [rbx + 0x4a4d], 0
jne 0x1400167a1
cmp byte [rbx + 0x4a4e], 0
jne 0x1400167a1
movsx r9d, word [rbx + 0x5b72]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400067e0
test dil, 1
je 0x1400168cf
jmp 0x14001682a
movss xmm1, dword [rbx + 0x38c0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b72]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140078334]
mulss xmm1, dword [0x140078318]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47b8], rax
mov dword [rbx + 0x47a4], 1
movss dword [rbx + 0x47b0], xmm0
movss dword [rbx + 0x47b4], xmm1
movss xmm0, dword [rbx + 0x391c]
mulss xmm0, dword [0x14007827c]
or dword [rbx + 0x47a0], 0x41
movss dword [rbx + 0x4800], xmm0
call fcn.1400067e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140016880
lea r11, [0x140073130]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140016863
cmp byte [r8], r9b
jne 0x140016863
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140016850
not ecx
call fcn.14000daa0
test rax, rax
je 0x1400168cf
cmp byte [rax + 0xb6], 0
je 0x1400168cf
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5b72]
movsx r9d, word [rbx + 0x5b72]
call fcn.1400067e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000ff00
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003db30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001c000
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140088ec0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001c063
mov qword [rsp], rbx
lea rbx, [0x140073130]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001c043
cmp byte [r8], r9b
jne 0x14001c043
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001c030
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001c097
mov r10, qword [r10 + 0x5bd8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001c09e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001c084
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14003e9a8
Capabilities:
Parse pe header

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

Function at 0x140044fc0
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.140060af0
sub rsp, rax
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140051edc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004500f
mov rax, rbp
jmp 0x140045117
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 + 0x88870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005216c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x88870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140045113
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 0x140045113
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005216c
test rax, rax
js 0x140045113
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140045113
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140045105
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140045105
cmp byte [rcx], 0xd
jne 0x1400450eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400450fa
cmp byte [rcx + 1], 0xa
jne 0x1400450fa
inc rcx
jmp 0x1400450fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x86350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400450cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140045117
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003db30
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 0x14004f984
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 0x14004f9bb
call fcn.140052f58
mov dword [rax], 0x16
call fcn.140044bec
xor eax, eax
jmp 0x14004fa49
mov rdx, r9
mov rcx, r8
call fcn.14004f920
mov rbx, rax
test rax, rax
je 0x14004fa46
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004f84c]
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 0x14004fa33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052ecc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004fa1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004fa29
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140052ff0
jmp 0x14004fa46
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004fa43
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 0x14004fda0
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 0x14004fc0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004fc0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004fc0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004fc0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004fc0b
cmp dword [rcx + 0x84], 0xe
jbe 0x14004fc0b
cmp dword [rcx + 0xf8], 0
je 0x14004fc0b
mov ecx, ebx
call fcn.14004fcbc
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.14004fa98
nop
cmp dword [rbp + 0x20], 0
je 0x14004fc59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004fc64
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004fb9c
Function at 0x140052218
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, [0x140088870]
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 0x14005226f
cmp word [rdx], r13w
jne 0x14005226f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140052274
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140052399
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400523ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400522ad
mov rdx, r9
mov word [rbx], cx
jmp 0x1400522d4
cmp r9, r8
jae 0x1400522e4
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 0x14005228e
jmp 0x140052399
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 0x14005238e
cmp dword [rsp + 0x80], esi
je 0x14005238e
lea r8, [0x140088870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140052366
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140052336
mov word [rbx], r13w
jmp 0x140052396
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 0x140052343
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140052396
cmp word [rsp + 0x70], r13w
jne 0x140052373
cmp rbx, r14
je 0x140052330
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140052174
cmp word [rsp + 0x70], r13w
je 0x140052399
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, [0x140088870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140052393
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140052399
Function at 0x140056208
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005621e
mov al, 1
jmp 0x14005627e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005622f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005627c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005a6a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005627c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005627c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005627c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005627e
xor al, al
add rsp, 0x20
pop rbx
ret