joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a790
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, [0x140032530]
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 0x14001a7e7
cmp word [rdx], r13w
jne 0x14001a7e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a7ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a911
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a932
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a825
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a84c
cmp r9, r8
jae 0x14001a85c
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 0x14001a806
jmp 0x14001a911
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 0x14001a906
cmp dword [rsp + 0x80], esi
je 0x14001a906
lea r8, [0x140032530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a8de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a8ae
mov word [rbx], r13w
jmp 0x14001a90e
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 0x14001a8bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a90e
cmp word [rsp + 0x70], r13w
jne 0x14001a8eb
cmp rbx, r14
je 0x14001a8a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140017b18
cmp word [rsp + 0x70], r13w
je 0x14001a911
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, [0x140032530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a90b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a911
Function at 0x14001e944
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007a40
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e9ce
cmp byte [rbp - 0x21], r15b
je 0x14001e9c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ea04
call fcn.140011c08
test eax, eax
jne 0x14001e9f0
cmp byte [rbp - 0x21], r15b
je 0x14001e9e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ea04
cmp byte [rbp - 0x21], r15b
je 0x14001ea01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007adc
test eax, eax
jne 0x14001eaa4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007a40
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001ea43
cmp byte [rbp - 0x21], r15b
je 0x14001ea78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ea78
call fcn.140011c08
test eax, eax
jne 0x14001ea64
cmp byte [rbp - 0x21], r15b
je 0x14001ea5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ea78
cmp byte [rbp - 0x21], r15b
je 0x14001ea75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007adc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001eaa4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001eaa7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001eab5
mov rcx, rdi
call fcn.140010fc0
cmp byte [rbp + 0x3f], r15b
je 0x14001eac4
mov rcx, qword [rbp + 0x27]
call fcn.140010fc0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400705e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401076b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401076cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140107728
test al, 7
jne 0x1401076c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401076e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140107752
test dh, dh
je 0x14010774c
shr rdx, 0x10
test dl, dl
je 0x140107746
test dh, dh
je 0x140107740
shr rdx, 0x10
test dl, dl
je 0x14010773a
test dh, dh
je 0x140107734
shr edx, 0x10
test dl, dl
je 0x14010772e
test dh, dh
jne 0x1401076e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x140070626
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140078630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x228]
mov rax, qword [0x14018c040]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x14019d0d7]
call fcn.140072093
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, [0x14006f2f8]
mov qword [rbp + 0x18], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
lea rax, str.SecondWindowClass
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassW]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
mov r8, qword [rbp + 0x1b0]
lea rdx, str.SecondWindowClass
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0x78], rax
lea rax, str.Arial
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x20
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.GDI32.dll_CreateFontW]
mov qword [rbp + 0x98], rax
mov edx, 5
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0x65
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x1f4
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x96
mov r9d, 0x50000000
mov r8, qword [rbp + 0x1b8]
lea rdx, str.STATIC
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0xb8], rax
mov r9d, 1
mov r8, qword [rbp + 0x98]
mov edx, 0x30
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rcx, [rbp - 0x70]
lea rdx, [0x14015a1c0]
call fcn.14007180a
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.140070798
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x140070905
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140093eb0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140093830
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140093eef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14019e020]
jmp 0x140093ef9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140070a54
Capabilities:
Query environment variable

Disassembly:
jmp 0x140118bd0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140118a00
lea rcx, [rsp + 0x40]
call fcn.140118b80
movzx eax, al
test eax, eax
jne 0x140118c18
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140118a30
mov rax, qword [rsp + 0x70]
jmp 0x140118de9
lea rcx, [rsp + 0x40]
call fcn.140118b50
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140118af0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140118b50
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007147c
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140118cbe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140118a30
mov rax, qword [rsp + 0x80]
jmp 0x140118de9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140070806
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400706e9
lea rcx, [rsp + 0x48]
call fcn.1400703b0
movzx eax, al
test eax, eax
jne 0x140118d25
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14006f785
lea rcx, [rsp + 0x40]
call fcn.140118a30
mov rax, qword [rsp + 0x88]
jmp 0x140118de9
lea rcx, [rsp + 0x48]
call fcn.140070d15
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140118b50
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007147c
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140118dbb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14006f785
lea rcx, [rsp + 0x40]
call fcn.140118a30
mov rax, qword [rsp + 0xa0]
jmp 0x140118de9
lea rcx, [rsp + 0x48]
call fcn.1400706c6
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14006f785
lea rcx, [rsp + 0x40]
call fcn.140118a30
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140070a5e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140093de0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400937b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140093e21
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14019e020]
jmp 0x140093e27
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140070ae0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140126840
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140125770
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401268a7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14019e030]
jmp 0x1401268c9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14007035b
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140070aef
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a8c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret
Function at 0x140070cc5
Capabilities:
Print debug messages

Disassembly:
jmp 0x140132f90
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14018c040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140132fb6
jmp 0x140133033
mov rcx, qword [rbp + 0x30]
call fcn.1400705e0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140132fcf
jmp 0x140133033
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140132fec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006f8ca
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14006fc80
test eax, eax
jne 0x140133033
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140070798
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140071143
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007bc10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007bc30
xor al, al
jmp 0x14007bcb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007bc43
xor al, al
jmp 0x14007bcb1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007bc6d
xor al, al
jmp 0x14007bcb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007bc81
xor al, al
jmp 0x14007bcb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007bc93
xor al, al
jmp 0x14007bcb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007bcaf
xor al, al
jmp 0x14007bcb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400712d3
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140079140
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x228]
mov rax, qword [0x14018c040]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14019d0d7]
call fcn.140072093
nop
mov dword [rbp + 0x10], 0x50
mov dword [rbp + 0x14], 3
lea rax, [0x140070b71]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x24], 0
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x28], rax
mov edx, 0x71
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x30], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 6
mov qword [rbp + 0x48], 0
lea rax, str.Window
mov qword [rbp + 0x50], rax
mov edx, 0x71
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx eax, ax
test eax, eax
jne 0x14007925b
mov r9d, 0x10
lea r8, str.ERROR
lea rdx, str.ERROR
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov eax, 1
jmp 0x140079329
mov rax, qword [rbp + 0x1c0]
mov qword [0x14018d4a0], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x1c0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x190
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.WindowCreator
lea rdx, str.Window
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0x78], rax
mov edx, dword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140079323
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp 0x1400792ec
mov eax, dword [rbp + 0xa8]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x14015a0c0]
call fcn.14007180a
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.140070798
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140071602
Capabilities:
Terminate process

Disassembly:
jmp 0x1401080a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401080ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140071d14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140071d73
Capabilities:
Print debug messages

Disassembly:
jmp 0x14010f130
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140071e18
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140093f20
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140093870
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140093f69
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14019e020]
jmp 0x140093f78
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x140146270
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8ca
sub rsp, rax
mov rax, qword [0x14018c040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018ee70]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140146462
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401463b6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401463b6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14014639b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140146338
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140146422
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140146481
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14014645d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140146481
jmp 0x14014630e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140070798
add rsp, 0x1498
pop rdi
pop rsi
ret