joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062e8
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x45ade8], 0x55004e
mov dword [0x45adec], 0x4c
mov edi, 0x400
mov ebp, 0x45ade8
je 0x40633e
push 1
push 0
push esi
call fcn.00406192
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40645d
cmp eax, edi
jg 0x40645d
mov esi, 0x45b5e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40645d
cmp eax, edi
jg 0x40645d
push esi
push ebp
push str._ls_ls_r_n
push 0x45a9e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x46c270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066df
push 4
push 0xc0000000
push esi
call fcn.00406192
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40645d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406456
push edi
push esi
push ebp
call fcn.00406215
test eax, eax
je 0x406456
push str._Rename__r_n
push esi
call fcn.004060f7
test eax, eax
jne 0x4063f4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406429
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060f7
mov ebp, eax
test ebp, ebp
je 0x406425
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406416
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406410
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40642b
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45a9e8
push eax
call fcn.0040614d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406244
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406462
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406485
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062e8
pop ecx
pop ecx
inc dword [0x46c2f0]
ret 8
Function at 0x406570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040650f
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065e0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4065e0
cmp dword [ebp + 0xc], 1
je 0x4065e4
cmp dword [ebp + 0xc], 2
je 0x4065e4
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc
Function at 0x4014cf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x430c68
call fcn.0042773c
sub esp, 0x5c
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040fc40
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0040f6e0
cmp dword [0x44bf90], ebx
mov byte [ebp - 4], 1
je 0x40150d
push 0x44bf80
lea ecx, [ebp - 0x28]
call fcn.0040f990
jmp 0x401542
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
push eax
push 0x439128
call fcn.0040fea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x68]
push 0x439124
push eax
call fcn.0042775b
add esp, 0xc
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040f430
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.004011fe
pop ecx
test al, al
pop ecx
je 0x40160a
cmp dword [0x44bf70], ebx
je 0x40160a
lea ecx, [ebp - 0x40]
call fcn.0040f6e0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.0040f990
push 0x5c
lea ecx, [ebp - 0x40]
call fcn.0040f240
push dword [0x44bf68]
lea ecx, [ebp - 0x40]
call fcn.0040f430
push 1
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x38]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4015fe
lea ecx, [ebp - 0x58]
call fcn.0040f6e0
push str.Failed_to_run
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040f430
push dword [ebp - 0x38]
lea ecx, [ebp - 0x58]
call fcn.0040f430
push str.__check_to_see_if_this_file_is_in_the_Zip_
lea ecx, [ebp - 0x58]
call fcn.0040f430
push ebx
push str.Error
push dword [ebp - 0x50]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040f750
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f750
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040f750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fc70
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430e61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CK_ZipFile.0
mov ecx, dword [esi + 0x2c]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x14], 2
je 0x402cd8
cmp dword [esi + 0x28], 1
jne 0x402cd8
cmp ecx, ebx
je 0x402cd5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x2c], ebx
mov ecx, dword [esi + 0x70]
cmp ecx, ebx
je 0x402cf9
mov eax, dword [ecx + 0x90]
cmp ecx, ebx
mov dword [esi + 0x70], eax
je 0x402cf2
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x70]
cmp ecx, ebx
jne 0x402cdf
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x70], ebx
cmp ecx, ebx
je 0x402d1d
mov eax, dword [ecx + 0xa4]
cmp ecx, ebx
mov dword [esi + 0x68], eax
je 0x402d16
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
jne 0x402d03
lea ecx, [esi + 0x90]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0xa8], bl
mov byte [esp + 0x14], 1
call fcn.0040f750
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.0041b4a0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041b3d0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43132a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
lea ecx, [esi + 0x18]
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 7], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040f6e0
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
call fcn.0040f6e0
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 1
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x4b], bl
mov byte [esi + 0x4c], bl
call fcn.0040f6e0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 2
mov dword [esi + 0x68], ebx
call fcn.0040f6e0
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 3
mov dword [esi + 0x84], ebx
call fcn.00410430
lea ecx, [esi + 0xbc]
mov byte [esp + 0x14], 4
mov byte [esi + 0x9c], 1
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov byte [esi + 0xa8], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
call fcn.0040f6e0
mov ecx, dword [esp + 0xc]
mov dword [esi], vtable.ZipPipeline.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43137a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.ZipPipeline.0
mov al, byte [esi + 0x9c]
xor ebx, ebx
cmp al, bl
mov dword [esp + 0x14], 4
jne 0x4063da
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esi + 0xbc]
call fcn.0040f750
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 3
call fcn.00410720
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 2
call fcn.0040f750
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 1
call fcn.0040f750
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.0040f750
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040f750
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407470
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4314f8
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 4], bl
je 0x4075c5
lea ecx, [esp + 8]
call fcn.0040fc40
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.0040f6e0
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
push str.ckAes.dat
mov byte [esp + 0x48], 1
call fcn.0040fea0
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00410b30
add esp, 0x18
cmp al, bl
jne 0x407547
mov edx, dword [esi + 0xb4]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x10]
call fcn.0040fd30
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
je 0x407516
mov edx, dword [ecx]
push str.Failed_to_AES_encrypt_source_file_data
call dword [edx + 0x10]
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call fcn.0040f750
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040fc70
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
cmp byte [esi + 0x4c], bl
je 0x407556
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x50]
push eax
mov byte [esi + 0x4c], 1
call fcn.0040f9b0
cmp byte [esi + 0x9c], bl
jne 0x40758a
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov byte [esi + 0x9c], 1
jmp 0x407590
mov dword [esi + 0x94], ebx
lea ecx, [esp + 0x20]
mov byte [esi + 4], 1
mov byte [esp + 0x40], bl
call fcn.0040f750
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040fc70
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push edi
lea ecx, [esp + 0x10]
call fcn.00410430
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x38]
lea edi, [esp + 0x10]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push ecx
push edx
mov dword [esp + 0x5c], 2
call fcn.00410d80
add esp, 0x18
cmp al, bl
pop edi
jne 0x40763b
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
je 0x407617
mov eax, dword [ecx]
push str.Failed_to_AES_encrypt_source_data
call dword [eax + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.00410720
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
cmp byte [esi + 0x9c], bl
jne 0x40764f
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0x88]
mov dword [esi + 0x94], ebx
call fcn.004107d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x9c], 1
mov dword [esp + 0x40], 0xffffffff
call fcn.00410720
mov ecx, dword [esp + 0x38]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x407bb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
call fcn.004064a0
test al, al
jne 0x407bc0
pop esi
ret 8
mov ecx, esi
call fcn.00406850
test al, al
jne 0x407bcf
pop esi
ret 8
mov al, byte [esi + 0x48]
push ebx
test al, al
je 0x407c13
mov cl, byte [esi + 0x49]
test cl, cl
je 0x407bf1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004079b0
jmp 0x407c4c
test al, al
je 0x407c13
mov cl, byte [esi + 0x49]
test cl, cl
jne 0x407c0f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.00407ad0
jmp 0x407c4c
test al, al
jne 0x407c3b
mov al, byte [esi + 0x49]
test al, al
je 0x407c3b
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
lea edx, [esi + 0xac]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00407a20
jmp 0x407c4c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.00407b50
mov bl, al
mov al, byte [esi + 0x4c]
test al, al
je 0x407c5f
mov ecx, dword [esi + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret 8

Function at 0x408540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4316ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
lea ecx, [esp + 0x2c]
call fcn.0041ba30
lea ecx, [esp + 0x60]
mov dword [esp + 0xe0], 0
call fcn.00409c20
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 1
call fcn.0041c0a0
lea ecx, [esp]
mov byte [esp + 0xe0], 2
call fcn.0041bd20
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x10], ecx
lea ecx, [esp]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0xe4], 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc0], eax
call fcn.0041c080
push 0xea60
lea ecx, [esp + 0x64]
call fcn.0041c030
mov edx, dword [esp + 0xf4]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0xc8], edx
call fcn.0041bb40
push 0x334
lea ecx, [esp + 0x30]
call fcn.0041bb50
lea ecx, [esp]
mov byte [esp + 0xe0], 2
call fcn.0041bd60
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 1
call fcn.0041c0f0
lea ecx, [esp + 0x60]
mov byte [esp + 0xe0], 0
call fcn.00409c70
lea ecx, [esp + 0x2c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0041bae0
mov ecx, dword [esp + 0xd8]
mov al, 1
mov dword fs:[0], ecx
add esp, 0xe4
ret 0x10
Function at 0x4087e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43176c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f4
lea ecx, [esp + 0x2c]
call fcn.0041ba30
lea ecx, [esp + 0x60]
mov dword [esp + 0x4fc], 0
call fcn.0041c430
lea ecx, [esp + 0x18]
mov byte [esp + 0x4fc], 1
call fcn.0041c0a0
lea ecx, [esp]
mov byte [esp + 0x4fc], 2
call fcn.0041bd20
mov ecx, dword [esp + 0x508]
mov eax, dword [esp + 0x504]
mov edx, dword [esp + 0x50c]
mov dword [esp + 0x10], ecx
lea ecx, [esp]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x500], 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc0], eax
call fcn.0041c080
push 0xea60
lea ecx, [esp + 0x64]
call fcn.0041c030
lea edx, [esp + 0x60]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0xd8], 1
call fcn.0041bb40
push 0x11
lea ecx, [esp + 0x30]
call fcn.0041bb50
mov eax, dword [esp + 0x510]
mov ecx, dword [esp + 0x4e4]
mov dword [eax], ecx
lea ecx, [esp + 0xd8]
call fcn.0041c2d0
mov edx, dword [esp + 0x514]
lea ecx, [esp]
mov byte [esp + 0x4fc], 2
mov byte [edx], al
call fcn.0041bd60
lea ecx, [esp + 0x18]
mov byte [esp + 0x4fc], 1
call fcn.0041c0f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x4fc], 0
call fcn.0041c4f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4fc], 0xffffffff
call fcn.0041bae0
mov ecx, dword [esp + 0x4f4]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x500
ret 0x14

Function at 0x408aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4317ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f4
lea ecx, [esp + 0x2c]
call fcn.0041ba30
lea ecx, [esp + 0x60]
mov dword [esp + 0x4fc], 0
call fcn.0041c430
lea ecx, [esp + 0x18]
mov byte [esp + 0x4fc], 1
call fcn.0041c3a0
lea ecx, [esp]
mov byte [esp + 0x4fc], 2
call fcn.0041bd20
mov ecx, dword [esp + 0x508]
mov eax, dword [esp + 0x504]
mov edx, dword [esp + 0x50c]
mov dword [esp + 0x10], ecx
lea ecx, [esp]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x500], 3
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc0], eax
call fcn.0041c080
push 0xea60
lea ecx, [esp + 0x64]
call fcn.0041c030
lea edx, [esp + 0x60]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0xd8], 1
call fcn.0041bb40
push 0x11
lea ecx, [esp + 0x30]
call fcn.0041bb50
mov eax, dword [esp + 0x510]
mov ecx, dword [esp + 0x4e4]
mov dword [eax], ecx
lea ecx, [esp + 0xd8]
call fcn.0041c2d0
mov edx, dword [esp + 0x514]
lea ecx, [esp]
mov byte [esp + 0x4fc], 2
mov byte [edx], al
call fcn.0041bd60
lea ecx, [esp + 0x18]
mov byte [esp + 0x4fc], 1
call fcn.0041c3e0
lea ecx, [esp + 0x60]
mov byte [esp + 0x4fc], 0
call fcn.0041c4f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4fc], 0xffffffff
call fcn.0041bae0
mov ecx, dword [esp + 0x4f4]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x500
ret 0x14
Function at 0x4099b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 4]
push ecx
call fcn.00409a00
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 8], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.00409a00
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret 4
Function at 0x40fd30
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431a00
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
test edi, edi
je 0x40fe6f
cmp byte [edi], 0
je 0x40fe6f
lea ecx, [esp + 8]
call fcn.0040f6e0
lea eax, [esp + 8]
mov ecx, esi
push eax
push edi
mov dword [esp + 0x48], 0
call fcn.0040fc80
test al, al
jne 0x40fdcb
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x40fdb5
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push str.fail_reason
mov ecx, esi
call dword [eax + 0x2c]
mov edx, dword [esi]
push str.Cannot_delete_file__file_does_not_exist
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040f750
jmp 0x40fe81
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40fe49
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x40fe36
lea ecx, [esp + 0x20]
call fcn.0040f6e0
push str.DeleteFile:
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.0040f430
lea ecx, [esp + 0x20]
call fcn.0040fab0
mov eax, dword [esi]
push str.Cannot_delete_file
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0
call fcn.0040f750
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040f750
jmp 0x40fe81
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040f750
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40fe81
mov edx, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [edx + 0x10]
mov ecx, dword [esp + 0x38]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 8

Function at 0x40fea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x258
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x258
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x264]
mov eax, dword [esp + 0x260]
lea edx, [esp + 4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040fee0
pop esi
add esp, 0x258
ret 8
Function at 0x410120
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431a48
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
test ebp, ebp
jne 0x410159
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
cmp byte [ebp], 0
jne 0x410175
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
lea ecx, [esp + 0xc]
call fcn.0040f6e0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410203
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4101dc
lea ecx, [esp + 0xc]
call fcn.0040fab0
mov eax, dword [esi]
push ebp
push str.filename
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
push str.Failed_to_open_create_file_for_writing
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040f750
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41029d
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x41029d
lea ecx, [esp + 0x34]
push 0
push ecx
push esi
push eax
push edi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x34], esi
je 0x41029d
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41026f
lea ecx, [esp + 0xc]
call fcn.0040fab0
mov edx, dword [esi]
push ebp
push str.filename
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi]
push str.Failed_to_write_complete_file__1_
mov ecx, esi
call dword [edx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040f750
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040f750
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10