joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e6e4
Capabilities:
Query environment variable

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
mov eax, 0x2020
call fcn.140022c60
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001e717
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001e727
mov byte [rcx], r14b
test rbx, rbx
je 0x14001e7dc
movzx eax, word [rbx]
test ax, ax
je 0x14001e7dc
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x14001e76c
test rsi, rsi
je 0x14001e778
test rdi, rdi
jne 0x14001e778
test r9, r9
je 0x14001e767
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001e787
cmp ax, 0xd
je 0x14001e799
cmp ax, 0xa
je 0x14001e79d
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x14001e794
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001e74a
jmp 0x14001e79d
mov byte [rcx], 1
jmp 0x14001e79d
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x14001e7d7
mov word [rsi], r14w
test rdi, rdi
je 0x14001e7d7
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400118a4
mov word [rdi], r14w
mov rax, rbx
jmp 0x14001e7de
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001e7fc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x14001e861
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14001e864
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140021354
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140051a60], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140051a50], 1
mov byte [0x140051a51], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011a0
cmp qword [0x140051a28], 0
jne 0x14002139f
cmp byte [0x140051a56], 0
je 0x1400213a8
cmp dword [0x140051a44], 0
jne 0x1400213bd
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140021498
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140022c60
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140053a78], dil
je 0x14002156a
cmp word [0x140053a7a], di
je 0x14002156a
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x140053a7a]
call fcn.14001fe0c
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002156a
mov rcx, rbx
call fcn.140026a18
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x14002157c
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140022c60
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400115ac
mov rbx, rax
test rax, rax
je 0x1400215de
movzx ecx, word [rax]
jmp 0x1400215c5
add rbx, 2
movzx ecx, word [rbx]
call fcn.1400116e4
test al, al
jne 0x1400215be
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x14002b11c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002aef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002aef0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002aef0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002aef0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002aef0
cmp dword [rcx + 0x84], 0xe
jbe 0x14002aef0
cmp dword [rcx + 0xf8], esi
je 0x14002aef0
mov ecx, r14d
call fcn.14002b038
mov ecx, 2
call fcn.14002e6d0
nop
cmp byte [0x14006a768], 0
jne 0x14002afba
mov r15d, 1
mov eax, r15d
xchg dword [0x14006a758], eax
test ebx, ebx
jne 0x14002af63
mov rdi, qword [0x140047698]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14006a760]
cmp rcx, rax
je 0x14002af5a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007718]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14006a898]
jmp 0x14002af6f
cmp ebx, r15d
jne 0x14002af75
lea rcx, [0x14006a8b0]
call fcn.14002baac
nop
test ebx, ebx
jne 0x14002af8c
lea rdx, [0x1400375a8]
lea rcx, [0x140037588]
call fcn.14002bde8
lea rdx, [0x1400375b8]
lea rcx, [0x1400375b0]
call fcn.14002bde8
movzx eax, byte [0x14006a768]
test esi, esi
cmove eax, r15d
mov byte [0x14006a768], al
jmp 0x14002afba
mov ecx, 2
call fcn.14002e724
test esi, esi
jne 0x14002afd1
mov ecx, r14d
call fcn.14002afec
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002ae80
Function at 0x140014590
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, r8
mov edi, edx
mov r15, rcx
xor r13d, r13d
mov r14d, r13d
test r8, r8
jne 0x140014608
lea ecx, [r8 + 0x10]
call fcn.14001e550
mov rbx, rax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r13
mov qword [rax + 8], r13
lea ecx, [r13 + 0x48]
call fcn.14001e550
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea r14d, [r13 + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0xb
lea rdx, str.packet_type
lea rcx, [rsp + 0x40]
call fcn.140007f00
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400194a0
mov rcx, rbx
call fcn.140019c20
mov esi, eax
test eax, eax
je 0x140014738
xor dil, dil
mov r12, rsi
mov rdx, rsi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x140014715
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call fcn.140019a60
test eax, eax
je 0x14001470c
cmp dword [r15 + 0xc], 0
je 0x14001470c
add esi, 4
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001470c
mov dword [rax], esi
lea rcx, [rax + 4]
mov r8, r12
mov rdx, rbp
call fcn.140020400
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x70]
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400146fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, dword [rsp + 0x70]
sete dil
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r14d, r14d
je 0x140014734
test rbx, rbx
je 0x140014734
mov rcx, rbx
call fcn.1400190f0
mov edx, 0x10
mov rcx, rbx
call fcn.14001e740
movzx eax, dil
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e530
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015660
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rdi, rcx
movzx ebx, r8b
lea rcx, [rsp + 0xc0]
mov rsi, rdx
call fcn.140018d90
xorps xmm0, xmm0
mov dword [rsp + 0x50], WSAGetLastError
xor eax, eax
mov dword [rsp + 0xb4], eax
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
test bl, bl
je 0x1400156f9
cmp qword [rsp + 0xd8], 0x10
lea rax, [rsp + 0xc0]
cmovae rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0xf0], rax
xor r8d, r8d
lea rax, [rsp + 0xe0]
mov rdx, rsi
mov qword [rsp + 0x48], rax
mov rcx, rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0xe0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x140015787
mov rcx, qword [rsp + 0xc0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015782
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400157ac
call fcn.14001e740
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14001e530
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140025808
int3
Function at 0x140018130
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x80]
call fcn.140019040
nop
lea rcx, [rsp + 0x20]
call fcn.140004350
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140003690
nop
lea rcx, [rsp + 0x20]
call fcn.140003780
lea r8, str._remove.bat
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140013250
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rcx, rax
lea rdx, [0x14006d29c]
call fcn.140024d58
mov rdi, rax
test rax, rax
je 0x1400181ee
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.140006010
mov r9, rbx
mov r8, rax
lea rdx, str._echo_off_ntimeout_3___NULL_ndel___s___f__q_ndel___s___f__q
mov rcx, rdi
call fcn.1400133e0
mov rcx, rdi
call fcn.140024f24
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call fcn.140028e44
int3

Function at 0x140018210
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x80]
call fcn.140019040
nop
lea rcx, [rsp + 0x20]
call fcn.140004350
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140003690
nop
lea rcx, [rsp + 0x20]
call fcn.140003780
lea r8, str._restart.bat
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140013250
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rcx, rax
lea rdx, [0x14006d29c]
call fcn.140024d58
mov rdi, rax
test rax, rax
je 0x1400182ce
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.140006010
mov r9, rbx
mov r8, rax
lea rdx, str._echo_off_ntimeout_3___NULL_nstart______s___f__q_ndel___s___f__q
mov rcx, rdi
call fcn.1400133e0
mov rcx, rdi
call fcn.140024f24
lea rcx, [rsp + 0x40]
call fcn.140006010
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call fcn.140028e44
int3
Function at 0x1400182f0
Capabilities:
Create process on windows
Self delete

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140007cb0
nop
lea rcx, [rsp + 0x20]
call fcn.140004240
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140018379
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018374
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001851d
call fcn.14001e740
test bl, bl
jne 0x1400183f1
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400183b3
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400183ae
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400183eb
mov rcx, r8
call fcn.14001e740
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14001e530
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140025808
nop
lea rcx, [rsp + 0x48]
call fcn.140019040
nop
lea rcx, [rsp + 0x20]
call fcn.140004350
nop
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.140003690
nop
lea rcx, [rsp + 0x20]
call fcn.140003780
lea r8, str.update.bat
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x68]
call fcn.140013250
lea rcx, [rsp + 0x68]
call fcn.140006010
mov rcx, rax
lea rdx, [0x14006d29c]
call fcn.140024d58
mov rsi, rax
test rax, rax
je 0x140018500
lea rcx, [rsp + 0x48]
call fcn.140006010
mov r8, rax
lea rdx, str._echo_off_ntimeout_3___NULL_ndel___s___f__q_n
mov rcx, rsi
call fcn.1400133e0
lea rcx, [rsp + 0x48]
call fcn.140006010
mov rbx, rax
mov rcx, rdi
call fcn.140006010
mov r9, rbx
mov r8, rax
lea rdx, str.copy___s____s__n
mov rcx, rsi
call fcn.1400133e0
mov rcx, rdi
call fcn.140006010
mov r8, rax
lea rdx, str.del___s___f__q_n
mov rcx, rsi
call fcn.1400133e0
lea rcx, [rsp + 0x48]
call fcn.140006010
mov r8, rax
lea rdx, str.start______s__n
mov rcx, rsi
call fcn.1400133e0
lea rcx, [rsp + 0x68]
call fcn.140006010
mov r8, rax
lea rdx, str.del___s___f__q_n
mov rcx, rsi
call fcn.1400133e0
mov rcx, rsi
call fcn.140024f24
lea rcx, [rsp + 0x68]
call fcn.140006010
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call fcn.140028e44
nop
call fcn.140025808
int3
Function at 0x14001b920
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r14, r8
mov rsi, rdx
mov edi, ecx
cmp ecx, 0x200
ja 0x14001bb47
je case.0x14001bb63.513
mov eax, ecx
sub eax, 0x100
je 0x14001b977
sub eax, 1
je 0x14001b977
cmp eax, 1
jne case.default.0x14001bb63
mov qword [rsp + 0x210], rbx
mov ecx, 0xb8
mov qword [rsp + 0x208], r12
mov r12, qword [0x140077be8]
mov qword [rsp + 0x200], r15
mov qword [rsp + 0x20], 0xd
mov qword [rsp + 0x28], 0x1b
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0x25
mov qword [rsp + 0x40], 0x27
mov qword [rsp + 0x48], 0x26
mov qword [rsp + 0x50], 0x28
mov qword [rsp + 0x58], 0x24
mov qword [rsp + 0x60], 0x23
mov qword [rsp + 0x68], 0x2e
mov qword [rsp + 0x70], 0x2d
mov qword [rsp + 0x78], WSACleanup
mov qword [rbp - 0x80], WSACleanup
mov qword [rbp - 0x78], WSACleanup
mov qword [rbp - 0x70], reloc.WS2_32.dll_WSAStartup
mov qword [rbp - 0x68], reloc.WS2_32.dll_WSACleanup
mov qword [rbp - 0x60], 0x75
mov qword [rbp - 0x58], 0x76
mov qword [rbp - 0x50], 0x77
mov qword [rbp - 0x48], 0x78
mov qword [rbp - 0x40], 0x79
mov qword [rbp - 0x38], 0x7a
mov qword [rbp - 0x30], 0x7b
call fcn.14001e550
mov r8d, 0xb8
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call fcn.140020400
mov r8d, 0x104
lea rdx, [rbp - 0x20]
mov rcx, r12
lea r15, [rbx + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x104
call fcn.140020aa0
mov rcx, qword [0x140077bf0]
lea rdx, [rbp - 0x20]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
sub eax, 0x100
je 0x14001badd
sub eax, 1
je 0x14001badd
cmp eax, 1
jne 0x14001baf0
cmp rsi, 0xd
je 0x14001bb01
cmp rsi, 8
jne 0x14001baf0
jmp 0x14001bb01
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.14001d860
cmp rax, r15
je 0x14001bb01
mov r9, r14
mov r8, rsi
mov edx, edi
mov rcx, r12
call qword [sym.imp.USER32.dll_PostMessageW]
test rbx, rbx
je 0x14001bb13
mov edx, 0xb8
mov rcx, rbx
call fcn.14001e740
mov r12, qword [rsp + 0x208]
mov rbx, qword [rsp + 0x210]
mov r15, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14001e530
add rsp, 0x218
pop r14
pop rdi
pop rsi
pop rbp
ret
lea eax, [rcx - 0x201]
cmp eax, 9
ja case.default.0x14001bb63
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x1bb74]
add rcx, rdx
jmp rcx
mov rdx, rsi
mov ecx, edi
call fcn.14001b3f0
jmp case.default.0x14001bb63

Function at 0x14001bba0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140075030]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140020aa0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x14001bc09
cmp dword [rsp + 0x28], 2
jb 0x14001bc09
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e530
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e530
add rsp, 0x158
ret
Function at 0x14001c944
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001c9c8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140042720]
cmp byte [rcx + rax], 0
je 0x14001c9c8
dec r8
sub rdx, 1
jne 0x14001c9ae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001d438
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14001cb44
mov ebx, eax
test eax, eax
jne 0x14001d468
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14001d4c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d4bb
test al, 0x10
je 0x14001d4bb
bt eax, 0xa
jae 0x14001d4b4
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14001d4dc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14001d4b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d4d4
test edi, edi
jne 0x14001d4bb
and dword [rsp + 0x3c], 0
jmp 0x14001d4c0
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140027ca4
int3

Function at 0x14001f2d8
Capabilities:
Parse pe header

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

Function at 0x140025b60
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 0x140025b97
call fcn.140029b78
mov dword [rax], socket
call fcn.1400257e8
xor eax, eax
jmp 0x140025c25
mov rdx, r9
mov rcx, r8
call fcn.140025afc
mov rbx, rax
test rax, rax
je 0x140025c22
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140025a28]
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 0x140025c0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140029aec
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140025bf6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140025c05
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002e4a8
jmp 0x140025c22
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140025c1f
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 0x140028e44
Capabilities:
Parse pe header

Disassembly:
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 0x140028caf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028caf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028caf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028caf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028caf
cmp dword [rcx + 0x84], 0xe
jbe 0x140028caf
cmp dword [rcx + 0xf8], 0
je 0x140028caf
mov ecx, ebx
call fcn.140028d60
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.140028b3c
nop
cmp dword [rbp + 0x20], 0
je 0x140028cfd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140028d08
int3
xor r8d, r8d
xor edx, edx
jmp 0x140028c40
Function at 0x14002f8fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002f912
mov al, 1
jmp 0x14002f972
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002f923
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002f970
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036164
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002f970
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002f970
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002f970
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002f972
xor al, al
add rsp, 0x20
pop rbx
ret