joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e05
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.004179d0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403f86
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00415b0a
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403f86
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00417a28
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x50
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403f8c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f91
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 4], ecx
call fcn.004174a5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403fb7
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x403fb9
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0x100000
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x404011
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
lea eax, [ebp - 0x808]
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
jmp 0x4040b8
push 2
push 0
lea eax, [ebx + 4]
push 0x100000
push eax
call esi
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
call esi
push eax
call edi
test eax, eax
jne 0x40403e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Process_Failed__last_error__x_n
jmp 0x403fee
push 2
push 0
lea eax, [ebx + 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00415b0a
push eax
call esi
push eax
call edi
test eax, eax
jne 0x404075
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
jmp 0x403fee
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push ebx
push 0x4040f0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4040cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Create_Thread_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, esi
je 0x4040c8
mov ecx, ebx
call fcn.004040d3
push ebx
call fcn.004170e8
pop ecx
xor al, al
jmp 0x4040ce
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404531
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x437a78]
call edi
call fcn.00401006
mov ecx, eax
call fcn.00401b3a
mov ebx, eax
test ebx, ebx
je 0x4045db
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x404587
cmp dword [esi + 0xc], 0
je 0x4045db
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4045db
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x4045b5
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x4045b5
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x4045b5
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x4045db
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.004179d0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4054ed
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x437a78]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x38]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x40557f
mov dword [ebp - 4], eax
call fcn.00408300
test eax, eax
jle 0x405598
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00408380
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.00408300
cmp dword [ebp - 4], eax
jl 0x40552f
pop edi
jmp 0x405598
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x30]
push dword [esi + 0x34]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x437a78]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret
Function at 0x40596e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42f55c
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059e3
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DoTimeBeeping
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059e3
cmp dword [ebp - 4], eax
setne al
mov byte [0x437a68], al
leave
ret

Function at 0x405bf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c3a
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c31
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret

Function at 0x405dbc
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x64], ebx
jne 0x405e09
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x405e09
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x405e3c
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x405e3c
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.00417a28
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x64]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8
Function at 0x405e84
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405ef3
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405ee8
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.004234d0
pop ecx
test eax, eax
pop ecx
je 0x405efa
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405ebc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405ef5

Function at 0x405efe
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.00408090
test al, al
je 0x405f31
lea eax, [esp]
push 0x400
push eax
call fcn.004085e0
pop ecx
test al, al
pop ecx
jne 0x405f31
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405f33
xor al, al
add esp, 0x400
ret

Function at 0x406657
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4066c2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406694
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4066c2
push ebx
call fcn.004180e2
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x40668b
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x4066c6
xor al, al
jmp 0x4066e1
push ebx
push dword [ebp + 8]
call fcn.004064f6
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.00417ff9
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ab5
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x408ae3
push esi
call fcn.0040b99c
cmp dword [esi + 0x40], 0
pop ecx
je 0x408adc
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x408b55
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x408b47
mov eax, dword [esi + 8]
test eax, eax
je 0x408b04
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x408b43
cmp eax, 2
je 0x408b47
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x408af9
cmp eax, 3
je 0x408b28
cmp eax, 1
jne 0x408af9
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x408af9
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x408af9
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x408b73
cmp eax, 0xcc
je 0x408b73
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00408b7c
pop ecx
pop esi
ret
Function at 0x412fbc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x413025
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00414a5b
mov ecx, esi
call fcn.00412960
test al, al
jne 0x41301d
lea ecx, [ebp - 4]
call fcn.00414a3c
lea ecx, [ebp - 8]
call fcn.00414e6e
push eax
lea eax, [ebp - 4]
push str.There_is_something_wrong_with__s.__It_may_be_an_empty_or_damaged_archive.
push eax
call fcn.00414dd9
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00414e6e
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00414867
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.00418c73
lea ecx, [ebp - 8]
call fcn.00414b16
pop esi
leave
ret

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

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x41349f
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x430e60]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x413485
pop edi
pop esi
ret

Function at 0x415382
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00417890
lea eax, [ebp - 0x104]
push eax
call fcn.00415404
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x4153ff
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00417980
test eax, eax
pop ecx
pop ecx
jne 0x4153e7
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.00417980
test eax, eax
pop ecx
pop ecx
je 0x4153fb
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x4153bf
jmp 0x415392
xor al, al
jmp 0x415401
mov al, 1
pop esi
leave
ret

Function at 0x4154ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4154dc
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x4154e7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41550e
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x415503
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41834f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b9d0
push 0x41c538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x439d88], eax
movzx ecx, ah
mov dword [0x439d94], ecx
and eax, 0xff
mov dword [0x439d90], eax
shl eax, 8
add eax, ecx
mov dword [0x439d8c], eax
movzx eax, word [0x439d8a]
mov dword [0x439d88], eax
push 1
call fcn.0041b23a
pop ecx
test eax, eax
jne 0x4183bd
push 0x1c
call fcn.0041847f
pop ecx
call fcn.0041ae79
test eax, eax
jne 0x4183ce
push 0x10
call fcn.0041847f
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041d171
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43b478], eax
call fcn.0041d03f
mov dword [0x439d78], eax
call fcn.0041cdfa
call fcn.0041cd41
call fcn.00418c46
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041cce3
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x41841d
movzx eax, word [ebp - 0x2c]
jmp 0x418420
push 0xa
pop eax
push eax
push dword [ebp - 0x60]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x64], eax
push eax
call fcn.00418c73
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0041cb6f
pop ecx
pop ecx
ret

Function at 0x418c95
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.00418d39
xor edi, edi
inc edi
cmp dword [0x439dc4], edi
jne 0x418cb7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x439dc0], edi
mov byte [0x439dbc], bl
jne 0x418d0b
mov eax, dword [0x43b474]
push esi
test eax, eax
je 0x418cf9
mov ecx, dword [0x43b470]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x418cf9
mov eax, dword [esi]
test eax, eax
je 0x418cee
call eax
sub esi, 4
cmp esi, dword [0x43b474]
jae 0x418ce6
push 0x42e094
push 0x42e08c
call fcn.00418d4b
pop ecx
pop ecx
pop esi
push 0x42e09c
push 0x42e098
call fcn.00418d4b
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x418d27
pop edi
jmp fcn.00418d42
push dword [esp + 8]
mov dword [0x439dc4], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41af03
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x4324b0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41af60
push 0x74
push 1
call fcn.00420661
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41af58
push esi
push dword [0x4324b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41af58
push esi
call fcn.0041aef0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41af60
push 0x10
call fcn.0041845a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x41d365
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x4348e0]
je 0x41d382
inc eax
cmp eax, 0x12
jb 0x41d373
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4348e0]
jne 0x41d4b0
mov eax, dword [0x439d80]
cmp eax, 1
je 0x41d48a
test eax, eax
jne 0x41d3b3
cmp dword [0x4320b4], 1
je 0x41d48a
cmp ecx, 0xfc
je 0x41d4b0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d3ea
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417810
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d42d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417810
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b9e0
push edi
call fcn.00417a80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004178a0
lea eax, [ebp - 0xa0]
push 0x42b9dc
push eax
call fcn.004178a0
push dword [esi + 0x4348e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004178a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041d72f
add esp, 0x2c
pop edi
jmp 0x41d4b0
lea eax, [ebp + 8]
lea esi, [esi + 0x4348e4]
push 0
push eax
push dword [esi]
call fcn.00417810
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
Function at 0x41dafa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41dcc0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43a320]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41dcc0
test cl, 0x48
je 0x41db60
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41db60
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41dbb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41db9a
call fcn.0041932a
mov dword [eax], 9
call fcn.00419333
mov dword [eax], esi
jmp 0x41dbaa
cmp eax, 0x6d
je 0x41dcc0
push eax
call fcn.004192bc
pop ecx
or eax, 0xffffffff
jmp 0x41dcc2
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41dcbb
test edx, edx
je 0x41dbd5
cmp byte [ebx], 0xa
jne 0x41dbd5
or al, 4
jmp 0x41dbd7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x41dcb5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41dca5
cmp al, 0xd
je 0x41dc0b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41dc97
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41dc25
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41dc20
add dword [ebp + 0x10], 2
jmp 0x41dc79
mov dword [ebp + 0x10], eax
jmp 0x41dc93
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41dc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41dc93
cmp dword [ebp - 0xc], 0
je 0x41dc93
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41dc6e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41dc79
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41dc96
cmp ebx, dword [ebp + 0xc]
jne 0x41dc7e
cmp byte [ebp - 1], 0xa
jne 0x41dc7e
mov byte [ebx], 0xa
jmp 0x41dc96
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d948
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41dc97
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41dbef
jmp 0x41dcb5
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41dcb5
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41dcc2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret