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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x548228
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
movabs rdx, 0x230b163ec3031ae
mov qword [rsp + 0x1a], rdx
movabs rdx, 0xf6f7d89acd30a1bc
mov qword [rsp + 0x22], rdx
movabs rdx, 0xf230a33060df04fd
mov qword [rsp + 0x2a], rdx
movabs rdx, 0x705041715110b05
mov qword [rsp + 0x32], rdx
movabs rdx, 0x90f0810130b17
mov qword [rsp + 0x3a], rdx
movabs rdx, 0x100d0f0e0c0c0009
mov qword [rsp + 0x40], rdx
movabs rdx, 0x110c090d00120b03
mov qword [rsp + 0x48], rdx
xor eax, eax
jmp 0x5481c0
movzx r9d, byte [rsp + rsi + 0x1a]
lea edx, [r9 + rdx]
lea edx, [rdx + 0x27]
mov byte [rsp + rdi + 0x1a], dl
mov byte [rsp + rsi + 0x1a], r8b
add rax, 2
nop
cmp rax, 0x1e
jge 0x5481f2
movzx edx, byte [rsp + rax + 0x32]
movzx esi, byte [rsp + rax + 0x33]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0x18
jae 0x54821b
movzx r8d, byte [rsp + rdi + 0x1a]
lea r8d, [r8 + rdx]
lea r8d, [r8 + 0x27]
cmp rsi, 0x18
jb 0x5481a5
jmp 0x54820f
xor eax, eax
lea rbx, [rsp + 0x1a]
mov ecx, 0x18
nop
call fcn.00444360
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov eax, esi
mov ecx, 0x18
call fcn.00456a60
mov eax, edi
mov ecx, 0x18
call fcn.00456a60
nop
call fcn.00454400
jmp fcn.00548120
Function at 0x180009ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x18017b008]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor esi, esi
mov ebx, ecx
cmp byte [0x180185820], sil
jne 0x180009c99
call fcn.18002a998
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x260]
mov qword [rsp + 0x30], pe_nt_image_headers64
lea r8d, [rsi + 3]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
mov qword [rsp + 0x20], pe_nt_image_headers64
call fcn.18001fd48
lea r9, [rsp + 0x260]
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rcx, [rsp + 0x460]
call fcn.18001f93c
lea r9, [rsi - 1]
mov edx, pe_nt_image_headers64
lea r8, str.UI.DLL
lea rcx, [rsp + 0x60]
call fcn.180028d54
test eax, eax
jne 0x180009c86
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call fcn.180009390
test eax, eax
js 0x180009c86
mov rdi, qword [0x180185840]
mov byte [0x180185820], 1
jmp 0x180009ca0
mov rdi, rsi
mov qword [0x180185840], rsi
mov byte [0x180185820], 1
jmp 0x180009ca0
mov rdi, qword [0x180185840]
movzx r9d, word [0x180185830]
mov eax, ebx
shr eax, 4
mov edx, 6
inc ax
mov rcx, rdi
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x180009cfb
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180009cfb
and ebx, 0xf
je 0x180009cf0
nop dword [rax]
movzx ecx, word [rax]
lea rax, [rax + rcx*2]
add rax, 2
add ebx, 0xffffffff
jne 0x180009ce0
cmp word [rax], si
je 0x180009cfb
add rax, 2
jmp 0x180009cfe
mov rax, rsi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.18000b6d0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000b1f0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x5c0
mov rax, qword [0x18017b008]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
call fcn.18000a220
call fcn.180009fc0
lea rax, [0x1801851a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x180163470]
lea rbx, [0x1801853d0]
mov rcx, rbx
call fcn.18003dad0
test eax, eax
je 0x18000b3f0
mov rcx, qword [0x1801851a8]
mov rax, qword [rcx]
call qword [rax + 0xf0]
test eax, eax
setne dil
cmp byte [0x1801851a3], 0
je 0x18000b2b5
lea rax, str.was_not
lea r8, [0x180163478]
test dil, dil
cmove r8, rax
lea rax, str.Non_FASTLINK
lea rdx, str.FASTLINK
cmove rdx, rax
mov ecx, 0x5fa
call fcn.180009ea0
call fcn.180009f20
movzx eax, dil
xor eax, 1
jmp 0x18000b3cf
test dil, dil
je 0x18000b402
cmp byte [0x1801851a7], 0
je 0x18000b2d8
mov byte [0x1801851a1], 1
mov ecx, 0x5dc
call fcn.180009ea0
mov rcx, qword [0x1801851a8]
mov rax, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [0x18000acd0]
mov r8d, 0x20
lea rdx, [0x1801855e0]
call qword [rax + 0xc8]
test eax, eax
jne 0x18000b332
mov rcx, qword [0x1801851a8]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x98]
mov dword [rsp + 0x30], eax
xor ecx, ecx
cmp eax, 2
jne 0x18000b419
jmp 0x18000b40f
call fcn.180009f60
cmp byte [0x1801851a7], 0
je 0x18000b362
mov ecx, 0x5e1
call fcn.180009ea0
call fcn.180009f20
cmp byte [0x1801851a6], 0
jne 0x18000b362
mov ecx, 0x5f5
call fcn.180009ea0
lea rax, [0x1801851c0]
cmp byte [0x1801851a6], 0
cmovne rbx, rax
mov r8d, 0xb
mov rdx, rbx
lea rcx, [0x1801855e0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x18000b426
cmp byte [0x1801851a7], 0
je 0x18000b3b3
cmp byte [0x1801851a6], 0
jne 0x18000b3b3
mov ecx, 0x5e1
call fcn.180009ea0
call fcn.180009f20
xor eax, eax
jmp 0x18000b3cf
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.18000b6d0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5c0
pop rdi
ret
mov r8d, dword [rsp + 0x30]
mov edx, 0x452
mov rcx, rbx
call fcn.18000a000
mov edx, 0x453
mov rcx, rbx
call fcn.18000a000
mov edx, 0x44d
call fcn.18000a000
mov r8d, eax
mov edx, 0x3ea
call fcn.18000a000
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
mov edx, 0x451
xor ecx, ecx
call fcn.18000a000
nop
int3

Function at 0x18000be78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000bec2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000bec2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000bec2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000bec2
cmp dword [rcx + 0x84], 0xe
jbe 0x18000bec2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x18000bec4
xor al, al
add rsp, 0x28
ret
Function at 0x18001981c
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 0x18001967b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001967b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001967b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001967b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001967b
cmp dword [rcx + 0x84], 0xe
jbe 0x18001967b
cmp dword [rcx + 0xf8], 0
je 0x18001967b
mov ecx, ebx
call fcn.180019738
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.180019508
nop
cmp dword [rbp + 0x20], 0
je 0x1800196c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800196d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x18001960c

Function at 0x18001f914
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001f934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002c588
or eax, 0xffffffff
jmp 0x18001f936
xor eax, eax
add rsp, 0x28
ret
Function at 0x18003179c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x180031823
mov rsi, rbx
cmp word [rax], bp
je 0x1800317e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800317cc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800317c8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18002c670
mov rdi, rax
test rax, rax
je 0x180031810
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180018d80
mov rbp, rdi
xor ecx, ecx
call fcn.18002c634
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180035104
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180181820]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180035162
cmp word [rdx], r12w
jne 0x180035162
or byte [rax + r8*8 + 0x38], cl
jmp 0x180035168
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800352c3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18003529e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800351a1
mov rcx, r9
jmp 0x1800351c4
cmp r9, rdx
jae 0x1800351db
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180035185
jmp 0x1800352c3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180035298
cmp dword [rsp + 0x80], edi
je 0x180035298
mov rdx, r14
lea r11, [0x180181820]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180035271
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180035244
mov word [rbx], r12w
jmp 0x1800352bf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18003524d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800352bf
cmp word [rsp + 0x70], r12w
jne 0x18003527e
cmp rbx, rsi
je 0x18003523e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180035024
cmp word [rsp + 0x70], r12w
je 0x1800352c3
mov word [rbx], r13w
jmp 0x1800352bf
lea r11, [0x180181820]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800352bb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800352c3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180035b20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180035b52
call fcn.18002c614
mov dword [rax], 0x16
call fcn.18002c4a8
jmp 0x180035c71
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180035c71
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180035c71
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180035b81
lock or dword [rcx + 0x14], 0x10
jmp 0x180035c71
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180035b95
call fcn.180035c8c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18002dd54
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800355b0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180035c5f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180035c2a
mov rcx, rsi
call fcn.18002dd54
cmp eax, edi
je 0x180035c15
mov rcx, rsi
call fcn.18002dd54
cmp eax, 0xfffffffe
je 0x180035c15
mov rcx, rsi
call fcn.18002dd54
movsxd rbx, eax
lea r14, [0x180181820]
mov rcx, rsi
sar rbx, 6
call fcn.18002dd54
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180035c1c
lea rdx, [0x18017b2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180035c2a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180035c4e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180035c4e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180035c4e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180035c74
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18003d230
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov ebp, edx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x1801429b0]
mov rdi, r9
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptOpenAlgorithmProvider
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e30], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptCloseAlgorithmProvider
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e38], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptGetProperty
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e40], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptCreateHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e48], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptHashData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e50], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptFinishHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e58], rax
test rax, rax
je 0x18003d411
lea rdx, str.BCryptDestroyHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180181e60], rax
test rax, rax
je 0x18003d411
mov rax, qword [0x180181e30]
lea rdx, str.SHA256
xor r9d, r9d
lea rcx, [0x180181e28]
xor r8d, r8d
call rax
test eax, eax
jne 0x18003d411
mov rax, qword [0x180181e40]
lea rcx, [rsp + 0x30]
xor ebx, ebx
lea r8, [0x180181e68]
mov dword [rsp + 0x28], ebx
lea rdx, str.HashDigestLength
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x180181e28]
lea r9d, [rbx + 4]
call rax
test eax, eax
jne 0x18003d411
mov rax, qword [0x180181e40]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rcx
lea r8, [0x180181e6c]
mov rcx, qword [0x180181e28]
lea rdx, str.ObjectLength
call rax
test eax, eax
jne 0x18003d411
mov r9, rdi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.180040580
test eax, eax
jne 0x18003d411
mov rcx, qword [0x180181e28]
test rcx, rcx
je 0x18003d40a
xor edx, edx
call qword [0x180181e38]
mov eax, 1
jmp 0x18003d413
xor eax, eax
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 0x1800460c0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movsxd rdx, r8d
mov rax, r9
and eax, 3
cmp dword [rcx + 0x10c], 2
jne 0x1800461e6
test rax, rax
mov eax, 0xb170a1bf
je 0x180046164
cmp rdx, 4
jb 0x18004611c
mov r8, rdx
shr r8, 2
imul rcx, r8, 0xfffffffffffffffc
add rdx, rcx
nop dword [rax + rax]
mov ecx, dword [r9]
add r9, 4
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub r8, 1
jne 0x180046100
test rdx, rdx
je 0x1800461cd
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub rdx, 1
jne 0x180046130
imul eax, eax, 0x19660d
mov r8d, 0xffffffff
add eax, 0x3c6ef35f
div r8d
mov eax, edx
ret
cmp rdx, 4
jb 0x18004619c
mov r8, rdx
shr r8, 2
imul rcx, r8, 0xfffffffffffffffc
add rdx, rcx
nop dword [rax + rax]
mov ecx, dword [r9]
add r9, 4
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub r8, 1
jne 0x180046180
test rdx, rdx
je 0x1800461cd
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub rdx, 1
jne 0x1800461b0
imul eax, eax, 0x19660d
xor edx, edx
mov r8d, 0xffffffff
add eax, 0x3c6ef35f
div r8d
mov eax, edx
ret
mov r8d, 0xffffffff
mov rcx, r9
test rax, rax
jne fcn.180041b00
jmp fcn.180041b00
Function at 0x18004aa60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rsi, rdx
mov edx, 0x80000000
mov dword [r9], ebx
mov r12, r9
mov ebp, r8d
mov r14, rcx
mov r13d, ebx
test edx, r8d
jne 0x18004aaa5
cmp r8d, 1
jne 0x18004aab4
mov edx, 0xc0000000
cmp ebp, 1
jne 0x18004aab4
mov r8d, ebx
jmp 0x18004aabf
or r8d, 0xbfffffff
shr r8d, 0x1d
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18004ab29
test ebp, ebp
je 0x18004ab8b
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004ab8b
mov r13d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x18004ab82
lea rdx, [0x180139860]
lea ecx, [rax + 0x27]
call fcn.18000c170
mov rsi, rax
test rax, rax
je 0x18004ab82
mov dword [rax + 8], ebp
mov rcx, rsi
mov dword [rax + 0x18], ebx
lea rax, [0x180143048]
mov qword [rsi], rax
lea rax, [0x1801430c8]
mov qword [rsi + 0x20], rdi
lea rdi, [r14 + 0x80f0]
mov qword [rsi + 0x10], rax
mov r15, rdi
mov rax, qword [rsi]
call qword [rax + 8]
jmp 0x18004ab98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [r14 + 0x80f0]
mov rsi, rbx
mov r15, rdi
mov rcx, qword [r15]
test rcx, rcx
je 0x18004aba6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r15], rsi
test rsi, rsi
jne 0x18004abc1
test ebp, ebp
setne bl
add ebx, 2
mov dword [r12], ebx
xor eax, eax
jmp 0x18004ac7c
test r13d, r13d
je 0x18004ac6d
mov r8d, dword [rsp + 0x90]
lea r9, [0x180142e10]
mov rax, r9
mov byte [r14 + 0x80e0], 1
mov ecx, ebx
lea rdx, str.Microsoft_C_C_program_database_2.00_r_n
nop dword [rax]
cmp r8d, dword [rax]
je 0x18004ac0c
inc ecx
add rax, 0x28
cmp rax, rdx
jl 0x18004abf0
mov dword [r12], 4
mov esi, ebx
jmp 0x18004ac4f
movsxd rax, ecx
mov rdx, r12
lea rcx, [rax + rax*4]
movups xmm0, xmmword [r9 + rcx*8]
movups xmmword [r14 + 0x80a0], xmm0
movups xmm1, xmmword [r9 + rcx*8 + 0x10]
movups xmmword [r14 + 0x80b0], xmm1
movsd xmm0, qword [r9 + rcx*8 + 0x20]
mov rcx, r14
movsd qword [r14 + 0x80c0], xmm0
call fcn.180049b80
mov esi, eax
test eax, eax
jne 0x18004ac7a
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004ac5d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x78]
mov qword [rdi], rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18004ac7a
mov rdx, r12
mov rcx, r14
call fcn.180049f10
mov esi, eax
mov eax, esi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800500e0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x18017b008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
je 0x180050217
xorps xmm0, xmm0
mov dword [rcx], 1
mov rax, qword [r8]
lea rdx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
xor r8d, r8d
mov rcx, r14
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
call qword [rax + 0x60]
test eax, eax
js 0x18005020a
mov rcx, qword [rsp + 0x60]
lea rax, [rbx + 0x48]
test rcx, rcx
jne 0x18005017a
lea r8, str._Portable_PDB_
mov edx, 0x104
mov rcx, rax
call fcn.180028fb8
jmp 0x1800501a6
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], 0x104
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18001fd48
mov rax, qword [rsp + 0x70]
mov ecx, eax
mov dword [rbx + 0x18], eax
cmp rcx, rax
jne 0x18005020a
lea rdx, [0x180139860]
call fcn.18000bbe4
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1800502ad
mov rax, qword [r14]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [rax + 0x28]
test eax, eax
jne 0x18005020a
mov rax, qword [r14]
lea r9, [rsp + 0x50]
mov r8d, dword [rbx + 0x18]
mov rcx, r14
mov rdx, qword [rbx + 0x10]
call qword [rax + 0x18]
test eax, eax
jne 0x18005020a
mov eax, dword [rsp + 0x50]
cmp dword [rbx + 0x18], eax
je 0x18005031d
mov dword [rdi], 3
xor eax, eax
jmp 0x180050322
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18005025a
mov dword [rdi], 4
xor eax, eax
jmp 0x180050322
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 8]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x180050283
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rdi], 3
jmp 0x180050322
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
jne 0x1800502b7
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rdi], 2
xor eax, eax
jmp 0x180050322
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rcx, r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, r14
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x1800502a3
mov qword [rsp + 0x40], rsi
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x28], rdx
mov rcx, r15
xor edx, edx
mov qword [rbx + 0x10], r12
mov dword [rbx + 0x18], ebp
mov qword [rsp + 0x20], rsi
call fcn.18001fd48
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000b6d0
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret