joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e46c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49e48b
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49e4aa
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x90
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49f870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp edx, 0x66
mov rbx, rcx
ja case.0x49f892.20
lea r8, [0x005b7368]
mov ecx, edx
movsxd rax, dword [r8 + rcx*4]
add rax, r8
jmp rax
mov edx, 0x7f00
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call rsi
movsxd r8, eax
mov rcx, qword [rbx]
mov edx, 0xfffffff4
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.USER32.dll_SetClassLongPtrA]
mov edx, 0x7f03
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f03
jmp 0x49f8b2
mov edx, 0x7f82
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f82
jmp 0x49f8b2
mov edx, 0x7f83
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f83
jmp 0x49f8b2
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
xor r8d, r8d
jmp 0x49f8b9
mov edx, 0x7f89
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f89
jmp 0x49f8b2
mov edx, 0x7f01
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f01
jmp 0x49f8b2
mov edx, 0x7f02
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f02
jmp 0x49f8b2
mov edx, 0x7f84
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f84
jmp 0x49f8b2
mov edx, 0x7f86
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f86
jmp 0x49f8b2
mov edx, 0x7f8b
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f8b
jmp 0x49f8b2
mov edx, 0x7f85
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f85
jmp 0x49f8b2
lea rcx, str.Unknown_cursor_type:__d
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004a23c0

Function at 0x49fa70
Capabilities:
Write file on windows

Disassembly:
add rcx, 0x18
jmp fcn.0049f870
Function at 0x4a1040
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rcx, str.GLUT_DIALS_SERIAL
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4a11c0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x74], 0
mov qword [rsp + 0x7c], 0
mov edx, 0xc0000000
mov qword [rsp + 0x84], 0
mov dword [rsp + 0x70], 0x1c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
mov rbx, rax
je 0x4a1234
mov ecx, 0x38
call sub.msvcrt.dll_malloc
mov ecx, 6
lea rbp, [rax + 8]
mov rsi, rax
xor eax, eax
lea rdx, [rsi + 0x1c]
mov rdi, rbp
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x70]
mov rcx, rbx
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetCommTimeouts]
lea rbp, [rsp + 0x50]
mov rdx, rdi
mov dword [rsp + 0x70], 0x1c
lea rcx, str.96_n_8_1
call qword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCommState]
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r9, rdi
mov rdx, rbp
mov rcx, qword [rsi]
mov r8d, 1
mov qword [0x00c88720], rsi
mov byte [rsp + 0x50], 0x20
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r8d, r8d
mov ecx, 0xa
lea rdx, [0x004a0e10]
call fcn.0049ed70
mov rax, qword [0x005d3a70]
mov byte [rax + 0xb0], 1
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 0x100
lea r8, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 1
lea rdx, str.SOFTWAREFreeGLUT
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4a11aa
lea rax, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
lea rbx, [0x00c88620]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea rdx, str.DialboxSerialPort
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x4a1250
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x4a1060
mov qword [0x00c88720], 0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a11aa

Function at 0x4a12b0
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, qword [0x005d3a70]
cmp byte [rax + 0xb0], 0
je 0x4a12c1
ret
jmp fcn.004a1040
Function at 0x4a1340
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
cmp byte [rcx + 0x1d0], 0
mov r13, rcx
mov r12, rdx
je 0x4a1380
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.CurrentJoystickSettings
mov edx, 0x100
mov rsi, qword [sym.imp.msvcrt.dll__snprintf]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rbp, [rsp + 0x48]
lea rax, [rcx + 0x70]
mov rcx, rbx
lea r9, str.SystemCurrentControlSetControlMediaResourcesJoystick
mov qword [rsp + 0x20], rax
lea r8, str._s_s_s
call rsi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov r9d, 1
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov rdi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rdi
test eax, eax
jne 0x4a1362
mov eax, dword [r13 + 0x1c8]
lea rdx, str.OEMName
mov rcx, rbx
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x20], rdx
lea r15, [rsp + 0x44]
mov edx, 0x100
lea r8, str.Joystick_d_s
lea r9d, [rax + 1]
call rsi
lea r10, [rsp + 0x150]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r10
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r10
mov r14, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rsp + 0x28], r15
call r14
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x34], eax
mov r13, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call r13
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x4a1362
mov r10, qword [rsp + 0x38]
lea r9, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
mov edx, 0x100
mov rcx, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], r10
call rsi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov r9d, 1
mov rdx, rbx
mov rcx, 0xffffffff80000002
call rdi
test eax, eax
jne 0x4a1362
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], r15
lea rdx, str.OEMName
mov dword [rsp + 0x44], pe_nt_image_headers64
mov qword [rsp + 0x20], r12
call r14
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call r13
xor eax, eax
test ebx, ebx
sete al
jmp 0x4a1364

Function at 0x4a2300
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ecx, 0xa0
mov rsi, qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 1
call rsi
test ax, ax
js 0x4a232b
mov ecx, 0xa1
call rsi
movsx ebx, ax
shr ebx, 0x1f
mov ecx, 0xa2
call rsi
test ax, ax
jns 0x4a2352
mov ecx, 0xa4
or ebx, 2
call rsi
test ax, ax
jns 0x4a2370
or ebx, 4
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 0xa3
call rsi
mov edx, ebx
mov ecx, 0xa4
or edx, 2
test ax, ax
cmovs ebx, edx
call rsi
test ax, ax
js 0x4a2346
mov ecx, 0xa5
call rsi
mov edx, ebx
or edx, 4
test ax, ax
cmovs ebx, edx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x4a23c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [0x005d3a70]
mov qword [rsp + 0x68], rdx
mov rsi, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
cmp qword [rbx + 0xd0], 0
je 0x4a2405
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
call qword [rbx + 0xd0]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rsp + 0x68]
mov ecx, 2
mov rdi, qword [fcn.004c5590]
mov qword [rsp + 0x28], rax
call rdi
mov r8d, 9
mov edx, 1
lea rcx, str.freeglut
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbp, qword [rbx + 0xa0]
test rbp, rbp
je 0x4a245c
mov ecx, 2
call rdi
lea rdx, str.__s_:
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rbp, qword [rsp + 0x28]
mov ecx, 2
call rdi
mov rdx, rsi
mov rcx, rax
mov r8, rbp
call sub.msvcrt.dll_vfprintf
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
cmp byte [rbx + 0x1c], 0
jne 0x4a249a
mov ecx, 1
call sub.msvcrt.dll_exit
call fcn.004a0010
jmp 0x4a2490

Function at 0x4a24b0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, qword [0x005d3a70]
mov qword [rsp + 0x58], rdx
mov rsi, rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
cmp qword [rbx + 0xd8], 0
je 0x4a24f3
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], rdx
call qword [rbx + 0xd8]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x58]
mov ecx, 2
mov rdi, qword [fcn.004c5590]
mov qword [rsp + 0x28], rax
call rdi
mov r8d, 9
mov edx, 1
lea rcx, str.freeglut
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbx + 0xa0]
test rbx, rbx
je 0x4a254a
mov ecx, 2
call rdi
lea rdx, str.__s_:
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call rdi
mov rdx, rsi
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x4a8390
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x005d3a70]
cmp byte [rsi + 0x1c], 0
je 0x4a83d0
mov rbx, qword [0x005d3aa0]
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x4a83f3
mov rcx, qword [rax + 0x18]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rbx + 0x30]
mov byte [rax + 0x54], 0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, str.glutHideWindow
lea rcx, [0x005b8cb8]
call fcn.004a23c0
mov rbx, qword [0x005d3aa0]
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x4a83b3
cmp dword [rsi + 0x94], 2
je 0x4a83b3
lea rdx, str.glutHideWindow
lea rcx, str._ERROR:__Function___s__called_with_no_current_window_defined.
call fcn.004a23c0
mov rax, qword [rbx + 0x30]
jmp 0x4a83b3
Function at 0x4a8420
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x005d3a70]
cmp byte [rsi + 0x1c], 0
je 0x4a8465
mov rbx, qword [0x005d3aa0]
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x4a8488
mov rcx, qword [rax + 0x18]
mov edx, 6
mov byte [rax + 0x55], 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rbx + 0x30]
mov byte [rax + 0x54], 0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, str.glutIconifyWindow
lea rcx, [0x005b8cb8]
call fcn.004a23c0
mov rbx, qword [0x005d3aa0]
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x4a8443
cmp dword [rsi + 0x94], 2
je 0x4a8443
lea rdx, str.glutIconifyWindow
lea rcx, str._ERROR:__Function___s__called_with_no_current_window_defined.
call fcn.004a23c0
mov rax, qword [rbx + 0x30]
jmp 0x4a8443

Function at 0x4a8f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x60], xmm8
movaps xmmword [rsp + 0x70], xmm9
mov rax, qword [0x005d3a70]
cmp byte [rax + 0x1c], 0
mov rsi, rcx
mov rbx, rdx
je 0x4a9140
mov rcx, rsi
call fcn.004a8dc0
test rbx, rbx
mov rsi, rax
je 0x4a8fe2
test rax, rax
je 0x4a8fe2
cmp byte [rbx], 0
jne 0x4a9004
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 1
pxor xmm6, xmm6
pxor xmm8, xmm8
call qword [sym.imp.OPENGL32.dll_glPushClientAttrib]
mov rdi, qword [sym.imp.OPENGL32.dll_glPixelStorei]
xor edx, edx
mov ecx, 0xcf0
call rdi
xor edx, edx
mov ecx, 0xcf1
call rdi
xor edx, edx
mov ecx, 0xcf2
call rdi
xor edx, edx
mov ecx, 0xcf3
call rdi
xor edx, edx
mov ecx, 0xcf4
call rdi
mov edx, 1
mov ecx, 0xcf5
call rdi
mov rdi, qword [sym.imp.OPENGL32.dll_glBitmap]
movss xmm9, dword [0x005b8fe0]
add rbx, 1
movzx ecx, byte [rbx - 1]
test cl, cl
je 0x4a90d3
cmp cl, 0xa
mov edx, dword [rsi + 0xc]
je 0x4a9100
mov rax, qword [rsi + 0x10]
pxor xmm0, xmm0
add rbx, 1
movss xmm3, dword [rsi + 0x1c]
movss xmm2, dword [rsi + 0x18]
mov rbp, qword [rax + rcx*8]
movzx ecx, byte [rbp]
lea rax, [rbp + 1]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
cvtsi2ss xmm0, ecx
movss dword [rsp + 0x20], xmm0
call rdi
movzx eax, byte [rbp]
pxor xmm0, xmm0
movzx ecx, byte [rbx - 1]
cvtsi2ss xmm0, eax
test cl, cl
addss xmm6, xmm0
jne 0x4a9074
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.OPENGL32.dll_glPopClientAttrib]
neg edx
pxor xmm0, xmm0
xor ecx, ecx
xorps xmm6, xmm9
cvtsi2ss xmm0, edx
movss dword [rsp + 0x20], xmm6
movaps xmm3, xmm8
xor edx, edx
mov qword [rsp + 0x30], 0
pxor xmm2, xmm2
pxor xmm6, xmm6
movss dword [rsp + 0x28], xmm0
call qword [sym.imp.OPENGL32.dll_glBitmap]
jmp 0x4a9068
lea rdx, str.glutBitmapString
lea rcx, [0x005b8ee0]
call fcn.004a23c0
jmp 0x4a8fc8
Function at 0x4b3d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00c88e24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4b3e88
mov rax, qword [0x00c88e28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4b3d4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4b3dd5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4b3d30
mov rcx, rbx
call fcn.004b49a0
test rax, rax
mov r12, rax
je 0x4b3ebd
mov rax, qword [0x00c88e28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004b4ad0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00c88e28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4b3ea0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4b3dce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4b3e30
add dword [0x00c88e24], 1
cmp edi, 8
jae 0x4b3e03
test dil, 4
jne 0x4b3e74
test edi, edi
je 0x4b3df8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4b3e8f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4b3df8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4b3e1c
jmp 0x4b3df8
add rsi, qword [0x00c88e28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4b3dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.005874e0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4b3df8
xor esi, esi
jmp 0x4b3d57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4b3df8
mov rax, qword [0x00c88e28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.005874e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.005874e0
nop
nop dword [rax]

Function at 0x4b4610
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00c89100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00c890e0]
test rbx, rbx
je 0x4b4664
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 0x4b465b
test rsi, rsi
je 0x4b465b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4b4640
lea rcx, [0x00c89100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4b49a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005d3720]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4b4a0d
mov rcx, r8
call fcn.004b4880
test eax, eax
je 0x4b4a0d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4b4a0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4b4a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4b4a0f
add rax, 0x28
cmp rax, r9
jne 0x4b49f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4b5100
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4b5131
xor edx, edx
mov ecx, eax
mov dword [0x00c89150], eax
call fcn.004c5c30
test eax, eax
sete al
movzx eax, al
mov dword [0x0058ccf8], eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b511e

Function at 0x4b5240
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov edi, 1
mov rax, qword [rdx]
mov rbp, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
test rax, rax
mov rsi, rcx
mov rbx, rdx
mov r15, r8
je 0x4b5340
mov r13, qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4b529c
mov qword [0x00c89158], r14
mov rax, qword [rbx]
add edi, 1
mov rax, qword [rax]
test rax, rax
mov qword [rbx], rax
je 0x4b5340
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
mov r14, qword [rax + 0x30]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call rbp
test eax, eax
jne 0x4b5360
test r14, r14
je 0x4b52ef
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
call r14
cmp eax, 7
je 0x4b5385
cmp eax, 8
jne 0x4b5360
mov rax, qword [rbx]
mov r14, qword [rax]
mov eax, dword [0x0058ccf8]
test eax, eax
js 0x4b5330
test eax, eax
je 0x4b5280
mov rdx, r14
mov ecx, dword [0x00c89150]
call r13
test eax, eax
jne 0x4b5287
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b5287
call fcn.004b5140
mov eax, dword [0x0058ccf8]
jmp 0x4b52ff
mov qword [rsp + 0x28], r12
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0x1a
mov qword [rsp + 0x20], rbx
mov ecx, 1
call rbp
test eax, eax
je 0x4b5380
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 5
mov dword [r15], edi
jmp 0x4b5365
Function at 0x4b5390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x0058ccf8]
test eax, eax
mov rbx, rcx
js 0x4b5410
test eax, eax
jne 0x4b53c3
mov rax, qword [0x00c89158]
mov qword [0x00c89158], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edi, dword [0x00c89150]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbx], rdi
mov rdx, rbx
mov ecx, dword [0x00c89150]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4b53ba
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
call fcn.004b5140
mov eax, dword [0x0058ccf8]
jmp 0x4b53a5

Function at 0x4b5420
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x0058ccf8]
mov rbx, qword [rcx]
test eax, eax
js 0x4b5462
test eax, eax
jne 0x4b5443
mov qword [0x00c89158], rbx
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
mov ecx, dword [0x00c89150]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4b543d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004b5140
mov eax, dword [0x0058ccf8]
jmp 0x4b5432

Function at 0x4b5530
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x0058ccf8]
test eax, eax
mov rbx, rcx
js 0x4b55b0
test eax, eax
mov rsi, qword [0x00c89158]
jne 0x4b55c6
test rsi, rsi
mov qword [rsp + 0x38], rsi
je 0x4b55a1
lea rdi, [rsp + 0x38]
mov rax, rsi
mov rax, qword [rax + 0x30]
test rax, rax
je 0x4b558f
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x4b55f0
cmp eax, 8
jne 0x4b5623
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x38], rax
jne 0x4b5561
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call fcn.004b5140
mov eax, dword [0x0058ccf8]
mov rsi, qword [0x00c89158]
test eax, eax
je 0x4b554f
mov esi, dword [0x00c89150]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b554f
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rsp + 0x38], rsi
mov qword [rbx + 0x18], rax
call fcn.004b5050
cmp eax, 7
jne 0x4b55a6
mov rcx, rdi
call fcn.004b51d0
mov eax, 3
jmp 0x4b55a6
Function at 0x4b5770
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x4b57c0
mov edx, dword [0x0058ccf8]
test edx, edx
js 0x4b57d0
test edx, edx
mov rsi, qword [0x00c89158]
jne 0x4b57e6
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
lea r8, [rsp + 0x24]
mov rdx, rsi
call fcn.004b5240
cmp eax, 7
jne 0x4b5809
mov rcx, rsi
call fcn.004b51d0
nop dword [rax]
call fcn.004b5530
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.004b5140
mov edx, dword [0x0058ccf8]
mov rsi, qword [0x00c89158]
test edx, edx
je 0x4b5796
mov esi, dword [0x00c89150]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b5796
call sub.msvcrt.dll_abort
nop
nop
mov rax, qword [rcx + 8]
test rax, rax
je 0x4b5824
mov rdx, rcx
mov ecx, 1
jmp rax
ret
Function at 0x4c8030
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x4c805c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret