joyce8/EMBER2024-capa huggingface dataset:
Function at 0x575530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b9edf
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x22c]
add ecx, 0x40
call fcn.00574670
test eax, eax
je 0x5756e2
cmp dword [ebp + 0xc], 0
je 0x5756e2
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.007202b0
add esp, 0xc
mov ecx, dword [ebp - 0x22c]
add ecx, 0x34
call fcn.00405e80
push eax
push 0x103
lea ecx, [ebp - 0x21c]
push ecx
push 0x7f8ad8
push 0x7f8adc
push 0x7f8ae4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x224]
call fcn.004068d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0x40
call fcn.00574720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00405ef0
mov ecx, dword [ebp - 0x22c]
add ecx, 0x40
call fcn.005746a0
mov ecx, eax
call fcn.00403b90
movzx ecx, al
test ecx, ecx
je 0x5756b3
push 0x7f8b18
mov edx, dword [ebp - 0x22c]
add edx, 0x30
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00403a70
add esp, 0xc
mov dword [ebp - 4], 1
push str.360wallpaper_360safe.exe
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00403a70
add esp, 0xc
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x22c]
add ecx, 0x40
call fcn.005746c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00405ef0
mov ecx, dword [ebp - 0x22c]
add ecx, 0x40
call fcn.00574740
test eax, eax
je 0x5756e2
push 0x7f8b60
mov ecx, dword [ebp - 0x22c]
call fcn.00575290
mov edx, dword [ebp - 0x22c]
mov dword [edx + 0x24], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x576980
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba06d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], ecx
mov ax, word [0x7f9118]
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.007202b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x7f911c
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x576a1f
xor eax, eax
jmp 0x576aec
lea ecx, [ebp - 0x220]
call fcn.00405e90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x220]
call fcn.00403b40
push eax
push 0x7f9134
push 0x7f9138
push 0x7f9144
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.00403ba0
push 0x7f9154
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040cb00
add esp, 8
movzx edx, al
test edx, edx
jne 0x576aa6
push 0x7f9168
lea eax, [ebp - 0x220]
push eax
call fcn.0040cb00
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x576aca
mov dword [ebp - 0x224], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00405ef0
mov eax, dword [ebp - 0x224]
jmp 0x576aec
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00405ef0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret
Function at 0x5774b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.007202b0
add esp, 0xc
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x60], 0x44
mov dx, word [ebp + 0x10]
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x57752d
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x577890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [0x7f9311]
mov byte [ebp - 0x2008], al
push 0x1fff
push 0
lea ecx, [ebp - 0x2007]
push ecx
call fcn.007202b0
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x200c], 0
je 0x5778f0
cmp dword [ebp - 0x200c], 0x1fff
jbe 0x5778f7
xor eax, eax
jmp 0x5779c4
lea ecx, [ebp - 0x2008]
push ecx
mov edx, dword [ebp - 0x200c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5779c2
lea ecx, [ebp - 0x2014]
push ecx
lea edx, [ebp - 0x2010]
push edx
push 0x7f938c
lea eax, [ebp - 0x2008]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5779c2
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.007202b0
add esp, 0xc
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x2010]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x7f9390
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00579c30
add esp, 0x1c
mov eax, 1
jmp 0x5779c4
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret
Function at 0x577d10
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [0x7f9313]
mov byte [ebp - 0x88], al
push 0x7f
push 0
lea ecx, [ebp - 0x87]
push ecx
call fcn.007202b0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00578a00
push 0x100
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x577d7c
xor al, al
jmp 0x577dc5
mov dword [ebp - 0x8c], 0
jmp 0x577d97
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x8c]
cmp dword [eax + ecx*4], 0
je 0x577dc3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + ecx*4]
push edx
mov ecx, dword [ebp + 8]
call fcn.00578980
jmp 0x577d88
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret

Function at 0x57a5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0x7f9690
mov ecx, dword [ebp + 8]
call fcn.00405e80
push eax
call fcn.0072b299
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x57a6a6
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0072b14e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0072b056
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0072b14e
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call fcn.0070a654
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0072ae9c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jne 0x57a67d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [ebp - 8], 1
jmp 0x57a69a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00704960
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
push edx
call fcn.0072ab63
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x57b8c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba624
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004b6530
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CUpLoadMgr.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.006001b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0057b970
push 0x18
call fcn.00704930
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x57c5a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x57c5fd
push 0x7d0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x57c5e6
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x57c61d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov esp, ebp
pop ebp
ret

Function at 0x57c630
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x57c68d
push 0x7d0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x57c676
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x57c6ad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0
mov esp, ebp
pop ebp
ret
Function at 0x57c720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x57c72e
jmp 0x57c78a
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x24
call fcn.0057ce30
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x57c76b
jmp 0x57c78a
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x57c7c0
push 0
push 0
call fcn.007263d8
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
pop ebp
ret 8

Function at 0x57c8e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x57c8f4
jmp 0x57c9b9
cmp dword [ebp + 0xc], 0
jne 0x57c8ff
jmp 0x57c9b9
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x44
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0057ce50
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x34], 0
jne 0x57c93c
jmp 0x57c9b9
mov dword [ebp - 8], 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00704930
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x57c972
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.007202b0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x57c979
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x57c9c0
push 0
push 0
call fcn.007263d8
add esp, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x57caa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x57caae
jmp 0x57cb0a
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x44
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0057ce50
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x34], 0
jne 0x57caeb
jmp 0x57cb0a
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x57cb10
push 0
push 0
call fcn.007263d8
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], eax
pop ebp
ret 8
Function at 0x586820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.007202b0
add esp, 0xc
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
call fcn.00405e80
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
call fcn.00405e80
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x5868a4
cmp dword [ebp - 4], 0
je 0x5868a4
cmp dword [ebp + 0x10], 0
je 0x58689a
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret

Function at 0x5868b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bb677
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x10]
call fcn.00405e90
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.00405e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x586995
mov ecx, dword [ebp + 0xc]
call fcn.00405e80
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0058a260
add esp, 8
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x124]
call fcn.0040ca00
push eax
lea ecx, [ebp - 0x114]
call fcn.005888b0
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x12c]
call fcn.005806e0
push eax
lea ecx, [ebp - 0x10]
call fcn.00406890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.005806b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403420
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405d50
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x587ba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
je 0x587bb2
cmp dword [ebp + 0xc], 0
jne 0x587bbc
mov eax, 0x80070057
jmp 0x587c7d
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x587c78
mov edx, dword [ebp - 8]
push edx
call fcn.0070a654
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x587bfb
mov eax, 0x8007000e
jmp 0x587c7d
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x587c66
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x7fa83c
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x587c66
cmp dword [ebp - 0x10], 0
je 0x587c66
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00725356
add esp, 4
xor eax, eax
jmp 0x587c7d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00725356
add esp, 4
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret

Function at 0x58c7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push 0x7fa9d8
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0072b89e
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0072b81c
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret

Function at 0x58c830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0072b81c
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret
Function at 0x58dab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80024
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x80024], ecx
push 0x7fab44
mov eax, dword [ebp + 8]
push eax
call fcn.0072bc72
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58daeb
xor al, al
jmp 0x58db66
mov ecx, 1
test ecx, ecx
je 0x58db58
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x80024]
mov ecx, dword [eax + 0x19]
push ecx
push 1
lea edx, [ebp - 0x80008]
push edx
call fcn.0072ae9c
add esp, 0x10
mov dword [ebp - 0x8000c], eax
cmp dword [ebp - 0x8000c], 0
jne 0x58db24
jmp 0x58db58
lea eax, [ebp - 0x80020]
push eax
mov ecx, dword [ebp - 0x8000c]
push ecx
lea edx, [ebp - 0x80008]
push edx
call fcn.00594710
add esp, 0xc
lea eax, [ebp - 0x80020]
push eax
mov ecx, dword [ebp - 0x80024]
add ecx, 0x55
call fcn.0058e510
jmp 0x58daeb
mov ecx, dword [ebp - 4]
push ecx
call fcn.0072ab63
add esp, 4
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 4

Function at 0x594460
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x5947a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.00405e80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5947e7
mov dword [ebp - 0x28], 0
lea ecx, [ebp + 8]
call fcn.00405ef0
mov eax, dword [ebp - 0x28]
jmp 0x5948a2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x18], 0xffffffff
jne 0x59481e
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 0x18], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x594868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x594868
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp + 8]
call fcn.00405ef0
mov eax, dword [ebp - 0x2c]
jmp 0x5948a2
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
lea ecx, [ebp + 8]
call fcn.00405ef0
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret