joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404213
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 [0x435574]
call edi
call fcn.00401006
mov ecx, eax
call fcn.00401a44
mov ebx, eax
test ebx, ebx
je 0x4042bd
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 0x404269
cmp dword [esi + 0xc], 0
je 0x4042bd
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4042bd
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x404297
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x404297
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x404297
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x4042bd
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.0041c8d0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4044d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401006
mov ecx, eax
call fcn.00402c8f
fld dword [ebp + 8]
fcomp dword [0x4282e0]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x404500
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00402f81
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x404502
call fcn.00403a61
mov esi, eax
test esi, esi
je 0x40453e
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00402fd6
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401006
mov ecx, eax
call fcn.00402d36
pop edi
pop esi
leave
ret
Function at 0x405189
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x435574]
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 0x40521b
mov dword [ebp - 4], eax
call fcn.00407962
test eax, eax
jle 0x405234
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407979
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.00407962
cmp dword [ebp - 4], eax
jl 0x4051cb
pop edi
jmp 0x405234
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 [0x435574]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x40560a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42cfd0
push eax
call fcn.0041c928
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 0x40567f
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 0x40567f
cmp dword [ebp - 4], eax
setne al
mov byte [0x435568], al
leave
ret
Function at 0x40595a
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 0x4059a7
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x4059a7
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.0041c928
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x4059da
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x4059da
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.0041c928
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 0x405a22
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 0x405a91
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405a86
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00427d00
pop ecx
test eax, eax
pop ecx
je 0x405a98
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405a5a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405a93

Function at 0x405a9c
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.004077aa
test al, al
je 0x405acf
lea eax, [esp]
push 0x400
push eax
call fcn.00407a51
pop ecx
test al, al
pop ecx
jne 0x405acf
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405ad1
xor al, al
add esp, 0x400
ret
Function at 0x406149
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 0x4061b4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406186
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4061b4
push ebx
call fcn.0041cfe2
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x40617d
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 0x4061b8
xor al, al
jmp 0x4061d3
push ebx
push dword [ebp + 8]
call fcn.00405fe8
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041cef9
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406c50
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d33c
push dword [ebp + 8]
call fcn.0041d204
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x406d0b
push 2
push edi
push esi
call fcn.0041d63c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041d63c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041d525
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041d63c
push esi
call fcn.0041d3a3
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d525
add esp, 0x48
push edi
push edi
push esi
call fcn.0041d63c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x406d12
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x406d12
push esi
call fcn.0041d11a
pop ecx
xor al, al
jmp 0x406dfa
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x406d3a
push esi
call fcn.0041d11a
pop ecx
xor bl, bl
jmp 0x406ded
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x406d50
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041d525
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406dce
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x406d41
push esi
call fcn.0041d11a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d280
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406dd5
movzx eax, word [ebp - 2]
push esi
push str.ReflexiveArcade_DLL_Signature
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x406dd9
xor bl, bl
jmp 0x406ddb
push esi
call fcn.0041d11a
pop ecx
xor bl, bl
jmp 0x406de4
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406e22
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x406e41
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.0041c790
lea eax, [ebp - 0x348]
push 0x42d39c
push eax
call fcn.0041c7a0
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406f1c
test byte [ebp - 0x140], 0x10
jne 0x406f06
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c790
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0041c7a0
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.0041c790
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041c7a0
lea eax, [ebp - 0x244]
push eax
call fcn.00406e22
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x406f06
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406e90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x406f29
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.0041c790
lea eax, [ebp - 0x348]
push str..
push eax
call fcn.0041c7a0
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40700a
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c790
lea eax, [ebp - 0x104]
push 0x42c45c
push eax
call fcn.0041c7a0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041c7a0
lea eax, [ebp - 0x218]
push 0x42d3a4
push eax
call fcn.0041d700
add esp, 0x20
test eax, eax
je 0x406ff4
lea eax, [ebp - 0x218]
push 0x42d3a0
push eax
call fcn.0041d700
pop ecx
test eax, eax
pop ecx
je 0x406ff4
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406fee
call fcn.00406f29
jmp 0x406ff3
call fcn.00406e22
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406f75
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x407e62
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407e90
push esi
call fcn.0040ad4a
cmp dword [esi + 0x40], 0
pop ecx
je 0x407e89
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 0x407f02
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407ef4
mov eax, dword [esi + 8]
test eax, eax
je 0x407eb1
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407ef0
cmp eax, 2
je 0x407ef4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407ea6
cmp eax, 3
je 0x407ed5
cmp eax, 1
jne 0x407ea6
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407ea6
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407ea6
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x407f20
cmp eax, 0xcc
je 0x407f20
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.00407f29
pop ecx
pop esi
ret
Function at 0x41233d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x4123a6
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00413dda
mov ecx, esi
call fcn.00411ce1
test al, al
jne 0x41239e
lea ecx, [ebp - 4]
call fcn.00413dbb
lea ecx, [ebp - 8]
call fcn.004141ed
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.00414158
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.004141ed
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00413be6
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.0041d883
lea ecx, [ebp - 8]
call fcn.00413e95
pop esi
leave
ret

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

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

Function at 0x414701
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.0041c790
lea eax, [ebp - 0x104]
push eax
call fcn.00414783
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x41477e
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c880
test eax, eax
pop ecx
pop ecx
jne 0x414766
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.0041c880
test eax, eax
pop ecx
pop ecx
je 0x41477a
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x41473e
jmp 0x414711
xor al, al
jmp 0x414780
mov al, 1
pop esi
leave
ret

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

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

Function at 0x414866
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 0x41488d
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414882
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41d24f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a00
push 0x421248
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 [0x437878], eax
movzx ecx, ah
mov dword [0x437884], ecx
and eax, 0xff
mov dword [0x437880], eax
shl eax, 8
add eax, ecx
mov dword [0x43787c], eax
movzx eax, word [0x43787a]
mov dword [0x437878], eax
push 1
call fcn.0041ff4a
pop ecx
test eax, eax
jne 0x41d2bd
push 0x1c
call fcn.0041d37f
pop ecx
call fcn.0041fb89
test eax, eax
jne 0x41d2ce
push 0x10
call fcn.0041d37f
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00421e81
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x438f78], eax
call fcn.00421d4f
mov dword [0x437868], eax
call fcn.00421b0a
call fcn.00421a51
call fcn.0041d856
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004219f3
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x41d31d
movzx eax, word [ebp - 0x2c]
jmp 0x41d320
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.0041d883
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0042187f
pop ecx
pop ecx
ret

Function at 0x41d8a5
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0041d949
xor edi, edi
inc edi
cmp dword [0x4378b4], edi
jne 0x41d8c7
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 [0x4378b0], edi
mov byte [0x4378ac], bl
jne 0x41d91b
mov eax, dword [0x438f74]
push esi
test eax, eax
je 0x41d909
mov ecx, dword [0x438f70]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x41d909
mov eax, dword [esi]
test eax, eax
je 0x41d8fe
call eax
sub esi, 4
cmp esi, dword [0x438f74]
jae 0x41d8f6
push 0x42c094
push 0x42c08c
call fcn.0041d95b
pop ecx
pop ecx
pop esi
push 0x42c09c
push 0x42c098
call fcn.0041d95b
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x41d937
pop edi
jmp fcn.0041d952
push dword [esp + 8]
mov dword [0x4378b4], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41fc13
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 [0x431ef0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41fc70
push 0x74
push 1
call fcn.0041e643
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41fc68
push esi
push dword [0x431ef0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41fc68
push esi
call fcn.0041fc00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x41fc70
push 0x10
call fcn.0041d35a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x422075
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 + 0x434320]
je 0x422092
inc eax
cmp eax, 0x12
jb 0x422083
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x434320]
jne 0x4221c0
mov eax, dword [0x437870]
cmp eax, 1
je 0x42219a
test eax, eax
jne 0x4220c3
cmp dword [0x431b24], 1
je 0x42219a
cmp ecx, 0xfc
je 0x4221c0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4220fa
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c710
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42213d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c710
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429ed4
push edi
call fcn.0041c980
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c7a0
lea eax, [ebp - 0xa0]
push 0x429eb4
push eax
call fcn.0041c7a0
push dword [esi + 0x434324]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c7a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004257e9
add esp, 0x2c
pop edi
jmp 0x4221c0
lea eax, [ebp + 8]
lea esi, [esi + 0x434324]
push 0
push eax
push dword [esi]
call fcn.0041c710
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