joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800019a0
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rdx
movzx r10d, byte [rsp + 0x28]
mov byte [rcx], r10b
lea rax, [rcx + 0x44]
mov byte [rcx + 1], 0
mov rdi, rcx
mov dword [rcx + 4], 0x61707865
mov rbx, r8
mov dword [rcx + 8], 0x3320646e
mov dword [rcx + 0xc], 0x79622d32
mov dword [rcx + 0x10], 0x6b206574
movzx ecx, byte [rdx + 1]
movzx r10d, byte [rdx + 3]
movzx r8d, byte [rdx + 2]
shl r10d, 8
or r10d, r8d
shl r10d, 8
or r10d, ecx
movzx ecx, byte [rdx]
shl r10d, 8
or r10d, ecx
mov dword [rdi + 0x14], r10d
movzx edx, byte [rdx + 7]
movzx ecx, byte [r11 + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 4]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x18], edx
movzx ecx, byte [r11 + 0xa]
movzx edx, byte [r11 + 0xb]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 8]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x1c], edx
movzx ecx, byte [r11 + 0xe]
movzx edx, byte [r11 + 0xf]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0xd]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0xc]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x20], edx
movzx ecx, byte [r11 + 0x12]
movzx edx, byte [r11 + 0x13]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x10]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x24], edx
movzx ecx, byte [r11 + 0x16]
movzx edx, byte [r11 + 0x17]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x15]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x14]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x28], edx
movzx edx, byte [r11 + 0x1b]
movzx ecx, byte [r11 + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x19]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x18]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x2c], edx
movzx edx, byte [r11 + 0x1f]
movzx ecx, byte [r11 + 0x1e]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x1d]
shl edx, 8
or edx, ecx
movzx ecx, byte [r11 + 0x1c]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x30], edx
mov ecx, dword [r9]
mov dword [rdi + 0x34], ecx
movzx edx, byte [rbx + 3]
movzx ecx, byte [rbx + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x38], edx
movzx edx, byte [rbx + 7]
movzx ecx, byte [rbx + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 4]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x3c], edx
movzx edx, byte [rbx + 0xb]
movzx ecx, byte [rbx + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 8]
shl edx, 8
or edx, ecx
mov dword [rdi + 0x40], edx
mov edx, 0x10
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rax - 0x40]
mov dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x180001b90
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x180008ba0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x180008be4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180008bd0
ret
Function at 0x18000ffb0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
cmp byte [0x18008013a], 0
mov edx, 0x810
movsxd r8, dword [0x180082cd0]
mov rcx, qword [0x1800818d0]
sete al
movzx r9d, al
mov byte [0x18008013a], al
call qword [sym.imp.USER32.dll_SendMessageW]
cmp byte [0x180083368], 0
mov byte [0x18008014c], 1
je 0x18001004d
cmp byte [0x18008013a], 0
lea rcx, [0x180081920]
je 0x180010044
mov rax, qword [0x1800801a0]
movups xmm0, xmmword [rax]
movaps xmmword [0x1800819f0], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [0x180081a00], xmm1
movsd xmm0, qword [rax + 0x20]
mov rax, qword [0x180081920]
movsd qword [0x180081a10], xmm0
call qword [rax + 0x58]
lea rcx, [0x180081920]
add rsp, 0x28
jmp fcn.180030be0
add rsp, 0x28
jmp fcn.180030b20
add rsp, 0x28
ret
Function at 0x180010da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.180038830
sub rsp, rax
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
mov dword [rsp + 0x70], 0x70002d
mov dword [rsp + 0x74], 0x75006c
mov dword [rsp + 0x78], 0x690067
mov dword [rsp + 0x7c], 0x4d006e
mov dword [rbp - 0x80], 0x730065
mov dword [rbp - 0x7c], 0x610073
mov dword [rbp - 0x78], 0x650067
mov dword [rbp - 0x74], 0x63003d
mov dword [rbp - 0x70], 0x6d006f
mov dword [rbp - 0x6c], 0x610070
mov dword [rbp - 0x68], 0x650072
xor eax, eax
mov word [rbp - 0x64], ax
lea r9, [rbp + 0x1b0]
mov edx, 0x855
lea r8d, [rdx - 0x55]
mov rcx, qword [0x1800818d0]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0x17
jle 0x180010fe8
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x1b0]
call fcn.18003bf58
test rax, rax
je 0x180010fe8
lea rcx, [rbp + 0x1b0]
cmp rax, rcx
jne 0x180010e76
add rax, 0x2e
jmp 0x180010e7d
lea rax, [rbp + 0x1b0]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180013b40
nop
cmp qword [rsp + 0x40], 0
je 0x180010fd4
cmp qword [rsp + 0x60], 0
je 0x180010fd4
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea rax, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180010ed0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.1800089b0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea rax, [rbp - 0x60]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180010f10
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.1800089b0
lea rcx, [rsp + 0x30]
call fcn.180012030
test al, al
jne 0x180010f59
xor r9d, r9d
lea r8, [0x18005dc60]
lea rdx, str.Command_line_file_name_ambiguous__several_openned_files_with_that_name_._Compare_aborted._nEither_use_full_file_paths_or_add__nosession_option_to_command_line.
mov rcx, qword [0x1800818d0]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x180010fd4
lea rax, [0x180081b28]
mov qword [rsp + 0x20], rax
inc dword [0x180081b28]
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
xor r8d, r8d
mov edx, 0x80d
mov rcx, qword [0x1800818d0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov cl, 1
call fcn.1800190b0
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
xor r8d, r8d
mov edx, 0x80d
mov rcx, qword [0x1800818d0]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
dec dword [0x180081b28]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1800111b0
nop
lea rcx, [rsp + 0x50]
call fcn.180002df0
lea rcx, [rsp + 0x30]
call fcn.180002df0
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.180037cc0
mov rbx, qword [rsp + 0x12d0]
add rsp, 0x12c0
pop rbp
ret
Function at 0x1800154c0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
call int.180033020
mov rcx, qword [0x1800818d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x840
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov rdi, rax
call fcn.180033980
mov ecx, edi
call fcn.1800352b0
mov rdx, 0xffffffffffffffff
mov ecx, edx
mov r8, rdx
call fcn.180019f00
mov rdx, 0xffffffffffffffff
mov r8b, 1
mov ecx, edx
call fcn.180018a10
cmp dword [rbx], 0
je 0x18001555e
lea rax, [0x1800818f0]
movsxd rcx, edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7de
mov rcx, qword [rax + rcx*8]
call qword [0x1800818e8]
mov edx, 0x80
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180018280
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r9
movsxd rbp, edx
mov r15, rcx
mov rdx, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
cmp rsi, 1
jl 0x180018448
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 8], rax
je 0x1800182e2
cmp dword [rax - 0x34], r8d
jne 0x1800182e2
cmp byte [rax - 0x38], 0
jne 0x180018448
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x58], 0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x180018311
lock inc dword [rcx + 8]
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov eax, 0x20
mov ecx, 0x40
cmp r8d, eax
cmove eax, ecx
mov dword [rsp + 0x5c], eax
cmp byte [rsp + 0x100], 0
jne 0x180018400
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x7fef
mov r9, rsi
mov r8, rdi
mov edx, ebp
lea rcx, [rsp + 0x30]
call fcn.1800340c0
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18000dd70
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800183ba
mov rax, qword [rsp + 0x40]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800183b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018471
call fcn.180037d20
lea rcx, [0x1800818f0]
lea r14, [rcx + rbp*8]
add rdi, rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x86a
mov rcx, qword [r14]
call qword [0x1800818e8]
cmp rdi, rax
jge 0x18001840d
xor r9d, r9d
mov r8, rdi
mov edx, 0x7fe
mov rcx, qword [r14]
call qword [0x1800818e8]
and eax, 0x7fef
mov dword [rsp + 0x78], eax
jmp 0x18001840d
mov r8, rsi
mov rdx, rdi
mov ecx, ebp
call fcn.180033730
mov rdx, qword [r15 + 0x10]
lea r8, [rsp + 0x50]
lea rcx, [r15 + 8]
cmp rdx, qword [r15 + 0x18]
je 0x18001842c
call fcn.18000cf00
add qword [r15 + 0x10], 0x40
jmp 0x180018431
call fcn.18000c2b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r15], eax
lea rcx, [rsp + 0x50]
call fcn.18000dbb0
mov al, 1
jmp 0x18001844a
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180037cc0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180042a4c
nop
int3
Function at 0x180022e70
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 0x18002304f
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.1800214c0
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180023018
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x180022f8c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x180023007
mov rax, qword [r11 + 8]
mov r9, qword [rcx + 0x10]
cmp r9, qword [rax + 0x10]
jne 0x180022fc9
mov r10, qword [rax]
cmp r10, rcx
je 0x180022fc3
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x180023007
mov r8, rax
cmp r10, rax
je 0x180022fe3
mov rax, qword [rax + 8]
mov r8, rax
cmp r9, qword [rax + 0x10]
je 0x180023029
cmp r10, rax
jne 0x180022fd1
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x180022f10
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 [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x180023007
lea rcx, str.invalid_hash_bucket_count
call fcn.180039610
int3
Function at 0x18002c5e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp r8, r9
jge 0x18002c776
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rbx
mov rsi, r9
mov qword [rsp + 0x58], r12
mov rdi, r8
mov qword [rsp + 0x50], r13
mov r14, rdx
mov qword [rsp + 0x48], r15
xor r13d, r13d
mov r15, qword [rsp + 0xb0]
mov rbp, rcx
mov qword [rsp + 0x28], r8
cmp byte [r15 + 0xd], r13b
je 0x18002c658
mov rax, qword [rdx]
movzx ebx, word [rax + r9*2]
mov word [rax + r9*2], r13w
mov rax, qword [rdx]
lea rcx, [rax + r8*2]
call qword [sym.imp.USER32.dll_CharLowerW]
mov rax, qword [r14]
mov word [rax + rsi*2], bx
mov r12d, 0x20
nop
mov rax, qword [r14]
movzx ebx, word [rax + rdi*2]
cmp bx, r12w
je 0x18002c694
cmp bx, 9
je 0x18002c694
movzx ecx, bx
call qword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x18002c68d
cmp bx, 0x5f
je 0x18002c68d
mov eax, 2
jmp 0x18002c697
mov eax, 1
jmp 0x18002c697
mov eax, r13d
cmp byte [r15 + 0xb], r13b
je 0x18002c6a5
test eax, eax
je 0x18002c73b
cmp byte [r15 + 0xa], r13b
je 0x18002c70b
test eax, eax
jne 0x18002c70b
mov rdx, qword [rbp + 8]
mov word [rsp + 0x20], r12w
cmp rdx, qword [rbp + 0x10]
je 0x18002c6ce
mov word [rdx], r12w
mov qword [rdx + 8], rdi
add qword [rbp + 8], 0x10
jmp 0x18002c6e0
lea r9, [rsp + 0x28]
mov rcx, rbp
lea r8, [rsp + 0x20]
call fcn.18001c330
inc rdi
mov qword [rsp + 0x28], rdi
cmp rdi, rsi
jge 0x18002c709
mov rax, qword [r14]
movzx ecx, word [rax + rdi*2]
cmp cx, r12w
je 0x18002c6e0
cmp cx, 9
je 0x18002c6e0
call qword [sym.imp.USER32.dll_IsCharAlphaNumericW]
cmp rdi, rsi
je 0x18002c74c
mov rax, qword [r14]
mov rdx, qword [rbp + 8]
lea r8, [rax + rdi*2]
cmp rdx, qword [rbp + 0x10]
je 0x18002c72e
movzx eax, word [r8]
mov word [rdx], ax
mov qword [rdx + 8], rdi
add qword [rbp + 8], 0x10
jmp 0x18002c73b
lea r9, [rsp + 0x28]
mov rcx, rbp
call fcn.18001c330
inc rdi
mov qword [rsp + 0x28], rdi
cmp rdi, rsi
jl 0x18002c660
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002c7d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
cmp r8, r9
jge 0x18002c8b8
mov r15, qword [rsp + 0x60]
cmp byte [r15 + 0xd], 0
je 0x18002c831
mov rax, qword [rdx]
xor ecx, ecx
mov qword [rsp + 0x40], rdi
movzx edi, word [rax + r9*2]
mov word [rax + r9*2], cx
mov rax, qword [rdx]
lea rcx, [rax + r8*2]
call qword [sym.imp.USER32.dll_CharLowerW]
mov rax, qword [r14]
mov word [rax + rsi*2], di
mov rdi, qword [rsp + 0x40]
movzx edx, byte [r15 + 0xb]
movabs r8, 0x100000001b3
test dl, dl
je 0x18002c857
mov rax, qword [r14]
movzx ecx, word [rax + rbx*2]
cmp cx, 0x20
je 0x18002c8b0
cmp cx, 9
je 0x18002c8b0
cmp byte [r15 + 0xa], 0
je 0x18002c8a2
mov rcx, qword [r14]
movzx eax, word [rcx + rbx*2]
cmp ax, 0x20
je 0x18002c871
cmp ax, 9
jne 0x18002c8a2
xor rbp, 0x20
inc rbx
imul rbp, r8
cmp rbx, rsi
jge 0x18002c8a0
lea rax, [rcx + rbx*2]
movzx ecx, word [rax]
cmp cx, 0x20
je 0x18002c894
cmp cx, 9
jne 0x18002c8a2
inc rbx
add rax, 2
cmp rbx, rsi
jl 0x18002c885
je 0x18002c8b8
mov rax, qword [r14]
movzx ecx, word [rax + rbx*2]
xor rbp, rcx
imul rbp, r8
inc rbx
cmp rbx, rsi
jl 0x18002c840
mov rbx, qword [rsp + 0x48]
mov rax, rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180030270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [0x18005f7b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800302fe
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.libsgit2.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1800430f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800302fe
test al, 0x10
jne 0x1800302fe
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x248
ret
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x248
ret
Function at 0x180030be0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rbp, rax
cmp rax, qword [r14 + 0x18]
jne 0x180030c43
mov rcx, qword [0x1800818d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x840
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [0x1800818e0]
test rax, rax
cmove rbp, qword [0x1800818d8]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test al, al
jne 0x180030d69
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x4000
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edx, dword [r14 + 0x30]
mov r9b, 1
xor r8d, r8d
mov rcx, r14
call fcn.180035d60
mov rcx, qword [r14 + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180030cb0
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0x60]
call fcn.1800089b0
mov rax, qword [r14 + 0x18]
mov qword [r14 + 0x88], rax
xor eax, eax
mov qword [r14 + 0xa8], rax
lea rax, str.ComparePlus_NavBar
mov qword [r14 + 0x90], rax
lea rax, [r14 + 0x40]
mov dword [r14 + 0x9c], 0x10000001
cmp qword [rax + 0x18], 8
jb 0x180030d04
mov rax, qword [rax]
lea rcx, [0x18005f7b0]
mov qword [r14 + 0xc8], rax
mov dword [r14 + 0x98], 0x1b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x83
mov dword [rsp + 0x28], 0x1020
mov rcx, rax
mov dword [rsp + 0x20], 0xe
lea r9d, [rdx - 0x75]
lea r8d, [r9 - 0xd]
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, qword [r14 + 0x10]
lea r9, [r14 + 0x88]
xor r8d, r8d
mov qword [r14 + 0xa0], rax
mov edx, 0x809
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [r14 + 0x138]
call fcn.180031af0
lea rcx, [r14 + 0x188]
call fcn.180031af0
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, rax
lea rcx, [r14 + 0x138]
mov rdi, rax
call fcn.180031460
mov rdx, rdi
lea rcx, [r14 + 0x188]
call fcn.180031460
mov rcx, qword [r14 + 0x18]
mov rdx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.180030fb0
mov rax, qword [r14]
mov dl, 1
mov rcx, r14
call qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180037cc0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180037a20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [0x180083420], 0
jne 0x180037b61
lea rcx, [0x18005f7b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180037b7c
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.libs_sqlite3.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1800430f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_open16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800833f0], rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_prepare16_v2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800833f8], rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_step
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180083400], rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_column_text16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180083408], rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_finalize
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180083410], rax
test rax, rax
je 0x180037b7c
lea rdx, str.sqlite3_close
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180083418], rax
test rax, rax
je 0x180037b7c
mov byte [0x180083420], 1
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x240
pop rbx
ret
xor al, al
jmp 0x180037b63

Function at 0x180037b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [0x18005f7b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180037c0e
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.libs_sqlite3.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1800430f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180037c0e
test al, 0x10
jne 0x180037c0e
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x248
ret
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037cc0
add rsp, 0x248
ret
Function at 0x1800430e4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180042fbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180042fbb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180042fbb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180042fbb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180042fbb
cmp dword [rcx + 0x84], 0xe
jbe 0x180042fbb
cmp dword [rcx + 0xf8], 0
je 0x180042fbb
mov ecx, ebx
call fcn.18004305c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180042e4c
cmp dword [rbp + 0x20], 0
je 0x180043008
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180043010
int3
xor r8d, r8d
xor edx, edx
jmp 0x180042f54