joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b014
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1003b023
pop dword [ebp - 0xc]
mov eax, 0x1003b023
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xcccf6463
add dword [ebp - 0x1c], 0x8182e0e8
mov dword [ebp - 0x18], 0xe355112e
add dword [ebp - 0x18], 0x4ede3b17
mov dword [ebp - 0x14], 0x1166addf
add dword [ebp - 0x14], 0x3ae5964f
mov dword [ebp - 0x10], 0xc1173369
sub dword [ebp - 0x10], 0xc1173369
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x8b18359f
sub eax, 0x7b145523
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x8701ad92
add dword [ebp - 0x1c], 0xed70bbc4
mov dword [ebp - 0x18], 0x84149cab
add dword [ebp - 0x18], 0xbd57c4ca
mov dword [ebp - 0x14], 0xeb2de3ab
sub dword [ebp - 0x14], 0x87be773f
mov dword [ebp - 0x10], 0x19af16b5
sub dword [ebp - 0x10], 0x19af16b5
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3f8ac
push 0
call eax
mov ecx, 0x5f2a451a
sub ecx, 0x5f29f59e
mov edx, eax
mov esi, 0x10071200
add esi, dword [ebp - 0xc]
mov ebx, 0xb3217cc0
sub ebx, 0x615f8550
xor dword [ebp - 8], eax
mov edi, dword [esi]
add dword [ebp - 4], edx
add edi, ebx
mov dword [edx], edi
mov dword [ebp - 8], 0x78cda284
add edx, 0xdf1e2588
add edx, 0x20e1da7c
add esi, 0x28dc2c3e
add esi, 0xd723d3c6
loop 0x1003b135
add eax, 0x3fb60174
sub eax, 0x3fb4d0b1
xor ebx, ebx
add ebx, eax
add eax, 0x7783425b
sub eax, 0x77834256
mov ecx, 0x182f48b7
add ecx, 0xf7d0b749
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40274e
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor ebx, ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp ebx, 0x58ce993
jg 0x40277e
inc ebx
cmp ebx, 0x1f6502e2
jl 0x402764
cmp dword [0x454364], 0x400
jne 0x4027fb
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.gapozakivovi
push esi
call fcn.00402b08
push esi
push esi
call fcn.004029c9
push esi
push esi
call fcn.004029c9
add esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004028a0
fstp st(0)
push esi
call fcn.00402d41
push esi
call fcn.00402d50
add esp, 0x10
xor ebx, ebx
cmp ebx, 0xd0fe
jge 0x40280c
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x58bc6e
jg 0x402826
inc ebx
cmp ebx, 0xe52f
jl 0x4027fd
mov eax, dword [0x44d304]
mov dword [0x454364], eax
call fcn.004024cc
mov edi, 0x3078f
cmp dword [0x454364], 0x51f
jne 0x402854
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40283a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x406c63
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44cd50]
jne 0x406c6d
repz ret
jmp fcn.004092a7
Function at 0x408f3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44cd50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004059ec
and dword [ebp - 0x14], 0
cmp dword [0x44ef24], 0
mov dword [ebp - 0x18], eax
jne 0x408fef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409097
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409097
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44ef24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44ef28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44ef2c], eax
call edi
push eax
call esi
mov dword [0x44ef34], eax
test eax, eax
je 0x408fef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44ef30], eax
mov eax, dword [0x44ef30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409048
cmp dword [0x44ef34], ecx
je 0x409048
push eax
call esi
push dword [0x44ef34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409048
test ebx, ebx
je 0x409048
call edi
test eax, eax
je 0x40903f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40903f
test byte [ebp - 8], 1
jne 0x409048
or dword [ebp + 0x10], 0x200000
jmp 0x40907b
mov eax, dword [0x44ef28]
cmp eax, dword [ebp - 0x18]
je 0x40907b
push eax
call esi
test eax, eax
je 0x40907b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40907b
mov eax, dword [0x44ef2c]
cmp eax, dword [ebp - 0x18]
je 0x40907b
push eax
call esi
test eax, eax
je 0x40907b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44ef24]
call esi
test eax, eax
je 0x409097
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409099
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c63
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 4]
push eax
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401062
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401057
cmp dword [esp + 0xc], 4
jne 0x401057
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov bl, 1
mov dword [eax], edx
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x401070
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4093f4]
mov dword [esp + 0x98], eax
push ebx
lea eax, [esp + 8]
push eax
xor bl, bl
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010f2
cmp dword [esp + 0x18], 2
jne 0x4010f2
mov eax, dword [esp + 0xc]
cmp eax, 5
ja 0x4010b5
jne 0x4010f2
cmp dword [esp + 0x10], 1
jb 0x4010f2
mov edx, dword [str.EnablePrefetcher]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters]
push edx
mov edx, 0x80000002
call fcn.00401000
add esp, 8
test al, al
je 0x4010f2
mov al, byte [esp + 4]
and al, 1
pop ebx
mov ecx, dword [esp + 0x98]
call fcn.00403314
add esp, 0x9c
ret
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
call fcn.00403314
add esp, 0x9c
ret

Function at 0x401110
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4093f4]
mov dword [esp + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401156
mov eax, dword [esp + 0xd0]
push eax
push str.ADOBE_READLOGGER_CMD:COMMENT:_s
lea ecx, [esp + 8]
push 0xc7
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0xc8]
call fcn.00403314
add esp, 0xcc
ret

Function at 0x401390
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4013ac
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401490
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4014d1
cmp dword [esi + 0x20], 0xffffffff
jne 0x4014d1
cmp dword [esi + 0x18], 0x10
jb 0x4014ac
mov eax, dword [esi + 4]
jmp 0x4014af
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
sete al
mov byte [esi + 0x1d], al
mov esi, dword [esi + 0x20]
cmp esi, 0xffffffff
je 0x401598
cmp byte [ebx], 0
jne 0x401598
mov eax, dword [ebx + 4]
test eax, eax
jne 0x401519
mov cl, byte [esp + 0xc]
test cl, cl
mov eax, 2
je 0x4014ff
mov eax, 0x1000002
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401519
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401598
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x401598
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x40154a
mov ecx, eax
test ecx, ecx
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.00401410
add esp, 8
test al, al
pop edi
je 0x401584
mov eax, dword [esp + 4]
test eax, eax
je 0x401584
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
mov ecx, edx
test ecx, ecx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
setne al
pop esi
pop ecx
ret

Function at 0x4015b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4015d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4093f4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x40165c
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40165c
mov dword [ebp - 0x150], 1
jmp 0x401628
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x40164f
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40164d
jmp 0x40164f
jmp 0x401619
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
call fcn.00403314
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jg 0x40193e
jl 0x401922
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x7fffffff
ja 0x40193e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jg 0x401943
jl 0x40193e
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x80000001
jae 0x401943
jmp 0x4019d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4019d5
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x4019d5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.00401860
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019c8
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x4019ca
jmp 0x4019d5
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x401978
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x403a31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x50]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x28], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x402b47
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x50], edi
jbe 0x402adf
lea ecx, [edx + 0xc]
mov edx, eax
jmp 0x402ac0
mov eax, dword [ecx]
cmp eax, edi
jbe 0x402ac8
mov edi, eax
add ecx, 0x10
dec edx
jne 0x402ac0
cmp edi, 0x100000
mov dword [esp + 0x50], edi
mov eax, 0x406d18
ja 0x402ae3
lea eax, [esp + 0x50]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004032de
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x402b09
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
jne 0x402b47
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x407494
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x406d1c
call sub.MSVCR71.dll__CxxThrowException
mov ecx, ebp
imul ecx, ecx, 0x44
add ecx, 4
push ecx
call fcn.004032de
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebx
mov byte [esp + 0x28], 2
je 0x402b7f
push 0x401dc0
push 0x401d80
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403458
jmp 0x402b81
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x402bb1
cmp eax, ebx
je 0x402bae
mov edx, dword [eax - 4]
lea ebp, [eax - 4]
push 0x401dc0
push edx
push 0x44
push eax
call fcn.004033f8
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x2c], ebx
jne 0x402be4
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x407494
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x406d1c
call sub.MSVCR71.dll__CxxThrowException
mov ecx, esi
call fcn.00402720
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x24
Function at 0x4034c0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x407020
call fcn.00403734
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403500
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403500
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403518
cmp eax, 0x20b
je 0x403505
mov dword [ebp - 0x1c], ebx
jmp 0x40352c
cmp dword [ecx + 0x84], 0xe
jbe 0x403500
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403526
cmp dword [ecx + 0x74], 0xe
jbe 0x403500
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x409434], 0xffffffff
or dword [0x409438], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40942c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x409428]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x409430], eax
call fcn.004037d6
call fcn.00403876
cmp dword [0x409418], ebx
jne 0x40358c
push fcn.00403876
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00403864
push 0x409010
push 0x40900c
call sub.MSVCR71.dll__initterm
push 0x40381a
call fcn.004037c4
mov eax, dword [0x409424]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x409420]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4035e0
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x409008
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40365e
cmp al, bl
je 0x40360a
cmp dword [ebp - 0x20], ebx
jne 0x40365e
mov al, byte [esi]
cmp al, bl
je 0x40361a
cmp al, 0x20
ja 0x40361a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40360a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x403636
movzx eax, word [ebp - 0x54]
jmp 0x403639
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00403230
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403656
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4036b3
cmp al, 0x22
jne 0x40366d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x403680
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4035f8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040376f
ret
Function at 0x40309f
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x795914]
mov edi, eax
sub esi, dword [0x40b004]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403275
push dword [0x79d924]
call fcn.004032b2
push ebp
push ebp
push dword [0x40b004]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79d920], esi
mov dword [0x795910], ebp
mov eax, dword [0x795918]
mov ebx, 0x4000
sub eax, dword [0x79d924]
cmp eax, ebx
jg 0x403112
mov ebx, eax
mov esi, 0x7918d0
push ebx
push esi
call fcn.00403280
test eax, eax
je 0x403240
add dword [0x79d924], ebx
mov dword [0x40b008], esi
mov dword [0x40b00c], ebx
cmp dword [0x7a2768], ebp
je 0x4031a3
cmp dword [0x7a2800], ebp
jne 0x4031a3
cmp dword [esp + 0x10], ebp
je 0x403170
mov eax, dword [0x79d920]
push ebp
sub eax, dword [0x795914]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b004]
mov dword [0x795910], eax
call fcn.00405e0d
jmp 0x4031a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x4031a3
mov eax, dword [0x7a2764]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bca
push ebp
push 0x6f
push dword [0x7a2760]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b008
mov dword [0x40b010], 0x7898d0
mov dword [0x40b014], 0x8000
call fcn.00405eae
test eax, eax
jl 0x403249
mov esi, dword [0x40b010]
mov eax, 0x7898d0
sub esi, eax
je 0x40320a
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403245
cmp esi, dword [esp + 0x14]
jne 0x403245
add dword [0x40b004], esi
cmp dword [0x40b00c], ebp
jne 0x403138
jmp 0x403216
cmp dword [0x40b00c], ebp
jne 0x403249
cmp ebx, ebp
je 0x403249
mov eax, dword [0x795914]
mov ecx, eax
sub ecx, dword [0x40b004]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030fc
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40324e
or eax, 0xffffffff
jmp 0x403277
push 0xfffffffffffffffe
jmp 0x40324b
push 0xfffffffffffffffd
pop eax
jmp 0x403277
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403275
mov eax, dword [0x79d920]
push ebp
push ebp
push 0x113
push esi
mov dword [0x795910], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4