joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b791
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478f96
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x13c], 0
push 0x482165
lea ecx, [ebp - 0x38]
call fcn.00401c41
mov dword [ebp - 4], 1
and dword [ebp - 0xec], 0
and dword [ebp - 0xf0], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0xc0], 0
push 0x482608
push 0x482620
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
je 0x40b884
and dword [ebp - 0x134], 0
push 0x3c
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.0044b400
add esp, 0xc
mov dword [ebp - 0x134], 0x40
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0xe8]
push 0
push 0x100000
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
call fcn.0044dd30
mov dword [ebp - 0xec], eax
push 0
push 0x100000
push dword [ebp - 0x120]
push dword [ebp - 0x124]
call fcn.0044dd30
mov dword [ebp - 0xf0], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b8f3
mov dword [ebp - 0x138], 4
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 0
push 0x482660
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b8f3
cmp dword [ebp - 0x138], 4
jne 0x40b8f3
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x482668
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x18], 0
je 0x40b902
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0xe4], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0xe0]
rep stosd dword es:[edi], eax
push str.GetNativeSystemInfo
push 0x482684
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40b94c
lea eax, [ebp - 0xe4]
push eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xc0], eax
push dword [ebp - 0xf0]
push dword [ebp - 0xec]
push dword [ebp - 0xc0]
push dword [ebp - 0x10]
push str._d_d_d_d
lea eax, [ebp - 0xbc]
push eax
call fcn.00417dbe
add esp, 0x18
lea eax, [ebp - 0xbc]
push eax
call fcn.0044af10
pop ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402207
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401cb5
mov eax, dword [ebp - 0x13c]
or eax, 1
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401ecc
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x41215b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x44], ecx
and dword [ebp - 0x40], 0
mov esi, str.TENINSTIP
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 0x34], 0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 0x3c], 0
and dword [ebp - 4], 0
and dword [ebp - 0x38], 0
push dword [ebp + 8]
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push str.Global_s__X__d
push 0x1f
lea eax, [ebp - 0x34]
push eax
call fcn.0044edc4
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x41222a
push 0
push 0
push 0
push 4
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412205
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0044b840
add esp, 0xc
mov dword [ebp - 0x40], 1
jmp 0x412228
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str._ProcessHelp__RetrieveGameImagePathByProcessId_MapViewOfFile_fail__hListMap:_p__err:_d
push 0x48197b
push 4
call fcn.0040479d
add esp, 0x14
jmp 0x41224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
push str._ProcessHelp__RetrieveGameImagePathByProcessId_OpenFileMappingA_fail__iamge_path:_s__err:_d
push 0x48197b
push 4
call fcn.0040479d
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x41225d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x3c], 0
je 0x41226c
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 0xc
Function at 0x41227f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x840], ecx
cmp dword [ebp + 8], 0
je 0x4122ac
cmp dword [ebp + 0xc], 0
je 0x4122ac
cmp dword [ebp + 0x10], 0
jne 0x4122b1
jmp 0x4123ee
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
xor eax, eax
mov word [ebp - 0x830], ax
push 0x40e
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.0044b400
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4122f3
jmp 0x4123ee
mov esi, 0x483778
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x834], 0
lea eax, [ebp - 0x830]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x834], 0
jne 0x4123ee
mov eax, dword [ebp - 0x838]
movzx eax, word [eax]
test eax, eax
je 0x4123ee
mov eax, dword [ebp - 0x838]
mov ax, word [eax]
mov word [ebp - 0xc], ax
push 0x208
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4123be
lea eax, [ebp - 0x420]
push eax
call fcn.0044b4a8
pop ecx
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0x208
jae 0x4123be
push dword [ebp - 0x83c]
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 8]
call fcn.0044de7d
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x834], eax
je 0x4123be
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0044df1b
add esp, 0x14
mov eax, dword [ebp - 0x838]
movzx eax, word [eax]
test eax, eax
je 0x4123db
mov eax, dword [ebp - 0x838]
inc eax
inc eax
mov dword [ebp - 0x838], eax
jmp 0x4123be
mov eax, dword [ebp - 0x838]
inc eax
inc eax
mov dword [ebp - 0x838], eax
jmp 0x412311
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 0xc

Function at 0x42ab80
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x483da8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42abb7
jmp 0x42abfb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.MHz
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x42abe5
jmp 0x42abfb
mov eax, dword [ebp - 8]
imul eax, eax, 0xf4240
xor ecx, ecx
mov dword [0x498c60], eax
mov dword [0x498c64], ecx
leave
ret
Function at 0x42b224
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], ecx
cmp dword [ebp + 8], 0
jne 0x42b244
xor al, al
jmp 0x42b3af
cmp dword [ebp + 0xc], 0
jle 0x42b257
cmp dword [ebp + 0x10], 0
jne 0x42b257
xor al, al
jmp 0x42b3af
push 0x483df4
push dword [ebp + 8]
call fcn.0044f592
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42b276
xor al, al
jmp 0x42b3af
mov eax, dword [str.FREP0001X_H]
mov dword [ebp - 0x40], eax
mov eax, dword [0x498c6c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x498c60]
mov dword [ebp - 0x38], eax
mov eax, dword [0x498c64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push dword [ebp - 0xc]
push 1
push 0x28
lea eax, [ebp - 0x40]
push eax
call fcn.0044f45c
add esp, 0x10
cmp eax, 1
je 0x42b2dc
push dword [ebp - 0xc]
call fcn.0044f291
pop ecx
xor al, al
jmp 0x42b3af
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0xc]
shl ecx, 6
add eax, ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0044bd74
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call fcn.0044b400
add esp, 0xc
push dword [ebp - 8]
mov eax, dword [ebp - 0x50]
push dword [eax + 4]
mov ecx, dword [ebp - 0x50]
call fcn.0042b5c1
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
imul eax, eax, 0x4c
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
and dword [ebp - 0x44], 0
jmp 0x42b33d
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jge 0x42b374
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*4], 0
je 0x42b369
push 0x3f
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
push dword [ecx + eax*4]
push 0x40
push dword [ebp - 4]
call fcn.0044f16f
add esp, 0x10
mov eax, dword [ebp - 4]
add eax, 0x40
mov dword [ebp - 4], eax
jmp 0x42b336
mov byte [ebp - 0x11], 1
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.0044f45c
add esp, 0x10
cmp eax, 1
je 0x42b394
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call fcn.0044b831
pop ecx
push dword [ebp - 0xc]
call fcn.0044f291
pop ecx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 0xc
Function at 0x42b3bd
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x134], ecx
push dword [ebp + 8]
push str._s.bak.perf
lea eax, [ebp - 0x120]
push eax
call fcn.0042ce46
add esp, 0xc
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x134]
call fcn.0042b224
movzx eax, al
test eax, eax
jne 0x42b42a
xor al, al
jmp 0x42b5b3
push 0x483e04
lea eax, [ebp - 0x120]
push eax
call fcn.0044f592
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42b44d
xor al, al
jmp 0x42b5b3
push 0x483e08
push dword [ebp + 8]
call fcn.0044f592
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x42b47b
push dword [ebp - 0x14]
call fcn.0044f291
pop ecx
xor al, al
jmp 0x42b5b3
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x128]
call fcn.0044bd74
pop ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], eax
push dword [ebp - 0x128]
push 0
push dword [ebp - 4]
call fcn.0044b400
add esp, 0xc
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0044f89a
add esp, 0xc
test eax, eax
jne 0x42b57a
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x124]
call fcn.0044f89a
add esp, 0xc
test eax, eax
je 0x42b529
jmp 0x42b57a
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0044f7f3
add esp, 0x10
cmp eax, 1
je 0x42b543
jmp 0x42b57a
push dword [ebp - 0x124]
push 1
push dword [ebp - 0x128]
push dword [ebp - 4]
call fcn.0044f45c
add esp, 0x10
cmp eax, 1
je 0x42b563
jmp 0x42b57a
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0xc], eax
jmp 0x42b4fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x130], eax
push dword [ebp - 0x130]
call fcn.0044b831
pop ecx
push dword [ebp - 0x14]
call fcn.0044f291
pop ecx
push dword [ebp - 0x124]
call fcn.0044f291
pop ecx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 0x10
Function at 0x42b789
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0
jne 0x42b79f
xor al, al
jmp 0x42b8bf
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
call fcn.0042c9b8
movzx eax, al
test eax, eax
jne 0x42b7be
xor al, al
jmp 0x42b8bf
push 0x483e0c
push dword [ebp + 8]
call fcn.0044f592
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42b7dd
xor al, al
jmp 0x42b8bf
cmp dword [ebp + 0xc], 0
jne 0x42b7e7
and dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x14]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0044bd74
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x42b82c
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0044b840
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044ec8d
pop ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
mov ecx, dword [ebp - 0x30]
call fcn.0042b6e9
mov byte [ebp - 0x11], 1
push dword [ebp - 8]
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0044f45c
add esp, 0x10
cmp eax, 1
je 0x42b8a4
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0044b831
pop ecx
push dword [ebp - 8]
call fcn.0044f291
pop ecx
mov al, byte [ebp - 0x11]
leave
ret 0x10
Function at 0x42c9b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x40], ecx
push 0x483e30
push dword [ebp + 8]
call fcn.0044f592
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42c9e7
jmp 0x42ca5f
push dword [ebp - 8]
push 1
push 0x28
lea eax, [ebp - 0x38]
push eax
call fcn.0044f7f3
add esp, 0x10
cmp eax, 1
je 0x42ca0c
push dword [ebp - 8]
call fcn.0044f291
pop ecx
jmp 0x42ca5f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call fcn.0044f291
pop ecx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0xc]
je 0x42ca2d
jmp 0x42ca5f
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jne 0x42ca3b
mov al, 1
jmp 0x42ca70
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jle 0x42ca49
jmp 0x42ca5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.0042b3bd
jmp 0x42ca70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.0042b224
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 0xc
Function at 0x42d608
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x42d62d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x42d633
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 4
push 0
push 1
push 3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0xffffffff
jne 0x42d65e
xor al, al
jmp 0x42d6c7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42d67e
xor al, al
jmp 0x42d6c7
cmp dword [ebp - 4], 0
ja 0x42d68d
cmp dword [ebp - 8], 0x1400000
jb 0x42d6b3
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42d6b3
xor al, al
jmp 0x42d6c7
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
leave
ret

Function at 0x42d6c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x42d6ee
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x42d6f4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42d714
xor al, al
jmp 0x42d716
mov al, 1
leave
ret 4
Function at 0x42e664
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x42e66c
xor eax, eax
jne 0x42e66c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42e68d
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
and dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x42e6a4
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x42e6e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42e6cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x42e6cb
push dword [ebp - 4]
call fcn.0042e722
pop ecx
jmp 0x42e6e8
push dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42e6e6
call fcn.0042e6ec
jmp 0x42e6e8
xor eax, eax
leave
ret 4

Function at 0x42e928
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
xor eax, eax
jne 0x42e941
xor eax, eax
jne 0x42e941
cmp dword [ebp + 8], 0
jne 0x42e994
lea eax, [ebp - 0x110]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x42e97c
call fcn.0042e6ec
jmp 0x42ea8d
cmp dword [ebp - 0x228], 0x100
jbe 0x42e992
mov eax, 0x80020013
jmp 0x42ea8d
jmp 0x42e9ce
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.0044fc6f
add esp, 0x10
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x22c]
call fcn.0042ea9b
pop ecx
cmp eax, 0x50
jne 0x42e9ce
mov eax, 0x80020013
jmp 0x42ea8d
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4841b4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x42e9f7
call fcn.0042e6ec
jmp 0x42ea8d
mov byte [ebp - 0x115], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0x101
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
call fcn.0044fc6f
add esp, 0x10
mov dword [ebp - 0x230], eax
push dword [ebp - 0x230]
call fcn.0042ea9b
pop ecx
mov dword [ebp - 0x224], 0xc
and dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10c], ecx
push 0
lea eax, [ebp - 0x224]
push eax
push 0x2100
push 2
push 0
mov eax, dword [ebp - 0x238]
push dword [eax + 0x10c]
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
mov ecx, dword [ebp - 0x238]
call fcn.0042eb11
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b3ec
leave
ret 8
Function at 0x431850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47d15a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4997d0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x18], ebp
call fcn.00431510
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x54], esi
je 0x43193a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp esi, 1
jbe 0x4318f1
mov eax, edx
cmp ecx, 8
jae 0x4318cb
lea eax, [esp + 0x34]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x4318d8
cmp eax, 0x5c
jne 0x4318f1
mov eax, edx
cmp ecx, 8
jae 0x4318e3
lea eax, [esp + 0x34]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x431904
cmp eax, 0x5c
je 0x431904
mov eax, edx
cmp ecx, 8
jae 0x4318fc
lea eax, [esp + 0x34]
cmp word [eax + esi*2 - 2], 0x3a
jne 0x43193a
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [esp + 0x3c]
mov word [esp + 0x20], cx
mov esi, 7
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
call fcn.00402393
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 1
lea ebx, [esi - 6]
jmp 0x43195e
mov esi, 7
xor eax, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
mov ebx, 2
lea eax, [esp + 0x58]
mov dword [esp + 0x80], ebx
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebp
push ebp
mov word [edi], cx
push eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.00402393
or ebx, 4
test bl, 2
je 0x431997
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 8
jb 0x431997
mov edx, dword [esp + 0x58]
push edx
call fcn.0044b831
add esp, 4
test bl, 1
je 0x4319bf
cmp dword [esp + 0x2c], 8
jb 0x4319b0
mov eax, dword [esp + 0x18]
push eax
call fcn.0044b831
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], 8
jb 0x4319d3
mov edx, dword [esp + 0x34]
push edx
call fcn.0044b831
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044b3ec
add esp, 0x70
ret 4