joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d1830
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2910
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2232
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d22ca
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d22ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d22a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d22a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2268
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d22cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d23d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d23f8
mov eax, 0
jmp 0x2fc4d2446
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2421
mov eax, 0
jmp 0x2fc4d2446
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2441
mov eax, 0
jmp 0x2fc4d2446
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d244c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d24ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d24c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d24c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d24df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2494
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
movzx eax, byte [rdx + 3]
mov byte [rcx + 3], al
movzx eax, byte [rdx + 4]
mov byte [rcx + 4], al
movzx eax, byte [rdx + 5]
mov byte [rcx + 5], al
movzx eax, byte [rdx + 6]
mov byte [rcx + 6], al
movzx eax, byte [rdx + 7]
mov byte [rcx + 7], al
movzx eax, byte [rdx + 8]
mov byte [rcx + 8], al
movzx eax, byte [rdx + 9]
mov byte [rcx + 9], al
movzx eax, byte [rdx + 0xa]
mov byte [rcx + 0xa], al
movzx eax, byte [rdx + 0xb]
mov byte [rcx + 0xb], al
movzx eax, byte [rdx + 0xc]
mov byte [rcx + 0xc], al
movzx eax, byte [rdx + 0xd]
mov byte [rcx + 0xd], al
movzx eax, byte [rdx + 0xe]
mov byte [rcx + 0xe], al
movzx eax, byte [rdx + 0xf]
mov byte [rcx + 0xf], al
movzx eax, byte [rdx + 0x10]
mov byte [rcx + 0x10], al
movzx eax, byte [rdx + 0x11]
mov byte [rcx + 0x11], al
movzx eax, byte [rdx + 0x12]
mov byte [rcx + 0x12], al
movzx eax, byte [rdx + 0x13]
mov byte [rcx + 0x13], al
movzx eax, byte [rdx + 0x14]
mov byte [rcx + 0x14], al
movzx eax, byte [rdx + 0x15]
mov byte [rcx + 0x15], al
movzx eax, byte [rdx + 0x16]
mov byte [rcx + 0x16], al
movzx eax, byte [rdx + 0x17]
mov byte [rcx + 0x17], al
movzx eax, byte [rdx + 0x18]
mov byte [rcx + 0x18], al
movzx eax, byte [rdx + 0x19]
mov byte [rcx + 0x19], al
movzx eax, byte [rdx + 0x1a]
mov byte [rcx + 0x1a], al
movzx eax, byte [rdx + 0x1b]
mov byte [rcx + 0x1b], al
movzx eax, byte [rdx + 0x1c]
mov byte [rcx + 0x1c], al
movzx eax, byte [rdx + 0x1d]
mov byte [rcx + 0x1d], al
movzx eax, byte [rdx + 0x1e]
mov byte [rcx + 0x1e], al
movzx eax, byte [rdx + 0x1f]
mov byte [rcx + 0x1f], al
mov eax, 8
lea r9, str.cw
lea r8, [0x140005100]
jmp 0x140001140
movzx ebx, byte [r15 + r9]
movzx r10d, byte [r14 + r9]
movzx r11d, byte [rsi + r9]
movzx edx, byte [rdi + r9]
xor bl, byte [rcx + rax*4 - 0x20]
mov byte [rcx + rax*4], bl
xor r10b, byte [rcx + rax*4 - 0x1f]
mov byte [rcx + rax*4 + 1], r10b
xor r11b, byte [rcx + rax*4 - 0x1e]
mov byte [rcx + rax*4 + 2], r11b
xor dl, byte [rcx + rax*4 - 0x1d]
mov byte [rcx + rax*4 + 3], dl
inc rax
cmp rax, 0x3c
je 0x140001192
movzx ebx, byte [rcx + rax*4 - 4]
movzx r10d, byte [rcx + rax*4 - 3]
movzx r15d, bl
movzx r14d, r10b
movzx r11d, byte [rcx + rax*4 - 2]
movzx esi, r11b
movzx edx, byte [rcx + rax*4 - 1]
movzx edi, dl
mov ebp, eax
and ebp, 7
cmp ebp, 4
je 0x140001100
test ebp, ebp
jne 0x140001114
movzx r10d, byte [rsi + r9]
movzx r11d, byte [rdi + r9]
movzx edx, byte [r15 + r9]
mov esi, eax
shr esi, 3
movzx ebx, byte [rsi + r8]
xor bl, byte [r14 + r9]
jmp 0x140001114
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400017b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x140008098]
xor rax, rsp
mov qword [rsp + 0x38], rax
test r8d, r8d
je 0x1400018ca
mov rsi, rdx
mov rdi, rcx
mov r14d, r8d
lea r15, [rcx + 0xf0]
xor ebx, ebx
nop word cs:[rax + rax]
lea rcx, [rsi + rbx]
movups xmm0, xmmword [rsi + rbx]
movaps xmmword [rsp + 0x20], xmm0
mov rdx, rdi
call fcn.1400011d0
movzx eax, byte [rdi + 0xf0]
xor byte [rsi + rbx], al
movzx eax, byte [rdi + 0xf1]
xor byte [rsi + rbx + 1], al
movzx eax, byte [rdi + 0xf2]
xor byte [rsi + rbx + 2], al
movzx eax, byte [rdi + 0xf3]
xor byte [rsi + rbx + 3], al
movzx eax, byte [rdi + 0xf4]
xor byte [rsi + rbx + 4], al
movzx eax, byte [rdi + 0xf5]
xor byte [rsi + rbx + 5], al
movzx eax, byte [rdi + 0xf6]
xor byte [rsi + rbx + 6], al
movzx eax, byte [rdi + 0xf7]
xor byte [rsi + rbx + 7], al
movzx eax, byte [rdi + 0xf8]
xor byte [rsi + rbx + 8], al
movzx eax, byte [rdi + 0xf9]
xor byte [rsi + rbx + 9], al
movzx eax, byte [rdi + 0xfa]
xor byte [rsi + rbx + 0xa], al
movzx eax, byte [rdi + 0xfb]
xor byte [rsi + rbx + 0xb], al
movzx eax, byte [rdi + 0xfc]
xor byte [rsi + rbx + 0xc], al
movzx eax, byte [rdi + 0xfd]
xor byte [rsi + rbx + 0xd], al
movzx eax, byte [rdi + 0xfe]
xor byte [rsi + rbx + 0xe], al
movzx eax, byte [rdi + 0xff]
xor byte [rsi + rbx + 0xf], al
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
add rbx, 0x10
cmp rbx, r14
jb 0x1400017f0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003720
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140003100
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 1
cmp dword [0x140008108], 0
jne 0x140003251
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x14000324f
xor edi, edi
mov r8d, 0xdfdfdfdf
jmp 0x14000315f
mov rdi, rsi
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x1400031a2
mov r14, rdx
movsxd rdx, dword [rdx + 0x3c]
mov esi, dword [rdx + r14 + 0x88]
test rsi, rsi
je 0x140003153
mov edx, dword [rsi + r14 + 0xc]
add rsi, r14
mov ebx, dword [rdx + r14]
and ebx, r8d
cmp ebx, 0x4c44544e
jne 0x140003150
mov edx, dword [r14 + rdx + 4]
and edx, r8d
mov rdi, rsi
cmp edx, 0x4c440e4c
jne 0x140003153
mov rdi, rsi
jmp 0x1400031ab
test rdi, rdi
je 0x14000324f
mov r9d, dword [rdi + 0x18]
mov r10d, dword [rdi + 0x1c]
add r10, r14
mov r11d, dword [rdi + 0x20]
add r11, r14
mov esi, dword [rdi + 0x24]
add rsi, r14
xor r8d, r8d
lea r15, [0x140008108]
jmp 0x1400031d9
test r9, r9
je 0x14000325a
dec r9d
mov edi, dword [r11 + r9*4]
movzx ecx, word [rdi + r14]
cmp ecx, 0x775a
jne 0x1400031d0
add rdi, r14
mov ebx, 0xe894efbc
xor edx, edx
nop word [rax + rax]
mov ecx, ebx
movzx ebp, word [rdx + rdi]
inc edx
rol ebx, 0x18
add ebx, ebp
xor ebx, ecx
cmp byte [rdi + rdx], 0
jne 0x140003200
mov ecx, r8d
mov dword [r15 + rcx*8 + 4], ebx
movzx edx, word [rsi + r9*2]
mov edx, dword [r10 + rdx*4]
mov dword [r15 + rcx*8 + 8], edx
inc r8d
cmp r8d, 0x1f4
jne 0x1400031d0
mov dword [0x140008108], 0x1f4
mov r8d, 0x1f4
mov r9d, 0x1f3
jmp 0x140003269
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [0x140008108], r8d
mov r9d, r8d
dec r9d
je 0x140003251
xor r10d, r10d
mov r11d, r9d
jmp 0x140003288
dec r11d
cmp r10d, r9d
je 0x140003251
mov r11d, r11d
inc r10d
cmp r8d, r10d
je 0x140003280
mov ecx, dword [0x140008110]
xor ebx, ebx
jmp 0x1400032c6
mov ebp, dword [r15 + rbx*8 + 4]
mov edx, dword [r15 + rbx*8 + 0xc]
mov dword [r15 + rbx*8 + 4], edx
mov dword [r15 + rbx*8 + 8], edi
mov dword [r15 + rbx*8 + 0xc], ebp
mov dword [r15 + rbx*8 + 0x10], ecx
mov rbx, rsi
cmp r11, rsi
je 0x140003280
lea rsi, [rbx + 1]
mov edi, dword [r15 + rbx*8 + 0x10]
cmp ecx, edi
ja 0x1400032a0
mov ecx, edi
jmp 0x1400032be

Function at 0x14000342c
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
mov ecx, 0x14cfdee1
call fcn.1400032e0
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x1400034b8
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
mov ecx, 0xf79aef1a
call fcn.1400032e0
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x1400034d4
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
mov ecx, 0xbf2ad7cb
call fcn.1400032e0
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x14000365c
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
mov ecx, 0x964e4a77
call fcn.1400032e0
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret
Function at 0x140003d68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003db2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003db2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003db2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003db2
cmp dword [rcx + 0x84], 0xe
jbe 0x140003db2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003db4
xor al, al
add rsp, 0x28
ret
Function at 0x2fc51cb60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc51dc40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc51d562
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc540108]
test eax, eax
je 0x2fc51d5fa
lea rax, [0x2fc5400e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc540110]
mov qword [rbp - 8], rax
jmp 0x2fc51d5de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc51d5d2
cmp qword [rbp - 0x10], 0
je 0x2fc51d5d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc51d598
lea rax, [0x2fc5400e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc51d5fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc51d700
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc51d728
mov eax, 0
jmp 0x2fc51d776
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc51d751
mov eax, 0
jmp 0x2fc51d776
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc51d771
mov eax, 0
jmp 0x2fc51d776
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc51d77c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc51d7fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc51d7f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc51d7f1
mov rax, qword [rbp - 8]
jmp 0x2fc51d80f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc51d7c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov rax, qword [0x140023ba0]
xor ebx, ebx
mov rdi, rcx
cmp rax, rbx
je 0x140001041
cmp word [0x140023ba2], bx
je 0x140001035
call rax
mov qword [0x140023ba0], rax
mov ecx, eax
call fcn.140002760
mov rcx, rax
jmp 0x1400010a8
mov ecx, 0x27
call fcn.140002760
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp dword [rdi + 0x18], ebx
jbe 0x1400010a0
lea rsi, [rdi + 0x20]
mov r8, qword [rsi]
lea rdx, str._t0x_p_n
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add ebx, 1
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x14000106c
lea rcx, [rsp + 0x120]
call fcn.14000c6a4
call fcn.140005bf4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001714
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test rdx, rdx
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x14000173a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + VariantCopy]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140001749
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
lea rcx, [rdi + 0x18]
mov rdx, rsi
mov qword [rdi + 0x10], rbx
call fcn.140001384
lea rcx, [rdi + 0x18]
mov dx, 0x5c
call fcn.1400014f8
and dword [0x140023bc0], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x14000130c]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [0x140023bb0], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140023c20], 2
mov qword [0x140023bb8], rax
je 0x1400017b3
call fcn.14000bb5c
mov rax, qword [0x140023bb8]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [0x140023bc0]
and qword [0x140023ce8], 0
test r8d, r8d
je 0x140001822
cmp r8d, 1
je 0x140001814
cmp r8d, 2
je 0x14000180d
cmp r8d, 3
je 0x140001806
cmp r8d, 0x67
jle 0x1400017f5
cmp r8d, 0x6a
jle 0x14000188d
mov edx, 0x14
xor ecx, ecx
call fcn.14000c800
jmp 0x14000188d
mov edx, 0x12
jmp 0x140001819
mov edx, 0x13
jmp 0x140001819
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000c800
jmp 0x14000188d
cmp dword [0x140023ce4], 0
jne 0x14000188d
mov rcx, qword [0x140023bb8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x14000184d
test ecx, ecx
jne 0x14000184d
xor eax, eax
jmp 0x140001892
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140001864
mov r8d, ecx
mov edx, 0x21
jmp 0x1400017fa
movzx ecx, cx
cmp ecx, 0xe
jne 0x140001875
cmp dword [0x140023c24], 0xffffffff
je 0x14000188d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000c800
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001ee4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140001f2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001f12
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140001f30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001f2b
test al, 0x10
jne 0x140001f2b
mov ecx, 0xb7
jmp 0x140001f08
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001f38
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov byte [rsp + 0x41], InitCommonControls
mov byte [rsp + 0x42], 0xa
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x1400021ec
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x70
mov r12, rcx
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, word [0x140023bc4]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
jne 0x140002254
mov r9w, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
je 0x14000228a
test rsi, rsi
je 0x14000226b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000228a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140002326
cmp dword [0x140023bc8], 0
jne 0x140002324
lea rcx, str.kernel32
mov dword [0x140023bc8], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetProcessPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x140023bc4]
and qword [rsp + 0x28], 0
lea rdx, str._04X_c_04X_c
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
mov dword [rsp + 0x20], 0x409
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x140002316
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x140002324
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 4]
call rbx
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400026f0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x140023bc4]
test dx, dx
jne 0x140002755
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov word [0x140023bc4], ax
and cx, 0x3ff
cmp cx, 9
je 0x140002720
movzx eax, ax
jmp 0x140002758
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp ax, 0x409
jne 0x14000274e
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x14001e804]
mov dx, word [0x140023bc4]
cmp eax, ecx
cmove dx, cx
mov word [0x140023bc4], dx
jmp 0x140002755
mov dx, word [0x140023bc4]
movzx eax, dx
add rsp, 0x28
ret