joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028320
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x20], 8
mov rsi, rdx
mov rdi, rcx
jb 0x14002833f
mov rdx, qword [rcx + 8]
lea rbp, [rcx + 8]
jmp 0x140028346
lea rbp, [rcx + 8]
mov rdx, rbp
cmp qword [rsi + 0x20], 8
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x58], r12
jb 0x140028364
mov rbx, qword [rsi + 8]
lea r12, [rsi + 8]
jmp 0x14002836b
lea r12, [rsi + 8]
mov rbx, r12
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140028440
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028417
cmp qword [rdi + 0x20], 8
mov qword [rsp + 0x50], r13
mov r13d, dword [rsp + 0x34]
jb 0x1400283eb
mov rcx, qword [rbp]
call fcn.140044814
xor ebx, ebx
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], rbx
mov word [rbp], bx
cmp qword [rsi + 0x20], 8
jb 0x14002840d
mov rcx, qword [r12]
call fcn.140044814
mov eax, r13d
mov r13, qword [rsp + 0x50]
jmp 0x140028474
cmp qword [rdi + 0x20], 8
jb 0x140028427
mov rcx, qword [rbp]
call fcn.140044814
xor ebx, ebx
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], rbx
mov word [rbp], bx
cmp qword [rsi + 0x20], 8
jmp 0x140028467
cmp qword [rdi + 0x20], 8
jb 0x140028450
mov rcx, qword [rbp]
call fcn.140044814
xor ebx, ebx
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], rbx
mov word [rbp], bx
cmp qword [rsi + 0x20], 8
jb 0x140028472
mov rcx, qword [r12]
call fcn.140044814
xor eax, eax
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], 7
mov word [r12], bx
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400284a0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x14008aca0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14008aca0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x64
mov qword [0x14008acc0], 0
mov dword [rsp + 0x40], 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x40]
lea r8, [0x140027d00]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008aca0], rax
add rsp, 0x38
ret

Function at 0x140028520
Capabilities:
Create thread
Terminate thread

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x14008ac88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14008ac88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x64
mov qword [0x14008ac90], 0
mov dword [rsp + 0x40], 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x40]
lea r8, [0x140027c80]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008ac88], rax
add rsp, 0x38
ret
Function at 0x140029190
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [0x140027d00]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0xa
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008aca0], rax
add rsp, 0x38
ret

Function at 0x1400291d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp byte [0x14008ad44], 0
jne 0x140029214
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [0x140023c60]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov byte [0x14008ad44], 1
mov dword [rsp + 0x40], 0xa
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x140038570
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
lea rax, str.dr_optimization_v4.0.30318_32
mov qword [0x14008acc8], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rax, [0x140038610]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400385fb
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x70]
lea r8, [0x140037ff0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x70], 0xa
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008ac30], rax
call fcn.140005a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret
xor eax, eax
add rsp, 0x68
ret

Function at 0x140044b08
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140044b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140044b20
xor eax, eax
test eax, eax
je 0x140044b30
mov ecx, eax
call fcn.140048bac
or eax, 0xffffffff
jmp 0x140044b32
xor eax, eax
add rsp, 0x28
ret

Function at 0x140045a24
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140045a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140045a3c
xor eax, eax
test eax, eax
je 0x140045a4c
mov ecx, eax
call fcn.140048bac
or eax, 0xffffffff
jmp 0x140045a4e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140046450
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140046468
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004646a
xor eax, eax
test eax, eax
je 0x14004647a
mov ecx, eax
call fcn.140048bac
or eax, 0xffffffff
jmp 0x14004647c
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400487f8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140052fd0
nop
cmp dword [0x140089d88], 1
je 0x1400487a4
mov dword [0x140089d84], 1
mov byte [0x140089d80], r12b
test ebx, ebx
jne 0x140048790
mov rcx, qword [0x14008bfe0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14004877d
mov rcx, qword [0x14008bfd8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14004871c
call fcn.14004efb0
cmp qword [rdi], rax
jne 0x14004871c
jmp 0x140048702
cmp rdi, rsi
jb 0x14004877d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14004efb0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14008bfe0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14008bfd8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14004875b
cmp r13, rax
je 0x14004877b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140048702
lea rdx, [0x14006f9b8]
lea rcx, [0x14006f9a0]
call fcn.14004854c
lea rdx, [0x14006f9c8]
lea rcx, [0x14006f9c0]
call fcn.14004854c
nop
test r12d, r12d
je 0x1400487b3
mov ecx, 8
call fcn.140052ed0
test r12d, r12d
jne 0x1400487de
mov dword [0x140089d88], 1
lea ecx, [r12 + 8]
call fcn.140052ed0
mov ecx, r15d
call fcn.1400484e0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14004866c

Function at 0x140048804
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14004866c
Function at 0x14004e6a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140087990]
jne 0x14004484a
rol rcx, 0x10
test cx, 0xffff
jne 0x140044846
repz ret
ror rcx, 0x10
jmp 0x14004e600
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140089e80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140089f78]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14004e685
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140089e80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14004e6a7
mov rax, qword [rsp + 0x88]
mov qword [0x140089f78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140089f18], rax
mov rax, qword [0x140089f78]
mov qword [0x140089df0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140089f00], rax
mov dword [0x140089de0], 0xc0000409
mov dword [0x140089de4], 1
mov rax, qword [0x140087990]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140087998]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140089e78], eax
mov ecx, 1
call fcn.1400540d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140071330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140089e78], 0
jne 0x14004e72e
mov ecx, 1
call fcn.1400540d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14005bbf0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14004efb0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14008ab60], rbx
jne 0x14005bcf6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14005bdcb
lea rdx, [0x140072dc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005bdcb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14008ab60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14008ab68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14008ab70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14008ab80], rax
test rax, rax
je 0x14005bced
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14008ab78], rax
jmp 0x14005bcfd
mov rax, qword [0x14008ab78]
jmp 0x14005bd04
mov rax, qword [0x14008ab78]
mov r11, qword [0x14008ab80]
cmp rax, rdi
je 0x14005bd6c
cmp r11, rdi
je 0x14005bd6c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14008ab80]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14005bd6c
test rax, rax
je 0x14005bd6c
call rsi
test rax, rax
je 0x14005bd66
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005bd66
test byte [rsp + 0x38], 1
jne 0x14005bd6c
bts ebp, 0x15
jmp 0x14005bdaa
mov rcx, qword [0x14008ab68]
cmp rcx, rdi
je 0x14005bdaa
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005bdaa
call rax
mov rbx, rax
test rax, rax
je 0x14005bdaa
mov rcx, qword [0x14008ab70]
cmp rcx, rdi
je 0x14005bdaa
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005bdaa
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14008ab60]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14005bdcb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14005bdcd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400611cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x140061206
call fcn.140048b8c
and dword [rax], 0
call fcn.140048b6c
and qword [rsp + 0x20], 0
mov ebx, socket
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140046084
mov eax, ebx
jmp 0x140061256
test edx, 0xfffffff9
jne 0x1400611d9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14006122f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048bac
call fcn.140048b6c
mov eax, dword [rax]
jmp 0x140061256
test al, 0x10
jne 0x140061254
test al, 1
je 0x140061254
test bl, 2
je 0x140061254
call fcn.140048b8c
mov dword [rax], 5
call fcn.140048b6c
mov dword [rax], recvfrom
jmp 0x140061226
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14001d430
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r12, r9
mov r13, r8
xor edi, edi
mov esi, 0xddf329f2
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test edi, edi
je 0x14001d4c6
psrldq xmm0, 8
mov r9d, 0x245aa0b2
movzx ecx, cx
movq r8, xmm0
shr rcx, 1
lea r10, [r8 + rcx*2]
jmp 0x14001d4b8
movsx edx, byte [r8]
mov ecx, edx
imul ecx, edx
xor edx, r9d
add ecx, 0x31
xor ecx, 0x4764996c
mov r9d, ecx
imul r9d, edx
add r8, 2
cmp r8, r10
jne 0x14001d498
cmp r9d, edi
jne 0x14001d5c7
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov rcx, qword [rcx + r9 + 0x88]
mov r11d, ecx
add r11, r9
shr rcx, 0x20
cmp r11, r9
je 0x14001d5c7
mov ebx, dword [r11 + 0x18]
test ebx, ebx
je 0x14001d5c7
mov r15d, dword [r11 + 0x20]
dec ebx
mov ebp, 0x245aa0b2
lea rdx, [r15 + rbx*4]
mov r10d, dword [rdx + r9]
add r10, r9
jmp 0x14001d52a
movsx r8d, dl
mov edx, r8d
imul edx, r8d
xor r8d, ebp
add edx, 0x31
xor edx, 0x4764996c
mov ebp, edx
imul ebp, r8d
mov dl, byte [r10]
inc r10
test dl, dl
jne 0x14001d50d
cmp ebp, esi
je 0x14001d541
test ebx, ebx
jne 0x14001d4f9
jmp 0x14001d5c7
mov edx, dword [r11 + 0x24]
add rdx, r9
movzx r8d, word [rdx + rbx*2]
mov edx, dword [r11 + 0x1c]
add rdx, r9
mov r10d, dword [rdx + r8*4]
add r10, r9
cmp r10, r11
jbe 0x14001d5cf
lea rax, [rcx + r11]
cmp r10, rax
jae 0x14001d5cf
mov edi, 0x245aa0b2
mov esi, edi
jmp 0x14001d58c
movsx ecx, al
mov eax, ecx
imul eax, ecx
xor ecx, edi
add eax, 0x31
xor eax, 0x4764996c
mov edi, eax
imul edi, ecx
inc r10
mov al, byte [r10]
cmp al, 0x2e
jne 0x14001d572
jmp 0x14001d5ac
movsx ecx, al
mov eax, ecx
imul eax, ecx
xor ecx, esi
add eax, 0x31
xor eax, 0x4764996c
mov esi, eax
imul esi, ecx
inc r10
mov al, byte [r10]
test al, al
jne 0x14001d595
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x14001d46c
mov rcx, qword [rsp + 0x60]
mov r9, r12
mov rdx, qword [rsp + 0x68]
mov r8, r13
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp r10
Function at 0x1400539d4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
test edx, edx
je 0x140053a11
movzx r9d, word [rcx + 0x14]
movzx r11d, word [rcx + 6]
add r9, 0x18
add r9, rcx
test r11d, r11d
je 0x140053a11
mov r10d, dword [r9 + 0xc]
cmp r10d, edx
ja 0x140053a05
mov ecx, dword [r9 + 8]
add ecx, r10d
cmp ecx, edx
ja 0x140053a14
inc r8d
add r9, 0x28
cmp r8d, r11d
jb 0x1400539f1
xor eax, eax
ret
mov eax, dword [r9 + 0x14]
sub eax, r10d
add eax, edx
ret

Function at 0x140053be8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140053c16
xor eax, eax
jmp 0x140053cfc
cmp qword [rcx + 0x68], 0
je 0x140053c27
call fcn.140053d18
jmp 0x140053cfc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140053c3e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140053c40
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140053c72
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14029e080
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140053cf6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140053ca9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140053cd2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1402843e8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140053cf6
cmp rsi, rbx
ja 0x140053cb0
test rsi, rsi
je 0x140053cf6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1402843e8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140163e20
Capabilities:
Encode data using xor

Disassembly:
movabs rax, 0x5555555555555555
mov qword [rcx + 8], rdx
mov qword [rcx + 0x1388], rax
lea r9, [rcx + 0x10]
mov r8d, 1
mov r10d, 0x138
mov rax, rdx
shr rax, 0x3e
xor rax, rdx
movabs rdx, 0x5851f42d4c957f2d
imul rdx, rax
add rdx, r8
inc r8
mov qword [r9], rdx
lea r9, [r9 + 8]
cmp r8, r10
jb 0x140163e45
mov dword [rcx], r10d
mov rax, rcx
ret
Function at 0x140165b38
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x138
mov rbx, rcx
cmp dword [rcx], r8d
jne 0x140165b97
lea r9, [rcx + 0x10]
mov rdx, qword [r9]
xor rdx, qword [r9 - 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r9]
lea r9, [r9 + 8]
mov al, dl
and al, 1
neg al
movabs rax, 0xb5026f5aa96619e9
sbb rcx, rcx
shr rdx, 1
and rcx, rax
xor rcx, qword [r9 + 0x4d0]
xor rcx, rdx
mov qword [r9 + 0x9b0], rcx
sub r8, 1
jne 0x140165b50
jmp 0x140165ba4
cmp dword [rcx], 0x270
jb 0x140165ba4
call fcn.140166970
mov eax, dword [rbx]
mov rdx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rcx, rdx
mov rax, qword [rbx + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 0x20
pop rbx
ret

Function at 0x140166970
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea r10, [rcx + 0x9c8]
mov r9, rcx
mov rax, qword [r10]
mov r11d, 0x9c
mov rbx, 0xffffffff80000000
movabs rdi, 0xb5026f5aa96619e9
mov r8, r10
add r10, 8
mov rdx, qword [r10]
xor rdx, rax
and rdx, rbx
xor rdx, qword [r10]
mov al, dl
and al, 1
neg al
mov rax, qword [r10]
sbb rcx, rcx
shr rdx, 1
and rcx, rdi
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub r11, 1
jne 0x14016699e
lea r10, [r9 + 0xea8]
mov r11d, 0x9b
mov rax, qword [r10]
mov r8, r10
add r10, 8
mov rdx, qword [r10]
xor rdx, rax
and rdx, rbx
xor rdx, qword [r10]
mov al, dl
and al, 1
neg al
mov rax, qword [r10]
sbb rcx, rcx
shr rdx, 1
and rcx, rdi
xor rcx, qword [r8 - 0xea0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub r11, 1
jne 0x1401669ea
mov rdx, qword [r9 + 8]
xor rdx, qword [r9 + 0x1380]
and rdx, rbx
mov rbx, qword [rsp + 8]
xor rdx, qword [r9 + 8]
mov al, dl
and al, 1
neg al
sbb rcx, rcx
and dword [r9], 0
and rcx, rdi
shr rdx, 1
xor rcx, qword [r9 + 0x4e0]
mov rdi, qword [rsp + 0x10]
xor rcx, rdx
mov qword [r9 + 0x9c0], rcx
ret
Function at 0x140275ce0
Capabilities:
Execute syscall

Disassembly:
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rbx
mov rbx, rax
pop qword [rax]
mov eax, dword [rax + 0x10]
mov r10, rcx
syscall
mov rcx, rbx
push qword [rcx]
mov rbx, qword [rcx + 8]
ret

Function at 0x140276af8
Capabilities:
Get geographical location

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

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140276c10
mov ebx, eax
test eax, eax
jne 0x140277174
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1402771d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402771c7
test al, 0x10
je 0x1402771c7
bt eax, 0xa
jae 0x1402771c0
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1402771e8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1402771bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1402771e0
test edi, edi
jne 0x1402771c7
and dword [rsp + 0x3c], 0
jmp 0x1402771cc
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14028a3b0
int3

Function at 0x1402785e0
Capabilities:
Parse pe header

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

Function at 0x14028accc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14028aac8