joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011420
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x180074008]
xor rax, rsp
mov qword [rbp + 0x40], rax
cmp edx, 1
jne 0x1800114f9
lea rdx, [rsp + 0x30]
call fcn.18000fccc
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.18003ab68
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x26], 0x75732074
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.180017008
test rax, rax
jne 0x18001152d
lea rdx, [sym.gphelper.dll_HookSetWindowPos]
lea rcx, [0x1800a04a0]
call fcn.180012988
test eax, eax
je 0x18001152d
lea rdx, [sym.gphelper.dll_HookSetForegroundWindow]
lea rcx, [0x1800a0350]
call fcn.180012988
test eax, eax
je 0x18001152d
lea rdx, [sym.gphelper.dll_HookSetActiveWindow]
lea rcx, [0x1800a0408]
call fcn.180012988
test eax, eax
je 0x18001152d
lea rdx, [sym.gphelper.dll_HookBringWindowToTop]
lea rcx, [0x1800a03e8]
call fcn.180012988
jmp 0x18001152d
test edx, edx
jne 0x18001152d
lea rcx, [0x1800a04a0]
call fcn.180012bec
lea rcx, [0x1800a0350]
call fcn.180012bec
lea rcx, [0x1800a0408]
call fcn.180012bec
lea rcx, [0x1800a03e8]
call fcn.180012bec
mov eax, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180013270
add rsp, 0x150
pop rbp
ret

Function at 0x180011574
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180074008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r9
mov r14, r8
mov esi, edx
xor ebx, ebx
call fcn.18000f8a0
mov rdi, rax
test rax, rax
je 0x18000fcab
lea rdx, [rbp - 0x20]
mov word [rbp - 0x14], 0x7845
mov rcx, rax
mov byte [rbp - 0x12], bl
mov dword [rbp - 0x19], 0x6f6f4874
mov dword [rbp - 0x1d], 0x78654e6c
mov word [rbp - 0x1f], 0x6c61
mov byte [rbp - 0x15], 0x6b
mov byte [rbp - 0x20], 0x43
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000fca2
mov r9, r15
mov r8, r14
mov edx, esi
xor ecx, ecx
call rax
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180013270
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r9, r8
mov r8, rdx
mov edx, ecx
jmp 0x18000fc24
Function at 0x180012284
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x1800a031c], 0x40
jae 0x1800123b0
lea rbx, [rcx + rdx]
mov rbp, 0xfffffffffff80000
add rcx, r8
lea r8d, [rdi + 0x30]
cmp rcx, 0xffffffff80000000
lea rax, [rcx + 0x7ff80000]
cmovb rbp, rax
lea rcx, [r11 - 0x38]
xor edx, edx
call fcn.180018030
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x1800123b0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180012380
cmp dword [rsp + 0x40], 0x10000
jne 0x18001236e
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x180012373
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x180012373
lea eax, [rdx - 1]
mov r8d, 0x3000
xor edx, edx
add rax, rsi
div rcx
mov edx, 0x78
imul rcx, rax
lea r9d, [rdx - 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x180012385
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rsi, rax
cmp rsi, rbp
jb 0x180012309
test rdi, rdi
je 0x1800123b0
lea rdx, [0x1800a0520]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x1800123a5
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x180012391
jmp 0x1800123b0
add dword [0x1800a031c], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x180012448
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x180074008]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18001250b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180012503
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp 0x1800124ef
cmp qword [rsp + 0x118], rsi
jb 0x18001250b
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae 0x18001250b
mov rcx, rbx
call fcn.18000ff48
cmp edi, 3
jge 0x180012500
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800124b1
jmp 0x18001250b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180013270
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180012988
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x180074008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, qword [rcx]
xor r14d, r14d
mov esi, r14d
mov qword [rbp - 0x51], rcx
mov rdi, rdx
mov r13, rcx
call fcn.1800121ac
mov rcx, rbx
call fcn.180012200
mov rcx, rdi
mov r15, rax
call fcn.180012200
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x59], rax
xor edx, edx
lea r8d, [r14 + 0x58]
call fcn.180018030
lea r8, [rbp - 0x49]
mov rcx, r15
call fcn.1800127c8
mov ebx, eax
cmp eax, 5
jb 0x180012bb5
mov edx, ebx
mov rcx, r15
call fcn.1800125e0
mov r8, qword [rbp - 0x41]
mov rcx, r15
mov rdx, qword [rbp - 0x49]
call fcn.180012284
mov rsi, rax
test rax, rax
je 0x180012bb0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [r14 + 0x40]
mov dword [rbp - 0x65], r14d
mov rdi, rax
mov dword [rbp - 0x69], r14d
lea rax, [rbp - 0x65]
mov rcx, rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, r15
mov r12d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012b91
lea rax, [rbp - 0x69]
mov rdx, rsi
lea r9d, [r14 + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012b67
lea r13, [rsi + 0x38]
test ebx, ebx
je 0x180012ab7
mov rdx, r15
mov r8, rsi
sub rdx, r13
mov rcx, r13
sub r8, r13
mov r9d, ebx
mov al, byte [rdx + rcx]
mov byte [rcx], al
mov byte [r8 + rcx + 0x58], al
inc rcx
sub r9, 1
jne 0x180012aa4
lea rdx, [rbx + r15]
lea rcx, [rbx + r13]
call fcn.180012240
lea r8, [rbp - 0x49]
mov rdx, r15
mov rcx, r13
call fcn.18001278c
mov rdx, qword [rbp - 0x59]
mov rcx, r15
sub rcx, rdx
mov rax, rdx
sub rax, r15
cmp rdx, r15
cmovb rax, rcx
cmp rax, 0x7fff0000
jbe 0x180012b20
lea rbx, [rsi + 0x18]
mov rcx, rbx
call fcn.180012240
sub rax, rsi
mov rdx, rbx
mov rcx, rdi
lea r8, [rax - 0x18]
call fcn.18000fb80
mov rdx, rbx
mov rcx, r15
call fcn.180012240
mov ebx, r12d
jmp 0x180012b28
mov rcx, r15
call fcn.180012240
mov rax, qword [rbp - 0x59]
mov r8, r12
mov rdx, r13
mov qword [rsi + 0x10], rax
mov rcx, rdi
mov dword [rsi + 8], ebx
mov qword [rsi], r15
call fcn.18000fb80
mov r9d, dword [rbp - 0x69]
lea rax, [rbp - 0x69]
mov r8d, 0x78
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r13, qword [rbp - 0x51]
mov r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.18000fb80
mov r9d, dword [rbp - 0x65]
lea rax, [rbp - 0x65]
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp qword [rsi], r14
je 0x180012ba0
lea rax, [rsi + 0x38]
mov qword [r13], rax
jmp 0x180012bb0
mov edx, 1
mov rcx, rsi
call fcn.180012404
mov rsi, r14
call fcn.180012538
call fcn.1800121f0
test rsi, rsi
setne r14b
mov eax, r14d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180013270
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012bec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
call fcn.1800121ac
mov rcx, qword [rsi]
call fcn.1800123d4
mov rbx, rax
test rax, rax
je 0x180012cb8
mov edx, dword [rax + 8]
mov rcx, qword [rax]
call fcn.1800125e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
lea r9d, [rdi + 0x40]
mov rdx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012cb3
mov rdx, qword [rbx]
cmp dword [rbx + 8], edi
jbe 0x180012c70
mov ecx, edi
inc edi
mov al, byte [rbx + rcx + 0x58]
mov byte [rcx + rdx], al
cmp edi, dword [rbx + 8]
jb 0x180012c60
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov rdx, qword [rbx]
call fcn.18000fb80
mov r8d, dword [rbx + 8]
lea rax, [rsp + 0x48]
mov r9d, dword [rsp + 0x48]
mov rcx, rbp
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov qword [rsi], rax
mov edi, 1
call fcn.180012404
call fcn.180012538
call fcn.1800121f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180042024
Capabilities:
Create thread
Print debug messages

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 r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.180044678
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042077
test rbx, rbx
je 0x180042068
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bpl, bpl
je 0x180042077
mov edi, 4
jmp 0x180042120
call fcn.180044420
test al, al
jne 0x180042094
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180042120
test bpl, bpl
je 0x1800420f7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180041f3c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180042120
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x1800420f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042120
mov edi, dword [rsp + 0x44]
jmp 0x1800420e9
call fcn.1800445a4
test al, al
jne 0x180042108
bts esi, 0x15
xor ecx, ecx
jmp 0x180042110
call fcn.1800444dc
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.1800441d0
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180042140
Capabilities:
Create thread
Print debug messages

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 r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.180044678
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042193
test rbx, rbx
je 0x180042184
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x180042193
mov edi, 4
jmp 0x18004223c
call fcn.180044420
test al, al
jne 0x1800421b0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x18004223c
test bpl, bpl
je 0x180042213
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180041f64]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004223c
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x18004220d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004223c
mov edi, dword [rsp + 0x44]
jmp 0x180042205
call fcn.1800445a4
test al, al
jne 0x180042224
bts esi, 0x15
xor ecx, ecx
jmp 0x18004222c
call fcn.1800444dc
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.180044258
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x401ec7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00412040]
jne 0x40166a
rol rcx, 0x10
test cx, 0xffff
jne 0x401666
repz ret
ror rcx, 0x10
jmp 0x401e20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00413300]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x004133f8]
mov qword [rsp + 0x58], rax
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 0x401ea5
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, [0x00413300]
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 0x401ec7
mov rax, qword [rsp + 0x88]
mov qword [0x004133f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00413398], rax
mov rax, qword [0x004133f8]
mov qword [0x00413270], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00413380], rax
mov dword [0x00413260], 0xc0000409
mov dword [0x00413264], 1
mov rax, qword [0x00412040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00412048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004132f8], eax
mov ecx, 1
call fcn.00404860
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040d348]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004132f8], 0
jne 0x401f4e
mov ecx, 1
call fcn.00404860
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 0x405490
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.004041d0
xor ebx, ebx
cmp qword [0x00413fa0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x4055c1
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x4054f3
xor eax, eax
jmp 0x4056a1
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4054ec
mov rcx, rax
call fcn.00404160
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00413fa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404160
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00413fa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404160
lea rcx, [rsp + 0x30]
mov qword [0x00413fb0], rax
call fcn.00402c10
test eax, eax
je 0x405577
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00402400
cmp dword [rsp + 0x30], 2
jne 0x4055c1
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404160
test rax, rax
mov qword [0x00413fc0], rax
je 0x4055c1
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404160
mov qword [0x00413fb8], rax
mov rcx, qword [0x00413fb8]
cmp rcx, rsi
je 0x405653
cmp qword [0x00413fc0], rsi
je 0x405653
call fcn.00404230
call rax
test rax, rax
mov rbp, rax
je 0x40561e
mov rcx, qword [0x00413fc0]
call fcn.00404230
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x40561e
test byte [rsp + 0x48], 1
jne 0x405653
lea rcx, [rsp + 0x34]
call fcn.00402c60
test eax, eax
je 0x405640
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00402400
cmp dword [rsp + 0x34], 4
jb 0x40564d
bts edi, 0x15
jmp 0x405687
bts edi, 0x12
jmp 0x405687
mov rcx, qword [0x00413fa8]
cmp rcx, rsi
je 0x405687
call fcn.00404230
call rax
test rax, rax
mov rbx, rax
je 0x405687
mov rcx, qword [0x00413fb0]
cmp rcx, rsi
je 0x405687
call fcn.00404230
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00413fa0]
call fcn.00404230
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x2fc4d9e30
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 0x2fc4da832
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da8ca
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da8ae
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 0x2fc4da8a2
cmp qword [rbp - 0x10], 0
je 0x2fc4da8a2
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 0x2fc4da868
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da8cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da9d0
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 0x2fc4da9f8
mov eax, 0
jmp 0x2fc4daa46
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 0x2fc4daa21
mov eax, 0
jmp 0x2fc4daa46
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 0x2fc4daa41
mov eax, 0
jmp 0x2fc4daa46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4daa4c
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 0x2fc4daaca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4daac1
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 0x2fc4daac1
mov rax, qword [rbp - 8]
jmp 0x2fc4daadf
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 0x2fc4daa94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4142e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41446b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430160
xorps xmm15, xmm15
mov r14, qword [0x00584688]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414345
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414354
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414373
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414383
cmp rbx, 0x1000
jae 0x41434b
jmp 0x4143ed
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414395
xor edx, edx
jmp 0x4143e4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430160
xorps xmm15, xmm15
mov r14, qword [0x00584688]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414379
jmp 0x414368
call fcn.0045e6e0
xorps xmm15, xmm15
mov r14, qword [0x00584688]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00434560
lea rax, [0x004a21f1]
mov ebx, 0x18
nop dword [rax]
call fcn.00434de0
mov rax, qword [rsp + 0x38]
call fcn.00434b20
lea rax, [0x004a24f8]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434de0
mov rax, qword [rsp + 0x30]
call fcn.00434b20
call fcn.004347a0
call fcn.004345c0
lea rax, [0x004a40d1]
mov ebx, 0x21
call fcn.00432bc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b020
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004142e0