joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127c34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x140177fc0]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x140127ca0
cmp word [r14], r10w
jne 0x140127ca0
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x140127cc1
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x140127e9a
mov ecx, ntohl
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140127e58
cmp ax, cx
je 0x140127cfd
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x140127df1
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x140127d25
cmp word [rax], r10w
jne 0x140127d17
mov word [rbx], r10w
mov eax, 4
jmp 0x140127d1d
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x140127e3b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140127e40
cmp dword [rsp + 0x80], 0
je 0x140127e40
mov rcx, rdi
lea r11, [0x140177fc0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x140127dff
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x140127d97
mov word [rbx], r10w
jmp 0x140127de9
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, ntohl
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x140127db8
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, ntohl
cmp rsi, rbp
jb 0x140127cdd
jmp 0x140127e9a
cmp word [rsp + 0x70], r10w
jne 0x140127e0c
cmp rbx, r14
je 0x140127d91
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14012be18
mov r10d, 0xa
lea r11, [0x140177fc0]
cmp word [rsp + 0x70], r10w
je 0x140127dec
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x140127df1
mov ecx, ntohl
lea r11, [0x140177fc0]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x140127df1
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x140127e91
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x140127e9a
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0xc52058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c521df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc52089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc5206f
add dl, dl
jne 0xc52096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc520f6
xor eax, eax
add dl, dl
jne 0xc520a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc521ad
add dl, dl
jne 0xc520b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc520c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc520d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc520dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc520ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc5207e
mov eax, 1
add dl, dl
jne 0xc52106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc52113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc520fb
sub eax, ebx
mov ebx, 1
jne 0xc5214c
mov ecx, 1
add dl, dl
jne 0xc5212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc5213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc52123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc5207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc52168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc52175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc5215d
cmp eax, 0x7d00
jae 0xc5219b
cmp eax, 0x500
jb 0xc52196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc5207e
cmp eax, 0x7f
ja 0xc5219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc5207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc521d2
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 0xc5207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100401110
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rcx, str.FIXME:
call sub.cygwin1.dll_fwrite
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov rbx, qword [rbp - 0x58]
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.cygwin1.dll_vfprintf
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov rdx, rax
mov ecx, 0xa
call sub.cygwin1.dll_fputc
mov ecx, 1
call sub.cygwin1.dll_exit
nop
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
cmp qword [rbp + 0x20], 0
jne 0x1004011bb
mov ecx, 0
call sub.cygwin1.dll_exit
mov rax, qword [rbp + 0x20]
mov ecx, eax
lea rax, [0x10040b1b8]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x18]
mov r8d, ecx
mov rcx, rax
call fcn.1004032d6
lea rax, [0x10040b1c8]
mov rax, qword [rax]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401e49
cmp rax, 0x10000
jbe 0x100401211
lea rax, [0x10040b1a8]
mov rax, qword [rax]
mov rcx, rax
call fcn.100401ebe
lea rax, [0x10040b1e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401e49
cmp rax, 0x10000
jbe 0x100401248
lea rax, [0x10040b1d8]
mov rax, qword [rax]
mov rcx, rax
call fcn.100401ebe
nop
add rsp, 0x20
pop rbp
ret

Function at 0x100401196
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rcx, str.FIXME:
call sub.cygwin1.dll_fwrite
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov rbx, qword [rbp - 0x58]
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.cygwin1.dll_vfprintf
call sub.cygwin1.dll___getreent
mov rax, qword [rax + 0x18]
mov rdx, rax
mov ecx, 0xa
call sub.cygwin1.dll_fputc
mov ecx, 1
call sub.cygwin1.dll_exit
nop
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
cmp qword [rbp + 0x20], 0
jne 0x1004011bb
mov ecx, 0
call sub.cygwin1.dll_exit
mov rax, qword [rbp + 0x20]
mov ecx, eax
lea rax, [0x10040b1b8]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x18]
mov r8d, ecx
mov rcx, rax
call fcn.1004032d6
lea rax, [0x10040b1c8]
mov rax, qword [rax]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401e49
cmp rax, 0x10000
jbe 0x100401211
lea rax, [0x10040b1a8]
mov rax, qword [rax]
mov rcx, rax
call fcn.100401ebe
lea rax, [0x10040b1e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401e49
cmp rax, 0x10000
jbe 0x100401248
lea rax, [0x10040b1d8]
mov rax, qword [rax]
mov rcx, rax
call fcn.100401ebe
nop
add rsp, 0x20
pop rbp
ret
Function at 0x1004038b0
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 2
lea rcx, str._dev_ptmx
call sub.cygwin1.dll_open
mov dword [0x100405010], eax
mov eax, dword [0x100405010]
test eax, eax
jns 0x1004038ef
lea rcx, str._dev_ptmx:_open
call sub.cygwin1.dll_perror
mov ecx, 1
call sub.cygwin1.dll_exit
mov eax, dword [0x100405010]
mov ecx, eax
call sub.cygwin1.dll_grantpt
test eax, eax
jns 0x100403916
lea rcx, str.grantpt
call sub.cygwin1.dll_perror
mov ecx, 1
call sub.cygwin1.dll_exit
mov eax, dword [0x100405010]
mov ecx, eax
call sub.cygwin1.dll_unlockpt
test eax, eax
jns 0x10040393d
lea rcx, str.unlockpt
call sub.cygwin1.dll_perror
mov ecx, 1
call sub.cygwin1.dll_exit
nop
add rsp, 0x20
pop rbp
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014510
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014530
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014543
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001456d
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014581
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014593
xor al, al
jmp 0x1400145b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145af
xor al, al
jmp 0x1400145b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012410
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a2
movzx eax, al
test eax, eax
jne 0x140012430
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14001e878], 1
jne 0x140012454
mov ecx, 7
call fcn.140011320
nop
jmp 0x1400124ac
cmp dword [0x14001e878], 0
jne 0x1400124a7
mov dword [0x14001e878], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x140012488
mov eax, 0xff
jmp 0x1400125b1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14001e878], 2
jmp 0x1400124ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012509
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140012509
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001253d
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x14001253d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011361
nop
call fcn.140012660
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001255c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001256b
call fcn.14001136b
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x1400125b1
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004244e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004244f0]
mov dword [rax], 1
mov rax, qword [0x00424500]
mov dword [rax], 1
mov rax, qword [0x004244d0]
mov dword [rax], 1
mov rax, qword [0x00424390]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004244c0]
mov dword [0x00427008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00424420]
mov qword [rdx], rax
mov rdx, qword [0x00424410]
mov qword [rdx], rax
mov rax, qword [0x00424480]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00424340]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
mov eax, dword [0x004230bc]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40158e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error_al_asignar_memoria:__lu_n
call sym.printf
mov eax, 1
jmp 0x40161c
mov rax, qword [rbp - 8]
mov rdx, rax
lea rcx, str.Memoria_asignada_en:__p_n
call sym.printf
mov eax, dword [0x004230bc]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x00403040]
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
mov rdx, rax
lea rcx, str.Memoria_copiada_a:__p_n
call sym.printf
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
jne 0x4015ff
lea rcx, str.Ejecutando_c
call sym.puts
mov rax, qword [rbp - 8]
call rax
lea rcx, [0x00424064]
call sym.puts
jmp 0x40160b
lea rcx, str.El_c
call sym.puts
lea rcx, str.todo_bien
call sym.puts
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x401830
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00427054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40194a
mov rax, qword [0x00427058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40187e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401930
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401862
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401982
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00427058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00427058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401965
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401929
sub eax, 0x40
and eax, 0xffffffbf
je 0x401929
mov r9, rbp
add r9, qword [0x00427058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401951
add dword [0x00427054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40188b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00427058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402560
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402570
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402580
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4025c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4025b8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4025c3
add rax, 0x28
cmp rax, r9
jne 0x4025a4
xor eax, eax
repz ret

Function at 0x402670
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00424390]
cmp word [rbx], 0x5a4d
je 0x402690
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402684
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4028e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004279c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004279a0]
test rbx, rbx
je 0x402934
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 0x40292b
test rsi, rsi
je 0x40292b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402910
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004279c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x1415b7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415b71df
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 0x1415b7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b706f
add dl, dl
jne 0x1415b7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b70f6
xor eax, eax
add dl, dl
jne 0x1415b70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b71ad
add dl, dl
jne 0x1415b70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415b70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415b707e
mov eax, 1
add dl, dl
jne 0x1415b7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b70fb
sub eax, ebx
mov ebx, 1
jne 0x1415b714c
mov ecx, 1
add dl, dl
jne 0x1415b712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415b7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b715d
cmp eax, 0x7d00
jae 0x1415b719b
cmp eax, 0x500
jb 0x1415b7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
cmp eax, 0x7f
ja 0x1415b719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415b71d2
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 0x1415b707e
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 [0x14002eb10]
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 [0x14002eb20]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x14002eb20]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14002eb20]
mov dword [rax], 1
mov rax, qword [0x14002eb70]
mov rdx, rax
mov rax, qword [0x14002eb60]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140034024], 1
mov rax, qword [0x14002eb20]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14002eb50]
mov rdx, rax
mov rax, qword [0x14002eb40]
mov rcx, rax
call sym._initterm
mov rax, qword [0x14002eb20]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14002eb10]
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 [0x14002ea60]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14002ea60]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14002eb00]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140034004]
lea rdx, [0x140034008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x14002ea90]
mov rax, qword [rax]
mov rdx, qword [0x140034010]
mov qword [rax], rdx
mov rcx, qword [0x140034010]
mov rdx, qword [0x140034008]
mov eax, dword [0x140034004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x14003401c], eax
mov eax, dword [0x140034020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14003401c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140034024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14003401c]
add rsp, 0x70
pop rbp
ret