joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4236a6
Capabilities:
Check if file exists

Disassembly:
push 0x26c
mov eax, 0x43c6e5
call fcn.004380ee
mov esi, ecx
lea edi, [esi + 0x150]
push str.deploySelf
push edi
call fcn.004026dd
cmp byte [ebp + 8], 0
pop ecx
pop ecx
je 0x4238a3
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00423646
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push 7
pop ebx
cmp dword [ebp - 0x21c], ebx
cmova eax, dword [ebp - 0x230]
push eax
push str.Bootstrapper::deploySelf___Final_file_path_S
push edi
call fcn.004026dd
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], ebx
cmova eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x423828
push str._PathFileExists
push edi
call fcn.004026dd
pop ecx
pop ecx
push str.Error_when_getting_bootstrapper_filename_for_selfDeploy
lea ecx, [ebp - 0x278]
call fcn.00402815
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x278]
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0
call fcn.004027a6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040bc27
mov byte [ebp - 4], 2
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], ebx
cmova eax, dword [ebp - 0x248]
push eax
push str.GetModuleFileName:__S
push edi
call fcn.004026dd
cmp dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x248]
mov ecx, edi
cmova eax, dword [ebp - 0x230]
cmp dword [ebp - 0x234], ebx
push eax
cmova edx, dword [ebp - 0x248]
call fcn.0041c60e
cmp dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmova ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x234], ebx
push ecx
cmova eax, dword [ebp - 0x248]
push eax
push str.Copy:_from___S_to__S
push edi
call fcn.004026dd
add esp, 0x20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402ab8
jmp 0x423835
push str.PathFileExists
push edi
call fcn.004026dd
pop ecx
pop ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x260]
push ecx
mov ecx, esi
call dword [eax + 0xa0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
cmp dword [ebp - 0x24c], ebx
cmova ecx, dword [ebp - 0x260]
cmp dword [eax + 0x14], ebx
jbe 0x423879
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00422445
lea ecx, [ebp - 0x278]
call fcn.00402ab8
lea ecx, [ebp - 0x260]
call fcn.00402ab8
lea ecx, [ebp - 0x230]
call fcn.00402ab8
call fcn.0043809d
ret 4

Function at 0x4238ab
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x4384e7
call fcn.004380ee
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4238fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4238fa
push esi
lea eax, [ebp - 0x28]
push str.CreateDirectory__S_failed
push eax
call fcn.0040f0a4
add esp, 0xc
and dword [ebp - 4], 0
mov edx, eax
xor ecx, ecx
call fcn.0041c290
lea ecx, [ebp - 0x28]
call fcn.004027a6
call fcn.0043809d
ret
Function at 0x425db4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xa0]
cmp dword [eax + 0x14], 7
jbe 0x425ddd
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.00437f40
movsd xmm1, qword [0x44ca38]
comisd xmm1, xmm0
ja 0x425e1a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043587c
leave
ret
lea ecx, [esi + 0x11c]
call fcn.00402943
push 0
push str.There_is_not_enough_room_on_your_disk_to_install_Project_X._Please_free_up_some_space_and_try_again.
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push 5
lea ecx, [ebp - 0x14]
call fcn.0042cf4a
push 0x45784c
lea eax, [ebp - 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x428b1e
Capabilities:
Read file via mapping

Disassembly:
push 4
mov eax, 0x43d3bd
call fcn.004380bb
mov esi, ecx
push 0x800
xor edi, edi
push edi
push edi
push 0xf001f
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x428b85
lea ecx, [ebp - 0x10]
call fcn.0041c2bd
mov dword [ebp - 4], edi
push dword [eax]
lea eax, [esi + 0x150]
push str.Could_not_map_view_of_file:__S
push eax
call fcn.004026dd
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00402b3c
cmp dword [esi + 0x34], edi
je 0x428b81
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], edi
mov al, 1
jmp 0x428b99
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
cmp esi, eax
sete al
call fcn.00438089
ret
Function at 0x428f01
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x43d49c
call fcn.004380ee
mov esi, ecx
lea edi, [esi + 0x150]
push str.Bootstrapper::forceMFCStudioCleanup___deleteCurVersionKeys
push edi
call fcn.004026dd
pop ecx
pop ecx
push str.Studio
lea ecx, [ebp - 0x44]
call fcn.0040bc27
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
mov ecx, edi
mov dl, byte [esi + 0x4d]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.0041c9ef
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x44]
call fcn.00402ab8
mov ecx, esi
call fcn.00428ff5
movzx eax, byte [esi + 0x4d]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0042412f
push str.ProjectXStudioBeta.exe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 1
call fcn.0040bc27
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x2c]
call fcn.0042a19c
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
push str.Bootstrapper::forceMFCStudioCleanup___deleting_studio_stub:__S
push edi
call fcn.004026dd
add esp, 0xc
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova ecx, dword [ebp - 0x2c]
call fcn.0042fca7
test al, al
je 0x428fd7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.00402ab8
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
lea ecx, [ebp - 0x74]
call fcn.00402ab8
call fcn.0043809d
ret

Function at 0x42d0f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042d052
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, ebx
cmp dword [ebx + 0x14], 7
jbe 0x42d110
mov eax, dword [ebx]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp + 8], eax
test eax, eax
je 0x42d19e
push eax
call fcn.00435f8e
mov dword [esi + 4], eax
cmp dword [ebx + 0x14], 7
pop ecx
jbe 0x42d134
mov ebx, dword [ebx]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42d19e
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
mov dword [ebp + 8], edi
push eax
push 0x4444a8
push dword [esi + 4]
call ebx
test eax, eax
je 0x42d19e
lea eax, [ebp + 8]
push eax
lea edi, [esi + 8]
push edi
push 0x44bcdc
push dword [esi + 4]
call ebx
test eax, eax
je 0x42d199
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x42d199
mov ecx, dword [edi]
shr eax, 2
mov dword [esi + 0xc], eax
mov ax, word [ecx]
mov word [esi], ax
mov ax, word [ecx + 2]
mov word [esi + 2], ax
xor edi, edi
inc edi
jmp 0x42d1af
cmp dword [esi + 4], edi
je 0x42d1af
push dword [esi + 4]
call fcn.00435c1c
pop ecx
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e554
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x43dc6d
call fcn.00438124
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
and dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push 7
lea eax, [edi + 0x14]
pop esi
cmp dword [eax], esi
jbe 0x42e57e
mov ecx, dword [edi]
lea eax, [edi + 0x14]
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e5e9
mov eax, edi
cmp dword [edi + 0x14], esi
jbe 0x42e595
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e5e9
lea ecx, [ebp - 0x20]
call fcn.0041c2bd
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp dword [ecx], esi
jbe 0x42e5bf
mov edi, dword [edi]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
push dword [ecx]
push edi
push str.Failed_to_delete_fileName__S_:__S
push eax
call fcn.004026dd
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402b3c
lea edi, [ebx + 0x14]
mov ecx, ebx
cmp dword [edi], esi
jbe 0x42e5fc
mov ecx, dword [ebx]
lea eax, [ebx + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x42e5ff
mov dword [ebp - 0x18], edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e662
mov eax, ebx
cmp dword [edi], esi
jbe 0x42e612
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e662
lea ecx, [ebp - 0x1c]
call fcn.0041c2bd
mov edi, eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp dword [eax], esi
jbe 0x42e63b
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [edi]
push ebx
push str.Failed_to_delete_path__S_:__S
push eax
call fcn.004026dd
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402b3c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
xor edx, edx
push 0
push 0
cmp byte [eax + 4], dl
push str.SoftwareRobloxRegETags
sete dl
add edx, 0x80000001
call fcn.0041c3df
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], esi
jbe 0x42e691
mov eax, dword [eax]
push 1
push 0x43ff90
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405a63
lea ecx, [ebp - 0x2c]
call fcn.004058ae
call fcn.00438089
ret 0xc
Function at 0x42eae1
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28a0
call fcn.00437fe0
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x289c]
mov esi, ecx
push eax
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x289c], esi
mov dword [ebp - 0x289c], esi
push eax
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 0x42eb71
cmp eax, 0x47
je 0x42eb71
mov ecx, dword [ecx]
test ecx, ecx
jne 0x42eb2c
xor eax, eax
lea edi, [ebp - 0x2898]
stosd dword es:[edi], eax
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.0040f0a4
add esp, 0xc
jmp 0x42ebbf
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.0040f0a4
add esp, 0x28
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0043587c
leave
ret
Function at 0x4306e9
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 0x43059e
push 0x12c
push 1
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret

Function at 0x4309b3
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x2c
mov eax, 0x43e0bc
call fcn.0043815a
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov edi, esi
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00402815
push 0xf0000000
push 1
push ebx
push ebx
lea edi, [esi + 0x18]
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x30]
call fcn.004027a6
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00402815
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 3
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x30]
call fcn.004027a6
mov eax, esi
call fcn.004380ac
ret

Function at 0x430a8e
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x424
mov eax, 0x43e0f3
call fcn.004380ee
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call dword [sym.imp.MSVCP140.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.MSVCP140.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, [ebp - 0x410]
mov ecx, edi
push eax
call dword [sym.imp.MSVCP140.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 esi, dword [edi + 8]
lea ecx, [ebp - 0x428]
push str.Failed_CryptHashData
call fcn.00402815
and dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push 0
push esi
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea edx, [ebp - 0x428]
mov ecx, eax
call fcn.0041c290
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.004027a6
xor esi, esi
cmp dword [edi + 0xc], esi
jg 0x430abe
jl 0x430b27
cmp dword [edi + 8], esi
ja 0x430abe
call fcn.0043809d
ret 4
Function at 0x430c8f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430ce9
cmp dword [ebp - 0x108], 2
jne 0x430ce9
cmp dword [ebp - 0x114], 6
sbb al, al
inc al
jmp 0x430ceb
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043587c
leave
ret
Function at 0x4314a4
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push 0x240
mov eax, 0x43e319
call fcn.004380ee
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x22c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x43164d
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], ebx
push eax
push 0x43144a
mov byte [ebp - 0x214], 0
call dword [sym.imp.USER32.dll_EnumWindows]
xor bl, bl
cmp byte [ebp - 0x214], bl
je 0x43161f
xor eax, eax
inc eax
mov byte [edi + 0x58], al
imul eax, dword [edi + 8], 0xa
and dword [ebp - 0x228], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
test eax, eax
jle 0x431588
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x10]
cmp eax, 0x102
push 1
pop eax
movzx ebx, bl
cmovne ebx, eax
mov eax, dword [ebp - 0x228]
dec dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x228], eax
test ecx, ecx
je 0x43169e
push dword [ebp - 0x220]
and ecx, 0xfffffffe
push eax
lea eax, [edi + 0x18]
push eax
call dword [ecx + 4]
add esp, 0xc
test al, al
je 0x431680
mov eax, dword [ebp - 0x224]
test bl, bl
je 0x431524
jmp 0x431646
mov ecx, dword [edi + 0x38]
test ecx, ecx
jne 0x4315a3
lea ecx, [ebp - 0x238]
call fcn.004102b3
mov byte [ebp - 4], 2
jmp 0x4316ad
and ecx, 0xfffffffe
lea eax, [edi + 0x40]
push eax
call dword [ecx + 4]
pop ecx
push 8
mov edi, eax
call fcn.0043596a
pop ecx
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x212]
mov byte [ebp - 4], 3
push ecx
push edi
push ecx
mov ecx, eax
call fcn.0043241a
mov edi, eax
mov dword [ebp - 0x228], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x43161b
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 0x219], bl
call dword [eax + 4]
test al, al
jne 0x43165c
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431655
mov al, bl
test al, al
je 0x4315e2
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
test bl, bl
jne 0x431646
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x43163d
cmp dword [ebp - 0x220], 0x103
jne 0x431646
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043809d
ret 4
xor eax, eax
lea ebx, [eax + 1]
jmp 0x431613
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
je 0x431613
push eax
lea ecx, [ebp - 0x24c]
call fcn.0042cf6d
push 0x4578a4
lea eax, [ebp - 0x24c]
jmp 0x431698
push 7
lea ecx, [ebp - 0x23c]
call fcn.0042cf4a
push 0x45784c
lea eax, [ebp - 0x23c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0x238]
call fcn.004102b3
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00417296
int3
Function at 0x4316b5
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e369
mov eax, dword fs:[0]
push eax
mov eax, 0x183c
call fcn.00437fe0
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1830], ebx
lea eax, [ebp - 0x1840]
push eax
push 0x1000
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
mov eax, dword [ebp - 0x1840]
xor esi, esi
and dword [ebp - 0x1834], esi
xor edi, edi
shr eax, 2
mov dword [ebp - 0x182c], eax
mov dword [ebp - 0x183c], esi
mov dword [ebp - 0x1838], edi
and dword [ebp - 4], edi
test eax, eax
je 0x431807
lea ebx, [ebp - 0x1810]
push dword [ebx]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1844], esi
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4317dc
xor eax, eax
lea ecx, [ebp - 0x1828]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x810]
push eax
call fcn.0040bc27
mov eax, dword [ebp - 0x1830]
push ecx
add eax, 0x5c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1828]
call fcn.0040bb0e
cmp eax, 0xffffffff
je 0x4317d1
cmp edi, dword [ebp - 0x1834]
je 0x4317be
mov eax, dword [ebx]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x1838], edi
jmp 0x4317d1
push ebx
push edi
lea ecx, [ebp - 0x183c]
call fcn.00431869
mov edi, dword [ebp - 0x1838]
lea ecx, [ebp - 0x1828]
call fcn.00402ab8
mov byte [ebp - 4], 0
test esi, esi
je 0x4317eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
sub dword [ebp - 0x182c], 1
jne 0x43173e
mov esi, dword [ebp - 0x183c]
mov ebx, dword [ebp - 0x1830]
mov byte [ebx + 0x58], 0
jmp 0x431819
push dword [esi]
mov ecx, ebx
call fcn.004314a4
add esi, 4
cmp esi, edi
jne 0x43180d
mov bl, byte [ebx + 0x58]
lea ecx, [ebp - 0x183c]
call fcn.00431847
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043587c
leave
ret
Function at 0x43220b
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]
mov ebx, ecx
push edi
test esi, esi
je 0x432269
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x432269
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432239
shr eax, 4
and eax, 1
jmp 0x43226b
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 0x432285
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.0043220b
push edi
test eax, eax
jne 0x432272
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 0x432269
xor eax, eax
inc eax
jmp 0x43226b
Function at 0x43228a
Capabilities:
Timestomp file

Disassembly:
push 0x4c
mov eax, 0x43e4cd
call fcn.004380ee
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push ebx
push str.SetFileModTime_couldnt_open__S
push eax
call fcn.0040f0a4
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
mov edx, eax
setne cl
call fcn.0041c290
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_GetFileTime:__S
push eax
call fcn.0040f0a4
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
push eax
call fcn.0040f0a4
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
push ecx
shr ecx, 0x10
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
push eax
call fcn.0040f0a4
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_SetFileTime:__S
push eax
call fcn.0040f0a4
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c290
lea ecx, [ebp - 0x2c]
call fcn.004027a6
test esi, esi
je 0x4323e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043809d
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [edi]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [edi + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, cl
add eax, dword [edi + 4]
mov dword [edi], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [esi + ecx*4]
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
ret