joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000542c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
mov ebp, 0x2710
xor r14d, r14d
mov ecx, ebp
mov r12d, 0x1388
call fcn.100010558
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x10000546f
xor eax, eax
jmp 0x1000055d2
mov ecx, ebp
call fcn.100010558
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x100005495
lea rcx, [rsp + 0x90]
call fcn.10001047c
jmp 0x100005468
mov rcx, rbx
call fcn.100010700
mov rdi, rbx
movsxd rcx, eax
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.100010700
mov rdi, rsi
movsxd rcx, eax
xor eax, eax
rep stosb byte [rdi], al
lea r8, [0x100001708]
lea rcx, [0x100001630]
mov r9, rbx
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r12 - 2]
mov r13d, eax
cmp eax, ecx
jne 0x100005558
lea rcx, [rsp + 0x90]
add r12d, 0x64
add ebp, 0xc8
call fcn.10001047c
mov ecx, ebp
call fcn.100010558
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x10000553e
lea rcx, [rsp + 0x98]
call fcn.10001047c
mov ecx, ebp
call fcn.100010558
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x1000054b9
lea rcx, [rsp + 0x90]
call fcn.10001047c
lea rcx, [rsp + 0x98]
jmp 0x10000548e
call fcn.100010a64
xor r12d, r12d
mov rdi, rax
mov qword [rsp + 0x30], rax
cmp rax, r12
je 0x10000553e
mov rbp, r12
cmp r13d, r12d
jbe 0x1000055b5
movzx eax, word [rbx]
mov word [rsi + rbp*2], ax
inc rbp
cmp word [rbx], r12w
jne 0x1000055a9
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov rbp, r12
call fcn.100010b24
cmp rsi, r12
je 0x1000055ea
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r12d
je 0x1000055ea
inc r14d
add rbx, 2
cmp r14d, r13d
jb 0x100005575
lea rcx, [rsp + 0x90]
call fcn.10001047c
lea rcx, [rsp + 0x98]
call fcn.10001047c
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x90]
call fcn.10001047c
lea rcx, [rsp + 0x98]
call fcn.10001047c
lea rcx, [rsp + 0x30]
call fcn.100010a9c
jmp 0x100005468
Function at 0x100005ed8
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
jne 0x100005ee7
xor eax, eax
jmp 0x100005f30
mov edx, dword [0x100017838]
test dl, 1
je 0x100005ef7
or edx, 0x21
jmp 0x100005efa
or edx, 0x20
mov dword [0x100017838], edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100005f2b
mov ecx, 0x8d
call fcn.10000e684
mov rbx, rax
call qword [sym.imp.msvcrt.dll___iob_func]
mov rdx, rbx
lea rcx, [rax + 0x60]
call fcn.10000fab8
jmp 0x100005ee3
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x10000b010
Capabilities:
Read .ini file

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 r12
sub rsp, 0x40
mov r12, rcx
mov rsi, r9
mov rbp, r8
mov ecx, 0x2710
mov edi, 0x1388
call fcn.100010558
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x10000b066
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10000e274
mov eax, 1
jmp 0x10000b0f6
lea r8, [0x1000014a4]
lea rcx, [0x100001630]
mov r9, rbx
mov rdx, rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rdi - 2]
cmp eax, ecx
jne 0x10000b0a7
add edi, 0x64
test rbx, rbx
je 0x10000b0a2
lea rcx, [rsp + 0x30]
call fcn.10001047c
lea ecx, [rdi + rdi]
jmp 0x10000b03c
mov edi, 0xfe
test rbx, rbx
je 0x10000b0dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jbe 0x10000b0dc
lea rcx, [rsp + 0x30]
call fcn.10001047c
mov ecx, 0xe80
call fcn.10000e684
mov rcx, rax
call fcn.10000e0a0
jmp 0x10000b05c
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.10000f884
lea rcx, [rsp + 0x30]
call fcn.10001047c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x1000113d4
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x100017110]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rax, [r11 - 0x20]
lea rcx, [r11 - 0x18]
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x20], rdi
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x70], dil
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x71], dil
mov byte [rsp + 0x72], dil
mov byte [rsp + 0x73], dil
mov byte [rsp + 0x74], dil
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebx, eax
cmp eax, 1
jne 0x100011480
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, ebx
jne 0x100011473
cmp dword [rsp + 0x60], ebx
je 0x100011475
mov ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.100014d50
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x100011510
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rsi, rbx
je 0x1000116c9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x1000116c9
lea ebp, [rbx + 4]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x100011573
xor eax, eax
jmp 0x1000116ce
mov r8d, dword [rsp + 0x40]
mov edi, 1
xor edx, edx
lea ecx, [rdi + 0xd]
mov r9d, edi
call fcn.10000de24
mov r12, rax
cmp rax, rbx
jne 0x1000115a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10001156c
lea ecx, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001156c
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10001156c
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call fcn.10000fa28
cmp eax, ebx
jne 0x1000115d7
mov eax, edi
jmp 0x1000116ce
mov rcx, rsi
call fcn.1000117e4
xor edx, edx
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x40]
cmp eax, edi
jne 0x10001166d
xor r9d, r9d
mov rcx, rsi
call fcn.100011a80
cmp eax, ebx
je 0x10001156c
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xf]
call fcn.10000de24
mov rbp, rax
cmp rax, rbx
je 0x10001156c
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call fcn.100011a80
cmp eax, ebx
je 0x10001156c
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call fcn.10000fa28
cmp eax, ebx
je 0x1000115d0
lea rdx, [0x100001c30]
mov r8d, edi
xor r9d, r9d
mov rcx, rbp
call fcn.10000fa28
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x1000116ce
mov r12d, 7
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10001156c
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xe]
call fcn.10000de24
mov rbp, rax
cmp rax, rbx
je 0x10001156c
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10001156c
mov rdx, rsi
jmp 0x100011656
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x100011a80
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x100017110]
xor rax, rsp
mov qword [rsp + 0xa70], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x4c]
lea r8d, [rbx + 0x2c]
xor edx, edx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
call sub.msvcrt.dll_memset
mov word [rsp + 0xa62], bx
cmp rdi, rbx
je 0x100011c06
cmp rsi, rbx
je 0x100011c06
cmp dword [rsi], ebx
je 0x100011af5
cmp dword [rsi], 2
jb 0x100011c06
cmp rbp, rbx
je 0x100011c06
cmp dword [0x1000176f4], ebx
jne 0x100011b2b
lea rdx, [rsp + 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x100011b21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x100011c15
mov dword [0x1000176f4], 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, ebx
jne 0x100011c1b
mov rdi, qword [rsp + 0x40]
jmp 0x100011ba8
mov word [rsp + 0x260], bx
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x220]
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x260]
mov r9d, 0x401
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, ebx
je 0x100011baf
cmp eax, 0x2afc
jne 0x100011ba4
cmp word [rsp + 0x260], bx
jne 0x100011baf
mov rdi, qword [rdi + 0x28]
cmp rdi, rbx
jne 0x100011b4f
jmp 0x100011bf7
lea rdx, [0x100001c80]
lea rcx, [rsp + 0x260]
call qword [sym.imp.msvcrt.dll_wcstok]
mov rdi, rax
cmp rax, rbx
je 0x100011bd7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [rbx + 1]
cmp dword [rsi], eax
jae 0x100011be7
mov dword [rsi], eax
mov ebx, 1
jmp 0x100011bf7
mov r8d, dword [rsi]
mov rdx, rdi
mov rcx, rbp
call fcn.10000f884
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
jmp 0x100011c1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x100011c1b
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.100014d50
mov rbx, qword [rsp + 0xab8]
add rsp, 0xa80
pop rdi
pop rsi
pop rbp
ret
Function at 0x100014d50
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100017110]
jne 0x100014d6b
rol rcx, 0x10
test cx, 0xffff
jne 0x100014d67
ret 0
ror rcx, 0x10
jmp 0x10001506c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100017220]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100017318]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000150f1
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, [0x100017220]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x100015113
mov rax, qword [rsp + 0x88]
mov qword [0x100017318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000172b8], rax
mov rax, qword [0x100017318]
mov qword [0x100017190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000172a0], rax
mov dword [0x100017180], 0xc0000409
mov dword [0x100017184], 1
mov rax, qword [0x100017110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100017118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001490]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x100014f08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100014f55
cmp rcx, 0xffffffffffffffff
je 0x100014f55
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100014f4d
cmp dword [rcx + 0x3c], edx
jl 0x100014f4d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100014f4d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100014f55
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14004a1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, ecx
mov rbx, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, di
mov r8, rsi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14004a2cc
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rdi, rdi
je 0x14004a2cc
test eax, eax
je 0x14004a2cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14004a2cc
mov rcx, qword [rbx]
mov qword [rbx + 8], rcx
mov rax, qword [rbx + 0x10]
sub rax, rcx
mov dword [rbp - 0x28], 0x97f692a
mov dword [rbp - 0x24], 0x4f8fced0
mov dword [rbp - 0x20], 0x7954378f
mov dword [rbp - 0x1c], 0xa9123cb9
mov dword [rbp - 0x18], 0xbf064ed6
mov dword [rbp - 0x14], 0x77363cf
mov dword [rbp - 0x10], 0xc63d090a
mov dword [rbp - 0xc], 0x7e1c8803
cmp rsi, rax
jbe 0x14004a282
mov edx, esi
mov rcx, rbx
call fcn.14004a320
xor edi, edi
test rsi, rsi
je 0x14004a2c8
nop dword [rax]
mov rdx, qword [rbx + 8]
mov rax, rdi
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rdi + r14]
mov byte [rbp - 0x30], cl
cmp rdx, qword [rbx + 0x10]
je 0x14004a2b4
mov byte [rdx], cl
inc qword [rbx + 8]
jmp 0x14004a2c0
lea r8, [rbp - 0x30]
mov rcx, rbx
call fcn.140003d50
inc rdi
cmp rdi, rsi
jb 0x14004a290
mov al, 1
jmp 0x14004a2ce
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140088250
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14004a2f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x40], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], rax
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret
Function at 0x1408a8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408a81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408a8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a806f
add dl, dl
jne 0x1408a8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a80f6
xor eax, eax
add dl, dl
jne 0x1408a80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a81ad
add dl, dl
jne 0x1408a80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408a80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408a807e
mov eax, 1
add dl, dl
jne 0x1408a8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a80fb
sub eax, ebx
mov ebx, 1
jne 0x1408a814c
mov ecx, 1
add dl, dl
jne 0x1408a812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408a8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a815d
cmp eax, 0x7d00
jae 0x1408a819b
cmp eax, 0x500
jb 0x1408a8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
cmp eax, 0x7f
ja 0x1408a819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408a81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408a807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400059d0
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 0x1400059fe
xor eax, eax
jmp 0x140005ae4
cmp qword [rcx + 0x68], 0
je 0x140005a0f
call fcn.14000514c
jmp 0x140005ae4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005a26
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005a28
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005a5a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140021b50
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 0x140005ade
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005a91
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 0x140005aba
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000dff8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005ade
cmp rsi, rbx
ja 0x140005a98
test rsi, rsi
je 0x140005ade
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000dff8
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 0x140006aa8
Capabilities:
Parse pe header

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

Function at 0x14000a150
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a298
Function at 0x14000a298
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000a298
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 0x14000a307
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a307
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a307
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a307
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a307
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a307
cmp dword [rcx + 0xf8], 0
je 0x14000a307
mov ecx, ebx
call fcn.14000a1d0
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.14000a42c
nop
cmp dword [rbp + 0x20], 0
je 0x14000a355
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a264
int3

Function at 0x14000f210
Capabilities:
Parse pe header

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

Function at 0x140018604
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.1400129bc
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 0x1400186a5
cmp ebx, dword [rsp + 0x30]
je 0x14001869e
test esi, esi
je 0x14001869e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140018679
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140018686
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140018663
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001868a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400186a7
mov eax, 1
jmp 0x1400186a7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001961c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140007b40
sub rsp, rax
mov rax, qword [0x140031200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015c68
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001966b
mov rax, rbp
jmp 0x140019773
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x33530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001934c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x33530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001976f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001976f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001934c
test rax, rax
js 0x14001976f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001976f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019761
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019761
cmp byte [rcx], 0xd
jne 0x140019747
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019756
cmp byte [rcx + 1], 0xa
jne 0x140019756
inc rcx
jmp 0x140019756
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31d40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019729
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019773
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400040f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret