joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409030
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x439290
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.00425380
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
test edi, edi
jne 0x409069
lea edi, [esp + 8]
push edi
mov ecx, esi
call fcn.004077c0
test al, al
jne 0x40909b
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.004253c0
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.00407be0
test al, al
jne 0x4090cd
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.004253c0
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 0x409109
mov cl, byte [esi + 0x59]
test cl, cl
je 0x4090eb
mov eax, dword [esp + 0x3c]
push edi
push eax
mov ecx, esi
call fcn.00408d30
jmp 0x40913a
test al, al
je 0x409109
mov cl, byte [esi + 0x59]
test cl, cl
jne 0x409105
mov ecx, dword [esp + 0x3c]
push edi
push ecx
mov ecx, esi
call fcn.00408f00
jmp 0x40913a
test al, al
jne 0x40912d
mov al, byte [esi + 0x59]
test al, al
je 0x40912d
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.00408e10
jmp 0x40913a
mov edx, dword [esp + 0x3c]
push edi
push edx
mov ecx, esi
call fcn.00408f70
mov bl, al
mov al, byte [esi + 0x5b]
test al, al
je 0x40917b
lea ecx, [esi + 0x5c]
call fcn.004235e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40917b
lea ecx, [esp + 0x10]
call fcn.00414020
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00414620
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.004141b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004253c0
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 0x40a370
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.0040a3c0
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.0040a3c0
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret 4
Function at 0x4148e0
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 0x41491f
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41490a
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x414917
add esi, ecx
cmp ebx, esi
jb 0x414921
inc edi
add eax, 0x28
cmp edi, edx
jb 0x414900
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x415020
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43979b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00427870
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.004278c0
test al, al
je 0x415085
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.004182e0
jmp 0x4150d9
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4150c5
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.004182e0
jmp 0x4150d9
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.004183a0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.004278b0
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x415110
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4397bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00427870
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.004278c0
test al, al
je 0x415175
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.004182e0
jmp 0x4151c9
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4151b5
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.004182e0
jmp 0x4151c9
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.004183a0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.004278b0
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x4152f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4397fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
lea ecx, [esp + 4]
call fcn.00427870
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
call fcn.004278c0
test al, al
je 0x41535e
mov dl, byte [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
xor eax, eax
test dl, dl
setne al
push eax
call fcn.00418770
mov ecx, dword [esp + 0xb0]
push eax
call fcn.00418770
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x41538d
mov dl, byte [esp + 0xb4]
xor ecx, ecx
test dl, dl
setne cl
push ecx
mov ecx, dword [esp + 0xb4]
call fcn.00418410
mov ecx, dword [esp + 0xb0]
push eax
call fcn.00418410
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.004278b0
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4157c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43989b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
lea ecx, [esp]
call fcn.00427870
lea ecx, [esp]
mov dword [esp + 0xa0], 0
call fcn.004278c0
test al, al
je 0x415819
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
call fcn.00418770
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x415834
mov ecx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
call fcn.00418410
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 4]
setne bl
mov dword [esp + 0xa4], 0xffffffff
call fcn.004278b0
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret

Function at 0x415870
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4398bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
lea ecx, [esp]
call fcn.00427870
lea ecx, [esp]
mov dword [esp + 0xa0], 0
call fcn.004278c0
mov ecx, dword [esp + 0xa8]
test al, al
je 0x4158c1
call fcn.00418770
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4158cd
call fcn.00418410
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 4]
setne bl
mov dword [esp + 0xa4], 0xffffffff
call fcn.004278b0
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret

Function at 0x415900
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4398db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
lea ecx, [esp]
call fcn.00427870
lea ecx, [esp]
mov dword [esp + 0xa0], 0
call fcn.004278c0
test al, al
je 0x415959
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
call fcn.00418770
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x415974
mov ecx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
call fcn.00418410
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
push ebx
lea ecx, [esp + 4]
setne bl
mov dword [esp + 0xa4], 0xffffffff
call fcn.004278b0
mov ecx, dword [esp + 0x9c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4159f0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439903
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x78
mov byte [eax], 0
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
test ebx, ebx
push edi
jne 0x415a25
xor eax, eax
jmp 0x415b39
cmp byte [ebx], 0
jne 0x415a31
xor eax, eax
jmp 0x415b39
lea ecx, [esp + 0x2c]
call fcn.004180d0
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0
call fcn.004182e0
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.004155b0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x415a82
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], eax
call fcn.00418190
xor eax, eax
jmp 0x415b39
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x415b0e
test esi, esi
je 0x415aeb
lea ecx, [esp + 0x10]
call fcn.00414020
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 1
call fcn.00414620
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.004235e0
push eax
mov ecx, esi
call dword [ebp + 0x10]
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
push str.Failed_to_get_file_size
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call fcn.004141b0
push 0
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.00418190
xor eax, eax
jmp 0x415b39
push 0
push edi
call fcn.004246e0
mov ecx, dword [esp + 0xa8]
add esp, 8
mov dword [esp + 0x90], 0xffffffff
mov byte [ecx], 1
lea ecx, [esp + 0x2c]
call fcn.00418190
mov eax, ebp
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x415b60
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439923
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x78
mov byte [eax], 0
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
test ebx, ebx
push edi
jne 0x415b95
xor eax, eax
jmp 0x415caa
cmp word [ebx], 0
jne 0x415ba2
xor eax, eax
jmp 0x415caa
lea ecx, [esp + 0x2c]
call fcn.004180d0
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0
call fcn.004183a0
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.004155b0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x415bf3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], eax
call fcn.00418190
xor eax, eax
jmp 0x415caa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x415c7f
test esi, esi
je 0x415c5c
lea ecx, [esp + 0x10]
call fcn.00414020
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 1
call fcn.00414620
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.004235e0
push eax
mov ecx, esi
call dword [ebp + 0x10]
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
push str.Failed_to_get_file_size
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call fcn.004141b0
push 0
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.00418190
xor eax, eax
jmp 0x415caa
push 0
push edi
call fcn.004246e0
mov ecx, dword [esp + 0xa8]
add esp, 8
mov dword [esp + 0x90], 0xffffffff
mov byte [ecx], 1
lea ecx, [esp + 0x2c]
call fcn.00418190
mov eax, ebp
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x416170
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4399e8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x34]
test edi, edi
je 0x416281
cmp byte [edi], 0
je 0x416281
mov esi, dword [esp + 0x38]
push esi
push edi
call fcn.00415df0
add esp, 8
test al, al
jne 0x4161e5
test esi, esi
je 0x416293
mov eax, dword [esi]
push edi
push str.delete_filename
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]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41626e
test esi, esi
je 0x416293
lea ecx, [esp + 8]
call fcn.00414020
push str.DeleteFile:
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00413cf0
lea ecx, [esp + 8]
call fcn.00414620
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 edi, dword [esi]
lea ecx, [esp + 8]
call fcn.004235e0
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004141b0
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x416293
mov eax, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [eax + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4167d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439ad3
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4167fe
xor al, al
jmp 0x416955
cmp byte [ebx], 0
jne 0x41680a
xor al, al
jmp 0x416955
lea ecx, [esp + 0x30]
call fcn.004180d0
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0
call fcn.004182e0
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004153c0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x41687c
test esi, esi
je 0x416861
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
push str.Failed_to_write_complete_file__7_
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00418190
xor al, al
jmp 0x416955
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x416934
mov ebp, dword [esp + 0xa4]
test ebp, ebp
je 0x416934
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebp
je 0x416934
test esi, esi
je 0x416911
lea ecx, [esp + 0x14]
call fcn.00414020
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 1
call fcn.00414620
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x2c]
mov ebx, dword [esi]
lea ecx, [esp + 0x14]
call fcn.004235e0
push eax
mov ecx, esi
call dword [ebx + 0x10]
mov eax, dword [esi]
push str.Failed_to_write_complete_file__1_
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0
call fcn.004141b0
push 0
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00418190
xor al, al
jmp 0x416955
push 0
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00418190
mov al, 1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x416970
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439afe
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
mov ebp, dword [esp + 0xf0]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
jne 0x4169a3
xor al, al
jmp 0x416b15
lea ecx, [esp + 0x30]
call fcn.004180d0
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0xf4], ebx
call fcn.004183a0
mov esi, dword [esp + 0x104]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004153c0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x416a51
cmp esi, ebx
je 0x416a36
lea ecx, [esp + 0x8c]
call fcn.004180d0
push ebp
lea ecx, [esp + 0x90]
mov byte [esp + 0xf4], 1
call fcn.004183a0
mov edi, dword [esi]
lea ecx, [esp + 0x8c]
call fcn.00418980
push eax
push str.utf8Filename
mov ecx, esi
call dword [edi + 0x2c]
mov edx, dword [esi]
push str.Failed_to_write_complete_file__6_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf0], bl
call fcn.00418190
lea ecx, [esp + 0x30]
mov dword [esp + 0xf0], 0xffffffff
call fcn.00418190
xor al, al
jmp 0x416b15
mov eax, dword [esp + 0xfc]
cmp eax, ebx
je 0x416af5
mov ebp, dword [esp + 0x100]
cmp ebp, ebx
je 0x416af5
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebp
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebp
je 0x416af5
cmp esi, ebx
je 0x416ad3
lea ecx, [esp + 0x14]
call fcn.00414020
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 2
call fcn.00414620
mov ebp, dword [esi]
lea ecx, [esp + 0x14]
call fcn.004235e0
push eax
mov ecx, esi
call dword [ebp + 0x10]
mov edx, dword [esi]
push str.Failed_to_write_complete_file__3_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], bl
call fcn.004141b0
push ebx
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0xf0], 0xffffffff
call fcn.00418190
xor al, al
jmp 0x416b15
push ebx
push edi
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0xf0], 0xffffffff
call fcn.00418190
mov al, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret
Function at 0x416f10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439b6e
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0xdb
je 0x416f44
xor ebp, ebp
push ebp
call fcn.00404e80
add esp, 4
jmp 0x416f46
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x416f60
mov cl, byte [esi + 5]
test cl, cl
jne 0x416f5d
push eax
call fcn.00430938
add esp, 4
mov dword [esi + 8], ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov byte [esi + 5], 0
call fcn.004180d0
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x9c], ebp
call fcn.004183a0
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004155b0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x416fbe
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], eax
call fcn.00418190
xor al, al
jmp 0x417135
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x417033
test edi, edi
je 0x41700d
lea ecx, [esp + 0x18]
call fcn.00414020
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00414620
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.004235e0
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.004141b0
push 0
push ebx
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00418190
xor al, al
jmp 0x417135
test ebp, ebp
jne 0x41705c
push ebp
push ebx
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00418190
mov al, 1
jmp 0x417135
lea edi, [ebp + 4]
push edi
call fcn.004313b4
mov edx, eax
mov ecx, edi
mov dword [esi + 8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
push ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xa4]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x4170f7
test esi, esi
je 0x4170f2
lea ecx, [esp + 0x18]
call fcn.00414020
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.00414620
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.004235e0
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.004141b0
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x417112
test esi, esi
je 0x41710d
mov edx, dword [esi]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call dword [edx + 0x10]
mov byte [esp + 0x13], 0
push 0
push ebx
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00418190
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
Function at 0x423920
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
mov byte [edi], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esi + 0x2c], 0
call fcn.004238b0
mov edx, dword [esp + 0x14]
mov ebx, dword [esi + 8]
add ebx, edx
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, ebx
cmp ecx, eax
mov dword [esi + 8], ebx
jbe 0x42395a
mov dword [esi + 8], eax
push eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
call fcn.004238b0
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4239c4
cmp ebx, ebp
jbe 0x423996
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x30], eax
push edi
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
cmp byte [edi], 0
je 0x4239c4
mov byte [esi + 0x2c], 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
test eax, eax
je 0x4239c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esi + 0x30]
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x12c
jbe 0x4239c4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x30], eax
push edi
mov edx, dword [ecx]
call dword [edx + 8]
cmp byte [edi], 0
je 0x4239c4
mov byte [esi + 0x2c], 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x423c80
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
je 0x423e29
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x423e29
push ebx
call fcn.00423c50
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00413c70
mov eax, 0x55555556
xor esi, esi
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x423d78
mov dword [esp + 0x20], edx
jmp 0x423cd1
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [esi + ebp]
inc esi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + ebp]
mov dl, byte [esi + eax + 1]
inc esi
mov ebp, ecx
mov ecx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [0x4489f4]
inc esi
sar ecx, 2
and ecx, 0x3f
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00413bc0
mov edx, dword [0x4489f4]
mov ecx, ebp
sar ecx, 4
and ebx, 3
and ecx, 0xf
shl ebx, 4
or ecx, ebx
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00413bc0
mov ebx, dword [esp + 0x10]
mov edx, dword [0x4489f4]
mov ecx, ebx
and ebp, 0xf
sar ecx, 6
and ecx, 3
shl ebp, 2
or ecx, ebp
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00413bc0
mov ecx, dword [0x4489f4]
and ebx, 0x3f
mov dl, byte [ebx + ecx]
mov ecx, edi
push edx
call fcn.00413bc0
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x423ccd
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x423de1
dec edx
jne 0x423e29
xor ebx, ebx
mov ecx, dword [0x4489f4]
mov bl, byte [esi + ebp]
xor edx, edx
mov dl, byte [esi + ebp + 1]
mov eax, ebx
sar eax, 2
and eax, 0x3f
mov esi, edx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00413bc0
mov ecx, dword [0x4489f4]
mov eax, esi
sar eax, 4
and ebx, 3
and eax, 0xf
shl ebx, 4
or eax, ebx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00413bc0
mov eax, dword [0x4489f4]
and esi, 0xf
mov cl, byte [eax + esi*4]
push ecx
jmp 0x423e19
xor edx, edx
mov ecx, dword [0x4489f4]
mov dl, byte [esi + ebp]
mov esi, edx
mov eax, esi
sar eax, 2
and eax, 0x3f
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00413bc0
mov eax, dword [0x4489f4]
and esi, 3
shl esi, 4
mov cl, byte [esi + eax]
push ecx
mov ecx, edi
call fcn.00413bc0
push 0x3d
mov ecx, edi
call fcn.00413bc0
push 0x3d
mov ecx, edi
call fcn.00413bc0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc