joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001070
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x18001e008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800010ad
xor eax, eax
jmp 0x1800011ef
mov qword [rsp + 0x2a0], rbx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x2a8], rdi
xor edx, edx
mov r8d, 0x234
mov qword [rsp + 0x2b0], r14
mov dword [rsp + 0x40], 0x238
call fcn.180002da0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800011cc
xor r14d, r14d
nop dword [rax + rax]
lea rax, [rsp + 0x6c]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x180001110
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x30], r14
xor edx, edx
mov dword [rsp + 0x28], r14d
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.180001a80
mov rbx, rax
mov r9, 0xffffffffffffffff
lea rax, [rsp + 0x6c]
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x180001160
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x30], r14
xor edx, edx
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rbp
mov byte [rdi + rbx], r14b
sub rdx, rbx
nop word [rax + rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x1800011b2
inc rbx
test eax, eax
jne 0x1800011a0
test ecx, ecx
mov rcx, rsi
je 0x180001210
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180001100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180001a60
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x1800011d7
Function at 0x180002b8c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180002be6
mov r11b, 0x23
lea rbx, [0x180047b90]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x180002bd0
cmp rdx, 2
jb 0x180002bd0
cmp byte [r10], r11b
jne 0x180002bd0
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x180002bae
jmp 0x180002c27
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180002c27
mov r11b, 0x23
lea rbx, [0x180047b90]
cmp dl, r11b
jne 0x180002c0b
cmp byte [r10], r11b
jne 0x180002c0b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x180002bf9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180002d94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180002db5
and qword [r8], 0
lea rdx, [0x180047680]
call fcn.180002c38
mov rbx, rax
test rax, rax
je 0x180002e78
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180002e6f
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002e6f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180002e6f
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002e6f
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x180002e6f
mov rcx, rdi
call fcn.18000606c
mov rdi, rax
test rax, rax
je 0x180002e6f
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x180002e5c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.1800060b4
jmp 0x180002e78
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180002e6a
mov qword [r14], rsi
mov rax, rdi
jmp 0x180002e7a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18000e6dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd r8, dword [rcx + 0x108]
mov r11d, 4
mov rax, qword [rcx + 0x110]
mov r9, rcx
mov dword [rsp + 0x20], edx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x20]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180047b90]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000e71b
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x40bc], ebx
jne 0x18000e755
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.1800178a0
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180043720
add rsp, 0x30
pop rbx
ret

Function at 0x18000e76c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x10], rax
movss xmm2, dword [rcx + 0x128]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x12c]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0x110]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0x108]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x180047b90]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18000e7e9
not r8d
mov eax, r8d
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.180043720
add rsp, 0x28
ret

Function at 0x1800165c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6080], 0
lea rdi, [rcx + 0x6088]
mov rbx, rcx
mov rsi, r8
mov rcx, rdi
mov rbp, rdx
je 0x180016641
xor edx, edx
call fcn.1800185c8
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.180003608
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x6080]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1801a5af8]
movsxd r8, eax
mov rax, qword [rbx + 0x6090]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180016646
call fcn.180003608
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180016c7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1801a5b00]
mov rbx, rcx
and dword [rax + 0x5fd4], 0
test rcx, rcx
je 0x180016ce5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180016cf0
lea rdx, [0x180047684]
mov rcx, rbx
mov rdi, rax
call fcn.180002c38
mov rbx, rax
test rax, rax
je 0x180016ce5
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180038834
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
lea rcx, [0x18019e390]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800388ae
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x4c
lea rdx, [0x1801a5320]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800388b0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180043720
add rsp, 0x50
pop rbx
ret

Function at 0x1800388c4
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ecx, dword [0x1801a5abc]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1801ab7c4], ecx
jle 0x180038a13
lea rcx, [0x1801ab7c4]
call fcn.18004396c
cmp dword [0x1801ab7c4], 0xffffffff
jne 0x180038a13
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
jmp 0x180038978
lea rdx, str.Bodycam_Win64_Shipping.exe
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rdi
test eax, eax
je 0x180038a46
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180038950
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180038a00
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1800389f7
cmp dword [rsp + 0x20], ebx
je 0x1800389f7
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800389f7
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1800389ee
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1801ab7b8], rbx
lea rcx, [0x1801ab7c4]
call fcn.180043900
mov rax, qword [0x1801ab7b8]
mov rax, qword [rax + 0x7a1ea40]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180043720
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8d, dword [rsp + 0x38]
jmp 0x180038988
Function at 0x18003ec4c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x18003ec7d
inc ebx
cmp ebx, 0xff
jl 0x18003ec62
xor al, al
jmp 0x18003ec81
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180040f2c
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and dword [rbp - 5], 0
mov ebx, 0x7f00
and dword [rbp + 7], 0
mov edx, ebx
and dword [rbp + 0xb], 0
xor ecx, ecx
and qword [rbp + 0xf], 0
movaps xmmword [rax - 0x18], xmm6
lea rax, [0x180040e38]
mov qword [rbp - 1], rax
mov dword [rbp - 9], 0x50
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, ebx
xor ecx, ecx
mov qword [rbp + 0x17], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0x1f], rax
mov edx, ebx
mov rax, qword [0x1801a5df0]
xor ecx, ecx
mov qword [rbp + 0x37], rax
xorps xmm6, xmm6
call qword [sym.imp.USER32.dll_LoadIconW]
movups xmm0, xmmword [rbp - 9]
mov qword [rbp + 0x3f], rax
lea rcx, [0x1801a5da0]
movups xmm1, xmmword [rbp + 7]
movaps xmmword [0x1801a5da0], xmm0
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [0x1801a5db0], xmm1
movaps xmmword [0x1801a5dc0], xmm0
movups xmm0, xmmword [rbp + 0x37]
movaps xmmword [0x1801a5dd0], xmm6
movaps xmmword [0x1801a5de0], xmm0
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rcx, qword [0x1801a5d00]
test rcx, rcx
je 0x180041042
lea rdx, [0x1801ab668]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1801a5d00]
lea rdx, [0x1801ab760]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1801ab760]
mov ecx, dword [0x1801ab674]
mov dword [0x1801ab668], eax
mov eax, dword [0x1801ab764]
mov dword [0x1801ab66c], eax
mov eax, dword [0x1801ab670]
mov dword [0x1801a5cf8], eax
mov dword [0x1801a5e04], ecx
jmp 0x18004104e
mov eax, dword [0x1801a5cf8]
mov ecx, dword [0x1801a5e04]
and qword [rsp + 0x58], 0
mov r9d, 0x90000000
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov rdx, qword [0x1801a5df0]
mov dword [rsp + 0x38], ecx
mov r8, rdx
mov dword [rsp + 0x30], eax
xor ecx, ecx
mov eax, dword [0x1801a5e00]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1801a5d90]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1801a5df8], rax
lea rdx, [0x1801a5308]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1801a5df8]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x1801a5df8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1801a5df8]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
jmp qword [sym.imp.USER32.dll_UpdateWindow]

Function at 0x180041284
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800412ac
and qword [rsp + 0x28], 0
lea r8, [0x180041100]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
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 [0x140008010]
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 [0x140008020]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140008020]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140008020]
mov dword [rax], 1
mov rax, qword [0x140008060]
mov rdx, rax
mov rax, qword [0x140008050]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000c024], 1
mov rax, qword [0x140008020]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140008040]
mov rdx, rax
mov rax, qword [0x140008030]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140008020]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140008010]
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 [0x140007f60]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140007f60]
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 [0x140008000]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000c004]
lea rdx, [0x14000c008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140007f90]
mov rax, qword [rax]
mov rdx, qword [0x14000c010]
mov qword [rax], rdx
mov rcx, qword [0x14000c010]
mov rdx, qword [0x14000c008]
mov eax, dword [0x14000c004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000c01c], eax
mov eax, dword [0x14000c020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000c01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000c024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000c01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140007fc0]
mov dword [rax], 1
mov rax, qword [0x140007fd0]
mov dword [rax], 1
mov rax, qword [0x140007fe0]
mov dword [rax], 1
mov rax, qword [0x140007f80]
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 0x140003a23
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0
jmp 0x140003ad2
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov r8d, eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx edx, ax
mov eax, dword [rbp + 0x30]
mov ecx, eax
sar edx, cl
mov eax, edx
and ax, 0x1111
xor eax, r8d
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx eax, ax
and eax, 0x1111
mov edx, eax
mov eax, dword [rbp + 0x28]
mov ecx, eax
shl edx, cl
mov ecx, edx
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov edx, eax
mov eax, ecx
or eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
add dword [rbp - 4], 1
cmp dword [rbp - 4], 7
jle 0x140003a47
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x1400045d0
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 0x1400052a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000c168]
test eax, eax
je 0x14000533a
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000c170]
mov qword [rbp - 8], rax
jmp 0x14000531e
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 0x140005312
cmp qword [rbp - 0x10], 0
je 0x140005312
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 0x1400052d8
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000533b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140005440
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 0x140005468
mov eax, 0
jmp 0x1400054b6
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 0x140005491
mov eax, 0
jmp 0x1400054b6
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 0x1400054b1
mov eax, 0
jmp 0x1400054b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400054bc
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 0x14000553a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140005531
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 0x140005531
mov rax, qword [rbp - 8]
jmp 0x14000554f
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 0x140005504
mov eax, 0
add rsp, 0x20
pop rbp
ret