joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012bd1
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x140012c7e
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x1050
call fcn.14002e920
sub rsp, rax
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
xor esi, esi
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x1078]
call fcn.140002b4c
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
or r9, 0xffffffffffffffff
mov r8d, 0x7ff
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x103e], si
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x1050
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001309c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x108
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xc8
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x20]
lea rcx, str.AllInOne_Enable
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x63
ja 0x140013104
lea rdx, [rsp + 0x20]
lea rcx, str.AIO_LOG:_GetEnableFromEnvironmentVariable__enable_s
call fcn.140012bc8
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
jmp 0x140013106
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x108
ret

Function at 0x140013120
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x108
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xc8
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x20]
lea rcx, str.AllInOne_IsTsp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x63
ja 0x140013192
lea rdx, [rsp + 0x20]
lea rcx, str.AIO_LOG:_GetIsTspFromEnvrionmentVariable__IsTsp_s
call fcn.140012bc8
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
jmp 0x140013194
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x108
ret

Function at 0x1400133b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x108
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xc8
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x64
lea rdx, [rsp + 0x20]
lea rcx, str.AllInOne_LanguageID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x63
ja 0x140013418
lea rdx, [rsp + 0x20]
lea rcx, str.AIO_LOG:_GetLanguageIDFromEnvrionmentVariable__LanguageID_s
call fcn.140012bc8
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
jmp 0x14001341d
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x108
ret
Function at 0x140013450
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
test rcx, rcx
je 0x14001361c
test rdx, rdx
je 0x14001361c
call fcn.140013438
test eax, eax
jne 0x1400134b4
mov rdx, rsi
mov r8, rdi
mov rcx, rbx
call fcn.1400126e4
lea eax, [r14 + 1]
jmp 0x14001361e
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x1f], r14
mov r15d, 7
mov qword [rbp + 0x27], r15
mov word [rbp + 0xf], r14w
call fcn.14001338c
lea rdx, [rbp + 0xf]
mov ecx, eax
call fcn.1400131ac
lea rax, [rbp - 0x39]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], r14
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x39]
call fcn.1400104fc
nop
mov r9d, esi
mov r8, rbx
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.140012c80
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r15
mov word [rbp - 0x11], r14w
lea rcx, str.AIO_LOG:_WbxGetNewResourceLibraryPathW__szNewResPath
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
lea rdx, str.AIO_LOG:_WbxGetNewResourceLibraryPathW__szNewResPath
lea rcx, [rbp - 0x11]
call fcn.14000c850
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140012a50
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400135b0
lea rcx, str.____FILE_NOT_EXISTS__USE_ORIGINAL_PATH
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
lea rdx, str.____FILE_NOT_EXISTS__USE_ORIGINAL_PATH
lea rcx, [rbp - 0x11]
call fcn.140012a50
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call fcn.140012bc8
mov rdx, rsi
mov r8, rdi
mov rcx, rbx
call fcn.1400126e4
mov ebx, r14d
jmp 0x1400135c8
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call fcn.140012bc8
mov ebx, 1
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400135e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
call fcn.140002de0
mov qword [rbp - 1], r14
mov qword [rbp + 7], r15
mov word [rbp - 0x11], r14w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14001360b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
call fcn.140002de0
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r15
mov word [rbp + 0xf], r14w
mov eax, ebx
jmp 0x14001361e
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002e470
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400172ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
cmp byte [0x140052c70], dil
jne 0x14001747b
mov byte [0x140052c70], 1
cmp qword [0x140051358], rdi
jne 0x140017482
mov qword [rbp - 0x40], rdi
lea r8, [rbp - 0x40]
lea rdx, str.SoftwareWebExPD
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140017372
lea r8, [rbp - 0x40]
lea rdx, str.SoftwareWebExPD
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140017372
xor al, al
jmp 0x140017485
mov dword [rbp - 0x34], 1
mov dword [rbp - 0x38], edi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.Log_File
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400173b2
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001736b
cmp dword [rbp - 0x34], 1
jne 0x1400173a6
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x1400173a6
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002e9b0
mov rbx, rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.Log_File
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140017420
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14002e4d4
jmp 0x14001736b
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140013b84
nop
lea rdx, [rbp - 0x30]
lea rcx, [0x140051348]
call fcn.140013bdc
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140017459
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
call fcn.140002de0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14002e4d4
cmp qword [0x140051358], rdi
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002e470
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400205f8
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14002078b
cmp ecx, 0x7c
je 0x14002078b
cmp ecx, 0x29
jne 0x140020674
cmp dword [rdi + 0x1c], 0
jne 0x14002078b
test dword [rdi + 0x80], 0x10000000
je 0x1400207a4
cmp ecx, 0x5d
jne 0x140020650
test dword [rdi + 0x80], 0x10000000
je 0x1400207b2
movzx edx, word [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.14001fbb4
mov rcx, rdi
call fcn.140022fc8
mov rcx, rdi
call fcn.140023038
mov ecx, dword [rdi + 0x7c]
mov al, 1
jmp 0x14002060a
cmp ecx, 0x2e
jne 0x140020684
lea rcx, [rdi + 0x40]
call fcn.14001fe44
jmp 0x14002065d
cmp ecx, 0x5c
jne 0x1400206d9
mov rcx, rdi
call fcn.140022fc8
test byte [rdi + 0x80], 0x80
je 0x1400206cf
cmp word [rdi + 0x78], 0x62
jne 0x1400206b4
lea rcx, [rdi + 0x40]
call fcn.1400205ec
mov rcx, rdi
call fcn.140022fc8
jmp 0x14002066d
cmp word [rdi + 0x78], 0x42
jne 0x1400206cf
lea rcx, [rdi + 0x40]
call fcn.1400205ec
lea rcx, [rdi + 0x40]
call fcn.140022f64
jmp 0x1400206aa
mov rcx, rdi
call fcn.1400207d0
jmp 0x140020665
cmp ecx, 0x5b
jne 0x140020704
mov rcx, rdi
call fcn.140022fc8
mov rcx, rdi
call fcn.140020de8
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.1400222a0
jmp 0x140020665
cmp ecx, 0x28
jne 0x140020739
mov rcx, rdi
call fcn.140022fc8
mov rcx, rdi
call fcn.14002360c
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.1400222a0
test bl, bl
je 0x14002066d
jmp 0x140020665
cmp ecx, 0x5e
jne 0x14002074c
lea rcx, [rdi + 0x40]
call fcn.14001fba8
jmp 0x1400206aa
cmp ecx, 0x24
jne 0x14002075f
lea rcx, [rdi + 0x40]
call fcn.14001ff3c
jmp 0x1400206aa
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400207c0
cmp ecx, 0x3f
je 0x1400207c0
cmp ecx, 0x7b
je 0x1400207c0
cmp ecx, 0x7d
jne 0x14002063b
test dword [rdi + 0x80], 0x10000000
je 0x140020796
jmp 0x140020650
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.140022294
int3
mov edx, 5
mov rcx, rdi
call fcn.140022294
int3
mov edx, 4
mov rcx, rdi
call fcn.140022294
int3
mov edx, 0xa
mov rcx, rdi
call fcn.140022294
int3
Function at 0x140025114
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor sil, sil
mov ebp, r8d
mov r15, rdx
mov r14d, ecx
test rdx, rdx
je 0x140025252
cmp r8d, 0x104
jb 0x140025252
call fcn.140026420
test al, al
je 0x1400251d4
lea rcx, str.psapi.dll
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14002524d
lea rdx, str.GetModuleFileNameExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x1400251ca
mov r8d, r14d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400251ca
mov r9d, ebp
mov r8, r15
xor edx, edx
mov rcx, rax
call r12
test eax, eax
movzx esi, sil
mov ecx, 1
cmovne esi, ecx
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x14002523f
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025244
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140025224
cmp r14d, dword [rsp + 0x28]
je 0x14002522a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140025210
jmp 0x14002523f
mov r8d, ebp
lea rdx, [rsp + 0x4c]
mov rcx, r15
call fcn.140015e08
mov esi, 1
test rbx, rbx
je 0x14002524d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
jmp 0x140025254
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002616c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, 0x11c
call fcn.14002f8b0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
test eax, eax
jne 0x1400261db
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400261db
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, 0x11c
call fcn.14002f8b0
cmp dword [rsp + 0x30], 2
jne 0x1400261eb
cmp dword [rsp + 0x24], 5
jb 0x1400261eb
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x150
pop rbx
ret
Function at 0x140026658
Capabilities:
Check os version

Disassembly:
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, 0x11c
call fcn.14002f8b0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400266c6
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400266c6
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, 0x11c
call fcn.14002f8b0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14002676b
sub eax, 1
je 0x14002673d
cmp eax, 1
jne 0x1400266f6
mov eax, dword [rsp + 0x24]
sub eax, 4
je 0x14002672f
sub eax, 1
je 0x140026708
cmp eax, 1
je 0x1400266fa
cmp dword [rsp + 0x24], 4
jb 0x140026736
xor eax, eax
jmp 0x140026770
cmp dword [rsp + 0x28], 0
jne 0x1400266f6
mov eax, 0x6c
jmp 0x140026770
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140026728
sub eax, 1
je 0x140026721
cmp eax, 1
jne 0x1400266f6
mov eax, 0x6b
jmp 0x140026770
mov eax, 0x6a
jmp 0x140026770
mov eax, 0x69
jmp 0x140026770
cmp dword [rsp + 0x28], 0
jne 0x1400266f6
mov eax, 0x68
jmp 0x140026770
cmp dword [rsp + 0x24], 4
jne 0x1400266f6
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140026764
cmp eax, 0xa
je 0x14002675d
cmp eax, 0x5a
jne 0x1400266f6
mov eax, 0x67
jmp 0x140026770
mov eax, 0x66
jmp 0x140026770
mov eax, 0x65
jmp 0x140026770
mov eax, 0x64
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x150
pop rbp
ret
Function at 0x1400272cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0x10000
je 0x140027337
cmp dword [rcx + 0x28], 0x20000
je 0x140027337
mov rsi, qword [rcx + 8]
mov edx, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor ebx, ebx
test eax, eax
jne 0x140027337
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140027337
movsxd rdi, dword [rsi + 0x3c]
mov edx, 0x108
add rdi, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140027337
cmp dword [rdi], 0x4550
cmove rbx, rdi
mov rax, rbx
jmp 0x140027339
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140838000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14083800a
jmp 0x14083a00f
jmp fcn.140557058
Function at 0x18000184c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12d, edx
mov r13, rcx
test r8b, 7
je 0x180001881
mov eax, 0xffffffd8
jmp 0x18000196b
test edx, edx
jne 0x1800018fa
test r8, r8
je 0x180001969
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
lea rsi, [r8 - 1]
mov r14, r9
shr rsi, 3
lea edi, [rdx + 8]
sub r14, rbx
inc rsi
lea rcx, [rsp + 0x60]
mov r8, rdi
mov rdx, rbp
call fcn.180001b90
mov r9, rbx
mov r8, rbp
xor edx, edx
mov rcx, r13
call fcn.180001988
mov rcx, rdi
mov al, byte [r14 + rbx]
xor byte [rbx], al
inc rbx
dec rcx
jne 0x1800018cf
lea rdx, [rsp + 0x60]
mov r8, rdi
mov rcx, r15
call fcn.180001b90
add rbp, rdi
sub r14, rdi
dec rsi
jne 0x1800018ac
jmp 0x180001969
test r8, r8
je 0x180001969
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
lea rbx, [r8 - 1]
mov r14, r9
shr rbx, 3
mov edi, 8
sub r14, rsi
inc rbx
mov rdx, rbp
mov rcx, rsi
mov r8, rdi
sub rdx, rsi
mov al, byte [r14 + rcx]
xor al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
dec r8
jne 0x18000192b
mov r9, rbp
mov r8, rbp
mov edx, r12d
mov rcx, r13
call fcn.180001988
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.180001b90
add rsi, rdi
sub r14, rdi
add rbp, rdi
dec rbx
jne 0x18000191f
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180001988
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx eax, byte [r8 + 1]
movzx r10d, byte [r8]
mov r11, r9
movzx r9d, byte [r8 + 4]
shl r10d, 8
mov rsi, rcx
or r10d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
shl r10d, 8
mov ebx, 0x20
or r10d, eax
movzx eax, byte [r8 + 3]
shl r10d, 8
or r10d, eax
movzx eax, byte [r8 + 5]
or r9d, eax
movzx eax, byte [r8 + 6]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 7]
shl r9d, 8
or r9d, eax
cmp edx, 1
jne 0x180001a51
xor edx, edx
mov r8d, edx
mov eax, r9d
and r8d, 3
mov ecx, r9d
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, dword [rsi + r8*4]
add eax, edx
add ecx, r9d
add edx, 0x9e3779b9
xor ecx, eax
mov r8d, edx
add r10d, ecx
mov eax, r10d
mov ecx, r10d
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, edx
shr rax, 0xb
add ecx, r10d
and eax, 3
mov eax, dword [rsi + rax*4]
add eax, edx
xor ecx, eax
add r9d, ecx
dec rbx
jne 0x1800019fd
jmp 0x180001aae
mov r8d, 0xc6ef3720
mov edi, r8d
shr rdi, 0xb
mov eax, r10d
mov ecx, r10d
shl eax, 4
shr ecx, 5
and edi, 3
xor ecx, eax
mov eax, dword [rsi + rdi*4]
add eax, r8d
add ecx, r10d
add r8d, 0x61c88647
xor ecx, eax
mov edi, r8d
sub r9d, ecx
mov eax, r9d
mov edx, r9d
shr edx, 5
shl eax, 4
xor edx, eax
mov eax, r8d
and eax, 3
add edx, r9d
mov ecx, dword [rsi + rax*4]
add ecx, r8d
xor edx, ecx
sub r10d, edx
dec rbx
jne 0x180001a5a
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r10d
mov byte [r11 + 3], r10b
mov byte [r11 + 7], r9b
shr eax, 0x18
mov byte [r11], al
mov eax, r10d
shr eax, 0x10
mov byte [r11 + 1], al
mov eax, r10d
shr eax, 8
mov byte [r11 + 2], al
mov eax, r9d
shr eax, 0x18
mov byte [r11 + 4], al
mov eax, r9d
shr eax, 0x10
mov byte [r11 + 5], al
mov eax, r9d
shr eax, 8
mov byte [r11 + 6], al
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005510]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x1400054d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005500]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400055e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400055c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005480]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005560]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140005570]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400054c0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005550]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call dbg.__main
mov rax, qword [0x1400054e0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call dbg.main
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005570]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140005590]
mov rcx, qword [0x140005580]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400055b0]
mov rcx, qword [0x1400055a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop