joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd7d
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, 0x4a661c
call fcn.004817b4
sub esp, 0x128
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x18]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ddb7
or eax, 0xffffffff
jmp 0x40df2a
mov eax, dword [0x4dbfc4]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
mov edi, 0x4de958
push ebx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
je 0x40dde8
or esi, 0xffffffff
jmp 0x40df1a
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call fcn.0049c20e
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call esi
cmp eax, ebx
jne 0x40dde0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.0049c20e
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push 1
push esi
call fcn.004838d1
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40dde0
push edi
push esi
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.0049c20e
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x40de60
or esi, 0xffffffff
jmp 0x40df13
xor esi, esi
test dword [ebp - 0x24], 0xfffffffc
jbe 0x40df10
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + esi*4 + 2]
lea eax, [eax + esi*4]
push ecx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x134]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x40df10
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.0049be4c
push ebx
push 0x2c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0049c2da
cmp eax, 0xffffffff
jg 0x40dee4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0049bdde
mov eax, dword [ebp - 0x24]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40de6f
jmp 0x40df10
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00496154
push dword [ebp - 0x1c]
call fcn.004838c6
pop ecx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.0049bdde
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0049bdde
mov esi, dword [ebp - 0x28]
push edi
call fcn.00482395
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418b4a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a7468
call fcn.004817b4
sub esp, 0x58
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x68], ebx
mov dword [ebp - 4], ebx
je 0x418c01
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0047a9b1
mov word [ebp - 0x64], bx
push 8
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0047a6fe
mov esi, 0x4de958
push 8
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0047a6fe
push 8
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0047a6fe
push 3
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0047a7af
lea eax, [ebp - 0x3c]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.0043f0a7
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
call esi
pop esi
jmp 0x418c24
call fcn.00418f1b
cmp eax, ebx
jne 0x418c0e
xor eax, eax
jmp 0x418c11
mov eax, dword [eax + 0x1c]
push 5
push ebx
push ebx
push dword [ebp + 8]
push 0x4d1b74
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049bdde
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424825
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ebx, ebx
push str.DDRAW.DLL
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42484e
push str.Couldnt_LoadLibrary_DDraw_r_n
jmp 0x42488a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.DirectDrawCreate
push eax
call esi
cmp eax, ebx
jne 0x424870
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreate_r_n
jmp 0x42488a
lea ecx, [ebp - 0xc]
push ebx
push ecx
push ebx
call eax
test eax, eax
jge 0x424897
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x42499e
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x4aeae8
push 1
push ebx
push 0x4aeaf8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4248da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_CLSID_DirectMusic_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x600
jmp 0x42499e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.DirectDrawCreateEx
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x424907
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreateEx_r_n
jmp 0x424926
push ebx
lea ecx, [ebp - 0x10]
push 0x4aeb08
push ecx
push ebx
call eax
test eax, eax
jge 0x424933
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_DirectDrawCreateEx_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x601
jmp 0x42499e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.D3D8.DLL
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x424965
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_D3D8.DLL_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x700
jmp 0x42499e
push str.dpnhpast.dll
call edi
cmp eax, ebx
jne 0x424989
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_dpnhpast.dll_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x800
jmp 0x42499e
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
call esi
push dword [ebp - 0x14]
call esi
mov eax, 0x801
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a7ac
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4a861b
call fcn.004817b4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [0x4dbfc4]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [0x4dbfc4]
mov dword [esi + 0x10], eax
mov eax, dword [0x4dbfc4]
lea ebx, [esi + 0x14]
mov dword [ebx], eax
mov eax, dword [0x4dbfc4]
mov dword [esi + 0x18], eax
mov eax, dword [0x4dbfc4]
mov dword [esi + 0x30], eax
and dword [esi + 4], 0
mov edi, 0x4de958
push edi
mov byte [ebp - 4], 5
mov dword [esi], 0x4adaa8
call fcn.0049bf67
push edi
mov ecx, ebx
call fcn.0049bf67
push edi
lea ecx, [esi + 0x18]
call fcn.0049bf67
and dword [esi + 0x1c], 0
and dword [esi + 0x20], 0
fldz
push edi
lea ecx, [esi + 0x30]
fstp qword [esi + 0x28]
call fcn.0049bf67
and byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42a860
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4a865c
call fcn.004817b4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4adaa8
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 4
call fcn.0049bdde
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call fcn.0049bdde
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call fcn.0049bdde
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0049bdde
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0049bdde
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x43a881
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a89a
test al, 0x10
je 0x43a89a
push 1
pop esi
jmp 0x43a89c
xor esi, esi
lea ecx, [esp + 8]
call fcn.0049bdde
mov eax, esi
pop esi
ret 4
Function at 0x440a3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x440a83
cmp edx, 0x10
jl 0x440a6f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x440a5c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x440a83
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x440a7b
and edx, 3
cmp edx, 3
jne 0x440a97
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x440a9c
cmp edx, 2
jne 0x440aa8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x440aad
cmp edx, 1
jne 0x440ab3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x446ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x446e65
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x446e65
push ebp
push 0xb8
call fcn.0049c3ad
add esp, 4
cmp eax, ebx
je 0x446e13
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov ebp, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], ebp
mov ebp, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], ebp
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x446e15
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x446e3c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4ca180
push ecx
mov dword [esp + 0x1c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov ebx, eax
lea ebp, [edi + 8]
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [edi + 4]
push ebp
mov dword [ebx + 4], edx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x44a420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4e7ef0]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x44a5b3
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44a5b3
push edi
push 0xb8
call fcn.0049c3ad
add esp, 4
cmp eax, ebx
je 0x44a553
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xf]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0xf]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0xf]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov dword [esi], edi
mov edi, dword [esp + 0x18]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x44a555
xor esi, esi
mov eax, dword [0x4e7ef0]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44a57f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4ca180
push ecx
mov dword [esp + 0x18], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov edi, eax
push 0x4e7ef8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [edi + 4], edx
mov dword [0x4e7ef4], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x44b040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4aa213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x44b21f
push edi
push esi
push ebx
jmp 0x44b078
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44b20d
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.0049c3ad
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0044b360
test al, al
je 0x44b0fe
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0044b340
mov eax, dword [0x4e7ef0]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x44b1ae
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x44b1ae
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x44b14a
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44b14c
xor edi, edi
mov eax, dword [0x4e7ef0]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebp
jne 0x44b17b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4ca180
push ecx
mov dword [esp + 0x18], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], edx
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.0044b660
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x44b1f4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x44b1eb
cmp al, 0xff
je 0x44b1eb
dec al
mov byte [ecx], al
jmp 0x44b1f4
push ecx
call fcn.0049c3d6
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0049c3d6
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x44b074
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x450180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4e7ef0]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x450316
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x450316
push edi
push 0xb8
call fcn.0049c3ad
add esp, 4
cmp eax, ebx
je 0x4502b6
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x4502b8
xor esi, esi
mov eax, dword [0x4e7ef0]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x4502e2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4ca180
push ecx
mov dword [esp + 0x1c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov edi, eax
push 0x4e7ef8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [edi + 4], edx
mov dword [0x4e7ef4], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x459020
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x459050
push esi
call fcn.0045f8c0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x459049
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4590d3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4590bf
mov eax, dword [esi + 8]
test eax, eax
je 0x459074
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4590bb
cmp eax, 2
je 0x4590bf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459067
cmp eax, 3
je 0x45909a
cmp eax, 1
jne 0x459067
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x459067
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459067
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00459100
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4590f3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00459100
add esp, 4
pop esi
ret

Function at 0x48def7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4de238
cmp edx, dword [eax]
je 0x48df19
add eax, 8
inc ecx
cmp eax, 0x4de2c8
jl 0x48df0a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4de238]
jne 0x48e047
mov eax, dword [0x4f55dc]
cmp eax, 1
je 0x48e021
test eax, eax
jne 0x48df4a
cmp dword [0x4dcf84], 1
je 0x48e021
cmp edx, 0xfc
je 0x48e047
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x48df81
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00482ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004837c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x48dfc4
lea eax, [ebp - 0x1a4]
push eax
call fcn.004837c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1cc0
push edi
call fcn.00482de0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00482ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00482ef0
lea eax, [ebp - 0xa0]
push 0x4c1ca0
push eax
call fcn.00482ef0
push dword [esi + 0x4de23c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00482ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0049176f
add esp, 0x2c
pop edi
jmp 0x48e047
lea eax, [ebp + 8]
lea esi, [esi + 0x4de23c]
push 0
push eax
push dword [esi]
call fcn.004837c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret