joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433c90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44753e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x469034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x469034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x433d02
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], str.Attempt_to_delete_a_null_key
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x18], vtable.std::runtime_error.0
push 0x45bfd4
lea eax, [esp + 0x1c]
push eax
call sub.MSVCR110.dll__CxxThrowException
push esi
lea ecx, [esp + 0x1c]
call fcn.0040bc8b
cmp dword [eax + 0x10], 0
push 0
push 1
lea ecx, [esp + 0x20]
sete bl
call fcn.0040253d
test bl, bl
je 0x433d4e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], str.Attempt_to_delete_an_empty_key
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x18], vtable.std::runtime_error.0
push 0x45bfd4
lea eax, [esp + 0x1c]
jmp 0x433cfc
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jns 0x433d85
lea ecx, [esp + 0x14]
call fcn.00433a72
and dword [esp + 0x40], 0
push dword [eax]
push esi
push str.Failed_to_delete_key__S__S
push dword [esp + 0x1c]
call fcn.00402357
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00402409
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043d698
mov esp, ebp
pop ebp
ret

Function at 0x4342b6
Capabilities:
Delete registry value

Disassembly:
push 0x30
mov eax, 0x447785
call fcn.00440a50
mov bl, dl
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push str.deleteCurVersionKeys
push edi
mov dword [ebp - 4], eax
call fcn.00402357
xor eax, eax
pop ecx
test bl, bl
sete al
pop ecx
push 0x20006
push 0x44c1c0
lea ecx, [ebp - 0x3c]
add eax, 0x80000001
push eax
call fcn.0040eb9e
mov esi, dword [ebp - 0x3c]
test eax, eax
js 0x434367
push str.deleteCurVersionKeys___key_Opened
push edi
call fcn.00402357
mov ebx, dword [ebp - 0x30]
pop ecx
pop ecx
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0043417e
cmp dword [eax + 0x14], 8
jb 0x43432f
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040253d
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0043421a
cmp dword [eax + 0x14], 8
jb 0x434357
mov eax, dword [eax]
push eax
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040253d
test esi, esi
je 0x434372
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004409ff
ret
Function at 0x435359
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x4477ba
call fcn.00440a50
mov edi, edx
mov esi, ecx
push edi
push str.deleteDesktopShortcut____S
push esi
call fcn.00402357
xor ebx, ebx
push ebx
push ebx
push ebx
push 6
pop edx
lea ecx, [ebp - 0x2c]
call fcn.00435d17
add esp, 0x18
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4353f6
push section..data
lea ecx, [ebp - 0x30]
call fcn.004023e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x30]
push str._s_s.lnk
push eax
call fcn.0042dcd3
mov ecx, dword [ebp - 0x30]
add esp, 0x10
call fcn.004361ff
test al, al
je 0x4353ee
push dword [ebp - 0x30]
push str.deleteDesktopShortcut____S
push esi
call fcn.00402357
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 0x30]
call fcn.00402409
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040253d
mov al, bl
call fcn.004409ff
ret

Function at 0x43540a
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x4477ef
call fcn.00440a50
mov bl, dl
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
push str.deleteProgramsShortcut____S
push esi
call fcn.00402357
xor edx, edx
test bl, bl
sete dl
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
add edx, 3
call fcn.00435d17
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4354ab
push section..data
lea ecx, [ebp - 0x2c]
call fcn.004023e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x2c]
push str._s_s.lnk
push eax
call fcn.0042dcd3
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
call fcn.004361ff
test al, al
je 0x4354a3
push dword [ebp - 0x2c]
push str.deleteProgramsShortcut____S
push esi
call fcn.00402357
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.00402409
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040253d
call fcn.004409ff
ret
Function at 0x435969
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28a0
call fcn.004409c0
mov eax, dword [0x469034]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x28a0], 0
push esi
push edi
lea eax, [ebp - 0x289c]
push eax
lea eax, [ebp - 0x2888]
push eax
mov esi, ecx
mov dword [ebp - 0x289c], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x2888]
mov eax, dword [ecx + 0x1a0]
cmp eax, 6
je 0x4359f9
cmp eax, 0x47
je 0x4359f9
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4359af
and dword [ebp - 0x2898], ecx
xor eax, eax
lea edi, [ebp - 0x2894]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2898]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push dword [ebp - 0x2898]
push str._08X
push esi
call fcn.0040fd09
add esp, 0xc
jmp 0x435a47
movzx eax, byte [ecx + 0x19b]
push eax
movzx eax, byte [ecx + 0x19a]
push eax
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x
push esi
call fcn.0040fd09
add esp, 0x28
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043d698
leave
ret
Function at 0x4377c1
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x447d62
call fcn.00440a86
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x4377e5
mov eax, dword [edi]
jmp 0x4377e7
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43784c
cmp dword [edi + 0x14], esi
jb 0x4377fb
mov eax, dword [edi]
jmp 0x4377fd
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43784c
lea ecx, [ebp - 0x18]
call fcn.00433a72
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], esi
jb 0x437827
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x14]
push edi
push str.Failed_to_delete_fileName__S_:__S
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00402409
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], esi
jb 0x437858
mov eax, dword [edi]
jmp 0x43785a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4378bf
cmp dword [edi + 0x14], esi
jb 0x43786e
mov eax, dword [edi]
jmp 0x437870
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4378bf
lea ecx, [ebp - 0x14]
call fcn.00433a72
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x14], esi
jb 0x43789a
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x18]
push edi
push str.Failed_to_delete_path__S_:__S
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402409
xor edx, edx
cmp byte [ebx + 4], dl
push 0
sete dl
push 0
push str.SoftwareProject_EconomyRegETags
lea ecx, [ebp - 0x28]
add edx, 0x80000001
call fcn.00433bae
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4378eb
mov eax, dword [eax]
push 1
push 0x44a168
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e9aa
cmp dword [ebp - 0x28], 0
je 0x43790a
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004409eb
ret 0xc

Function at 0x4382c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 0x48]
mov byte [edi + 0x30], 1
call esi
push 0
push dword [edi + 0x40]
call esi
push 0
push dword [edi + 0x44]
call esi
push 0x438133
push 0x12c
push 1
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x438602
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x24
mov eax, 0x44806b
call fcn.00440abc
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x30], esi
mov byte [esi], bl
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040221e
push 0xf0000000
push 1
push ebx
push ebx
lea edi, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x438654
lea ecx, [ebp - 0x2c]
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
call fcn.00402286
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040221e
lea eax, [esi + 0x1c]
push eax
push ebx
push ebx
push 0x8003
mov byte [ebp - 4], 3
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x438690
lea ecx, [ebp - 0x2c]
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
call fcn.00402286
mov eax, esi
call fcn.00440a0e
ret

Function at 0x4386d6
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44809b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x469034]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x469034]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
push esi
push esi
push esi
mov ecx, edi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push esi
push 0x400
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 8]
push str.Failed_CryptHashData
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.0040221e
and dword [esp + 0x448], 0
push 0
push esi
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x438788
lea ecx, [esp + 0x1c]
call fcn.00433a4b
or dword [esp + 0x448], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402286
xor esi, esi
cmp dword [edi + 0xc], esi
jg 0x438737
jl 0x4387a7
cmp dword [edi + 8], esi
ja 0x438737
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043d698
mov esp, ebp
pop ebp
ret 4
Function at 0x43896d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x469034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4389c7
cmp dword [ebp - 0x108], 2
jne 0x4389c7
cmp dword [ebp - 0x114], 6
jb 0x4389c7
mov al, 1
jmp 0x4389c9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d698
leave
ret
Function at 0x43946c
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4482b5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x183c
call fcn.004409c0
mov eax, dword [0x469034]
xor eax, esp
mov dword [esp + 0x1838], eax
push ebx
push esi
push edi
mov eax, dword [0x469034]
xor eax, esp
push eax
lea eax, [esp + 0x1850]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x24]
push eax
push 0x1000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
mov edi, dword [esp + 0x24]
xor ebx, ebx
and dword [esp + 0x20], ebx
xor esi, esi
shr edi, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
and dword [esp + 0x1858], ebx
test edi, edi
je 0x4395cc
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
push dword [eax]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x28], esi
push 0x400
lea eax, [esp + 0x1048]
push eax
push esi
mov byte [esp + 0x1864], 1
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x43959f
xor eax, eax
and dword [esp + 0x3c], eax
mov word [esp + 0x1842], ax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x1044]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
call fcn.0040caa4
lea eax, [ebx + 0x5c]
mov byte [esp + 0x1858], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x439573
mov eax, dword [eax]
push ecx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.0040cb23
cmp eax, 0xffffffff
je 0x439592
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.0041b003
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.0040253d
mov byte [esp + 0x1858], 0
test esi, esi
je 0x4395b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
dec edi
jne 0x4394fc
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, esi
mov byte [eax + 0x58], 0
cmp esi, ebx
je 0x4395f4
mov esi, eax
push dword [edi]
mov ecx, esi
call fcn.004391cd
add edi, 4
cmp edi, ebx
jne 0x4395dc
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov bl, byte [eax + 0x58]
test esi, esi
je 0x439603
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
pop ecx
mov al, bl
mov ecx, dword [esp + 0x1850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1838]
xor ecx, esp
call fcn.0043d698
mov esp, ebp
pop ebp
ret
Function at 0x439eaa
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
test esi, esi
je 0x439f08
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x439f08
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x439ed8
shr eax, 4
and eax, 1
jmp 0x439f0a
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x439f24
xor ecx, ecx
mov word [eax], cx
push edi
mov ecx, ebx
call fcn.00439eaa
push edi
test eax, eax
jne 0x439f11
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x439f08
xor eax, eax
inc eax
jmp 0x439f0a
Function at 0x439f29
Capabilities:
Timestomp file

Disassembly:
push 0x4c
mov eax, 0x448417
call fcn.00440a50
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x48], esi
push edi
lea eax, [ebp - 0x2c]
push str.SetFileModTime_couldnt_open__S
push eax
mov dword [ebp - 4], ebx
call fcn.0040fd09
add esp, 0xc
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x439f76
mov ecx, eax
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402286
push edi
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_GetFileTime:__S
push eax
call fcn.0040fd09
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x439fb7
mov ecx, ebx
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402286
push edi
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
push eax
call fcn.0040fd09
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push ecx
shr ecx, 0x10
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
jne 0x439ff8
mov ecx, ebx
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402286
push edi
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
push eax
call fcn.0040fd09
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x43a035
mov ecx, ebx
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402286
push edi
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_SetFileTime:__S
push eax
call fcn.0040fd09
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43a077
mov ecx, edi
call fcn.00433a4b
lea ecx, [ebp - 0x2c]
call fcn.00402286
test esi, esi
je 0x43a08a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004409ff
ret 8

Function at 0x43a139
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0xff
mov esi, dword [edi]
mov eax, esi
xor eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
and eax, ebx
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x440400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x440e18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469034]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x4690ec]
cmp eax, 0xffffffff
jne 0x440439
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x440446
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x4404ad
jmp 0x44047c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x4404ea
test edi, edi
jne 0x4404f0
push 0x43f820
push 0x471adc
call fcn.0043f5b0
mov eax, dword [0x4690ec]
add esp, 8
cmp eax, 0xffffffff
je 0x4404ad
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x4404d6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4404d6
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x440528
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x440519
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4404f0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x440470
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x440587
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x44056c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x440587
jmp 0x440560
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x440560
jmp 0x440587
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x440585
cmp esi, dword [eax + 8]
jne 0x440585
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x440575
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x44059b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x44059b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0042d2c2
cmp esi, ebx
jne 0x440540
mov ebp, dword [esp + 0x14]
jmp 0x440470
Function at 0x4405c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x440630
push 0
push 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4405ea
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
push edi
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x44060e
cmp eax, 0xffffffff
je 0x44060e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x47f676eb
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x20092081
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219