joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456410
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x456470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004498f0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
push 0x10024
push 0x5c3c38
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x456498
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x45654e
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x45652b
push 0x5c3c38
push str.Stopping__s.
call fcn.004498f0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x456507
nop dword [eax]
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x45650a
push 0x5c4cf8
call fcn.004498f0
add esp, 4
push 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x4564e0
mov eax, dword [ebp - 0x1c]
push 0x5c3c38
cmp eax, 1
jne 0x45651b
push 0x5c4cfc
jmp 0x456520
push str._n_s_failed_to_stop._n
call fcn.004498f0
mov ebx, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x456544
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x45654e
push 0x5c3c38
push str._s_is_removed._n
call fcn.004498f0
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
test esi, esi
je 0x456566
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x457130
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589e00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x457175
mov eax, dword [esi]
jmp 0x457177
mov eax, esi
mov byte [eax], 0
cmp dword [ebp + 0x18], 0
jne 0x4571a1
push str.No_input_file_path_data
push 0
push 5
push str.AdobeGCVersionWrapper
push dword [0x602b20]
call fcn.004a36b0
add esp, 0x14
jmp 0x457324
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0045d750
mov edi, eax
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], 0
test edi, edi
mov edx, 0x5c3d00
cmovne edx, edi
xor eax, eax
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4571de
xor ecx, ecx
jmp 0x4571f2
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4571e3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044c2c0
push edi
mov byte [ebp - 4], 1
call fcn.00518a05
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x45721d
push str.Error_converting_ascii_path_to_wide_path
push 0
push 5
jmp 0x4572fc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x45730f
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004feb5b
mov edi, eax
add esp, 4
test edi, edi
je 0x4572f3
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
push ebx
push dword [ebp - 0x30]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4572c5
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x5c405c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4572e8
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4572e8
movzx eax, word [ecx + 0xc]
mov dx, word [ecx + 8]
push esi
push eax
movzx eax, word [ecx + 0xe]
mov cx, word [ecx + 0xa]
push eax
call fcn.00457360
add esp, 0xc
push edi
call fcn.004feb56
add esp, 4
jmp 0x45730f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_retrieving_version_for_file_:__d
push 0
push 2
push str.AdobeGCVersionWrapper
push dword [0x602b20]
call fcn.004a36b0
add esp, 0x18
push edi
call fcn.004feb56
add esp, 4
jmp 0x45730f
push str.Error_creating_memory_for_version
push 0
push 2
push str.AdobeGCVersionWrapper
push dword [0x602b20]
call fcn.004a36b0
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x457324
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044c9a0
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x457339
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00445e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x4589c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a292
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x314], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x31c], esi
mov dword [esi + 0x10], 0
jb 0x458a31
mov eax, dword [esi]
jmp 0x458a33
mov eax, esi
xor ecx, ecx
mov byte [eax], 0
cmp byte [str.unknown], cl
mov eax, 7
cmove eax, ecx
mov ecx, esi
push eax
push str.unknown
call fcn.00448910
push 0x200
lea eax, [ebp - 0x310]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x318], 1
call fcn.00504ee0
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x458b08
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00504ee0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x110], 0
jne 0x458ae7
xor ecx, ecx
jmp 0x458af9
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458af0
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00448910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x458b30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a292
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x314], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x31c], esi
mov dword [esi + 0x10], 0
jb 0x458ba1
mov eax, dword [esi]
jmp 0x458ba3
mov eax, esi
xor ecx, ecx
mov byte [eax], 0
cmp byte [str.unknown], cl
mov eax, 7
cmove eax, ecx
mov ecx, esi
push eax
push str.unknown
call fcn.00448910
push 0x200
lea eax, [ebp - 0x310]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x318], 1
call fcn.00504ee0
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x458c78
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00504ee0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x110], 0
jne 0x458c57
xor ecx, ecx
jmp 0x458c69
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458c60
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00448910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x4591e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0xa30], edx
push ebx
xor ebx, ebx
mov dword [ebp - 0xa2c], eax
test eax, eax
je 0x45936a
push 0x20a
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00504ee0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa28], ax
lea eax, [ebp - 0xa28]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x45936a
mov eax, dword [0x5c4fa0]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x5c4fa4]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0xa28]
mov ax, word [edi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x459350
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x459290
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x459350
push esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xa2c]
call fcn.005197cd
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0xa2c]
jne 0x4592d9
cmp word [eax + esi*2], 0x5c
jne 0x4592d9
mov ebx, 1
jmp 0x4592db
xor ebx, ebx
test ebx, ebx
je 0x459350
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00457780
lea ecx, [ebp - 0x41c]
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459310
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x628]
push 0x105
push eax
call fcn.00519a53
mov ecx, dword [ebp - 0xa30]
lea eax, [ebp - 0x628]
add esp, 0x10
push eax
call fcn.0044c270
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x459350
test ebx, ebx
jne 0x459368
cmp word [edi], bx
jne 0x459262
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x45c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588556
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f11e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004feb64
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00500d30
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45db30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x45dba6
test edi, edi
je 0x45dba6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45db55
sub ecx, edx
je 0x45dba6
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0045ddf0
add esp, 8
test eax, eax
jne 0x45dba6
mov eax, dword [ebp - 0x24]
inc eax
push 1
push eax
call fcn.00518aca
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x45dba6
push 0x5c3460
push edi
call fcn.0045dd30
mov edi, eax
add esp, 8
test edi, edi
jne 0x45dbb9
push dword [esi]
call fcn.00518a05
add esp, 4
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x24]
push 1
push dword [esi]
call fcn.00515f81
push edi
mov esi, eax
call fcn.0050d76e
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x45e080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20c]
mov edi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45e11d
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045d7b0
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45e0c3
sub ecx, edx
je 0x45e0d9
cmp byte [ecx + esi - 1], 0x5c
jne 0x45e0d9
mov byte [ecx + esi - 1], al
mov edx, esi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x45e0e0
sub edx, ecx
or ecx, 0xffffffff
cmp edx, 0x104
cmovb ecx, edx
push ecx
push esi
push 0x104
push edi
call fcn.00519dd1
push esi
call fcn.00518a05
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004feb45
mov esp, ebp
pop ebp
ret

Function at 0x45e1b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x45e214
push 2
push esi
call fcn.00518aca
mov edi, eax
add esp, 8
test edi, edi
je 0x45e214
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x45e1fd
mov word [edi], ax
push edi
call fcn.0051a5d1
push edi
mov esi, eax
call fcn.00518a05
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 0x16
call fcn.0051af8a
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret

Function at 0x45e320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
dec edx
push edi
mov edi, ecx
cmp edx, 0xfe
ja case.0x45e347.2
movzx eax, byte [edx + 0x45e41c]
jmp dword [eax*4 + 0x45e404]
mov esi, 0x2b
jmp 0x45e36f
mov esi, 0x23
jmp 0x45e36f
mov esi, 0x1c
jmp 0x45e36f
mov esi, 0x2a
jmp 0x45e36f
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45e3ad
cmp esi, 0x2c
jne 0x45e3f2
lea edx, [esi - 0x2b]
mov ecx, edi
call fcn.0045e320
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.0045d7b0
mov esi, eax
add esp, 4
test esi, esi
je 0x45e3f2
push 0xffffffffffffffff
push esi
push 0x104
push edi
call fcn.00519dd1
xor ecx, ecx
test eax, eax
push esi
cmovne edi, ecx
call fcn.00518a05
add esp, 0x14
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004feb45
mov esp, ebp
pop ebp
ret
Function at 0x45f700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x45f71e
mov ecx, dword [ecx]
push 0x5c50bc
push ecx
lea eax, [ebp - 8]
push eax
call fcn.00511b4a
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x45f777
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.00515f81
push dword [ebp - 8]
call fcn.0050d76e
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x45f75f
cmp al, 0xfe
je 0x45f768
cmp al, 0xff
jne 0x45f771
cmp cl, 0xfe
jne 0x45f771
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x45f780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x45f7b8
call fcn.0045f700
test al, al
jne 0x45f7b8
mov eax, dword [ebx]
test eax, eax
je 0x45f7b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.00460760
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x45f7c5
mov eax, dword [esi]
jmp 0x45f7c7
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x45f85f
cmp dword [esi + 0x14], 8
jb 0x45f7ef
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x45f81a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 4]
push 0
push ecx
jne 0x45f848
push 2
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp + 8]
mov word [ebp + 8], 0xbbef
push ecx
push eax
mov byte [ebp + 0xa], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45f870
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a976
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5f11e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45f975
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x45f8ee
xor ecx, ecx
jmp 0x45f906
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f8f7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0044c2c0
xor bl, bl
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push 0
cmovae eax, dword [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x45f94a
cmp eax, 0xb7
je 0x45f94a
cmp eax, 0x50
jne 0x45f94c
mov bl, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45f96a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044c9a0
test bl, bl
jne 0x45f975
xor al, al
jmp 0x45fa96
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x45f99f
xor ecx, ecx
jmp 0x45f9bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f9b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0044c2c0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [esi], ax
jne 0x45f9ff
xor ecx, ecx
jmp 0x45fa13
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fa04
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.0044c2c0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00466610
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x45fa59
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.0044c9a0
test bl, bl
je 0x45fa76
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x248]
cmp ecx, eax
je 0x45fa74
push 0xffffffffffffffff
push 0
push eax
call fcn.0044ca80
mov bl, 1
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x45fa94
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0044c9a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004feb45
mov esp, ebp
pop ebp
ret 4
Function at 0x45fcb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45fcc0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x5c50d8
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45fd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x45fd30
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x5c50e0
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4