joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d160
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x40
mov ebx, 0xfffffee0
sub esp, 0x16c
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, 0x4a57da
mov ecx, 0x4a5ea7
mov dword [0x4a57d6], 0
and edi, 0xfffffffc
mov dword [0x4a5ea3], 0
sub ecx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x44d207
test eax, eax
jle 0x44d1fb
lea eax, [ebx + ebx*4 + 0x4a5e16]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
add ebx, 1
cmp ebx, 0x1d
je 0x44d2a1
movzx eax, word [ebx + ebx + 0x4a579c]
cmp ax, 0xffff
je 0x44d1fb
cmp ebx, 0xe
movsx esi, ax
jbe 0x44d2ac
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub esp, 8
mov ebp, eax
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
cmp eax, 0xffffffff
jne 0x44d1b0
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
jmp 0x44d1b0
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x24]
mov dword [esp + 0x24], 0x60
mov dword [esp + 0x28], 0x61
mov dword [esp + 0x2c], 0x62
mov dword [esp + 0x30], 0x63
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x65
mov dword [esp + 0x3c], 0x66
mov dword [esp + 0x40], 0x67
mov dword [esp + 0x44], 0x68
mov dword [esp + 0x48], 0x69
mov dword [esp + 0x4c], 0x6e
mov dword [esp + 0x50], 0x6f
mov dword [esp + 0x54], 0x6a
mov dword [esp + 0x58], 0x6d
mov dword [esp + 0x5c], 0x6b
mov ebp, dword [edi + ebx*4]
jmp 0x44d23b

Function at 0x44eb40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 1
je 0x44eb69
mov dword [esp + 8], 0x3e
mov dword [esp + 4], str.D:GitHub_raylib_srcexternal_glfw_src_win32_thread.c
mov dword [esp], str.tls__win32.allocated__GLFW_TRUE
call fcn.004601e0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
add esp, 0x18
pop ebx
ret

Function at 0x44ed00
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 1
je 0x44ed29
mov dword [esp + 8], 0x44
mov dword [esp + 4], str.D:GitHub_raylib_srcexternal_glfw_src_win32_thread.c
mov dword [esp], str.tls__win32.allocated__GLFW_TRUE
call fcn.004601e0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
add esp, 0x18
pop ebx
ret
Function at 0x453710
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x453740
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x45376a
mov dword [ebx], 1
add esp, 0x18
mov eax, 1
pop ebx
ret
mov dword [esp + 8], 0x27
mov dword [esp + 4], str.D:GitHub_raylib_srcexternal_glfw_src_win32_thread.c
mov dword [esp], str.tls__win32.allocated__GLFW_FALSE
call fcn.004601e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
jne 0x45372c
mov dword [esp + 4], str.Win32:_Failed_to_allocate_TLS_index
mov dword [esp], 0x10008
call fcn.004530f0
add esp, 0x18
xor eax, eax
pop ebx
ret
Function at 0x458b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
test edi, edi
je 0x458c30
test ebx, ebx
je 0x458bb2
fldz
fstp qword [ebx]
test esi, esi
je 0x458bba
fldz
fstp qword [esi]
mov eax, dword [0x4a4600]
test eax, eax
je 0x458c10
cmp dword [edi + 0x64], 0x34003
jne 0x458bf0
test ebx, ebx
je 0x458bd8
fld qword [edi + 0x1d0]
fstp qword [ebx]
test esi, esi
je 0x458be4
fld qword [edi + 0x1d8]
fstp qword [esi]
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.00458b20
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x10001
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.0044ee70
mov dword [esp + 8], 0x2a4
mov dword [esp + 4], str.D:GitHub_raylib_srcexternal_glfw_src_input.c
mov dword [esp], str.window___NULL
call fcn.004601e0
jmp 0x458baa

Function at 0x458d40
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x45383f
mov dword [esp + 4], str.Win32:_Failed_to_register_raw_input_device
mov dword [esp], 0x10008
call fcn.004530f0
add esp, 0x2c
ret
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [0x4a5eb8], eax
mov dword [esp], eax
mov dword [esp + 8], 0x4a5eb0
mov dword [esp + 4], 0x4a5ea8
call fcn.00458b20
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x3c]
call fcn.0044c0f0
mov dword [esp], ebx
call fcn.00458cf0
mov eax, ebx
call fcn.0044c080
mov eax, dword [ebx + 0x1e0]
test eax, eax
jne 0x458d90
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx + 0x2a4]
add esp, 0x18
pop ebx
jmp 0x4537f0

Function at 0x45a610
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x4a4600]
test eax, eax
je 0x45a620
jmp fcn.0045a420
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.0044ee70
add esp, 0x1c
ret

Function at 0x45a660
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4a4600]
test eax, eax
je 0x45a680
call dword [sym.imp.USER32.dll_WaitMessage]
add esp, 0x1c
jmp fcn.0045a420
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.0044ee70
add esp, 0x1c
ret
Function at 0x45db60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ecx, dword [0x4a5ff8]
mov dword [esp + 0x14], str.libOSMesa.dll
mov dword [esp + 0x18], str.OSMesa.dll
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x45db94
mov ebx, 1
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
lea ebx, [esp + 0x14]
mov eax, str.libOSMesa.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x45dbb2
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x45dcf5
mov dword [esp], eax
call esi
sub esp, 4
test eax, eax
mov dword [0x4a5ff8], eax
je 0x45dba5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.OSMesaCreateContextExt
mov dword [esp], eax
call ebx
mov dword [0x4a5ffc], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaCreateContextAttribs
mov dword [esp], eax
call ebx
mov dword [0x4a6000], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaDestroyContext
mov dword [esp], eax
call ebx
mov dword [0x4a6004], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaMakeCurrent
mov dword [esp], eax
call ebx
mov dword [0x4a6008], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetColorBuffer
mov dword [esp], eax
call ebx
mov dword [0x4a600c], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetDepthBuffer
mov dword [esp], eax
call ebx
mov dword [0x4a6010], eax
mov eax, dword [0x4a5ff8]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetProcAddress
mov dword [esp], eax
call ebx
mov edx, dword [0x4a5ffc]
sub esp, 8
mov dword [0x4a6014], eax
test edx, edx
je 0x45dcb4
mov edx, dword [0x4a6004]
test edx, edx
je 0x45dcb4
mov esi, dword [0x4a6008]
test esi, esi
je 0x45dcb4
mov ebx, dword [0x4a600c]
test ebx, ebx
je 0x45dcb4
mov ecx, dword [0x4a6010]
test ecx, ecx
je 0x45dcb4
test eax, eax
jne 0x45db87
mov dword [esp + 4], str.OSMesa:_Failed_to_load_required_entry_points
mov dword [esp], 0x10008
xor ebx, ebx
call fcn.0044ee70
mov eax, dword [0x4a5ff8]
test eax, eax
je 0x45db8c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [0x4a5ff8], 0
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 4], str.OSMesa:_Library_not_found
mov dword [esp], 0x10006
xor ebx, ebx
call fcn.0044ee70
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x45f020
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4a67c0]
test esi, esi
jle 0x45f130
mov edi, dword [0x4a67c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x45f054
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x45f0d5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x45f040
mov dword [esp], eax
mov ebx, eax
call fcn.0045f910
test eax, eax
mov edi, eax
je 0x45f157
mov eax, dword [0x4a67c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0045fa10
add eax, dword [edi + 0xc]
mov edx, dword [0x4a67c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x45f137
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x45f0ce
sub eax, 4
and eax, 0xfffffffb
jne 0x45f0e0
add dword [0x4a67c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4a67c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x45f0ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00465b40
lea esi, [esi]
xor esi, esi
jmp 0x45f05e
mov eax, dword [0x4a67c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00465b40
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00465b40
mov esi, esi
lea edi, [edi]

Function at 0x45f590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4a67d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4a67d0]
sub esp, 4
test ebx, ebx
je 0x45f5e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x45f5de
test esi, esi
je 0x45f5de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45f5c0
mov dword [esp], 0x4a67d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x465b40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.00401520
Function at 0x408b97
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.00408adb
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0xaf4f34]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408c22
push 0x401128
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0xaf4f34]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xaf4f78]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0xaf4f78], eax
mov eax, dword [0xaf4f80]
cmove eax, dword [ebp - 0x24]
mov dword [0xaf4f80], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0xaf4f7c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x408be7
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408d01
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408d3d
cmp dword [0xaf4f34], 0x959
jne 0x408d2d
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b97
add edi, 8
dec esi
jne 0x408d11
pop edi
pop esi
pop ebp
ret 4
Function at 0x41255f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x816520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040c0b3
mov dword [ebp - 0x14], eax
cmp dword [0xaf5d14], esi
jne 0x412652
push 0x800
push esi
push 0x4052fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4125df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412732
push esi
push esi
push 0x4052fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x412732
push 0x405314
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412732
push eax
call ebx
push 0x405320
push edi
mov dword [0xaf5d14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405330
push edi
mov dword [0xaf5d18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405344
push edi
mov dword [0xaf5d1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaf5d24], eax
test eax, eax
je 0x41264f
push 0x405360
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaf5d20], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412677
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41266a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41268c
push 4
pop eax
jmp 0x412734
cmp dword [ebp - 0x14], esi
je 0x41268c
push dword [0xaf5d14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412671
mov eax, dword [0xaf5d20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4126ea
cmp dword [0xaf5d24], edi
je 0x4126ea
push eax
call ebx
push dword [0xaf5d24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4126ea
test eax, eax
je 0x4126ea
call ecx
test eax, eax
je 0x4126df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4126df
test byte [ebp - 8], 1
jne 0x4126ea
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41271a
mov eax, dword [0xaf5d18]
cmp eax, edi
je 0x412717
push eax
call ebx
test eax, eax
je 0x412717
call eax
mov esi, eax
test esi, esi
je 0x412717
mov eax, dword [0xaf5d1c]
cmp eax, edi
je 0x412717
push eax
call ebx
test eax, eax
je 0x412717
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xaf5d14]
call ebx
test eax, eax
je 0x412732
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x412734
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b6ee
mov esp, ebp
pop ebp
ret
Function at 0x4059d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4059fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004061d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405a1d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405a1f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405aa3
jg 0x405a34
test esi, esi
je 0x405aa3
test ecx, ecx
jl 0x405a7d
jg 0x405a3e
test eax, eax
je 0x405a7d
cmp edi, ecx
jg 0x405a52
jl 0x405a48
cmp esi, eax
jae 0x405a52
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004571e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405a80
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405aa3
jg 0x405a8a
test esi, esi
je 0x405aa3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405aa3
push eax
push esi
push 1
push edx
call fcn.0045adec
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405aeb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405b0d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405b0f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405bae
jg 0x405b2c
test esi, esi
je 0x405bae
test ecx, ecx
jl 0x405b79
jg 0x405b36
test eax, eax
je 0x405b79
cmp ebx, ecx
jg 0x405b4a
jl 0x405b40
cmp esi, eax
jae 0x405b4a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004571e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405b80
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405bae
jg 0x405b8a
test esi, esi
je 0x405bae
cmp dword [edi + 0x4c], 0
je 0x405bae
mov ecx, edi
call fcn.00406e80
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045b3c6
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405ef0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004554e8
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f2d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f2d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004554e8
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406022
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f55
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405f89
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045a4c7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004554e8
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406022
cmp eax, 1
jle 0x405ff1
cmp eax, 3
jne 0x406022
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045a4c7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004554e8
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406010
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045adec
add esp, 0x10
cmp edi, eax
jne 0x406022
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f17
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004554e8
add esp, 0x30
ret 4