joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d4c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x14002d500
lea rdx, [rcx + 0x60]
mov rcx, rdi
call fcn.140010fd0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002d50d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d5cb
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002d529
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14002d5cb
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002d5c1
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140030240
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400320f0
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d5b9
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.14002ff80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002d606
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002d601
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002d63a
mov rcx, r8
call fcn.14002ff80
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ff60
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400369d4
int3
Function at 0x140030d70
Capabilities:
Parse pe header

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

Function at 0x14003aa8c
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 0x14003a91f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a91f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a91f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a91f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a91f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a91f
cmp dword [rcx + 0xf8], 0
je 0x14003a91f
mov ecx, ebx
call fcn.14003a9c0
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.14003a7b0
cmp dword [rbp + 0x20], 0
je 0x14003a96c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003a974
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003a8b8
Function at 0x1400523e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140052408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140052408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
lea rdx, [0x1400e68c8]
lea r8d, [r12 + 0xa]
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov byte [rsp + 0x3c], r12b
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400204e9
lea r8d, [r12 + 0xa]
lea rdx, str._AHK_WITH_ICON_
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140020570
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140020570
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140020570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140020570
mov rax, qword [rbx]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x78], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rbx + 0xc], r12d
call qword [rax + VariantCopy]
test al, al
je 0x140020555
lea rdx, [rsp + 0x78]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400a96c0
mov rax, qword [rsi + 0xb80]
inc dword [0x14011747c]
mov qword [0x1401166e0], rax
mov eax, 3
jmp 0x14002058c
xorpd xmm3, xmm3
lea rcx, str.Could_not_extract_script_from_EXE.
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], r12
call fcn.1400b26e0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140056550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x2260
call fcn.1400d1370
sub rsp, rax
mov r9, qword [0x140118d80]
mov rdi, rcx
mov qword [rsp + 0x20], rcx
movzx esi, dl
lea rcx, [rsp + 0x260]
lea r8, [0x1400ebcf8]
mov edx, 0x800
lea rbp, [rsp + 0x260]
lea r12, [0x1400e14ec]
call fcn.1400abd40
movsxd rbx, eax
lea r8d, [rbx + 1]
cmp r8d, 0x800
jg 0x1400565d9
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400565d9
mov r9, qword [0x140118d80]
jmp 0x14005663c
lea rcx, [rsp + 0x50]
call fcn.140056c60
test eax, eax
je 0x1400566fb
lea r9, [rsp + 0x50]
lea r8, [0x1400ebcf8]
lea rcx, [rsp + 0x260]
mov edx, 0x800
mov qword [rsp + 0x20], rdi
call fcn.1400abd40
movsxd rbx, eax
lea ecx, [rbx + 1]
cmp ecx, 0x800
jg 0x1400566fb
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400566fb
lea r9, [rsp + 0x50]
mov rax, rbx
mov edi, SafeArrayAllocDescriptor
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x262], bx
test sil, sil
je 0x1400566c1
lea rax, [0x1400ebd08]
lea r8, [0x1400ebcf8]
lea rcx, [rsp + 0x1260]
mov edx, 0x800
mov qword [rsp + 0x20], rax
call fcn.1400abd40
movsxd rsi, eax
lea ecx, [rsi + 1]
cmp ecx, 0x800
jg 0x1400566c1
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400566c1
mov word [rsp + rsi*2 + 0x1260], di
lea rbp, [rsp + 0x1260]
lea r12, [rsp + 0x260]
mov word [rsp + rsi*2 + 0x1262], bx
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
lea rcx, [0x1401181e0]
xor r9d, r9d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.1400416a0
test eax, eax
setne al
jmp 0x1400566fd
xor al, al
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140056c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor ebp, ebp
mov rdi, rcx
mov qword [rax + 0x18], rbx
mov esi, ebp
nop
mov r9d, esi
lea rax, [rsp + 0x268]
lea rdx, str.dB_tetK
xor r8d, r8d
mov rcx, 0xffffffff80000002
or r9d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056daa
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, [0x1400ec018]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x260], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140056daa
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x140056daa
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140056d49
test ecx, ecx
je 0x140056d5f
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x140056d5f
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140056d30
jmp 0x140056d5f
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x140056daa
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x140056db1
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x140056da1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rdi, rcx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rdi + rdx - 2], cx
test cx, cx
jne 0x140056d90
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x140056d65
mov esi, 0x200
jmp 0x140056c80
Function at 0x1400810e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400ca054
test rax, rax
jne 0x140081123
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400ca054
test rax, rax
jne 0x140081123
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140081142
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x140081160
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14008118d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, [0x1400ed210]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140081185
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x140081200
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea edx, [r9 + 0x10]
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14008127d
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14008127d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14008127d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x1400a8d20
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x1400a8e5d
test r8, r8
je 0x1400a8d53
cmp word [r8], 0
jne 0x1400a8d5c
test r9, r9
je 0x1400a8e5d
mov rax, qword [0x140111488]
xor r8d, r8d
mov rdx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
mov rcx, rbp
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a8e4d
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400a8e37
call fcn.1400a8bf0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400a8e4d
mov eax, dword [0x140119ed8]
test al, 1
jne 0x1400a8df8
or eax, 1
lea rcx, [0x1400ed070]
mov dword [0x140119ed8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x140119ed0], rax
jmp 0x1400a8dff
mov r11, qword [0x140119ed0]
mov rax, qword [0x140111488]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400a8e27
test r11, r11
je 0x1400a8e27
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400a8e4d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400a8e4d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400a8e62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400a8e65
mov ebx, 0x57
mov r11d, ebx
mov rax, qword [0x140111488]
test ebx, ebx
mov rcx, r12
setne dl
mov dword [rax + 0x40], r11d
call fcn.14003ec70
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140004460
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x18
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
xor r8d, r8d
lea rdx, [0x14007591e]
call fcn.140008950
mov qword [rbx + 0x38], 0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140004ce0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rdx, r8
mov rcx, rdi
call fcn.140006160
mov dword [rsp + 0x20], 1
mov ebp, r14d
mov rdx, rdi
mov rcx, rbx
call fcn.1400044d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400047b0
mov rsi, rax
cmp rdi, rax
je 0x140004d9a
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004d6e
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004d69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004e25
mov rcx, r8
call fcn.14003fd14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004dd3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004e25
call fcn.14003fd14
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
lea rcx, [rbx + 0x18]
xor r8d, r8d
lea rdx, [0x14007591e]
call fcn.140008950
mov qword [rbx + 0x38], r14
inc ebp
cmp ebp, 0xa
jb 0x140004d14
mov rax, rdi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140046658
int3
Function at 0x14000a840
Capabilities:
Hash data using crc32b

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x3fc
call fcn.140042350
xor r10d, r10d
nop dword [rax]
mov ecx, r10d
mov r8d, r10d
and ecx, 1
shr r8d, 1
shl ecx, 7
mov edx, ecx
or edx, 0x40
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 0x20
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 0x10
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 8
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 4
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 2
test r8b, 1
cmove ecx, edx
mov eax, ecx
or eax, 1
test r8b, 2
cmove eax, ecx
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov eax, ecx
add ecx, ecx
sar eax, 0x1f
and eax, 0x4c11db7
xor eax, ecx
xor r9d, r9d
lea r8d, [r9 + 0x1e]
nop dword [rax]
test al, 1
je 0x14000a972
lea ecx, [r8 + 1]
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
test al, 1
je 0x14000a985
mov ecx, r8d
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
sub r8d, 2
cmp r8d, 0xfffffffe
jg 0x14000a960
mov dword [rbx], r9d
inc r10d
add rbx, 4
cmp r10d, 0xff
jle 0x14000a860
add rsp, 0x20
pop rbx
ret

Function at 0x14000a9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000aa28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000aa28
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000aa15
nop
cmp rbx, rcx
jae 0x14000aa28
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000aa00
cmp rbx, rcx
jae 0x14000aa28
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000aa2a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
call fcn.14000a840
mov qword [rsp + 0x28], 0
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14000af10
nop
mov rax, qword [rsp + 0x28]
movsxd rdx, dword [rax - 0x10]
mov rdi, rdx
cmp dword [rax - 8], 1
jle 0x1400118be
lea rcx, [rsp + 0x28]
call fcn.14000ae10
mov rax, qword [rsp + 0x28]
mov ebx, 0xffffffff
mov r8, rax
test rdi, rdi
je 0x1400118eb
nop dword [rax + rax]
movzx edx, bl
movzx ecx, byte [r8]
xor rdx, rcx
shr ebx, 8
xor ebx, dword [rsp + rdx*4 + 0x30]
lea r8, [r8 + 1]
sub rdi, 1
jne 0x1400118d0
not ebx
lea rdx, [rax - 0x18]
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001190c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140011927
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14003f9c0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001ae8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001af10
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006a5e0]
cmp byte [rcx + rax], 0
je 0x14001af10
dec r8
sub rdx, 1
jne 0x14001aef6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003533c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140020d4a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140020d2d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140020d18

Function at 0x140040744
Capabilities:
Parse pe header

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

Function at 0x140049d14
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 0x140049b7f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049b7f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049b7f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049b7f
cmp dword [rcx + 0x84], 0xe
jbe 0x140049b7f
cmp dword [rcx + 0xf8], 0
je 0x140049b7f
mov ecx, ebx
call fcn.140049c30
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.140049a0c
nop
cmp dword [rbp + 0x20], 0
je 0x140049bcd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140049bd8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140049b10