joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a7be0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x60], rbp
xor r9d, r9d
mov ebp, edx
mov rbx, rcx
mov edx, reloc.WSOCK32.dll_recv
test r8b, r8b
je 0x1400a7c70
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400a7c79
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x1400a7c79
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400a7c79
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a7c79
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
test ebp, ebp
cmovns edi, ebp
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x1400a7cdb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400a7cdb
add edi, esi
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400a7cdb
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a7cb0
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a9bb0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400a9c8d
mov eax, dword [rbx]
test eax, eax
je 0x1400a9c8d
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a9bec
mov rax, qword [rbx + 0x38]
cmp word [rax], si
je 0x1400a9c0a
mov r8d, 0x7fff
lea rdx, [rbx + 0xc4]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a9c0a
mov word [rbx + 0xc4], si
test byte [rbx], 4
je 0x1400a9c23
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0xc0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a9c5e
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a9c5e
movzx r9d, byte [rbx + 0x78]
lea rdx, [rbx + 0x102c4]
mov ecx, dword [rsp + 0x30]
call fcn.140032038
test eax, eax
jne 0x1400a9c5e
mov word [rbx + 0x102c4], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a9c8d
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0x100c2]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400aa150
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp qword [0x14012be68], 0
mov rax, qword [0x1401251d8]
mov byte [rax + 0x7f], 1
je 0x1400aa229
movzx r8d, byte [0x14012bd89]
mov qword [rsp + 0x30], rbx
movzx eax, r8b
and al, 0xc0
neg al
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test r8b, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 0x30
cmove ecx, edx
mov r9d, ecx
or r9d, 2
test r8b, 3
cmove r9d, ecx
mov eax, r9d
and al, 2
neg al
sbb al, al
and al, 3
movzx edx, al
movzx eax, dl
or al, 0x30
test r9b, 4
movzx ebx, al
cmove ebx, edx
or bl, 0xcc
not bl
and bl, byte [0x14012bd87]
je 0x1400aa224
cmp r9d, 8
jne 0x1400aa207
movzx r8d, word [0x140125b94]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov ecx, 2
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
call fcn.14001fc90
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.1400221e0
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400aa24f
mov edx, 1
mov ecx, 0xffffffff
add rsp, 0x38
jmp fcn.1400016f0
add rsp, 0x38
ret
Function at 0x1400aa640
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x104f8
call fcn.1400def50
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r9
lea rax, [0x140101bd0]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x99], r9b
mov dword [rsp + 0x9c], r9d
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0xb8], r9d
movdqa xmmword [rsp + 0xd0], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], edx
mov dword [rsp + 0xcc], r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x1400aae40]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0xa0], 0
je 0x1400aa6f5
mov rax, qword [0x1401251d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400aa6f5
mov edx, 1
call fcn.1400016f0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c5910
add rsp, 0x104f8
ret
Function at 0x1400aa710
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x103f0]
mov eax, 0x104f0
call fcn.1400def50
sub rsp, rax
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400aa74e
xor eax, eax
jmp 0x1400aa934
mov byte [rcx], 1
xor ebx, ebx
cmp qword [0x14012d638], rdi
je 0x1400aa769
mov qword [0x14012d638], rdi
mov dword [0x14012d648], ebx
cmp qword [0x14012d640], rbx
jne 0x1400aa78c
mov ecx, 0xfa0
call fcn.14009ea40
test rax, rax
je 0x1400aa951
mov qword [0x14012d640], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov r8, qword [0x1401251d8]
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rcx, rdi
call fcn.1400aaba0
mov r15, rax
test rax, rax
jne 0x1400aa7bd
mov ecx, ebx
mov dword [0x14012d648], ebx
jmp 0x1400aa7c3
mov ecx, dword [0x14012d648]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x64], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x40], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
test r14b, r14b
je 0x1400aa7f2
test r15, r15
mov byte [rbp - 0x67], 0
je 0x1400aa7f6
mov byte [rbp - 0x67], 1
mov r8, qword [0x14012d640]
mov qword [rbp - 0x50], r8
mov dword [rbp - 0x48], ecx
mov rax, qword [0x1401251d8]
lea rdx, [0x140101bd0]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
test rax, rax
je 0x1400aa836
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400aa83b
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
test ecx, ecx
setg dil
nop dword [rax]
test r15, r15
je 0x1400aa886
mov edx, ebx
test ecx, ecx
jle 0x1400aa86f
mov rax, r8
nop
cmp qword [rax], rsi
je 0x1400aa886
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400aa860
cmp ecx, 0x1f4
jge 0x1400aa886
movsxd rax, ecx
mov qword [r8 + rax*8], rsi
inc ecx
mov dword [0x14012d648], ecx
mov dword [rbp - 0x48], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a88b0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400aa8bd
test dil, dil
je 0x1400aa927
mov ecx, ebx
mov dword [0x14012d648], ebx
xor dil, dil
mov r8, qword [0x14012d640]
jmp 0x1400aa850
xor edx, edx
call fcn.1400a78b0
mov ecx, ebx
mov rbx, qword [rbp - 0x60]
mov r8, qword [0x14012d640]
movsxd rdx, dword [0x14012d648]
test edx, edx
jle 0x1400aa8ef
mov rax, r8
nop
cmp qword [rax], rbx
je 0x1400aa907
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400aa8e0
cmp edx, 0x1f4
jge 0x1400aa907
mov qword [r8 + rdx*8], rbx
inc edx
mov dword [0x14012d648], edx
mov rbx, qword [rbp - 0x60]
mov rax, qword [0x1401251d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400aa927
mov edx, 1
call fcn.1400016f0
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1400c5910
mov rax, rbx
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140010e30
int3
Function at 0x1400aa960
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400def50
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x14012d638], rcx
je 0x1400aa99e
mov qword [0x14012d638], rcx
mov dword [0x14012d648], ebx
cmp qword [0x14012d640], rbx
jne 0x1400aa9c1
mov ecx, 0xfa0
call fcn.14009ea40
test rax, rax
je 0x1400aab99
mov qword [0x14012d640], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400aa9f6
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400aa9e0
mov r8, qword [0x1401251d8]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400aaba0
test rax, rax
je 0x1400aaa1b
mov ecx, ebx
mov dword [0x14012d648], ebx
jmp 0x1400aaa21
mov ecx, dword [0x14012d648]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x140101bd0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400aaa6b
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400aaa73
mov byte [rsp + 0x99], 1
mov rax, qword [0x14012d640]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400aacc0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400aab22
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
xor edx, edx
call fcn.1400a78b0
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x14012d640]
movsxd rcx, dword [0x14012d648]
test ecx, ecx
jle 0x1400aaaf0
mov rax, r8
cmp qword [rax], rdx
je 0x1400aab04
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400aaae1
cmp ecx, 0x1f4
jge 0x1400aab04
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x14012d648], ecx
mov rax, qword [0x1401251d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400aab76
mov edx, 1
call fcn.1400016f0
jmp 0x1400aab76
mov eax, dword [0x14012d648]
test eax, eax
je 0x1400aab5c
cmp eax, 1
setg al
mov dword [0x14012d648], ebx
test al, al
je 0x1400aab76
mov rax, qword [0x14012d640]
mov qword [rax], rsi
mov dword [0x14012d648], 1
xor edx, edx
mov rcx, rdi
call fcn.1400aa960
jmp 0x1400aab76
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
xor edx, edx
call fcn.1400a78b0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c5910
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140010e30
int3
Function at 0x1400c04dc
Capabilities:
Parse pe header

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

Function at 0x1400d3c28
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d3c97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d3c97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d3c97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d3c97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d3c97
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d3c97
cmp dword [rcx + 0xf8], 0
je 0x1400d3c97
mov ecx, ebx
call fcn.1400d3d48
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d3b24
nop
cmp dword [rbp + 0x20], 0
je 0x1400d3ce5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d3cf0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d3c28

Function at 0x1400d3e2c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d3c97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d3c97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d3c97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d3c97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d3c97
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d3c97
cmp dword [rcx + 0xf8], 0
je 0x1400d3c97
mov ecx, ebx
call fcn.1400d3d48
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d3b24
nop
cmp dword [rbp + 0x20], 0
je 0x1400d3ce5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d3cf0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d3c28
Function at 0x1400d973c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d97c3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d9782
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d976c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d9768
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d6338
mov rdi, rax
test rax, rax
je 0x1400d97b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e2970
mov rbp, rdi
xor ecx, ecx
call fcn.1400d62fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dee80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400deea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400deea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4dc240
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 0x2fc4dcc42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc501108]
test eax, eax
je 0x2fc4dccda
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc501110]
mov qword [rbp - 8], rax
jmp 0x2fc4dccbe
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 0x2fc4dccb2
cmp qword [rbp - 0x10], 0
je 0x2fc4dccb2
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 0x2fc4dcc78
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dccdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dcde0
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 0x2fc4dce08
mov eax, 0
jmp 0x2fc4dce56
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 0x2fc4dce31
mov eax, 0
jmp 0x2fc4dce56
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 0x2fc4dce51
mov eax, 0
jmp 0x2fc4dce56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dce5c
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 0x2fc4dceda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dced1
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 0x2fc4dced1
mov rax, qword [rbp - 8]
jmp 0x2fc4dceef
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 0x2fc4dcea4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5880
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 0x2fc4d6282
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d631a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d62fe
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 0x2fc4d62f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d62f2
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 0x2fc4d62b8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d631b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6420
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 0x2fc4d6448
mov eax, 0
jmp 0x2fc4d6496
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 0x2fc4d6471
mov eax, 0
jmp 0x2fc4d6496
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 0x2fc4d6491
mov eax, 0
jmp 0x2fc4d6496
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d649c
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 0x2fc4d651a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6511
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 0x2fc4d6511
mov rax, qword [rbp - 8]
jmp 0x2fc4d652f
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 0x2fc4d64e4
mov eax, 0
add rsp, 0x20
pop rbp
ret