joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056520
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.AdvAPI32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x140088e88], rax
lea rdx, str.CryptDecrypt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140088e80], rax
lea r9, [0x140078c10]
lea rax, [0x1400564f0]
mov rcx, rbx
lea r8, str.hash
mov qword [rsp + 0x20], rax
lea rdx, str.crypto
call sym.wluart_static.exe_lua_registermodule
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140055ea0]
lea rax, str.encrypt
lea r8, str.Cipher
mov qword [rsp + 0x20], rax
lea rdx, [0x14008962c]
call sym.wluart_static.exe_lua_registerobject
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x140088e78]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140058a70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov ebx, r8d
mov qword [rsp + 0x60], 0
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
lea r8, [rsp + 0x60]
lea rdx, [0x140058550]
call qword [sym.imp.USER32.dll_EnumThreadWindows]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x7f]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [0x140088eb0], rax
test rax, rax
jne 0x140058ae9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, 0x65
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [0x140088eb0], rax
bts ebx, 0xc
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x40], ebx
lea r8, [0x140057c90]
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14005d0a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
lea ebx, [r14 + 1]
movsxd rcx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, r14
mov rdx, rdi
add r8, r8
mov rcx, rbp
call qword [sym.wluart_static.exe_lua_pushlstring]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, r14d
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14005ff20
Capabilities:
Get file attributes
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x320
mov rax, qword [0x1400888e8]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rcx
xor ebp, ebp
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2b8
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_gettop]
cmp eax, 1
jle 0x1400600d2
lea edx, [rbp + 2]
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_type]
test eax, eax
je 0x1400600d2
cmp eax, 5
jne 0x14006000a
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [rbp + 2]
call qword [sym.wluart_static.exe_lua_tocinstance]
mov rcx, qword [sym.wluart_static.exe_TBuffer]
mov r10, rax
mov edx, dword [rsp + 0x40]
cmp edx, dword [rcx]
jne 0x14005ffed
mov edx, dword [rax + 8]
lea r8d, [rbp + 1]
mov rcx, qword [rax + 0x10]
mov r9d, 0x30000
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
jmp 0x1400600d7
mov rax, qword [sym.wluart_static.exe_TWidget]
cmp edx, dword [rax]
jne 0x14006000a
mov rdx, qword [r10 + 0x60]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x1400600d7
mov edx, 2
mov qword [rsp + 0x338], rsi
mov rcx, rdi
call qword [sym.wluart_static.exe_luaL_checkFilename]
mov rbx, rax
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rdx*2 + 2], bp
lea rdx, [rdx + 1]
jne 0x140060030
movzx esi, word [rax + rdx*2 - 2]
mov rcx, rdi
mov edx, 3
lea r8d, [rdx - 2]
call qword [sym.wluart_static.exe_luaL_optinteger]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rcx, rbx
lea edx, [rax - 1]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
inc eax
test eax, 0xfffffffe
jne 0x1400600c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp si, 0x5c
je 0x140060094
cmp si, 0x2f
je 0x140060094
cmp eax, 0xffffffff
cmove eax, ebp
jmp 0x140060099
mov eax, reloc.WS2_32.dll_recv
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x111
lea r8, [rsp + 0x50]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x338]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14006dc90
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400628e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov edx, 1
lea rcx, [0x140088f08]
mov r9, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx edx, word [0x140088f08]
cmp dl, 0xff
jne 0x14006292d
cmp byte [0x140088f09], 0xfe
jne 0x140062967
mov eax, 2
add rsp, 0x20
pop rbx
ret
cmp dl, 0xef
jne 0x140062967
cmp byte [0x140088f09], 0xbb
jne 0x140062967
mov edx, 1
lea rcx, [0x140088f08]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp byte [0x140088f08], 0xbf
jne 0x140062967
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006c390
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1400888e8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x39]
mov r15, rcx
call qword [sym.imp.USER32.dll_BeginPaint]
xorps xmm0, xmm0
mov rcx, r15
movups xmmword [rbp - 0x69], xmm0
mov rdi, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
lea rdx, [rbp - 0x59]
mov rcx, r15
mov rsi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov rdx, qword [rbx + 0x58]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r13d, eax
lea ebx, [rax + 1]
movsxd rcx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, ebx
mov rcx, r15
mov rdx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r9, [rbp - 0x69]
mov dword [rsp + 0x20], 0x420
mov r8d, 0xffffffff
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawTextW]
test rsi, rsi
je 0x14006c467
mov rsi, qword [rsi + 0x90]
test rsi, rsi
jne 0x14006c475
mov ecx, 4
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_send
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, 0x848484
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.GDI32.dll_SetDCPenColor]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r8, rsi
lea rdx, [rbp - 0x59]
mov rcx, rdi
call qword [sym.imp.USER32.dll_FillRect]
mov r8d, dword [rbp - 0x55]
mov ecx, dword [rbp - 0x4d]
inc r8d
mov eax, dword [rbp - 0x5d]
mov r9d, dword [rbp - 0x51]
cdq
sub eax, edx
mov dword [rbp - 0x55], r8d
mov edx, dword [rbp - 0x59]
add r9d, 0xfffffffc
sar eax, 1
add edx, 4
sub ecx, eax
add r8d, eax
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_Rectangle]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
test r13d, r13d
je 0x14006c568
mov eax, dword [rbp - 0x65]
xor edx, edx
sub dword [rbp - 0x5d], eax
mov rcx, rdi
add dword [rbp - 0x61], 0xb
mov dword [rbp - 0x69], 0xa
call qword [sym.imp.GDI32.dll_SetBkColor]
mov edx, 0xffffff
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetTextColor]
movaps xmm0, xmmword [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
mov r8, rsi
mov rcx, rdi
mov dword [rbp - 0x49], 8
call qword [sym.imp.USER32.dll_FillRect]
lea r9, [rbp - 0x69]
mov dword [rsp + SafeArrayAllocDescriptor], 0x20
mov r8d, 0xffffffff
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawTextW]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp - 0x39]
mov rcx, r15
call qword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14006dc90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14006c5b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetNtVersionNumbers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006c7e9
lea r8, [0x140088f28]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call rax
and dword [0x140088f28], 0xfffffff
cmp dword [rsp + 0x40], 0xa
jne 0x14006c7e9
cmp dword [rsp + 0x48], 0
jne 0x14006c7e9
lea rcx, str.uxtheme.dll
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14006c7e4
mov edx, gethostbyname
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x68
mov rcx, rbx
mov qword [0x140088f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x6a
mov rcx, rbx
mov qword [0x140088f58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x84
mov rcx, rbx
mov qword [0x140088f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x85
mov rcx, rbx
mov qword [0x140088f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x8a
mov rcx, rbx
mov qword [0x140088f40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x87
mov rcx, rbx
mov qword [0x140088f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x140088f28], 0x47ba
jae 0x14006c6cc
mov qword [0x140088f48], rax
jmp 0x14006c6d3
mov qword [0x140088f80], rax
mov edx, 0x88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x89
mov rcx, rbx
mov qword [0x140088f50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x140088f60], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetWindowCompositionAttribute
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x140088f28], 0x4563
mov qword [0x140088f30], rax
jbe 0x14006c7e4
cmp qword [0x140088f70], 0
je 0x14006c7e4
mov rax, qword [0x140088f58]
test rax, rax
je 0x14006c7e4
cmp qword [0x140088f38], 0
je 0x14006c7e4
cmp qword [0x140088f40], 0
je 0x14006c7e4
cmp qword [0x140088f48], 0
jne 0x14006c77b
cmp qword [0x140088f80], 0
je 0x14006c7e4
cmp qword [0x140088f60], 0
je 0x14006c7e4
mov ebx, 1
mov dword [0x140088f20], ebx
call rax
cmp dword [0x140088f20], 0
je 0x14006c7d6
call qword [0x140088f78]
test eax, eax
je 0x14006c7d6
xor eax, eax
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x24], rax
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], eax
lea edx, [rbx + 0xf]
lea ecx, [rbx + 0x41]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x14006c7d8
test dword [rsp + 0x24], ebx
je 0x14006c7d8
xor ebx, ebx
mov dword [0x140088f2c], ebx
mov dword [0x140088f88], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x14006e848
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006e892
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006e892
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006e892
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006e892
cmp dword [rcx + 0x84], 0xe
jbe 0x14006e892
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006e894
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
lea r9, [rsp + 0x20]
mov r14d, ecx
xor esi, esi
xor edx, edx
mov dword [rsp + 0x20], esi
mov ecx, 0x10
xor r8d, r8d
mov edi, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400010ab
mov qword [rsp + 0x40], rbx
mov ebx, dword [rsp + 0x20]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x14000107b
mov r9, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x140001084
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001053
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x1400010ea
mov r9d, dword [rdi]
mov edx, esi
test r9d, r9d
je 0x1400010ea
nop dword [rax]
mov eax, edx
lea rcx, [rax + rax*2]
movzx eax, word [rdi + rcx*8 + 8]
lea r8, [rdi + rcx*8]
cmp eax, r14d
jne 0x1400010db
cmp word [r8 + 0xe], bp
je 0x1400010e4
inc edx
cmp edx, r9d
jb 0x1400010c0
jmp 0x1400010ef
mov rsi, qword [r8 + 0x10]
jmp 0x1400010ef
test rdi, rdi
je 0x140001103
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400024c0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140001130
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov esi, ecx
mov edi, 0x100
xor ebp, ebp
mov edx, edi
mov ecx, 0x40
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400011c6
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400011ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [rsp + 0x20]
mov ecx, 0x40
add edi, 0x100
mov dword [rsp + 0x20], ebp
mov edx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140001180
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400024c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test eax, eax
jns 0x1400011fe
test rbx, rbx
je 0x1400011c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400011c6
mov rax, rbx
jmp 0x1400011c8
Function at 0x140002350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, qword [0x1400066b8]
xor ebx, ebx
movdqa xmm0, xmmword [0x1400044d0]
mov qword [rsp + 0x70], rbx
movdqu xmmword [rsp + 0x20], xmm0
test rsi, rsi
je 0x14000243c
cmp qword [0x1400066c8], rbx
je 0x14000243c
mov eax, dword [rsi + 0x3c]
mov ebp, dword [rax + rsi + 0x88]
mov eax, dword [rax + rsi + 0x8c]
mov dword [rsp + 0x68], eax
test ebp, ebp
je 0x14000243c
mov r8d, dword [rsi + rbp + 0x1c]
lea rax, [rsi + rbp]
test r8d, r8d
je 0x14000243c
mov ecx, dword [rax + 0x24]
test ecx, ecx
je 0x14000243c
mov edx, dword [rax + 0x20]
test edx, edx
je 0x14000243c
mov r14d, dword [rax + 0x18]
lea r12, [rsi + r8]
lea r13, [rsi + rcx]
lea rdi, [rsi + rdx]
test r14d, r14d
je 0x14000243c
nop
mov ecx, dword [rdi]
lea rdx, str.ExAllocatePool
add rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140002412
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x1400023f0
jmp 0x14000243c
mov eax, ebx
movzx ecx, word [r13 + rax*2]
mov edx, dword [r12 + rcx*4]
test edx, edx
je 0x14000243c
cmp edx, ebp
jbe 0x140002430
mov eax, dword [rsp + 0x68]
add eax, ebp
cmp edx, eax
jb 0x14000243c
mov rax, rdx
add rax, qword [0x1400066c8]
jne 0x14000246b
mov r8d, 2
lea rdx, [0x1400043f4]
lea rcx, str.ExAllocatePool
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140002488
lea rcx, str.ExAllocatePool
call fcn.140001210
test rax, rax
je 0x140002488
lea r9, [rsp + 0x70]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400019a0
test al, al
je 0x140002488
mov rax, qword [rsp + 0x70]
jmp 0x14000248a
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140002d80
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b790]
mov dword [rax], 1
mov rax, qword [0x14000b7a0]
mov dword [rax], 1
mov rax, qword [0x14000b7b0]
mov dword [rax], 1
mov rax, qword [0x14000b740]
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 0x1400015e0
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, str.https:__www.youtube.com_watch_vdQw4w9WgXcQ
mov qword [rbp + 0xb8], rax
lea rax, str.start
mov qword [rbp + 0xb0], rax
mov rcx, qword [rbp + 0xb0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0xb8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x100
mov rcx, rax
call dbg.snprintf(char*, unsigned long long, char const*, ::)
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x140
pop rbp
ret

Function at 0x1400019b0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000e108]
test eax, eax
je 0x14000271a
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000e110]
mov qword [rbp - 8], rax
jmp 0x1400026fe
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 0x1400026f2
cmp qword [rbp - 0x10], 0
je 0x1400026f2
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 0x1400026b8
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000271b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002820
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 0x140002848
mov eax, 0
jmp 0x140002896
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 0x140002871
mov eax, 0
jmp 0x140002896
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 0x140002891
mov eax, 0
jmp 0x140002896
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000289c
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 0x14000291a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002911
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 0x140002911
mov rax, qword [rbp - 8]
jmp 0x14000292f
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 0x1400028e4
mov eax, 0
add rsp, 0x20
pop rbp
ret