joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015f1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43cf34
call fcn.00434688
sub esp, 0x60
lea ecx, [ebp - 0x28]
call fcn.004144c0
and dword [ebp - 4], 0
mov ecx, 0x457cac
call fcn.00413f00
test eax, eax
je 0x401627
push 0x457cac
lea ecx, [ebp - 0x28]
call fcn.00414970
jmp 0x40165b
lea eax, [ebp - 0x28]
push eax
push 0x44a18c
call fcn.00416770
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x6c]
push 0x44a188
push eax
call fcn.00434a95
add esp, 0xc
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00414190
push esi
lea ecx, [ebp - 0x28]
call fcn.004065f0
push eax
push dword [ebp + 8]
call fcn.0040176d
pop ecx
test al, al
pop ecx
je 0x401754
mov esi, 0x457c74
mov ecx, esi
call fcn.00413f00
test eax, eax
je 0x401754
push edi
lea ecx, [ebp - 0x60]
call fcn.004144c0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004065f0
push eax
lea ecx, [ebp - 0x60]
call fcn.00414190
mov esi, 0x457c90
xor edi, edi
mov ecx, esi
call fcn.00413f00
test eax, eax
je 0x4016c3
mov ecx, esi
call fcn.004065f0
mov edi, eax
push 1
lea ecx, [ebp - 0x28]
call fcn.004065f0
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.004065f0
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
jg 0x401748
lea ecx, [ebp - 0x44]
call fcn.004144c0
push str.Failed_to_run
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00414190
lea ecx, [ebp - 0x60]
call fcn.004065f0
push eax
lea ecx, [ebp - 0x44]
call fcn.00414190
push str.__check_to_see_if_this_file_is_in_the_Zip_
lea ecx, [ebp - 0x44]
call fcn.00414190
push 0
push str.Error
lea ecx, [ebp - 0x44]
call fcn.004065f0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00414650
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00414650
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00414650
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x402d90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d1e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00404e20
lea ebp, [esi + 0x20]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1ac], ebx
call fcn.00418540
lea ecx, [esi + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.00423ca0
lea ecx, [esi + 0x5c]
mov byte [esp + 0x1ac], 2
mov dword [esi + 0x44], ebx
mov word [esi + 0x48], bx
mov word [esi + 0x4a], bx
mov word [esi + 0x4c], bx
mov word [esi + 0x4e], bx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov word [esi + 0x58], bx
call fcn.004144c0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1ac], 3
mov byte [esi + 0x78], bl
call fcn.004144c0
lea ecx, [esi + 0x9c]
mov byte [esp + 0x1ac], 4
mov byte [esi + 0x98], bl
call fcn.00423ca0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1ac], 5
call fcn.00423ca0
lea ecx, [esi + 0xc4]
mov byte [esp + 0x1ac], 6
call fcn.00423e90
lea ecx, [esi + 0x100]
mov byte [esp + 0x1ac], 7
mov byte [esi + 0xf4], bl
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], 0x80
call fcn.004144c0
lea ecx, [esi + 0x120]
mov byte [esp + 0x1ac], 8
mov byte [esi + 0x11c], bl
mov byte [esi + 0x11d], bl
call fcn.004144c0
lea ecx, [esi + 0x13c]
mov byte [esp + 0x1ac], 9
call fcn.004144c0
lea edi, [esi + 0x15c]
mov byte [esp + 0x1ac], 0xa
mov ecx, edi
mov dword [esi + 0x158], ebx
call fcn.004144c0
lea ecx, [esi + 0x178]
mov byte [esp + 0x1ac], 0xb
call fcn.004144c0
lea ecx, [esi + 0x198]
mov byte [esp + 0x1ac], 0xc
mov byte [esi + 0x194], bl
call fcn.004144c0
mov byte [esp + 0x1ac], 0xd
lea ecx, [esi + 0x1b8]
mov byte [esi + 0x1b4], bl
call fcn.004144c0
lea ecx, [esi + 0x1d4]
mov byte [esp + 0x1ac], 0xe
call fcn.004144c0
lea ecx, [esi + 0x1f4]
mov byte [esp + 0x1ac], 0xf
mov byte [esi + 0x1f0], bl
call fcn.004144c0
lea ecx, [esi + 0x210]
mov byte [esp + 0x1ac], 0x10
call fcn.004144c0
lea ecx, [esi + 0x22c]
mov byte [esp + 0x1ac], 0x11
call fcn.004144c0
lea ecx, [esi + 0x248]
mov byte [esp + 0x1ac], 0x12
call fcn.004144c0
mov eax, dword [esp + 0x1b4]
mov byte [esp + 0x1ac], 0x13
mov dword [esi + 0x264], eax
mov dword [esi], vtable.ClsZip2.1.0
mov dword [ebp], vtable.ClsZip2.0
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push str.unnamed.zip
lea ecx, [esi + 0x120]
mov dword [esi + 0x2c], eax
call fcn.00414190
lea ecx, [esp + 0x14]
push ecx
push 0x190
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.00414190
push 0xfde9
mov ecx, edi
call fcn.00414890
push 0x44a428
lea ecx, [esi + 0x178]
call fcn.00414190
xor eax, eax
pop edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov word [esi + 0x58], ax
mov ecx, dword [0x44a398]
mov dword [esi + 0x28], ecx
mov eax, dword [0x44a398]
mov ecx, dword [esp + 0x1a0]
inc eax
mov dword [0x44a398], eax
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xcc], 0x80
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4
Function at 0x404150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00403270
push 0x58
call fcn.00434d24
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x404195
mov ecx, eax
call fcn.00425250
jmp 0x404197
xor eax, eax
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
push edi
push ebx
mov ecx, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x158], eax
call fcn.004251d0
mov ecx, dword [esi + 0x158]
push 1
call fcn.00425230
lea ecx, [esp + 0xc]
call fcn.00406730
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.00423ca0
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x44]
push eax
lea edx, [esi + 0x5c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esi + 4]
push eax
push ecx
push edi
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.00406fc0
mov bl, al
test bl, bl
je 0x40421a
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00404710
mov bl, al
test bl, bl
jne 0x40422a
lea ecx, [esp + 0x14]
call fcn.00423df0
mov ecx, esi
call fcn.00403270
lea ecx, [esp + 0x14]
call fcn.00423dc0
lea ecx, [esi + 0x13c]
call fcn.00414030
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00423cc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406760
mov ecx, dword [esp + 0x28]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x405700
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d570
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
test edi, edi
jne 0x405739
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x14
mov ecx, dword [esi + 0x28]
push ebx
mov ebx, 1
mov eax, dword [ecx + 0x88]
cmp eax, 0xc0
jne 0x405756
mov ebx, 2
jmp 0x405762
cmp eax, 0x100
jne 0x405762
mov ebx, 3
call fcn.00407630
push eax
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x8c]
push ecx
mov ecx, edi
call fcn.00425360
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00425d70
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.004144c0
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x30], 1
call fcn.00403240
push eax
lea ecx, [esp + 0x10]
call fcn.00414190
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esi + 0x28]
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00407630
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.00425b60
lea ecx, [esp + 0xc]
mov bl, al
mov byte [esp + 0x30], 0
call fcn.00414650
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.00425da0
mov ecx, dword [esp + 0x28]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0x14
Function at 0x407430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43d748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00418540
xor edi, edi
lea ecx, [esi + 0x60]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov word [esi + 0x10], di
mov word [esi + 0x12], di
mov word [esi + 0x14], di
mov word [esi + 0x16], di
mov word [esi + 0x18], di
mov dword [esi + 0x1a], edi
mov dword [esi + 0x1e], edi
mov dword [esi + 0x22], edi
mov word [esi + 0x26], di
mov word [esi + 0x28], di
mov dword [esi + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x34], di
mov word [esi + 0x36], di
mov word [esi + 0x38], di
mov word [esi + 0x3a], di
mov word [esi + 0x3c], di
mov word [esi + 0x3e], di
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov word [esi + 0x4c], di
mov word [esi + 0x4e], di
mov word [esi + 0x50], di
mov word [esi + 0x52], di
mov word [esi + 0x54], di
mov dword [esi + 0x56], edi
mov dword [esi + 0x5a], edi
call fcn.004144c0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi], vtable.ZipWalkEntry.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407660
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d793
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x34]
call fcn.004185e0
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x98], ebx
call fcn.004144c0
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x98], 1
cmp eax, ebx
je 0x40777d
push eax
lea ecx, [esp + 0x1c]
call fcn.00414190
cmp byte [esp + 0xa0], bl
je 0x4076cf
lea ecx, [esp + 0x18]
call fcn.00414b60
lea ecx, [esp + 0x18]
call fcn.004065f0
push eax
lea ecx, [esp + 0x38]
call fcn.00418850
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00415860
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40777d
mov ecx, dword [edi + 0x30]
cmp ecx, ebx
je 0x407773
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x407773
lea edx, [esp + 0x14]
push ebx
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x30]
cmp eax, ecx
je 0x407773
cmp esi, ebx
je 0x407773
mov edx, dword [esi]
push str.Failed_to_write_data_to_file
mov ecx, esi
call dword [edx + 0x10]
mov ebx, dword [esi]
lea ecx, [esp + 0x18]
call fcn.004065f0
push eax
push str.filename
mov ecx, esi
call dword [ebx + 0x28]
mov ecx, dword [edi + 0x30]
mov eax, dword [esi]
push ecx
push str.data_size
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
push str.bytes_written
mov ecx, esi
call dword [edx + 0x2c]
xor ebx, ebx
push esi
push ebp
call fcn.00424e00
add esp, 8
mov esi, dword [esp + 0xac]
cmp esi, ebx
je 0x4077a0
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], bl
push ecx
mov ecx, edi
call fcn.00407650
push eax
mov ecx, esi
call fcn.00424050
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], bl
call fcn.00414650
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.004186a0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0x10
Function at 0x407970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d7c9
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
call fcn.00423e90
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.004144c0
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 1
mov byte [esi + 0x58], bl
mov byte [esi + 0x59], bl
mov byte [esi + 0x5a], bl
mov byte [esi + 0x5b], bl
call fcn.004144c0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x14], 2
mov dword [esi + 0x78], ebx
call fcn.004173a0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x14], 3
mov byte [esi + 0x90], 1
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov byte [esi + 0x9c], bl
mov dword [esi + 0xa0], 6
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
call fcn.004144c0
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 0x408390
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43d8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call fcn.004144c0
lea eax, [esp + 0x24]
mov ecx, esi
push eax
mov dword [esp + 0x80], 0
call fcn.00407f30
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0xf]
push ebx
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17], 0
call fcn.004065f0
push eax
call fcn.00425400
mov edi, eax
mov al, byte [esp + 0x1b]
add esp, 0xc
test al, al
jne 0x408444
mov edx, dword [ebx]
push str.Failed_to_create_temporary_output_file
mov ecx, ebx
call dword [edx + 0x10]
mov esi, dword [ebx]
lea ecx, [esp + 0x24]
call fcn.004065f0
push eax
push str.filename
mov ecx, ebx
call dword [esi + 0x28]
lea ecx, [esp + 0x24]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00414650
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 4
push edi
lea ecx, [esp + 0x14]
call fcn.00425480
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 1
call fcn.0040b270
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 2
call fcn.00423f20
mov eax, dword [esi + 0xac]
mov byte [esp + 0xf], 0
mov dword [esp + 0x70], eax
mov al, byte [esi + 0x30]
test al, al
je 0x4084a2
lea eax, [esp + 0x10]
lea ecx, [esi + 0x5c]
push eax
call fcn.004065f0
push eax
lea ecx, [esp + 0x48]
call fcn.0040c060
jmp 0x4084c3
lea ecx, [esp + 0x10]
lea ebx, [esi + 0x7c]
push ecx
mov ecx, ebx
call fcn.004065f0
push eax
mov ecx, ebx
call fcn.004172a0
push eax
lea ecx, [esp + 0x4c]
call fcn.0040c1c0
push 0
push edi
mov byte [esp + 0x17], al
call fcn.00424e00
mov al, byte [esi + 0x5b]
add esp, 8
test al, al
je 0x4084f5
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.00413f00
test eax, eax
je 0x4084f5
mov ecx, edi
call fcn.004065f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
mov byte [esi + 0x5b], 1
call fcn.004065f0
push eax
lea ecx, [esi + 0x5c]
call fcn.004149b0
mov al, byte [esi + 0x90]
lea ecx, [esi + 0x7c]
test al, al
jne 0x408526
call fcn.00417350
mov byte [esi + 0x90], 1
jmp 0x40852b
call fcn.00423dc0
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x40]
mov byte [esi + 0x30], 1
mov byte [esp + 0x7c], 1
call fcn.0040b2b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 0
call fcn.004254d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00414650
mov ecx, dword [esp + 0x74]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4
Function at 0x408b40
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d980
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x30]
test al, al
je 0x408c6e
lea ecx, [esp + 0x20]
call fcn.004144c0
lea eax, [esp + 0x20]
mov dword [esp + 0x44], 0
push eax
push str.ckAes.dat
call fcn.00416770
mov ebx, dword [esp + 0x54]
add esp, 8
lea ecx, [esp + 0x20]
lea edi, [esi + 0x5c]
push ebx
call fcn.004065f0
push eax
mov ecx, edi
call fcn.004065f0
push eax
lea ecx, [esi + 0xc]
call fcn.004065f0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call fcn.00417f50
add esp, 0x18
test al, al
jne 0x408c08
push ebx
lea ecx, [esp + 0x24]
call fcn.004065f0
push eax
call fcn.00416510
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push str.Failed_to_AES_encrypt_source_file_data
call dword [eax + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.00414650
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov al, byte [esi + 0x5b]
test al, al
je 0x408c1d
mov ecx, edi
call fcn.004065f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, 1
lea ecx, [esp + 0x20]
mov byte [esi + 0x5b], bl
call fcn.004065f0
push eax
mov ecx, edi
call fcn.004149b0
mov al, byte [esi + 0x90]
lea ecx, [esi + 0x7c]
test al, al
jne 0x408c50
call fcn.00417350
mov byte [esi + 0x90], bl
jmp 0x408c55
call fcn.00423dc0
lea ecx, [esp + 0x20]
mov byte [esi + 0x30], bl
mov dword [esp + 0x44], 0xffffffff
call fcn.00414650
jmp 0x408d3d
lea ecx, [esp + 0xc]
call fcn.004173a0
lea ecx, [esp + 0xc]
lea edi, [esi + 0x7c]
mov ebx, 1
push ecx
mov ecx, edi
mov dword [esp + 0x48], ebx
call fcn.004065f0
push eax
mov ecx, edi
call fcn.004172a0
push eax
lea ecx, [esi + 0xc]
call fcn.004065f0
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call fcn.004181b0
add esp, 0x18
test al, al
jne 0x408cea
mov ecx, dword [esp + 0x4c]
push str.Failed_to_AES_encrypt_source_data
mov edx, dword [ecx]
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004179b0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov al, byte [esi + 0x90]
mov ecx, edi
test al, al
jne 0x408cfd
call fcn.00417350
jmp 0x408d02
call fcn.00423dc0
lea ecx, [esp + 0xc]
call fcn.004065f0
push eax
lea ecx, [esp + 0x10]
call fcn.004172a0
push eax
mov ecx, edi
call fcn.00417af0
lea ecx, [esp + 0xc]
call fcn.00417350
lea ecx, [esp + 0xc]
mov byte [esi + 0x90], bl
mov dword [esp + 0x44], 0xffffffff
call fcn.004179b0
mov ecx, dword [esp + 0x3c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x4093b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43da00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.00425b10
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
test edi, edi
jne 0x4093e9
lea edi, [esp + 8]
push edi
mov ecx, esi
call fcn.00407c60
test al, al
jne 0x40941b
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00425b50
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push edi
mov ecx, esi
call fcn.00407f80
test al, al
jne 0x40944d
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00425b50
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov al, byte [esi + 0x58]
push ebx
test al, al
je 0x409489
mov cl, byte [esi + 0x59]
test cl, cl
je 0x40946b
mov eax, dword [esp + 0x3c]
push edi
push eax
mov ecx, esi
call fcn.004090c0
jmp 0x4094ba
test al, al
je 0x409489
mov cl, byte [esi + 0x59]
test cl, cl
jne 0x409485
mov ecx, dword [esp + 0x3c]
push edi
push ecx
mov ecx, esi
call fcn.00409300
jmp 0x4094ba
test al, al
jne 0x4094ad
mov al, byte [esi + 0x59]
test al, al
je 0x4094ad
mov ecx, dword [esp + 0x3c]
lea edx, [esi + 0xa8]
push edi
lea eax, [esi + 0xa4]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00409230
jmp 0x4094ba
mov edx, dword [esp + 0x3c]
push edi
push edx
mov ecx, esi
call fcn.00409310
mov bl, al
mov al, byte [esi + 0x5b]
test al, al
je 0x4094fb
lea ecx, [esi + 0x5c]
call fcn.004065f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4094fb
lea ecx, [esp + 0x10]
call fcn.004144c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00414ac0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00414650
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00425b50
mov ecx, dword [esp + 0x2c]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x40a6e0
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.0040a730
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.0040a730
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret 4
Function at 0x414d80
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [ecx + 0x18]
push ebx
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test edx, edx
jbe 0x414dbf
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x414daa
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x414db7
add esi, ecx
cmp ebx, esi
jb 0x414dc1
inc edi
add eax, 0x28
cmp edi, edx
jb 0x414da0
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x4154c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43df0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00428870
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.004288c0
test al, al
je 0x415525
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004187f0
jmp 0x415579
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x415565
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004187f0
jmp 0x415579
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.004188b0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.004288b0
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x4155b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43df2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00428870
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.004288c0
test al, al
je 0x415615
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004187f0
jmp 0x415669
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x415655
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004187f0
jmp 0x415669
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.004188b0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.004288b0
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x415790
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x43df6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
lea ecx, [esp + 4]
call fcn.00428870
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
call fcn.004288c0
test al, al
je 0x4157fe
mov dl, byte [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
xor eax, eax
test dl, dl
setne al
push eax
call fcn.00418c80
mov ecx, dword [esp + 0xb0]
push eax
call fcn.00418c80
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x41582d
mov dl, byte [esp + 0xb4]
xor ecx, ecx
test dl, dl
setne cl
push ecx
mov ecx, dword [esp + 0xb4]
call fcn.00418920
mov ecx, dword [esp + 0xb0]
push eax
call fcn.00418920
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
setne bl
call fcn.004288b0
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret