joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008cb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001d240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001d220]
test rbx, rbx
je 0x140008d0c
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 0x140008d03
test rsi, rsi
je 0x140008d03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008ce8
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 0x140009040
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400090c0
Capabilities:
Parse pe header

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

Function at 0x140009180
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017620]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000919f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400091a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000f660
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000f762
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000f73a
add rax, 1
cmp rax, 0x6b
je 0x14000f757
cmp byte [rcx + rax], 0
jne 0x14000f730
movsxd rdx, eax
cmp eax, 0x6a
je 0x14000f757
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000f74b

Function at 0x14000fb00
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14001dd40], 1
je 0x14000fb78
lea rdi, [0x14001dd40]
mov rcx, rdi
call fcn.14000f3e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000ed60
mov esi, dword [0x14001dd40]
test esi, esi
jne 0x14000fb88
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400154b8], eax
cmp eax, 0xffffffff
je 0x140014546
mov dword [0x14001dd40], 1
mov rcx, rbp
call fcn.14000f050
test rbx, rbx
je 0x14000fb78
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000f780
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14000fb58
mov ecx, 2
call qword [fcn.14000e5c0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14000fb58
call sub.msvcrt.dll_abort
nop
Function at 0x14000fbb0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14000f890
cmp qword [0x14001f048], 0
mov rbx, rax
je 0x14000fcc8
test rax, rax
je 0x14000fcc8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140012e30
cmp eax, 1
je 0x14000fcd6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14001454c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400154b8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000fcdc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14000f660
nop
jmp fcn.14001454c

Function at 0x14000fcf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000fd10
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000fbb0
Function at 0x140010480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400105a8
cmp eax, 1
je 0x1400104db
call fcn.14000f3e0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000ed60
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400104f0
cmp r12d, 1
jne 0x140010580
mov rcx, rbp
call fcn.14000f050
test rdi, rdi
je 0x1400104db
mov rcx, rdi
call fcn.14000f780
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000f860]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400105e8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call r12
test rax, rax
je 0x1400105d0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call r12
test rax, rax
je 0x1400105c0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400104c6
mov ecx, 2
call qword [fcn.14000e5c0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400104c6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000fbb0
test rax, rax
jne 0x140010569
jmp 0x140014565
call fcn.14000fbb0
test rax, rax
jne 0x140010545
jmp 0x14001457e
call fcn.14000fbb0
test rax, rax
jne 0x14001051f
jmp 0x140014574
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140010870
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400108e8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140012e40
cmp esi, dword [rbx + 0x48]
jae 0x1400108c3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400108c3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140012e80
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000fbb0
mov rbx, rax
jmp 0x14001089d
Function at 0x140010900
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010a00
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140012e40
cmp esi, dword [rbx + 0x48]
jae 0x140010980
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140012e80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140010a0d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140010a0d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001094f
call fcn.14000fbb0
mov rbx, rax
jmp 0x14001093a
mov rcx, r13
call fcn.140012e80
mov eax, 0xc
jmp 0x14001096d

Function at 0x140010a90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010ab8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14000fbb0
test rax, rax
jne 0x140010aaa
add rsp, 0x28
ret

Function at 0x140010b20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010b48
add rax, 0x18
add rsp, 0x28
ret
call fcn.14000fbb0
test rax, rax
jne 0x140010b3a
jmp 0x140010b3e

Function at 0x140010c60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14001dd48]
test eax, eax
jne 0x140010c78
xor eax, eax
add rsp, 0x28
ret
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010ca8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140010c6e
test byte [rax + 0x40], 3
je 0x140010c6e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140010c70
call fcn.14000fbb0
test rax, rax
jne 0x140010c8e
jmp 0x140010c6e

Function at 0x140010cc0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d00
test ebx, ebx
jle 0x140010cf0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14000fbb0
test rax, rax
jne 0x140010cdd
add rsp, 0x20
pop rbx
ret
Function at 0x140010df0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010e68
test byte [rbx + 0x40], 0xc
jne 0x140010e1f
mov eax, dword [0x14001dd48]
test eax, eax
jne 0x140010e30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ed60
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140010e53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140010e53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140010e7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f050
call fcn.14000fbb0
mov rbx, rax
test rax, rax
jne 0x140010e0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140010e9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f050
call fcn.140010d10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140010f20
call fcn.140011fd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140010f58
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010fb0
test esi, esi
je 0x140010f36
call fcn.140010df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010f90
mov edx, edi
call fcn.140012080
call fcn.140010df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010fa0
call fcn.140010df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140010ef5
call fcn.14000fbb0
mov rbx, rax
jmp 0x140010ef5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010f0e
call fcn.14000fbb0
jmp 0x140010f36
call fcn.14000fbb0
mov rbx, rax
jmp 0x140010ef1
Function at 0x140010eb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010e68
test byte [rbx + 0x40], 0xc
jne 0x140010e1f
mov eax, dword [0x14001dd48]
test eax, eax
jne 0x140010e30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ed60
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140010e53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140010e53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140010e7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f050
call fcn.14000fbb0
mov rbx, rax
test rax, rax
jne 0x140010e0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140010e9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f050
call fcn.140010d10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140010f20
call fcn.140011fd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140010f58
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010fb0
test esi, esi
je 0x140010f36
call fcn.140010df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010f90
mov edx, edi
call fcn.140012080
call fcn.140010df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010fa0
call fcn.140010df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140010ef5
call fcn.14000fbb0
mov rbx, rax
jmp 0x140010ef5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010f0e
call fcn.14000fbb0
jmp 0x140010f36
call fcn.14000fbb0
mov rbx, rax
jmp 0x140010ef1

Function at 0x140010fc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14000fb00
mov ecx, dword [0x1400154b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011030
test esi, esi
je 0x140011010
call fcn.140010df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011040
mov edx, esi
call fcn.140012080
call fcn.140010df0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010df0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000fbb0
mov rbx, rax
jmp 0x140010fe1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010ffa
Function at 0x140003af0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b24
cmp word [rcx], 0x5a4d
jne 0x140003b24
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b24
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b24
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a30
test eax, eax
jne 0x140003b40
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003aa0
test rax, rax
je 0x140003b35
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042ec
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004190
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004654
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14052aef8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14052aef4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400046a2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000469a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004789
inc ebx
add rax, 0x28
jmp 0x14000467a
mov rcx, r12
call fcn.140004e81
mov rbp, rax
test rax, rax
jne 0x1400046c1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045f0
movsxd rbx, ebx
mov rax, qword [0x14052aef8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f2f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14052aef8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004723
mov rax, qword [0x14052aef8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004783
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004783
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 [0x14052aef8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004783
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045f0
inc dword [0x14052aef4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004bb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14052af60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14052af40]
test rbx, rbx
je 0x140004bfc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004bf6
test eax, eax
jne 0x140004bf6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bce
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004db0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004dd3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004dd3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004dd4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004e0e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004e05
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004e10
inc r8d
add rax, 0x28
jmp 0x140004dec
xor eax, eax
ret

Function at 0x140004e81
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140527050]
mov r8, rcx
mov rcx, r9
call fcn.140004db0
test eax, eax
je 0x140004ead
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004dd4
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001034
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180001040]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400012f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14009c010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add byte [rax - 0x75], cl
fmul dword [rax - 0x7d]
clc
invalid
je 0x1400013a3
xor edx, edx
lea rcx, [rsp + 0x24]

Function at 0x140002180
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x14009c010]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rax, qword gs:[0x30]
mov ebp, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov r14, qword [rax + 0x10]
nop
mov rbx, qword [r14 + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov rdx, qword [rax + rbx + 0x88]
mov r15, rdx
mov esi, edx
shr r15, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x14000225d
mov edi, dword [rsi + 0x18]
xor r11d, r11d
test edi, edi
je 0x14000225d
mov r10d, dword [rsi + 0x20]
add r10, rbx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10]
mov r9d, 0x811c9dc5
add rax, rbx
movzx r8d, byte [rax]
inc rax
test r8b, r8b
je 0x14000224c
nop dword [rax + rax]
movsx ecx, r8b
lea rax, [rax + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rax - 1]
cmova edx, ecx
xor edx, r9d
imul r9d, edx, 0x1000193
test r8b, r8b
jne 0x140002220
cmp r9d, ebp
je 0x140002265
inc r11d
add r10, 4
cmp r11d, edi
jb 0x140002200
mov r14, qword [r14]
jmp 0x1400021c0
mov eax, dword [rsi + 0x24]
mov ecx, dword [rsi + 0x1c]
add rax, rbx
add rcx, rbx
movzx edx, word [rax + r11*2]
mov r8d, dword [rcx + rdx*4]
add r8, rbx
cmp r8, rsi
jbe 0x140002299
lea rax, [r15 + rsi]
cmp r8, rax
jae 0x140002299
mov edx, 0x811c9dc5
mov ecx, edx
call fcn.1400022d0
jmp 0x14000229c
mov rax, r8
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140050ed0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret