joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9be4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400de164
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e9c85
cmp ebx, dword [rsp + 0x30]
je 0x1400e9c7e
test esi, esi
je 0x1400e9c7e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e9c59
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e9c66
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e9c43
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e9c6a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e9c87
mov eax, 1
jmp 0x1400e9c87
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ea134
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ea154
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c6c4c
or eax, 0xffffffff
jmp 0x1400ea156
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ecb74
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14012ea00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ecbbe
call fcn.1400c6cb8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400c6cd8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400c69f0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b3500
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ecbc9
lea eax, [rbx + 1]
jmp 0x1400ecbab
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ecba9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ecbab
Function at 0x1400ed364
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c295c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ed3ee
cmp byte [rbp - 0x21], r15b
je 0x1400ed3e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ed424
call fcn.1400e11bc
test eax, eax
jne 0x1400ed410
cmp byte [rbp - 0x21], r15b
je 0x1400ed408
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ed424
cmp byte [rbp - 0x21], r15b
je 0x1400ed421
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d16e0
test eax, eax
jne 0x1400ed4c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c295c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ed463
cmp byte [rbp - 0x21], r15b
je 0x1400ed498
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ed498
call fcn.1400e11bc
test eax, eax
jne 0x1400ed484
cmp byte [rbp - 0x21], r15b
je 0x1400ed47d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ed498
cmp byte [rbp - 0x21], r15b
je 0x1400ed495
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d16e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ed4c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ed4c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ed4d5
mov rcx, rdi
call fcn.1400de5b0
cmp byte [rbp + 0x3f], r15b
je 0x1400ed4e4
mov rcx, qword [rbp + 0x27]
call fcn.1400de5b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400ee8a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ee8c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ee8c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001120
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rdi, rcx
mov rax, qword [0x1800090c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rsp + 0x28], 0x238
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800011b0
lea r14, [rsp + 0x54]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800011ac
lea r15, [rsp + 0x28]
mov r12, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1800011b0
mov rcx, rdi
mov rdx, r14
call r12
test eax, eax
jne 0x180001190
mov esi, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800049b0
mov eax, esi
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1800018a0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rsi
sub rsp, 0xd0
mov rax, qword [0x1800090c0]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movups xmm0, xmmword [0x1800071d8]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [0x1800071e8]
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
xor ecx, ecx
mov edx, 2
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x180001b13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0xa0]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x180001b0d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x90]
test eax, eax
js 0x180001b02
movabs rax, 0x96c094948a2245bf
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
movabs rcx, 0x986ddde747871fad
mov qword [rsp + 0x78], rcx
mov rdx, qword [rsp + 0x78]
movabs rdx, 0xf61e1f5676ced413
mov qword [rsp + 0x80], rdx
mov r8, qword [rsp + 0x80]
movabs r8, 0xcf25d173afad7704
mov qword [rsp + 0x88], r8
mov r9, qword [rsp + 0x88]
movabs r9, 0xc0e3d90f4a32ac3f
mov qword [rsp + 0x90], r9
mov r10, qword [rsp + 0x90]
movabs r10, 0x1c714e2a8a9d8fca
mov qword [rsp + 0x98], r10
mov r11, qword [rsp + 0x98]
movabs r11, 0x96a394fb8a4e45fd
mov qword [rsp + 0x50], r11
mov r11, qword [rsp + 0x50]
movabs r11, 0x9801dda647a71fc6
mov qword [rsp + 0x58], r11
mov r11, qword [rsp + 0x58]
movabs r11, 0xf66b1f1976eed47f
mov qword [rsp + 0x40], r11
mov r11, qword [rsp + 0x40]
movabs r11, 0xcf50d11cafcf7770
mov qword [rsp + 0x48], r11
mov r11, qword [rsp + 0x48]
lea r11, [r9 + 0x240012]
mov qword [rsp + 0x30], r11
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x38], r10
mov r11, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rdx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], r8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], r9
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], r10
mov rax, qword [rsp + 0x98]
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
xorps xmm0, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm1
xorps xmm2, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x90], xmm2
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x48]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1800049b0
nop
add rsp, 0xd0
pop rsi
ret
Function at 0x1800020f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov r9, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180002120]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret

Function at 0x180003950
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rdx
mov rax, qword [0x1800090c0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0xf8], 0x30
xorps xmm6, xmm6
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0x80], 0x70
mov dword [rsp + 0x5c], 0xc0000001
mov r15d, 0x30
mov r12, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r13, qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rbx, [rsp + 0xf8]
mov rdi, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov r14, qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop word cs:[rax + rax]
call r12
mov rcx, rax
mov edx, 8
mov r8, r15
call r13
mov qword [rsp + 0xe8], rax
test rax, rax
je 0x180003b51
mov rcx, rax
mov edx, 1
xor r8d, r8d
mov r9, rbx
call rdi
test eax, eax
je 0x180003b17
mov rcx, qword [rsp + 0xe8]
movups xmmword [rsp + 0x28], xmm6
mov qword [rsp + 0x20], 8
mov r8d, 0x20000
xor edx, edx
lea r9, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x180003b17
mov dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], 0x80210
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x180003b17
mov rcx, qword [rsp + 0x68]
mov r15, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r15
mov rcx, qword [rsp + 0x60]
call r15
mov dword [rsp + 0x5c], 0
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x180003b40
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r15, qword [rsp + 0xe8]
jmp 0x180003b43
xor r15d, r15d
call r12
mov rcx, rax
xor edx, edx
mov r8, r15
call r14
call rbp
cmp eax, 0x7a
jne 0x180003b6d
mov r15, qword [rsp + 0xf8]
cmp r15, 0x401
jb 0x180003a30
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1800049b0
mov eax, dword [rsp + 0x5c]
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001dc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140001e08
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x20]
call fcn.140015fc0
jmp 0x140001e16
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1400169f4
movzx ecx, byte [rsp + 0x24]
movzx eax, byte [rsp + 0x25]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x24], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x27]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x20]
call fcn.140016ca0
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000212c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov edi, edx
mov rbx, rcx
mov word [rcx + 0x462], si
dec edi
cmp dword [rbx + 0x464], esi
jne 0x140002235
cmp dword [rbx + 0x1c], 1
jne 0x14000218e
mov ecx, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
movzx eax, byte [rcx + r8]
lea edx, [rcx + 1]
shl eax, 8
mov dword [rbx + 0x14], edx
or dword [rbx + 0x460], eax
movzx ecx, byte [rdx + r8]
lea eax, [rdx + 1]
or dword [rbx + 0x460], ecx
mov dword [rbx + 0x14], eax
jmp 0x14000222b
test dword [rbx + 0x484], 0xfffeffff
jne 0x1400021bb
mov r9, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x478]
mov edx, 1
mov r8d, 0x10000
call fcn.1400169f4
mov dword [rbx + 0x484], esi
movsxd r8, dword [rbx + 0x484]
mov rcx, qword [rbx + 0x478]
movzx eax, byte [r8 + rcx]
inc r8d
shl eax, 8
mov dword [rbx + 0x484], r8d
or dword [rbx + 0x460], eax
test r8d, 0xfffeffff
jne 0x140002204
mov r9, qword [rbx + 0x28]
mov edx, 1
mov r8d, 0x10000
call fcn.1400169f4
mov dword [rbx + 0x484], esi
movsxd r8, dword [rbx + 0x484]
mov rax, qword [rbx + 0x478]
movzx edx, byte [r8 + rax]
lea eax, [r8 + 1]
or dword [rbx + 0x460], edx
add dword [rbx + 0x14], 2
mov dword [rbx + 0x484], eax
mov dword [rbx + 0x464], 0x10
shl dword [rbx + 0x460], 1
dec dword [rbx + 0x464]
mov eax, dword [rbx + 0x460]
test edi, edi
jne 0x140002149
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
shr eax, 0x10
add rsp, 0x20
pop rdi
ret
Function at 0x1400022d4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rbx, rcx
and qword [rbp - 0x50], 0
and qword [rbp - 0x38], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140002344
lea rdx, str.Wow64DisableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140002344
lea rcx, [rbp - 0x50]
call rax
nop
test rdi, rdi
je 0x140002353
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rdx, [0x14003704c]
mov rcx, rsi
call fcn.140016604
mov qword [rbx], rax
test rax, rax
jne 0x1400023c9
mov rcx, rbx
call fcn.1400024f0
nop
and qword [rbp - 0x38], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1400023b1
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x1400023b1
mov rcx, qword [rbp - 0x50]
call rax
nop
test rbx, rbx
je 0x1400023bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400024d2
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbx + 0x10], rax
and qword [rbp - 0x38], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x14000241a
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14000241a
mov rcx, qword [rbp - 0x50]
call rax
nop
test rdi, rdi
je 0x140002428
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov rcx, rbx
call fcn.1400027c0
mov edi, eax
test eax, eax
je 0x140002447
mov rcx, rbx
call fcn.1400024f0
mov eax, edi
jmp 0x1400024d2
and qword [rbp - 0x50], 0
cmp byte [rbx + 0x20], 0
je 0x14000246c
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x50]
mov r8d, 0x10
lea rdx, [rbp - 0x20]
call qword [rax + 0x18]
jmp 0x140002481
mov r9, qword [rbx]
mov edx, 1
lea r8d, [rdx + 0xf]
lea rcx, [rbp - 0x20]
call fcn.1400169f4
mov r9d, 0x99f2
mov r8d, 0x10
lea rdx, [rbp - 0x20]
call fcn.140002ae0
and dword [rbx + 0xc], 0
cmp byte [rbx + 0x20], 0
je 0x1400024c5
and dword [rbp - 0x50], 0
and dword [rbp - 0x4c], 0
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
lea r9, [rbp - 0x30]
mov r8d, 1
mov rdx, qword [rbp - 0x50]
call qword [rax + 0x28]
mov eax, dword [rbp - 0x30]
jmp 0x1400024cd
mov rcx, qword [rbx]
call fcn.140017454
mov dword [rbx + 8], eax
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002ae0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x20]
mov ebx, r9d
mov esi, r8d
mov rdi, rdx
call fcn.140014c60
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140014de4
test esi, esi
je 0x140002b3d
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.140014dac
xor byte [rdi], al
inc rdi
dec rbx
jne 0x140002b29
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140015ef0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003368
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rcx + 0x10]
xor ebx, ebx
mov rdi, rcx
mov dword [rcx + 0x1c], ebx
test rax, rax
je 0x14000343d
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003434
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x14000342b
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rbp - 0x2c]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x30]
lea rcx, [rbp - 0x18]
mov dword [rbp - 0x18], 0x107b2
mov qword [rbp - 0x14], 0x10000
mov dword [rbp - 0xc], ebx
mov dword [rbp - 0x20], eax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140003420
mov eax, dword [rbp - 0x24]
mov rcx, qword [rbp - 0x20]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x28]
mov dword [rbp - 0x30], eax
sub rcx, qword [rbp - 0x30]
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
shr rdx, 0x17
jmp 0x140003422
mov edx, ebx
test edx, edx
je 0x140003445
mov dword [rsi + 8], edx
jmp 0x140003445
mov dword [rdi + 0x1c], 7
jmp 0x140003445
mov dword [rdi + 0x1c], 6
jmp 0x140003445
mov eax, 1
mov dword [rcx + 0x1c], eax
cmp dword [rdi + 0x1c], ebx
sete al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret

Function at 0x14000346c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov edi, edx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r9, qword [rbx + 0x10]
mov ecx, edi
neg edi
lea r8d, [rax + 1]
not ecx
sbb edx, edx
mov r10d, eax
and edx, ecx
shr r8d, 1
je 0x1400034be
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov eax, edx
shr eax, 0x10
test ax, ax
je 0x1400034b9
movzx edx, dx
add edx, eax
dec r8
jne 0x1400034a0
mov rbx, qword [rsp + 0x30]
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
add ecx, r10d
add eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x1400034d8
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 0x10]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000351c
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003513
mov edx, 0x14c
cmp word [rax + 4], dx
jne 0x140003508
and dword [rcx + 0x1c], 0
mov eax, dword [rax + 0x58]
ret
mov edx, 0x8664
cmp word [rax + 4], dx
je 0x140003500
mov dword [rcx + 0x1c], 7
jmp 0x140003523
mov dword [rcx + 0x1c], 6
xor eax, eax
ret
Function at 0x1400039ec
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, qword [rdx]
xor r11d, r11d
add eax, eax
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov r10d, 0x1505
movsxd r8, eax
test eax, eax
jle 0x140003a35
movzx edx, byte [r11 + rbx]
imul r10d, r10d, 0x21
inc r11
add r10d, edx
cmp r11, r8
jl 0x140003a21
mov rax, qword [rbp + 0x20]
and r10d, 0x3ff
and qword [rdi], 0
movsxd rcx, r10d
mov dword [r9], r10d
mov rbx, qword [rax + rcx*8]
jmp 0x140003a68
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
add rcx, 8
call fcn.1400019cc
test al, al
jne 0x140003a84
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140003a50
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi], rbx
jmp 0x140003a6f

Function at 0x140003a90
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 1
mov rsi, rdx
mov rbp, rcx
jne 0x140003ada
mov eax, dword [rsi + 0x10]
mov r9, qword [rdx + 8]
xor edx, edx
add eax, eax
mov ebx, 0x1505
movsxd r8, eax
test eax, eax
jle 0x140003add
movzx ecx, byte [rdx + r9]
imul ebx, ebx, 0x21
inc rdx
add ebx, ecx
cmp rdx, r8
jl 0x140003ac6
jmp 0x140003add
mov ebx, dword [rdx + 0x28]
mov ecx, 0x18
and ebx, 0x3ff
call fcn.140015f3c
mov rdi, rax
and qword [rax], 0
mov qword [rax + 0x10], rsi
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + rbx*8]
test rax, rax
jne 0x140003b13
and qword [rdi + 8], rax
mov rcx, qword [rbp + 0x20]
mov qword [rcx + rbx*8], rdi
jmp 0x140003b22
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov rax, qword [rbp + 0x20]
mov qword [rax + rbx*8], rdi
mov rbx, qword [rbp + 0x18]
mov ebp, 8
mov rcx, qword [rbx + 0x18]
cmp qword [rbx + 0x10], rcx
jne 0x140003b86
add rcx, rcx
mov eax, ebp
cmp rcx, rbp
cmovb rcx, rbp
mov qword [rbx + 0x18], rcx
mul rcx
lea rcx, [rbp - 9]
cmovo rax, rcx
mov rcx, rax
call fcn.140015f3c
mov rdx, qword [rbx + 8]
mov rsi, rax
test rdx, rdx
je 0x140003b82
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140003b82
shl r8, 3
mov rcx, rax
call fcn.140015fc0
mov rcx, qword [rbx + 8]
call fcn.140015fa8
mov qword [rbx + 8], rsi
mov rcx, rbp
call fcn.140015f3c
mov rdx, rax
test rax, rax
je 0x140003b9b
mov qword [rax], rdi
jmp 0x140003b9d
xor edx, edx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rax + rcx*8], rdx
inc qword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret