joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000160c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor r9d, r9d
mov r12, rdx
xor edx, edx
mov qword [rsp + 0xc0], r8
mov rbx, rcx
mov dword [rsp + 0x5c], edx
xor r8d, r8d
lea rcx, str.Microsoft
mov dword [rsp + 0x20], edx
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14000166c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetOpenW_Failed_With_Error_:__d__n
mov edx, eax
call sym.wprintf
jmp 0x1400016b8
xor eax, eax
mov dword [rsp + 0x20], 0x2400
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400016bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetOpenUrlW_Failed_With_Error_:__d__n
mov edx, eax
call sym.wprintf
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
jmp 0x1400017e2
mov r13, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call r13
mov r14, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x400
mov edx, 8
mov rcx, rax
call r14
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400017ca
lea rax, [rsp + 0x5c]
mov r15, qword [sym.imp.WININET.dll_InternetReadFile]
xor ebx, ebx
xor ebp, ebp
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x400
mov rcx, qword [rsp + 0x40]
call r15
test eax, eax
jne 0x140001739
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetReadFile_Failed_With_Error_:__d__n
mov edx, eax
call sym.wprintf
jmp 0x1400017ca
mov eax, dword [rsp + 0x5c]
add rbp, rax
test rbx, rbx
jne 0x140001758
call r13
mov r8, rbp
mov edx, 8
mov rcx, rax
call r14
jmp 0x14000176f
call r13
mov r9, rbp
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test rax, rax
je 0x1400017ca
mov ecx, dword [rsp + 0x5c]
mov rax, rbp
mov rsi, qword [rsp + 0x38]
sub rax, rcx
add rax, rbx
mov rdi, rax
xor eax, eax
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x5c]
rep stosb byte [rdi], al
cmp dword [rsp + 0x5c], 0x3ff
ja 0x140001704
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov qword [r12], rbx
mov ebx, 1
mov qword [rax], rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400017d7
mov rcx, qword [rsp + 0x30]
xor ebx, ebx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400017f5
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x78], edx
mov rbx, rcx
mov rsi, r8
mov rdi, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001833
or eax, 0xffffffff
jmp 0x1400018e4
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000182b
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000182b
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14000182b
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000182b
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001a69
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
mov rsi, rcx
mov ecx, 2
lea rdi, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
call sym.CreateToolhelp32Snapshot
mov rdx, rdi
lea rbp, [rsp + 0x4c]
mov rcx, rax
mov rbx, rax
call sym.Process32First
dec eax
je 0x140001ab4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001ad7
mov rdx, rdi
mov rcx, rbx
call sym.Process32Next
dec eax
jne 0x140001aa7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140001ab4
mov eax, dword [rsp + 0x28]
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001de0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140010104]
mov rbx, rcx
test esi, esi
jle 0x140001f80
mov rax, qword [0x140010108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e80
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001fa2
mov rax, qword [0x140010108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140010108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f30
add dword [0x140010104], 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 [0x140010108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ea8
mov rax, qword [0x140010108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140010140]
test rbx, rbx
je 0x14000256c
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 eax, eax
jne 0x140002563
test rsi, rsi
je 0x140002563
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002548
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 0x140002780
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002798
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400027a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400027b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400027fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400027f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400027ff
add rax, 0x28
cmp rax, r9
jne 0x1400027e0
xor eax, eax
ret

Function at 0x140002800
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002890
mov rdx, qword [0x14000cc40]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000287e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000287e
cmp word [rax + 0x18], 0x20b
jne 0x14000287e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002890
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002869
add rbx, 0x28
cmp rbx, rdi
je 0x140002890
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002860
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400028a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000cc40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000291d
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 0x140002914
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400028c0
add rax, 0x28
cmp rax, r9
jne 0x140002900
xor eax, eax
ret

Function at 0x140002920
Capabilities:
Parse pe header

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

Function at 0x140002960
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000cc40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002980
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002988
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002980
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400029d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400029c7
test rcx, rcx
je 0x140002980
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400029b8
xor eax, eax
ret
Function at 0x1400029e0
Capabilities:
Parse pe header

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

Function at 0x140002a20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000cc40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a40
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002a40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002a94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002aa0
add rdx, 0x28
cmp r9, rdx
jne 0x140002a80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002ab0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000cc40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002ad2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002ae0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ad2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002ad2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002ad2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002b35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002b48
add rdx, 0x28
cmp rdx, r10
jne 0x140002b20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002b67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b3e
test ecx, ecx
jg 0x140002b50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc4cf8e0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x6c], 0x60
mov eax, dword [rsp + 0x6c]
mov ecx, eax
mov rcx, qword gs:[rcx]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x18]
add rcx, 0x10
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x40]
je 0x2fc4cf9b1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov qword [rsp + 0x20], rdx
call sym.StrLen
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov r8, rax
call sym.W2Anicmp
cmp eax, 0
jne 0x2fc4cf99f
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x58], rax
jmp 0x2fc4cfb7b
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x2fc4cf932
xor eax, eax
mov ecx, dword [0x2fc4f6174]
mov edx, dword [0x2fc4f6180]
mov r8d, ecx
add r8d, 0xe3477838
add r8d, 0x416c1bd5
sub r8d, 0xe3477838
mov r9d, eax
sub r9d, 1
add r8d, r9d
sub eax, 0x416c1bd5
add r8d, eax
imul ecx, r8d
and ecx, 1
cmp ecx, 0
sete r10b
cmp edx, 0xa
setl r11b
mov bl, r11b
xor bl, 0xff
mov sil, r10b
xor sil, bl
and sil, r10b
mov bl, r10b
xor bl, 0xff
and bl, 0
mov dil, 1
mov bpl, dil
xor bpl, 0
and r10b, bpl
mov r14b, r11b
xor r14b, 0xff
and r14b, 0
and r11b, bpl
or bl, r10b
or r14b, r11b
xor bl, r14b
mov r10b, sil
xor r10b, 0xff
mov r11b, bl
xor r11b, 0xff
xor dil, 0
mov bpl, r10b
and bpl, 0
and sil, dil
mov r14b, r11b
and r14b, 0
and bl, dil
or bpl, sil
or r14b, bl
xor bpl, r14b
or r10b, r11b
xor r10b, 0xff
or dil, 0
and r10b, dil
or bpl, r10b
test bpl, 1
jne 0x2fc4cfa89
jmp 0x2fc4cfb8b
xor eax, eax
mov qword [rsp + 0x58], 0
mov ecx, dword [0x2fc4f6174]
mov edx, dword [0x2fc4f6180]
mov r8d, ecx
sub r8d, 0x88a44598
add r8d, 0x65d0adf6
add r8d, 0x88a44598
sub eax, 1
add r8d, eax
add r8d, 0xc6e76064
sub r8d, 0x65d0adf6
sub r8d, 0xc6e76064
imul ecx, r8d
and ecx, 1
cmp ecx, 0
sete r9b
cmp edx, 0xa
setl r10b
mov r11b, r10b
xor r11b, 0xff
mov bl, r9b
xor bl, r11b
and bl, r9b
mov r11b, r9b
xor r11b, 0xff
and r11b, 1
mov sil, 1
mov dil, sil
xor dil, 1
and r9b, dil
mov bpl, r10b
xor bpl, 0xff
and bpl, 0xff
and r10b, dil
or r11b, r9b
or bpl, r10b
xor r11b, bpl
mov r9b, bl
xor r9b, 0xff
mov r10b, r11b
xor r10b, 0xff
xor sil, 0
mov dil, r9b
and dil, 0
and bl, sil
mov bpl, r10b
and bpl, 0
and r11b, sil
or dil, bl
or bpl, r11b
xor dil, bpl
or r9b, r10b
xor r9b, 0xff
or sil, 0
and r9b, sil
or dil, r9b
test dil, 1
jne 0x2fc4cfb76
jmp 0x2fc4cfb8b
jmp 0x2fc4cfb7b
mov rax, qword [rsp + 0x58]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x58], 0
jmp 0x2fc4cfa89
Function at 0x2fc4d2f00
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 0x2fc4d3902
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d399a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d397e
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 0x2fc4d3972
cmp qword [rbp - 0x10], 0
je 0x2fc4d3972
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 0x2fc4d3938
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d399b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3aa0
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 0x2fc4d3ac8
mov eax, 0
jmp 0x2fc4d3b16
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 0x2fc4d3af1
mov eax, 0
jmp 0x2fc4d3b16
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 0x2fc4d3b11
mov eax, 0
jmp 0x2fc4d3b16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3b1c
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 0x2fc4d3b9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3b91
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 0x2fc4d3b91
mov rax, qword [rbp - 8]
jmp 0x2fc4d3baf
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 0x2fc4d3b64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180011920
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x10]
mov dword [rax + rcx], edx
mov rax, qword [rsp + 8]
mov dword [rax + 8], 1
jmp 0x180011961
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 8]
cmp dword [rax + 8], 0x270
jge 0x1800119f8
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
dec eax
cdqe
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
dec edx
movsxd rdx, edx
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov rcx, qword [rsp + 8]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [rsp + 8]
mov rdx, qword [rdx]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
movsxd rdx, dword [rdx + 8]
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov eax, dword [rcx + rax*4]
mov dword [r8 + rdx*4], eax
jmp 0x18001194f
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x10]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 8]
mov byte [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov byte [rax + 0x21], 1
ret

Function at 0x180013190
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x2c], eax
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1800131cd
movzx edx, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180013270
movzx eax, al
mov dword [rsp + 0x28], eax
jmp 0x18001320c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov eax, dword [rax]
test eax, eax
jne 0x1800131fc
movzx edx, byte [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180013270
movzx eax, al
test eax, eax
je 0x1800131fc
mov dword [rsp + 0x24], 1
jmp 0x180013204
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180013222
mov al, 1
jmp 0x180013264
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x180013237
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x48]
jb 0x18001324e
cmp dword [rsp + 0x48], 0xffffffff
jne 0x180013262
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
movzx eax, ax
test eax, eax
je 0x1800131ac
xor al, al
add rsp, 0x38
ret