joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401d98
mov rax, qword [0x00407618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401c3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401cc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401c20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401dd2
mov rax, qword [0x00407618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401de1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401cc0
sub eax, 4
and eax, 0xfffffffb
jne 0x401d50
add dword [0x00407614], 1
cmp ebx, 8
jae 0x401cf8
test bl, 4
jne 0x401da0
test ebx, ebx
je 0x401ce9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401dc0
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 0x401ce9
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 0x401d2a
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 [0x00407618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401cc0
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 edi, edi
jmp 0x401c47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401ce9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401ce9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4025c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402614
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 0x40260b
test r12, r12
je 0x40260b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4025f0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402840
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402850
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402860
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 0x4028a5
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 0x40289c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4028a7
add rax, 0x28
cmp rax, r9
jne 0x402888
xor eax, eax
ret

Function at 0x402950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4029c9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029c9
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 0x4029c6
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 0x4029bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4029c9
add r8, 0x28
cmp r8, r9
jne 0x4029a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402b1f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b1f
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 0x402b1d
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 0x402b14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b28
add rax, 0x28
cmp rax, r9
jne 0x402b00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402b40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402bb8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bb8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402bb8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402bb8
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 0x402bac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402bc0
add rdx, 0x28
cmp rdx, r10
jne 0x402b98
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402bd0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402bde
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402bb5
test r8d, r8d
jg 0x402bc8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140009480
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
add rcx, 0xc8
mov rbx, r8
mov rdi, rdx
call fcn.140013e40
xor ecx, ecx
mov rdx, rbx
sub rdx, rdi
test rbx, rbx
mov r8d, dword [rax]
cmove rdx, rcx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000a0a0

Function at 0x14000a050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x14000a08d
lea r10, [0x140070ca0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r10 + rcx*4]
sub rdx, 1
jne 0x14000a070
not r8d
mov eax, r8d
ret

Function at 0x14000a0a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000a0fd
lea rbx, [0x140070ca0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000a0e4
cmp r10, 2
jb 0x14000a0e4
cmp byte [r9], r8b
jne 0x14000a0e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000a0c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000a13f
lea rbx, [0x140070ca0]
cmp r8b, 0x23
jne 0x14000a123
cmp byte [r9], r8b
jne 0x14000a123
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000a110
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14001cfc0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
movzx r9d, cx
mov eax, 0x5e6ea9af
shr ecx, 0x10
mul r8d
mov ebx, r8d
mov esi, r8d
shr edx, 0xb
imul eax, edx, 0x15b0
sub ebx, eax
test r8d, r8d
je 0x14001d0fe
mov qword [rsp + 0x20], rdi
xor edx, edx
cmp ebx, 7
jbe 0x14001d069
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add r9d, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
cmp r8d, ebx
jb 0x14001d002
xor r8d, r8d
xor r11d, r11d
cmp edx, ebx
jae 0x14001d0c6
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x14001d0b3
mov eax, ebx
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea edx, [rdx + rax*2]
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add r8d, r9d
add r10, 2
add r9d, eax
add r11d, r9d
sub rdi, 1
jne 0x14001d090
cmp edx, ebx
jae 0x14001d0c0
movzx eax, byte [r10]
add r9d, eax
add ecx, r9d
inc r10
lea eax, [r11 + r8]
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub esi, ebx
mov ebx, 0x15b0
jne 0x14001cff7
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl ecx, 0x10
lea eax, [r9 + rcx]
pop rsi
ret

Function at 0x1400249d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400094c0
mov rcx, qword [0x140090758]
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x2c]
sub ecx, dword [rsp + 0x24]
movd xmm2, ecx
mov ecx, dword [rsp + 0x28]
sub ecx, dword [rsp + 0x20]
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
lea rcx, [rsp + 0x48]
cvtdq2ps xmm1, xmm1
call fcn.1400036f0
lea rcx, [rsp + 0x40]
movsd xmm0, qword [rax]
movsd qword [rbx + 8], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x140090760]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140090768]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x140090760], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x143], 0
mov byte [rbx + 0x142], al
call fcn.140024f40
cmp byte [rbx + 0xc0], 0
je 0x140024abf
mov eax, 0xffffffff
jmp 0x140024ac4
call fcn.140009550
cmp dword [0x14008f018], eax
je 0x140024ad7
mov dword [0x14008f018], eax
call fcn.140024dc0
call fcn.140024b00
add rsp, 0x30
pop rbx
ret
Function at 0x140025740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r8d, byte [rcx]
xor r9d, r9d
mov r10, rdx
cmp r8b, 0x2d
jne 0x14002575b
movzx r8d, byte [rcx + 1]
mov r9d, 1
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x140025771
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1400257ae
movss xmm2, dword [0x140071440]
cmp al, 0x39
ja 0x1400257ae
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140025788
mov rax, rcx
test r9d, r9d
je 0x1400257bd
xorps xmm1, xmmword [0x1400714c0]
movss dword [r10], xmm1
ret

Function at 0x1400257d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r8d, byte [rcx]
xor r9d, r9d
mov r10, rdx
cmp r8b, 0x2d
jne 0x1400257eb
movzx r8d, byte [rcx + 1]
mov r9d, 1
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x140025801
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14002583c
movsd xmm2, qword [0x140075320]
cmp al, 0x39
ja 0x14002583c
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140025818
mov rax, rcx
test r9d, r9d
je 0x14002584b
xorps xmm1, xmmword [0x140075370]
movsd qword [r10], xmm1
ret

Function at 0x14002cfe0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, edx
lea r8, str.SCROLLX
test eax, eax
lea rdx, str.SCROLLY
cmove rdx, r8
xor r8d, r8d
jmp fcn.140009480
Function at 0x140035bb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
xor ebx, ebx
lea r8, [0x1400399a0]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xorps xmm0, xmm0
mov qword [rsp + 0x60], 0x50
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [0x140039b00]
movdqa xmmword [rsp + 0x80], xmm1
lea rdi, str.Spooler
movdqa xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rcx, qword [0x140090c40]
test rcx, rcx
je 0x140035d2c
lea rdx, [0x140090820]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140090c40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [0x140090828]
lea r8, str.Spooler1
mov eax, dword [rsp + 0xc0]
mov r9d, 0x90000000
mov qword [rsp + 0x58], rbx
mov rdx, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [0x140090820], eax
mov eax, dword [rsp + 0xc4]
mov dword [0x140090824], eax
mov eax, dword [0x14009082c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [0x140090904], ecx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [0x140090900], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov qword [0x140090c28], rax
lea rdx, [0x140075548]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x140090c28]
lea edx, [rbx - 0x14]
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140090c28]
lea edx, [rbx + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140090c28]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
mov ecx, 2
call fcn.140054a0c
int3
Function at 0x140038c90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
movzx edi, dl
mov rsi, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140038cf5
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140038d10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x140038cf5
lea rcx, str.Failed_to_gather_information_on_system_processes___n
call fcn.14003b500
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x4c]
mov rax, rsi
sub r8, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140038d33
inc rax
test ecx, ecx
jne 0x140038d20
test edx, edx
je 0x140038d55
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140038d10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x140038cf7
mov ebp, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x140038cf7
Function at 0x14003b380
Capabilities:
Create thread
Hide graphical window

Disassembly:
sub rsp, 0x38
cmp byte [0x14008f040], 0
jne 0x14003b397
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
jmp 0x14003b3a2
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x1400907af], 0
jne 0x14003b3e5
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [str.Rust]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x14003b3de
cmp byte [0x1400907af], al
je 0x14003b3c0
jmp 0x14003b3e5
mov byte [0x1400907af], 1
cmp qword [0x140090c40], 0
jne 0x14003b43e
nop
lea rcx, str.Please_open_Rust...
call fcn.14003b500
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140075924]
call fcn.140054a18
lea rdx, str.Rust
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov ecx, 0x64
mov qword [0x140090c40], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [0x140090c40], 0
je 0x14003b3f0
xor edx, edx
lea rcx, str.RustClient.exe
call fcn.140038c90
mov dword [0x1400907c4], eax
test eax, eax
jne 0x14003b47b
lea rdx, str.RustClient_not_found
lea rcx, [0x140090fa0]
call fcn.140033630
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret
lea rcx, str.GameAssembly.dll
call fcn.140038ba0
mov qword [0x140090c50], rax
call fcn.140038e70
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x1400907b4], xmm0
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor r9d, r9d
lea r8, [0x140038020]
xor edx, edx
xor ecx, ecx
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
movss dword [0x1400907b0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.140035bb0
call fcn.140038fc0
call fcn.140039260
call fcn.140039a90
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003bf94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bfde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bfde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bfde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bfde
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bfde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003bfe0
xor al, al
add rsp, 0x28
ret
Function at 0x14003e670
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14003e69e
xor eax, eax
jmp 0x14003e784
cmp qword [rcx + 0x68], 0
je 0x14003e6af
call fcn.14003e7a0
jmp 0x14003e784
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e6c6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003e6c8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003e6fa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14006dc70
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14003e77e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14003e731
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14003e75a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140046198
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003e77e
cmp rsi, rbx
ja 0x14003e738
test rsi, rsi
je 0x14003e77e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140046198
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400469ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003b920
sub rsp, rax
mov rax, qword [0x14008f380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005bca0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400469fb
mov rax, rbp
jmp 0x140046b03
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x91f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005e204
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x91f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140046aff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046aff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005e204
test rax, rax
js 0x140046aff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140046aff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140046af1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140046af1
cmp byte [rcx], 0xd
jne 0x140046ad7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140046ae6
cmp byte [rcx + 1], 0xa
jne 0x140046ae6
inc rcx
jmp 0x140046ae6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8f7b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140046ab9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140046b03
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006d410
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140054a0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140054877
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054877
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054877
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054877
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054877
cmp dword [rcx + 0x84], 0xe
jbe 0x140054877
cmp dword [rcx + 0xf8], 0
je 0x140054877
mov ecx, ebx
call fcn.140054928
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140054704
nop
cmp dword [rbp + 0x20], 0
je 0x1400548c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400548d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140054808