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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov r10, r8
mov qword [rsp + 0x20], rcx
mov rax, rdx
mov rbx, r9
mov rcx, rax
mov r9d, 1
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013c73
xor ecx, ecx
mov dword [rsp + 0x40], 3
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013c68
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140013c68
lea ecx, [rax + 0x1000]
call fcn.1400459cc
lea rcx, [rsp + 0x30]
mov qword [rdi], rax
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x140013c6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
jmp 0x140013c75
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400454d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140013c90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov r10, r8
mov rax, rdx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov rbx, r9
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rdx, r10
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013d28
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], 0x28
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140013d45
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400454d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140013d2a
Function at 0x140013d50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, qword [0x14008f0e0]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesProcessGovernor
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013f0d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x870], rdi
xor edi, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], edi
lea rdx, str.SYSTEMCurrentControlSetServicesProcessGovernor
mov rcx, 0xffffffff80000002
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013e25
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DeleteFlag
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140013e53
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rdi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400454d0
add rsp, 0x860
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], edi
je 0x140013e25
cmp byte [0x14008f092], dil
jne 0x140013efb
mov r9d, 0x3ff
mov byte [0x14008f092], 1
lea r8, [rsp + 0x50]
mov word [rsp + 0x50], di
mov edx, 0x301
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140013ee1
cmp byte [0x14008bc78], dil
je 0x140013eb2
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [0x14008bc78], dil
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x3ff
lea r8, [rsp + 0x50]
mov rcx, rax
mov edx, 0x301
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140013ee1
mov word [rsp + 0x50], di
mov r9d, 0x30
lea r8, [0x14007bd58]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140013e32
xor al, al
jmp 0x140013e3a
Function at 0x140016a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140016a44
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140016a30
ret
Function at 0x14001af30
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001affc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001affc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001b015
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001afec
cmp byte [rax], 0x5c
jne 0x14001afe6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001afe6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001afd2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001afe3
test r8b, 0x10
jne 0x14001afe6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001afe6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140017280
test edi, edi
jne 0x14001af50
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140017270
int3

Function at 0x14003b460
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400277e2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400277c5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400277b0

Function at 0x140046350
Capabilities:
Parse pe header

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

Function at 0x14005b1e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005afd8
Function at 0x140064660
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400646e7
mov rsi, rbx
cmp word [rax], bp
je 0x1400646a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140064690
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006468c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005e3c0
mov rdi, rax
test rax, rax
je 0x1400646d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006c700
mov rbp, rdi
xor ecx, ecx
call fcn.14005e384
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006c450
Capabilities:
Parse pe header

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

Function at 0x14006d093
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rsi
sub rsp, 0x90
lea rax, [0x14008b454]
mov qword [rsp + 0x28], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x38]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
leave
Function at 0x4023e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0146a340]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402400
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x402455
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40244c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402400
add rax, 0x28
cmp rax, r9
jne 0x402438
xor eax, eax
ret

Function at 0x402460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0146a340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402480
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402488
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402480
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0146a340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402530
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402538
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000bb2e
Capabilities:
Identify system language via api

Disassembly:
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.140045820
mov rcx, qword [rsp + 0x60]
call fcn.140024710
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
sub rsp, 0x20
call sub.KERNEL32.dll_GetUserDefaultLangID
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140042490
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call main
push qword [rsp + 0x28]
pop rcx
call fcn.140042660
mov r15, rax
cmp r15, 3
jne 0x14000bbf1
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
movabs rcx, 0x1400a840e
sub rsp, 0x28
call fcn.140045590
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140045590
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call main
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140045590
add rsp, 0x28
pop rax
push rax
call fcn.140045740
pop rdx
add rax, rdx
jmp 0x14000bc2a
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140045930
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret
Function at 0x140010cae
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r15
mov rax, reloc.WS2_32.dll_select
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140010cbd
sub rsp, 0x28
call fcn.140045820
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140045890
add rsp, 0x10
call sub.KERNEL32.dll_GetVersion
mov r15, rax
and r15, 0xffff
and r15, 0xff
mov rax, r15
push rax
pop rax
mov dword [rsp + 0x30], eax
movsxd r15, dword [rsp + 0x30]
cmp r15, 5
jge 0x140010d2a
mov rax, 2
movsxd rax, eax
jmp 0x140010e50
movabs rbp, 0x1400e3a03
mov qword [rsp + 0xa8], rbp
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045540
add rsp, 0x28
pop rcx
push rax
push RealDriveType
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140042010
add rsp, 0x28
lea rcx, [rsp + 0xb8]
pop rdx
call main
push reloc.OLEAUT32.dll_SafeArrayPutElement
sub rsp, 8
push qword [rsp + 0x38]
pop rcx
sub rsp, 0x20
call fcn.140042660
add rsp, 0x28
mov r15, rax
inc r15
mov rax, r15
push rax
push qword [rsp + 0x38]
mov rax, qword [rsp + 0xc8]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
call fcn.140043bf0
lea rbp, [rsp + 0x88]
mov dword [rbp], 0x20
mov qword [rbp + 0x10], 0
mov rax, qword [rsp + 0xb0]
mov rax, rax
push rax
pop rax
mov qword [rbp + 8], rax
lea rbp, [rsp + 0x38]
mov dword [rbp], 0x50
mov dword [rbp + 0x18], 2
mov dword [rbp + 0x20], 1
mov dword [rbp + 0x1c], 0
lea rax, [rsp + 0x88]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 0
mov dword [rbp + 0x48], 0x210
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push qword [rsp + 0xb0]
push 0
pop rcx
pop rdx
pop r8
call sub.WINTRUST.dll_WinVerifyTrust
movsxd rax, eax
jmp 0x140010e50
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140045930
add rsp, 0x28
mov rcx, qword [rsp + 0xb8]
sub rsp, 0x28
call fcn.140045930
add rsp, 0x28
pop rax
add rsp, 0xb8
pop r15
pop rbp
ret
Function at 0x140024710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140133740]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140025a40
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140025b06
lea rcx, [0x140139e40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401384a0]
jmp 0x140025aca
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140025ac7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1401384a0]
mov rdx, rsi
call fcn.1400452ec
jmp 0x140025aca
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140025a97
mov rdx, qword [0x1401336c0]
lea rcx, [0x1401384a0]
mov rdi, rdx
inc rdx
mov qword [0x1401336c0], rdx
lea edx, [rbx + 0x20]
call fcn.140045334
lea rcx, [0x140139e40]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400261bc
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x1400261bc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x1401384a8]
mov esi, r8d
xor r14d, r14d
call fcn.1400448c4
mov rbx, rax
test rax, rax
je 0x1400263a1
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x1400262a2
mov rcx, r15
call fcn.140026524
jmp 0x140026220
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x140026215
mov rcx, qword [rbx + 0x20]
call fcn.140026b18
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.140026104
lea rax, [rsp + 0x88]
lea r8, [0x1400263bc]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002627d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x14002628c
mov edx, esi
mov rcx, r15
call fcn.14002662c
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14002634d
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14002635a
mov rcx, rax
call fcn.140025ef8
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.140045334
mov rcx, qword [0x1401384d0]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400263a1
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x140026337
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140026634
jmp 0x140026345
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400263a1
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x14002637f
mov edx, esi
mov rcx, r15
call fcn.14002662c
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400263a1
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140026cb0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140026d27
movsxd rdx, ecx
lea rcx, [0x140026c0c]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140138528]
test rbx, rbx
je 0x140026d9a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140026d1d
cmp byte [rbx + 0x20], 0
je 0x140026d1d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140026ce3
jmp 0x140026d9a
mov rbx, qword [0x140138528]
test rbx, rbx
je 0x140026d9a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140026d92
cmp byte [rbx + 0x21], 0
je 0x140026d56
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140026d82
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140138528]
call fcn.1400452ec
mov rbx, rdi
test rdi, rdi
jne 0x140026d33
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140026ef4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14013a400]
call fcn.140044508
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140026ff1
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x140026f4b
add rax, 2
cmp word [rax], 0x20
je 0x140026f41
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140026f89
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140026fc9
cmp cx, r9w
je 0x140026f7b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140026f69
cmp word [rax], bp
je 0x140026fc9
mov rcx, rax
add rax, 2
jmp 0x140026fd1
test dx, dx
je 0x140026fce
mov rbx, rax
cmp dx, 0x20
je 0x140026f7b
add rax, 2
cmp word [rax], r9w
jne 0x140026fbf
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140026fc9
cmp cx, r9w
je 0x140026fbf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140026fad
movzx edx, word [rax]
test dx, dx
jne 0x140026f91
jmp 0x140026f7b
mov rcx, rax
jmp 0x140026fd1
mov r8d, ebp
cmp dword [r14], esi
jne 0x140026fdb
test rdi, rdi
jne 0x140026ffb
test r8d, r8d
je 0x140026fe2
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x140026f3b
test rdi, rdi
jne 0x140027010
movsxd rax, esi
jmp 0x140027012
test rbx, rbx
je 0x140027010
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140027012
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140027028
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14013a400]
call fcn.140044508
xor ecx, ecx
add rsp, 0x28
jmp fcn.140026ef4

Function at 0x1400270bc
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14013a400]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140044508
test ebx, ebx
js 0x1400270eb
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140026ef4
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140045bb0
mov ecx, ebp
jmp 0x140027127
test edi, edi
je 0x14002712c
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14002711a
inc ecx
jmp 0x140027121
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140027109
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140045cf0
Function at 0x140027808
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x14002786f
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140027861
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14002786b
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x14002786f
jmp 0x14002782c
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret