joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400235f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140023636
mov r15, rbx
test r15, r15
je 0x140023711
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140023692
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140023681
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140084b80
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140023612
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14002372d
lea rcx, [r13*8]
call fcn.140054d50
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x1400236f3
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140023711
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x1400236d8
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140023713
add rbx, 0xfffffffffffffff8
jne 0x140023706
ud2
test r12, r12
je 0x140023612
mov rcx, r12
call fcn.140054d8c
mov r15, qword [rsi + 0x10]
jmp 0x140023612
call fcn.140086030
int3
Function at 0x140024400
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400245c0
mov eax, dword [rsi]
mov dword [0x1400e4020], eax
mov bl, 1
test al, 1
jne 0x140024447
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140055fa0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400f3128]
test rcx, rcx
je 0x140024475
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f3128], 0
cmp qword [0x1400f3130], 0
jne 0x140024475
and byte [0x1400e4020], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14002449e
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x14002448c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140024517
mov qword [0x1400f3128], rax
jmp 0x14002442e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x1400244ac
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140024566
lea rdi, [rsi + 8]
mov rcx, qword [0x1400f3130]
test rcx, rcx
jne 0x1400244e7
mov ecx, 0x18
call fcn.140054d50
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f3130], rax
mov rdx, rdi
call fcn.14001ca40
cmp dword [rsi + 0x24], 0
jne 0x14002450b
mov rcx, qword [0x1400f3130]
cmp byte [rcx + 0x17], 0
jns 0x140024505
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400a0180
mov ebx, eax
jmp 0x14002442e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cb394]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.1400451c0
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400a4d80
mov rcx, r14
call fcn.1400a4f90
mov rax, qword [rsi + 0x28]
jmp 0x140024495
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cb394]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.1400451c0
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400a4d80
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400a0150
mov rcx, rbx
call fcn.1400a4f90
jmp 0x1400244b5
Function at 0x140025ee0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f3198]
test rdi, rdi
jne 0x140025f93
mov ecx, 0x50
call fcn.140054d50
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140054d50
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140025fb5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400f3198], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140025fb5
mov rcx, rax
call fcn.14006e5b8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140025fc0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140055fa0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140025fc0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14002caa0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140026148
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400cb528]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002617b
lea rdx, [0x1400cb578]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002616a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400d7fd8]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x1400260e2
test r12d, r12d
js 0x140026171
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140054d50
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x140026168
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a8f0
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x1400260bb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140025cb0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140026109
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140026148
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140026140
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x140026168
cmp byte [rdi + 0x17], 0
jns 0x140026134
mov rcx, qword [rdi]
call fcn.140054d8c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x140026121
mov rcx, rsi
call fcn.140054d8c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140055fa0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14002606f
lea rcx, [rsp + 0x20]
call fcn.1400863f0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002606c
Function at 0x1400294a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400f31c8]
mov ecx, dword [0x1400f0618]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140029500
lea rsi, [0x1400f31c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140055fa0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f31c8]
call fcn.140054ddc
cmp dword [0x1400f31c8], 0xffffffff
jne 0x1400294dc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140085220
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140054d50
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f3210]
mov ecx, dword [0x1400f0618]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400295d7
lea rcx, [0x1400f3210]
call fcn.140054ddc
cmp dword [0x1400f3210], 0xffffffff
jne 0x1400295d7
xorps xmm0, xmm0
movups xmmword [0x1400f3200], xmm0
movups xmmword [0x1400f31f0], xmm0
movups xmmword [0x1400f31e0], xmm0
lea rcx, [0x1400f31e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f3210]
call fcn.140054e90
lea r8, [0x1400f31e0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400296c0
mov qword [0x1400f31c0], rsi
lea rcx, [0x1400f31c8]
call fcn.140054e90
jmp 0x1400294dc

Function at 0x140029610
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f3210]
mov ecx, dword [0x1400f0618]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002967b
lea rcx, [0x1400f3210]
call fcn.140054ddc
cmp dword [0x1400f3210], 0xffffffff
jne 0x14002967b
xorps xmm0, xmm0
movups xmmword [0x1400f3200], xmm0
movups xmmword [0x1400f31f0], xmm0
movups xmmword [0x1400f31e0], xmm0
lea rcx, [0x1400f31e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f3210]
call fcn.140054e90
movzx eax, word [0x1400f31e0]
cmp eax, 9
jne 0x140029691
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x14002968c
cmp eax, 6
jne 0x1400296a1
mov eax, 2
jmp 0x14002968c
cmp eax, 0xc
jne 0x1400296ad
mov eax, 3
jmp 0x14002968c
mov eax, 4
jmp 0x14002968c
Function at 0x14002b200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c8910]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20d
call fcn.1400451c0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002b110
cmp byte [rdi + 0x17], 0
jns 0x14002b272
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14002b190
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140055fa0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f848
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14002f832
cmp dword [rsp + 0x38], 4
jne 0x14002f832
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140055fa0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14002f832

Function at 0x14002f850
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140055f40
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140085220
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f903
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002f907
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140022cd0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140055fa0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14002f8e4
mov edi, 0x3f4
cmp eax, 2
jne 0x14002f8e4
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140085220
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14002f8e4
lea rdx, [rsp + 0x40]
jmp 0x14002f8da
Function at 0x140031ea0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140055f40
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c8910]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.14002c5f0
test rsi, rsi
jne 0x140031f4b
cmp byte [rsp + 0x47], 0
js 0x140031f08
lea rcx, [rsp + 0x30]
jmp 0x140031f0d
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [rsp + 0x47], 0
jns 0x140031f2e
mov rcx, qword [rsp + 0x30]
call fcn.140054d8c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140055fa0
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140085220
cmp byte [rsp + 0x47], 0
jns 0x140031f6c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x140031f1d
cmp eax, 0x7fff
jae 0x140031f9d
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400a6b30
jmp 0x140031f1d
int3

Function at 0x1400324c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140032537
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400e4530], rax
jne 0x14003253a
mov rsi, rcx
call fcn.140037170
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140032540
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004cd30
mov ecx, dword [0x1400f54b0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f0618]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140037070
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400f62e8], 0
jne 0x1400370ad
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400370a0
mov dword [rdi], eax
mov dword [0x1400f62f0], eax
mov qword [0x1400f62e8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400427e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14004283e
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140042828
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140042818
mov qword [rdi], rsi
call fcn.1400451e0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1400451e0
mov rcx, qword [rdi]
call fcn.1400451f0
mov qword [rdi], 0
jmp 0x140042806
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400547b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x1400547ec
je 0x1400547eb
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x1400d41e4]
nop word [rax + rax]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x1400547d0
ret
int3

Function at 0x14005546c
Capabilities:
Parse pe header

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

Function at 0x1400557c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140055838
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140055838
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140055838
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14005582c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14005584a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14005581a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14005583a

Function at 0x1400638b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400638ef
call fcn.1400667d0
mov dword [rax], 0x16
call fcn.140074bb4
xor eax, eax
jmp 0x14006397d
mov rdx, r9
mov rcx, r8
call fcn.1400639a0
mov rbx, rax
test rax, rax
je 0x14006397a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140063a10]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140063967
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140066810
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14006394e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006395d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140044cd0
jmp 0x14006397a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140063977
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140063c2c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140063c2c
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 0x140063c9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140063c9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140063c9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140063c9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140063c9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140063c9b
cmp dword [rcx + 0xf8], 0
je 0x140063c9b
mov ecx, ebx
call fcn.140063b64
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.140063dc0
nop
cmp dword [rbp + 0x20], 0
je 0x140063ce9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140063bf8
int3
Function at 0x140067d5c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f14a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140067db3
cmp word [rdx], r13w
jne 0x140067db3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140067db8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140067edd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140067efe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140067df1
mov rdx, r9
mov word [rbx], cx
jmp 0x140067e18
cmp r9, r8
jae 0x140067e28
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140067dd2
jmp 0x140067edd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140067ed2
cmp dword [rsp + 0x80], esi
je 0x140067ed2
lea r8, [0x1400f14a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140067eaa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140067e7a
mov word [rbx], r13w
jmp 0x140067eda
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140067e87
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140067eda
cmp word [rsp + 0x70], r13w
jne 0x140067eb7
cmp rbx, r14
je 0x140067e74
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140076504
cmp word [rsp + 0x70], r13w
je 0x140067edd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f14a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140067ed7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140067edd
Function at 0x14006ebf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006ec18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006ec18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400790f8
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.140072814
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 0x140079199
cmp ebx, dword [rsp + 0x30]
je 0x140079192
test esi, esi
je 0x140079192
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007916d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007917a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140079157
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007917e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007919b
mov eax, 1
jmp 0x14007919b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret