joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x1400013f1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x10]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx + 0x31], 0
jne case.default.0x140001407
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret
jne 0x14001ebfc
cmp al, 0x63
outsd dx, dword [rsi]
insd dword [rdi], dx
outsb dx, byte [rsi]
je 0x14001ec08
jb 0x14001ec0b
invalid
outsd dx, dword [rsi]
js 0x14001ec78
push rbx
je 0x14001ec77
invalid
xor esi, dword [rdx]
cmp eax, 0x30307b22
xor byte [rdx], dh
xor byte [rdx + rsi], dh
and bh, byte [rbx + 0x30]
xor byte [rax], dh
xor dh, byte [rax]
xor al, 0x32
xor byte [0x170321c4a], ch
sub eax, 0x30303030
sub eax, 0x30303043
sub eax, 0x30303030
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor al, 0x36
jge 0x14001ec55
cmp al, 0x2f
invalid
invalid
cmp eax, 0x646f4d22
insb byte [rdi], dx
and cl, byte [rbp + 0x6f]
insb byte [rdi], dx
invalid
Function at 0x140005070
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.140004f70
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x14000518c
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140005161
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140005070
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x14000518c
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140005110
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005176
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.140005280
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x140005197
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400092d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005280
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140005336
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140005302
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000531a
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000531a
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14000531a
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x140013fe0], 0
jne 0x140005381
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005371
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013fd8], rax
mov byte [0x140013fe0], 1
jmp 0x140005388
mov rax, qword [0x140013fd8]
mov byte [0x140013fe0], 1
jmp 0x140005388
mov rax, qword [0x140013fd8]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x14000530b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
jge 0x14001eea2
cmp al, 0x2f
invalid
invalid
Function at 0x140006810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r14
xor edx, edx
mov r8d, CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400068a7
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400068a7
call fcn.140004280
mov ebx, eax
jmp 0x1400069cc
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400068c8
call fcn.140004280
jmp 0x1400069bb
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400068eb
call fcn.140004280
jmp 0x1400069bb
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000690d
mov ebx, 0x8007000e
jmp 0x1400069bd
mov ecx, eax
test eax, eax
je 0x140006942
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006a04
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140006942
lea rcx, [rsp + 0x70]
call fcn.140004250
jmp 0x14000694c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000695f
cmp qword [rsp + 0x70], 0
jne 0x14000696e
mov ebx, 0x8007000e
jmp 0x1400069bd
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140006998
call fcn.140004280
jmp 0x1400069bb
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140006330
mov ebx, eax
test rdi, rdi
je 0x1400069cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400069e3
lea rcx, [rsp + 0x70]
call fcn.140004230
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400092d0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140004890
int3
Function at 0x140007680
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400073e0
cmp byte [0x140013ff8], 0
je 0x14000769b
mov ebx, 0xffffffff
jmp 0x140007713
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x20], eax
mov ebx, eax
test eax, eax
jns 0x1400076c8
cmp eax, 0x80010106
jne 0x140007713
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400076cf
jmp 0x140007713
mov byte [0x140013fa2], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
call fcn.140007bb0
cmp al, 1
jne 0x1400076ef
call fcn.1400079b0
mov ebx, eax
jmp 0x1400076f3
mov ebx, dword [rsp + 0x20]
cmp byte [0x140013fa2], 0
je 0x140007713
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400079b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebx, 1
mov rsi, qword [0x1400131c0]
xor ebp, ebp
cmp rsi, qword [0x1400131c8]
jae 0x140007a67
nop word [rax + rax]
test ebx, ebx
js 0x140007a69
mov rdi, qword [rsi]
test rdi, rdi
je 0x140007a5a
mov qword [rsp + 0x30], rbp
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140007a0e
mov ebx, ebp
jmp 0x140007a5a
lea r8, [rsp + 0x30]
lea rdx, [0x14000e598]
mov rcx, qword [rdi + 0x18]
call rax
mov ebx, eax
test eax, eax
js 0x140007a4a
mov rax, qword [rdi + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 4]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdi]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007a5a
mov rax, qword [rcx]
call qword [rax + 0x10]
add rsi, 8
cmp rsi, qword [0x1400131c8]
jb 0x1400079f0
test ebx, ebx
jne 0x140007b1f
cmp byte [0x140013fa0], bpl
je 0x140007ad1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140013f90], rax
test rax, rax
je 0x140007acc
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
lea r9, [0x140013f40]
lea r8, [0x140008050]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140007ad1
mov rcx, qword [0x140013f90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x80004005
mov eax, ebx
test ebx, ebx
jne 0x140007b2a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140007b2c
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140007af0
jmp 0x140007b2c
mov byte [0x140013fa0], bpl
mov eax, ebx
test ebx, ebx
js 0x140007b87
mov edi, ebp
mov rbx, qword [0x1400131c0]
cmp rbx, qword [0x1400131c8]
jae 0x140007b70
nop
test edi, edi
jne 0x140007b70
mov rax, qword [rbx]
test rax, rax
je 0x140007b63
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
jne 0x140007b5b
mov edi, ebp
jmp 0x140007b63
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov edi, eax
add rbx, 8
cmp rbx, qword [0x1400131c8]
jb 0x140007b40
cmp byte [0x140013fa0], bpl
je 0x140007b85
mov ecx, dword [0x140013f9c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400092d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180004620
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x3e0
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
movdqa xmm0, xmmword [str.F147EC_C7F5_F89_]
lea r8, [r11 - 0x38]
mov edx, 1
mov dword [r11 - 0x28], 0x394a2d41
xor ecx, ecx
mov dword [r11 - 0x24], 0x44353941
movdqu xmmword [r11 - 0x38], xmm0
mov word [r11 - 0x20], 0x7d
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test rbx, rbx
je 0x18000469f
test al, al
je 0x1800046ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1800058d0
add rsp, 0x3e0
pop rbx
ret
lea rax, [rsp + 0x30]
mov edx, 7
lea rcx, str.ApplicationProtocolClient
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800046d0
xor eax, eax
lea rdx, [0x18001fef0]
nop dword [rax]
movzx ecx, byte [rsp + rax + 0xf0]
mov byte [rax + rdx], cl
inc rax
test cl, cl
jne 0x180004730
lea r9, [rsp + 0x30]
call fcn.180003bb0
mov al, 1
jmp 0x1800046a1

Function at 0x180004990
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
test rcx, rcx
je 0x180004a1b
cmp qword [0x18001fee0], 0
mov qword [rsp + 0x48], rbx
jne 0x1800049c8
mov ecx, 8
call fcn.1800058f4
lea rdx, vtable.PluginProvider.0
mov qword [0x18001fee0], rax
mov qword [rax], rdx
mov ecx, 8
call fcn.1800058f4
mov rcx, qword [0x18001fee0]
mov rbx, rax
mov qword [rax], rcx
mov ecx, 0x10
call fcn.1800058f4
xor edx, edx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea r8, [0x180004980]
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov qword [rax + 8], rdi
mov r9, rax
mov qword [rax], rbx
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x100001458
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 8], ecx
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbp
push rdi
sub rsp, 0x58
lea rax, [r11 + 0x10]
mov r8d, ecx
lea rbp, [0x1000061a0]
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x20]
xor r9d, r9d
mov qword [r11 - 0x38], rax
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], 0x1000
mov qword [r11 - 0x48], rbp
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [0x1000081a0], 0
mov edi, eax
je 0x1000014d2
mov rcx, qword [0x1000091f0]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10000151a
lea rdx, [0x1000081e0]
mov rcx, rbp
call qword [sym.imp.USER32.dll_CharToOemW]
or rcx, 0xffffffffffffffff
xor eax, eax
and qword [rsp + 0x20], rax
lea rdi, [0x1000081e0]
lea r9, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdx, [0x1000081e0]
not rcx
lea rdi, [rcx - 1]
lea r8d, [rcx - 1]
mov rcx, qword [0x1000091f0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100001524
cmp dword [rsp + 0x40], edi
je 0x10000152a
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rdi
pop rbp
ret

Function at 0x100001538
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
lea rax, [rax + 0x18]
xor esi, esi
mov edi, 0x1000
mov qword [rsp + 0x48], rax
lea rbp, [0x1000061a0]
cmp rcx, rsi
je 0x10000158c
mov r8, rcx
mov rdx, rdi
mov rcx, rbp
call fcn.100003cfe
lea r8, [0x1000012a8]
mov rdx, rdi
mov rcx, rbp
call fcn.100003cf2
jmp 0x100001593
mov word [0x1000061a0], si
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, edi
xor edx, edx
sub r9d, eax
mov ebx, eax
lea rax, [rsp + 0x48]
lea r8, [rbp + rbx*2]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r8d, dword [rsp + 0x88]
xor r9d, r9d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, eax
cmp dword [0x100006190], esi
je 0x1000015fc
mov rcx, qword [0x1000091e8]
lea r8d, [rax + rbx]
lea r9, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10000162e
lea rdx, [0x1000081e0]
mov rcx, rbp
call qword [sym.imp.USER32.dll_CharToOemW]
mov rcx, qword [0x1000091e8]
lea r8d, [rdi + rbx]
lea r9, [rsp + 0x40]
lea rdx, [0x1000081e0]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x100001638
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000019b0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0x80
and qword [rax - 0x58], 0
mov r13d, 3
mov dword [rax - 0x60], 0xa000000
mov r8d, r13d
mov edx, r13d
xor r9d, r9d
mov rsi, rcx
mov dword [rax - 0x68], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rbp, 0xffffffffffffffff
cmp rax, rbp
jne 0x100001aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100001a14
mov rax, rbp
jmp 0x100001aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, r13d
mov edx, 0x180
mov rcx, rsi
mov dword [rsp + 0x28], 0xa000000
mov edi, eax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rbp
je 0x100001a0c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100001a68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100001a0c
mov edx, dword [rsp + 0x40]
test dl, 1
jne 0x100001a7b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100001a5d
and edx, 0xfffffffe
mov rcx, rsi
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100001a5d
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, r13d
mov edx, r13d
mov rcx, rsi
mov dword [rsp + 0x28], 0xa000000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, rbp
je 0x100001a0c
mov edx, dword [rsp + 0x40]
mov rcx, rsi
or edx, 1
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100001ae9
mov rcx, rdi
jmp 0x100001a60
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x140002440
Capabilities:
Parse pe header

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

Function at 0x140001cbc
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005600]
mov dword [rax], 1
mov rax, qword [0x140005610]
mov dword [rax], 1
mov rax, qword [0x140005620]
mov dword [rax], 1
mov rax, qword [0x1400055c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
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 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x140002a8a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x140002a6e
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 0x140002a62
cmp qword [rbp - 0x10], 0
je 0x140002a62
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 0x140002a28
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a8b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002b90
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 0x140002bb8
mov eax, 0
jmp 0x140002c06
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 0x140002be1
mov eax, 0
jmp 0x140002c06
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 0x140002c01
mov eax, 0
jmp 0x140002c06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002c0c
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 0x140002c8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c81
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 0x140002c81
mov rax, qword [rbp - 8]
jmp 0x140002c9f
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 0x140002c54
mov eax, 0
add rsp, 0x20
pop rbp
ret