joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a90
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000b1a0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x140006b1d
lea rcx, [0x140028a64]
call fcn.140006ca0
mov rcx, rbp
mov rsi, rax
call fcn.140006560
mov r14, rax
test rax, rax
je 0x140006bef
mov rdx, rax
lea rcx, [0x140028a68]
call fcn.140013c5c
mov rcx, r14
mov ebx, eax
call fcn.140011180
test ebx, ebx
je 0x140006b1d
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002010
xor eax, eax
jmp 0x140006c78
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400076a0
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400148dc
mov rcx, rax
mov rbx, rax
call fcn.140007dc0
test eax, eax
je 0x140006bf6
mov rcx, rbx
call fcn.140011180
inc edi
cmp edi, 5
jl 0x140006b50
test rbp, rbp
je 0x140006bef
xor r8d, r8d
lea rdx, [0x140028a64]
xor ecx, ecx
call fcn.140007fe0
test rsi, rsi
je 0x140006bd9
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007fe0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013c5c
mov rcx, rdi
call fcn.140011180
mov rcx, rbx
call fcn.140011180
mov rcx, rsi
call fcn.140011180
xor eax, eax
jmp 0x140006c78
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011180
xor eax, eax
jmp 0x140006c78
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.1400080f0
mov rcx, rbx
call fcn.140011180
test rbp, rbp
je 0x140006c73
xor r8d, r8d
lea rdx, [0x140028a64]
xor ecx, ecx
call fcn.140007fe0
test rsi, rsi
je 0x140006c5d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007fe0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013c5c
mov rcx, rdi
call fcn.140011180
mov rcx, rbx
call fcn.140011180
mov rcx, rsi
jmp 0x140006c6e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011180
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006ca0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000b1a0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007fe0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140006d36
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400080f0
test rax, rax
je 0x140006d36
cmp byte [rax], 0
je 0x140006d36
mov rcx, rax
call fcn.140016680
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b200
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b200
add rsp, 0x4038
ret

Function at 0x140007180
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007fe0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140011180
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400071c0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000b1a0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140007fe0
mov ebx, 1
lea rcx, [0x140006540]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140011460
mov rcx, rax
call fcn.1400166f8
mov ecx, eax
call fcn.1400144a0
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.140011460
mov rcx, rax
call fcn.1400166f8
mov ecx, eax
call fcn.1400144a0
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.140011460
mov rcx, rax
call fcn.1400166f8
mov ecx, eax
call fcn.1400144a0
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007340
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140007358
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140028b70]
call fcn.140002070
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400073f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rbp, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140011194
mov r15, rax
test rax, rax
je 0x140007503
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.14000da78
test eax, eax
js 0x140007503
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140014e78
mov rbx, rax
cmp rax, rbp
jb 0x1400074fe
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rsi, [rbx - 0x2000]
cmovb rsi, r13
sub rbx, rsi
cmp rbx, rbp
jb 0x1400074f4
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.14000da78
test eax, eax
js 0x1400074f4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000d7a8
cmp rax, rbx
jne 0x1400074f4
sub rbx, rbp
add rbx, 1
je 0x1400074db
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14000c800
test eax, eax
je 0x1400074ed
dec rdi
sub rbx, 1
jne 0x1400074c0
lea rbx, [rbp - 1]
add rbx, rsi
test rsi, rsi
jne 0x140007460
jmp 0x1400074f4
lea r13, [rbx - 1]
add r13, rsi
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140011180
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140007dc0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003aed0]
test rax, rax
jne 0x140007de6
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002010
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x140013c94
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140013cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001377c
or eax, 0xffffffff
jmp 0x140013cb6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140013fe4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x140013d23
call fcn.1400137ec
mov dword [rax], 0x16
call fcn.140016a18
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b200
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140013cea
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013d91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013d64
cmp eax, 3
jbe 0x140013d81
cmp eax, 8
je 0x140013d71
cmp eax, 0x12
je 0x140013d81
call fcn.1400137ec
mov dword [rax], 0x16
jmp 0x140013cfa
call fcn.1400137ec
mov dword [rax], 0xc
jmp 0x140013cfa
call fcn.1400137ec
mov dword [rax], 2
jmp 0x140013cfa
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140013f2c
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013f2c
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013f2c
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c504
test eax, eax
jne 0x140013def
mov rax, rdi
jmp 0x140013cfe
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016a38
int3
jmp 0x140013cbc
Function at 0x140013fec
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140013e61
call fcn.1400137ec
mov dword [rax], 0x16
call fcn.140016a18
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140013e2d
test rbx, rbx
je 0x140013e2d
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013e95
cmp eax, 3
jbe 0x140013eaf
cmp eax, 8
je 0x140013ea2
cmp eax, 0x12
je 0x140013eaf
call fcn.1400137ec
mov dword [rax], 0x16
jmp 0x140013e3d
call fcn.1400137ec
mov dword [rax], 0xc
jmp 0x140013e3d
call fcn.1400137ec
mov dword [rax], 2
jmp 0x140013e3d
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140013f2c
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013f2c
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013f2c
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c504
test eax, eax
je 0x140013e40
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016a38
int3
jmp 0x140013e04

Function at 0x140014518
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140014538
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001377c
or eax, 0xffffffff
jmp 0x14001453a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140015e08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015c34
Function at 0x1412f2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1412f21df
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 0x1412f2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412f206f
add dl, dl
jne 0x1412f2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412f20f6
xor eax, eax
add dl, dl
jne 0x1412f20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412f21ad
add dl, dl
jne 0x1412f20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412f20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412f20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412f20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412f20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1412f207e
mov eax, 1
add dl, dl
jne 0x1412f2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412f2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412f20fb
sub eax, ebx
mov ebx, 1
jne 0x1412f214c
mov ecx, 1
add dl, dl
jne 0x1412f212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412f213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412f2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412f207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1412f2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412f2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412f215d
cmp eax, 0x7d00
jae 0x1412f219b
cmp eax, 0x500
jb 0x1412f2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412f207e
cmp eax, 0x7f
ja 0x1412f219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412f207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412f21d2
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 0x1412f207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140044490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400444a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140024070
jmp 0x14000123c
mov rax, qword [0x1400444a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400444a0]
mov dword [rax], 1
mov rax, qword [0x1400444e0]
mov rdx, rax
mov rax, qword [0x1400444d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140048024], 1
mov rax, qword [0x1400444a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400444c0]
mov rdx, rax
mov rax, qword [0x1400444b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400444a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140044490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400443e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400443e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400232f8
mov rax, qword [0x140044520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140044480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140022af0
mov eax, dword [0x140048004]
lea rdx, [0x140048008]
mov ecx, eax
call fcn.14000147c
call fcn.140022887
mov rax, qword [0x140044410]
mov rax, qword [rax]
mov rdx, qword [0x140048010]
mov qword [rax], rdx
mov rcx, qword [0x140048010]
mov rdx, qword [0x140048008]
mov eax, dword [0x140048004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004801c], eax
mov eax, dword [0x140048020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004801c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140048024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004801c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140044440]
mov dword [rax], 1
mov rax, qword [0x140044450]
mov dword [rax], 1
mov rax, qword [0x140044460]
mov dword [rax], 1
mov rax, qword [0x140044400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140022b00
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.140023e60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400237d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140048168]
test eax, eax
je 0x14002386a
lea rax, [0x140048140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140048170]
mov qword [rbp - 8], rax
jmp 0x14002384e
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 0x140023842
cmp qword [rbp - 0x10], 0
je 0x140023842
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 0x140023808
lea rax, [0x140048140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002386b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140023970
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 0x140023998
mov eax, 0
jmp 0x1400239e6
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 0x1400239c1
mov eax, 0
jmp 0x1400239e6
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 0x1400239e1
mov eax, 0
jmp 0x1400239e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400239ec
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 0x140023a6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140023a61
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 0x140023a61
mov rax, qword [rbp - 8]
jmp 0x140023a7f
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 0x140023a34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1406c03e8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c056f
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 0x1406c0419
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c03ff
add dl, dl
jne 0x1406c0426
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c0486
xor eax, eax
add dl, dl
jne 0x1406c0435
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c053d
add dl, dl
jne 0x1406c0446
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c0453
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c0460
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c046d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c047a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c040e
mov eax, 1
add dl, dl
jne 0x1406c0496
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c04a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c048b
sub eax, ebx
mov ebx, 1
jne 0x1406c04dc
mov ecx, 1
add dl, dl
jne 0x1406c04be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c04cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c04b3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c040e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c04f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c0505
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c04ed
cmp eax, 0x7d00
jae 0x1406c052b
cmp eax, 0x500
jb 0x1406c0526
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c040e
cmp eax, 0x7f
ja 0x1406c052e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c040e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c0562
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 0x1406c040e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20