joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a60
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006a90
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006a8f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006a95
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006a8f
mov eax, 0
jmp 0x140006a8f

Function at 0x140007110
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400070c0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400112f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b2290]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001135f
mov rcx, r9
call fcn.1400111c0
test eax, eax
je 0x14001135f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001135d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011354
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001135f
add rdx, 0x28
cmp rdx, r9
jne 0x140011340
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001afb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001afc0]
mov dword [rax], 1
mov rax, qword [0x14001afd0]
mov dword [rax], 1
mov rax, qword [0x14001afa0]
mov dword [rax], 1
mov rax, qword [0x14001ae40]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001af90]
mov dword [0x14001e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001af50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001af30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001add0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400018d0
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 0x1400021f0
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 0x14000223c
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 0x140002233
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000223e
add rax, 0x28
cmp rax, r9
jne 0x140002220
xor eax, eax
ret

Function at 0x140002240
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022d0
mov rdx, qword [0x14001ae40]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022be
cmp word [rax + 0x18], 0x20b
jne 0x1400022be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022a9
add r12, 0x28
cmp r12, rsi
je 0x1400022d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022a0
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 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001ae40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002355
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 0x14000234c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002300
add rax, 0x28
cmp rax, r9
jne 0x140002338
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

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

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001ae40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002408
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023ff
test rcx, rcx
je 0x1400023c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023f0
xor eax, eax
ret
Function at 0x140002410
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x14001ae40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002470
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002478
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002470
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002470
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 0x1400024b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024c8
add rax, 0x28
cmp r9, rax
jne 0x1400024a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x14001ae40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002502
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002510
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002502
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002502
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002502
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 0x14000255d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002570
add rdx, 0x28
cmp r10, rdx
jne 0x140002548
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000257f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000258f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002566
test ecx, ecx
jg 0x140002578
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001aec0]
mov rax, qword [rsi]
test rax, rax
je 0x140003c90
cmp qword [rax + 0x30], 0
jne 0x140003cb0
lea rbx, [0x140019078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c60
cmp qword [rax + 0x30], 0
jne 0x140003c80
lea rdx, [0x140019078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c42
test rax, rax
jne 0x140003c80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c50
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c20
test rax, rax
jne 0x140003cb0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c2b
Function at 0x140007880
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001aec0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007950
cmp qword [rax + 0x60], 0
jne 0x140007970
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007980
cmp qword [rax + 0x1d8], r12
jne 0x140007980
test byte [rax + 0x40], 0xc
jne 0x140007980
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007980
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007980
mov rax, qword [rbx]
test rax, rax
je 0x1400079e0
cmp qword [rax + 0x60], 0
jne 0x140007a00
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007a10
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007a18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078ab
test rax, rax
jne 0x140007970
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078b6
mov rax, qword [rbx]
test rax, rax
je 0x1400079b0
cmp qword [rax + 0x60], 0
jne 0x1400079d0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000798f
test rax, rax
jne 0x1400079d0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000799a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000791a
test rax, rax
jne 0x140007a00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007925
xor eax, eax
jmp 0x1400079a4
mov eax, 0x16
jmp 0x1400079a4
Function at 0x1427ee058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1427ee1df
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 0x1427ee089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427ee06f
add dl, dl
jne 0x1427ee096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427ee0f6
xor eax, eax
add dl, dl
jne 0x1427ee0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427ee1ad
add dl, dl
jne 0x1427ee0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427ee0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427ee0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427ee0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1427ee0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1427ee07e
mov eax, 1
add dl, dl
jne 0x1427ee106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427ee113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427ee0fb
sub eax, ebx
mov ebx, 1
jne 0x1427ee14c
mov ecx, 1
add dl, dl
jne 0x1427ee12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1427ee13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427ee123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1427ee07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1427ee168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1427ee175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427ee15d
cmp eax, 0x7d00
jae 0x1427ee19b
cmp eax, 0x500
jb 0x1427ee196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1427ee07e
cmp eax, 0x7f
ja 0x1427ee19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1427ee07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1427ee1d2
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 0x1427ee07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401570
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4c8
mov rbp, rdx
mov rsi, rcx
xor ecx, ecx
lea rdx, section..rdata
mov edi, r8d
mov r12, r9
call sub.msvcrt.dll_setlocale
mov ecx, 0x18
call sub.msvcrt.dll_malloc
lea rbx, [rsp + 0xc0]
mov edx, 0x400
mov qword [rbp], rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__getcwd]
mov rdx, rbx
test rax, rax
je 0x4017f0
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4015cd
mov ecx, eax
mov r13, rbx
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
sbb rdx, 3
sub rdx, rbx
mov byte [rbx + rdx], 0x5c
lea rcx, [rbx + rdx + 1]
mov rdx, rsi
call sub.msvcrt.dll_strcpy
mov edx, dword [r13]
add r13, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x401618
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r13 + 2]
mov esi, eax
cmove r13, rdx
add sil, al
sbb r13, 3
sub r13, rbx
lea rcx, [r13 + r13*4 + 5]
shl rcx, 2
call sub.msvcrt.dll_malloc
lea r8, [r13 + r13]
mov rdx, rbx
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_mbstowcs
mov rdx, rbx
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x401676
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
sbb rdx, 3
mov eax, edx
sub eax, ebx
cmp edi, 1
mov ebx, eax
jle 0x40171b
lea eax, [rdi - 2]
lea r13, [r12 + 8]
lea r14, [r12 + rax*8 + 0x10]
lea r12, [0x00405010]
nop dword [rax]
movsxd rdi, ebx
mov r8d, 2
mov rdx, r12
add rdi, rdi
add r13, 8
lea rcx, [rsi + rdi]
call sub.msvcrt.dll_mbstowcs
mov r15, qword [r13 - 8]
mov rcx, r15
call sub.msvcrt.dll_strlen
lea rcx, [rsi + rdi + 2]
mov rdx, r15
lea r8, [rax + rax]
call sub.msvcrt.dll_mbstowcs
mov rcx, qword [r13 - 8]
call sub.msvcrt.dll_strlen
cmp r14, r13
lea ebx, [rbx + rax + 1]
jne 0x4016d0
lea rdx, [rsp + 0x54]
xor eax, eax
mov ecx, 0xc
mov dword [rsp + 0x50], 0x68
lea rbx, [rsp + 0x50]
mov rdi, rdx
mov rdx, rsi
rep stosq qword [rdi], rax
mov rax, qword [rbp]
lea rcx, str.Unicode_string:___ls__n
mov dword [rdi], 0
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
call sub.msvcrt.dll_wprintf
mov rax, qword [rbp]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4017d1
lea rcx, str.Empty_process_start_over
call sub.msvcrt.dll_puts
xor eax, eax
add rsp, 0x4c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateProcess_failed___d_._n
mov edx, eax
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x4017bd
lea rcx, str.getcwd___error
call sub.msvcrt.dll_perror
mov eax, 1
jmp 0x4017bd
Function at 0x401810
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x401850
lea rcx, str.Process_resume_over
call sub.msvcrt.dll_puts
mov rcx, qword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 8]
call rsi
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ResumeThread_failed___d_._n
mov edx, eax
call sub.msvcrt.dll_printf
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x4020a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004a6624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402228
mov rax, qword [0x004a6628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4020ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402175
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4020d0
mov rcx, rbx
call fcn.00402d40
test rax, rax
mov r12, rax
je 0x40225d
mov rax, qword [0x004a6628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402e70
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004a6628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402240
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40216e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4021d0
add dword [0x004a6624], 1
cmp edi, 8
jae 0x4021a3
test dil, 4
jne 0x402214
test edi, edi
je 0x402198
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40222f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402198
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4021bc
jmp 0x402198
add rsi, qword [0x004a6628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40216e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403590
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402198
xor esi, esi
jmp 0x4020f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402198
mov rax, qword [0x004a6628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403590
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403590
nop
nop dword [rax]

Function at 0x4029b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a6900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a68e0]
test rbx, rbx
je 0x402a04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4029fb
test rsi, rsi
je 0x4029fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4029e0
lea rcx, [0x004a6900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402d40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004a32a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402dad
mov rcx, r8
call fcn.00402c20
test eax, eax
je 0x402dad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402dad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402da4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402daf
add rax, 0x28
cmp rax, r9
jne 0x402d90
xor eax, eax
add rsp, 0x28
ret
Function at 0x4032d0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push r15
mov eax, 0x9de58
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00403000
sub rsp, rax
mov dword [rsp + 0x9dea0], ecx
lea rdi, [rsp + 0x40]
mov r12, rdx
call fcn.00401c30
lea rsi, [rsp + 0x2a40]
call sub.umppc16510.dll_function1
lea r13, [rsp + 0xb0]
call sub.umppc16510.dll_function2
lea r14, [rsp + 0x40]
call sub.umppc16510.dll_function3
xor eax, eax
mov ecx, 0xc
mov r8d, 0x2801
rep stosq qword [rdi], rax
lea rdx, [0x004051c8]
movabs rax, 0x414357071e050206
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x31], rax
mov eax, 0x1903
mov dword [rsp + 0x39], 0x174b4244
mov word [rsp + 0x3d], ax
mov byte [rsp + 0x3f], 0
mov dword [rdi], 0
lea rdi, [rsp + 0x230]
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8d, 0x9b401
mov rcx, rsi
lea rdx, [0x004079d0]
call sub.msvcrt.dll_memcpy
mov r8d, 0x17e
mov rcx, r13
lea rdx, [0x004a2dd8]
call sub.msvcrt.dll_memcpy
lea rcx, str.Key:
call sub.msvcrt.dll_printf
lea rcx, [0x0040519b]
mov rdx, r14
call sub.msvcrt.dll_scanf
mov r8, rdi
xor ecx, ecx
nop word [rax + rax]
mov rbx, r14
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4033d3
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
cmove rbx, rdx
mov edx, eax
add dl, al
mov rax, rcx
sbb rbx, 3
xor edx, edx
add rcx, 1
sub rbx, r14
div rbx
movzx eax, byte [rsp + rdx + 0x40]
xor byte [r8], al
add r8, 1
cmp rcx, 0x2800
jne 0x4033d0
lea r14, [rsp + 0x31]
xor r15d, r15d
mov rbp, r14
jmp 0x403458
mov rax, r15
xor edx, edx
add r15, 1
div rbx
movzx eax, byte [rsp + rdx + 0x40]
xor byte [rbp], al
add rbp, 1
mov rcx, r14
call sub.msvcrt.dll_strlen
cmp rax, r15
ja 0x403440
movzx eax, byte [rsp + 0x40]
mov r8d, 1
mov rcx, rsi
xor byte [rsp + 0x2a40], al
lea r9, [rsi + 0x9b3ff]
sub r8, rsi
xor edx, edx
lea rax, [r8 + rcx]
div rbx
movzx eax, byte [rsp + rdx + 0x40]
xor byte [rcx + 1], al
add rcx, 1
cmp rcx, r9
jne 0x403484
mov r8, r13
xor ecx, ecx
mov rax, rcx
xor edx, edx
add rcx, 1
div rbx
movzx eax, byte [rsp + rdx + 0x40]
xor byte [r8], al
add r8, 1
cmp rcx, 0x17e
jne 0x4034a3
lea rdx, [0x0040519e]
mov rcx, r14
call sub.msvcrt.dll_fopen
lea rdx, [0x0040519e]
lea rcx, str.HelloWorld.exe
mov r14, rax
call sub.msvcrt.dll_fopen
mov r9, r14
mov edx, 0x2800
mov rcx, rdi
mov r8d, 1
mov rbx, rax
call sub.msvcrt.dll_fwrite
mov rcx, r14
call sub.msvcrt.dll_fclose
mov r9, rbx
mov edx, 0x9b400
mov rcx, rsi
mov r8d, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fclose
lea rcx, str.File_extracts_success
call sub.msvcrt.dll_puts
mov r8d, dword [rsp + 0x9dea0]
mov r9, r12
lea rdx, [rsp + 0x28]
lea rcx, str.HelloWorld.exe
call fcn.00401570
mov rcx, qword [rsp + 0x28]
mov r8d, 0x17d
mov rdx, r13
call fcn.00401870
mov rcx, qword [rsp + 0x28]
call fcn.00401810
xor eax, eax
add rsp, 0x9de58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret