joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4611f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ed218
push 0x558140
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x604e14]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x461256
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x4612b1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x461280
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2c]
jmp 0x4612b1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4612ac
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f60
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0x5af5b0
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call fcn.00460c60
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x464127
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.0045bce0
push eax
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
push edx
call fcn.00460e10
add esp, 4
push 0
push 0
push 0
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.imagehlp.dll_BindImageEx]
test eax, eax
je 0x46411d
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
lea ecx, [ebp - 0x228]
push ecx
call fcn.00460c60
add esp, 0x1c
mov dword [ebp - 0x230], eax
push 0
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
push eax
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4640e2
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4640e2
push 0x8000
push 0
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
mov ecx, dword [ebp - 0x238]
call fcn.00461100
mov dword [ebp - 0x11c], 1
jmp 0x4640ff
cmp dword [ebp - 0x22c], 0
je 0x4640ff
push 0x8000
push 0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00460e10
add esp, 4
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x464125
mov eax, dword [ebp - 0x11c]
jmp 0x464135
jmp 0x46412f
mov eax, dword [ebp - 0x11c]
jmp 0x464135
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret
Function at 0x465d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0045bfd0
test eax, eax
jne 0x465d84
xor eax, eax
jmp 0x465ea9
xor edx, edx
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov ecx, 1
mov word [ebp - 0x16], cx
mov edx, 1
mov word [ebp - 0x14], dx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 0x14]
mov byte [ebp - 0x12], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x18]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x28]
mov ax, word [edx + 0xc]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + 0xe]
mov word [ebp - 0xc], dx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], 0x16
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x465e16
xor eax, eax
jmp 0x465ea9
mov byte [ebp - 0x20], 0x89
mov byte [ebp - 0x1f], 0x50
mov byte [ebp - 0x1e], 0x4e
mov byte [ebp - 0x1d], 0x47
cmp dword [ebp + 0x10], 4
jb 0x465e42
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00558f15
add esp, 0xc
test eax, eax
je 0x465e6c
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x16
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x465e6c
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x465ea9
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x465e98
mov eax, dword [ebp - 0x24]
push eax
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x465ea9
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00460e10
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x465f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0045bfd0
test eax, eax
jne 0x465f74
xor eax, eax
jmp 0x4660a5
xor edx, edx
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov ecx, 2
mov word [ebp - 0x16], cx
mov edx, 1
mov word [ebp - 0x14], dx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 0x20]
mov byte [ebp - 0x12], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x24]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x28]
mov ax, word [edx + 0xc]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + 0xe]
mov word [ebp - 0xc], dx
mov eax, dword [ebp + 0x10]
sub eax, 4
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], 0x16
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x46600c
xor eax, eax
jmp 0x4660a5
mov byte [ebp - 0x20], 0x89
mov byte [ebp - 0x1f], 0x50
mov byte [ebp - 0x1e], 0x4e
mov byte [ebp - 0x1d], 0x47
cmp dword [ebp + 0x10], 4
jb 0x466038
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00558f15
add esp, 0xc
test eax, eax
je 0x466062
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x16
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x466062
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x4660a5
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 4
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x466094
mov eax, dword [ebp - 0x24]
push eax
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x4660a5
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00460e10
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x466150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0045bfd0
test eax, eax
jne 0x466175
xor eax, eax
jmp 0x466246
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, 0x4d42
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
mov dword [ebp - 0x1a], ecx
xor edx, edx
mov word [ebp - 0x16], dx
xor eax, eax
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx]
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.004657a0
movzx eax, ax
lea ecx, [esi + eax + 0xe]
mov dword [ebp - 0x12], ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4661df
xor eax, eax
jmp 0x466246
push 0
lea eax, [ebp - 4]
push eax
push 0xe
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x466209
mov eax, dword [ebp - 8]
push eax
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466246
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x466235
mov edx, dword [ebp - 8]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466246
mov eax, dword [ebp - 8]
push eax
call fcn.00460e10
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x466680
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4666b4
xor eax, eax
jmp 0x466760
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4666ee
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466760
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46672c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0052604e
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466760
mov eax, dword [ebp - 0x14]
push eax
call fcn.00460e10
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.004662f0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052604e
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x466c70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x466ca4
xor eax, eax
jmp 0x466d50
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x466cde
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466d50
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x466d1c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0052604e
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x466d50
mov eax, dword [ebp - 0x14]
push eax
call fcn.00460e10
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00466770
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052604e
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x466de0
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x434], ecx
mov eax, dword [ebp + 0x18]
push eax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x434]
call fcn.0046a090
mov word [ebp - 8], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x430]
push ecx
push 0
push 0x5af9ac
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x430]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x466e76
xor eax, eax
jmp 0x466fd6
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.0045bce0
push eax
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00460e10
add esp, 4
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00480940
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp + 0x10], 0
je 0x466ed6
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x438], ecx
jmp 0x466ee0
movzx edx, word [ebp + 0x14]
mov dword [ebp - 0x438], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x400
movzx edx, word [ebp - 8]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
mov edx, dword [ebp - 0x224]
push edx
call fcn.00480b70
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x430]
push edx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x21c], eax
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0xc], eax
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00460e10
add esp, 4
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.00461100
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 0x14
Function at 0x466ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x467024
xor eax, eax
jmp 0x4670dd
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46705e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x4670dd
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46709c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0052604e
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x4670dd
mov eax, dword [ebp - 0x14]
push eax
call fcn.00460e10
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00466de0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052604e
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4670f0
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x434], ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x430]
push ecx
push 0
push 0x5af9b4
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x430]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x46716a
xor eax, eax
jmp 0x4672e7
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.0045bce0
push eax
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00460e10
add esp, 4
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00480940
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp + 0x1c], 0
je 0x4671ca
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x438], ecx
jmp 0x4671d4
movzx edx, word [ebp + 0x20]
mov dword [ebp - 0x438], edx
cmp dword [ebp + 0x10], 0
je 0x4671e5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x43c], eax
jmp 0x4671ef
movzx ecx, word [ebp + 0x14]
mov dword [ebp - 0x43c], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 0x28]
push ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
mov edx, dword [ebp - 0x224]
push edx
call fcn.00480b70
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x430]
push edx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x21c], eax
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0045ee00
add esp, 4
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00460e10
add esp, 4
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.00461100
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 0x24
Function at 0x467300
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x467334
xor eax, eax
jmp 0x467402
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00526059
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x467371
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x467402
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4673af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0052604e
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x467402
mov eax, dword [ebp - 0x14]
push eax
call fcn.00460e10
add esp, 4
movzx ecx, word [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
movzx eax, word [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004670f0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052604e
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x20