joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
mov esi, dword [0x446c6c]
push 0xf0
push 0x86
push esi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407b5a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407b5a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407b5a
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
test ax, ax
je 0x407b58
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
add esi, 4
cmp ax, 0x403
mov dword [ebp - 0xa0], ecx
jne 0x407ac8
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], eax
call dword [0x4451a0]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.0040842c
push dword [ebp - 0x94]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x407aa8
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x407b45
push dword [ebp - 0x94]
call fcn.0041ac48
pop ecx
jmp 0x407b45
cmp ax, 0x1234
jne 0x407b45
or dword [ebp - 0xc0], 0xffffffff
lea eax, [ebp - 0x90]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call dword [0x4451a0]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.0040842c
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
mov dword [ebp - 0xbc], eax
je 0x407b1c
push eax
call fcn.0041ac48
pop ecx
lea eax, [ebp - 0xc4]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x407b45
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x407a39
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.0041a6a2
add ebp, 0x74
leave
ret 4
Function at 0x407bdd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x407c27
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x407c4e
shr eax, 2
test al, 1
je 0x407c57
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x407c8a
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x407c89
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x409fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x437e82
call fcn.0041ed67
movzx eax, word [ebp + 8]
push 0x43c52c
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40a0b7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40a0b7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x40a0a1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x40a03a
mov eax, dword [eax + 4]
jmp 0x40a03d
add eax, 4
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040b019
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ab9e
lea esi, [ebp - 0x94]
call fcn.0040bb96
test eax, eax
jne 0x40a084
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
push ebx
lea ecx, [ebp + ecx - 0x98]
push 2
call fcn.0040acdf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040b10e
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], vtable.std::ios_base.0
call fcn.0041a268
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ee0c
xor ecx, ecx
cmp eax, edi
jne 0x40a0b7
cmp edx, ecx
jne 0x40a0b7
mov al, 1
jmp 0x40a0b9
xor al, al
call fcn.0041ee3f
ret 8
Function at 0x40a7ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43641e
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4442c4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x4442c4]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a93b
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a93b
mov eax, dword [0x446d0c]
mov dword [esp + 0x28], eax
lea ebx, [esp + 0x18]
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x446d08
call fcn.0040afb8
lea edi, [esp + 0x24]
mov esi, eax
call fcn.0040b84a
test al, al
je 0x40a93b
xor ebx, ebx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
push 0x1fe
lea eax, [esp + 0x5a]
push ebx
mov dword [esp + 0x270], ebx
push eax
mov word [esp + 0x60], bx
call fcn.0041b0d0
add esp, 0xc
push 0xff
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x54]
lea esi, [esp + 0x38]
call fcn.0040185a
push ebx
push dword [esp + 0x24]
mov eax, esi
push eax
call fcn.0040aea6
cmp eax, 0xffffffff
jne 0x40a912
mov byte [esp + 0x17], bl
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.0040193c
mov al, byte [esp + 0x17]
jmp 0x40a93d
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x30]
call fcn.0040af0a
push ebx
push ebx
push 0xf5
push dword [ebp + 0xc]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov byte [esp + 0x17], 1
jmp 0x40a900
xor al, al
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0041a6a2
mov esp, ebp
pop ebp
ret 8
Function at 0x40a963
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x44c
lea ebp, [esp - 4]
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x44c], eax
push 0x1c
mov eax, 0x4363eb
call fcn.0041ed67
mov eax, dword [ebp + 0x458]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x45c]
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
mov dword [ebp - 4], ebx
mov eax, str.Software_
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.004017b2
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00401aba
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40a9e1
lea eax, [ebp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x40aa3b
mov eax, str.SoftwareWow6432Node_
lea esi, [ebp + 0x1c]
call fcn.0040185a
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call fcn.00401aba
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40aa21
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40aafe
cmp dword [ebp - 0x18], ebx
je 0x40aafe
push 0x410
lea eax, [ebp + 0x3a]
push ebx
push eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], ebx
mov word [ebp + 0x38], bx
call fcn.0041b0d0
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40aa77
mov eax, dword [esi]
jmp 0x40aa79
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aac1
cmp dword [ebp - 0x20], 0x208
jae 0x40aac1
cmp dword [edi + 0x18], 8
jb 0x40aaa2
mov esi, dword [esi]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aac1
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], bl
je 0x40aafe
lea eax, [ebp + 0x38]
lea esi, [ebp]
call fcn.0040185a
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x40aafe
lea edi, [eax - 1]
mov eax, esi
call fcn.004017f6
cmp word [eax], 0x5c
je 0x40aafe
push 0x43ba78
mov eax, esi
push eax
call fcn.004017d8
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
call fcn.0040231d
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp]
call fcn.0040193c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x44c]
xor ecx, ebp
call fcn.0041a6a2
add ebp, 0x450
leave
ret 8
Function at 0x40ab47
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push str.http:__wangpai.2345.cn_forumdisplay.php_fid12
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret
Function at 0x40bc23
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x435caa
call fcn.0041edd0
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
je 0x40bd33
cmp byte [edi + 0x41], 0
je 0x40bd33
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40bc5b
xor al, al
jmp 0x40bd35
lea esi, [ebp - 0x30]
call fcn.0040b928
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0040b9a4
mov esi, eax
call fcn.0040c1ac
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.0040b9a4
mov esi, eax
call fcn.0040c1ac
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x40bccb
dec eax
je 0x40bccf
dec eax
dec eax
je 0x40bd2f
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402a6a
mov al, bl
jmp 0x40bd35
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.0040b9a4
mov esi, eax
call fcn.0040c1ac
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x40bd0d
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.0040b9a4
mov esi, eax
call fcn.0040c1ac
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.0041bca8
add esp, 0x10
cmp ebx, eax
jne 0x40bcb9
cmp byte [edi + 0x41], 0
je 0x40bd2f
test ebx, ebx
jne 0x40bc6d
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.0040b960
mov edi, dword [ebp - 0x38]
jmp 0x40bc6d
mov bl, 1
jmp 0x40bcbb
mov al, 1
call fcn.0041ee53
ret

Function at 0x40c8e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0x3c
mov ebx, eax
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, ecx
call fcn.0041b0d0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x540
jb 0x40c927
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
jmp 0x40c92d
add esi, 4
mov dword [ebp - 0x2c], esi
xor esi, esi
cmp dword [ebx + 0x14], esi
mov dword [ebp - 0x24], esi
je 0x40c94d
cmp dword [ebx + 0x18], 8
jb 0x40c945
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
jmp 0x40c950
add ebx, 4
mov dword [ebp - 0x28], ebx
jmp 0x40c950
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c973
cmp dword [ebp - 4], esi
je 0x40c973
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x40e0c5
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x435af7
call fcn.0041ed67
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40e0e3
xor al, al
jmp 0x40e176
lea edi, [eax + 0x20]
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x40e0f4
mov eax, edi
call fcn.0040d198
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x40e10c
cmp edi, ebx
je 0x40e0dc
mov eax, edi
call fcn.0040d1a6
jmp 0x40e0dc
mov eax, esi
call fcn.0040e0bb
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x40de8e
push ebx
push ebx
call fcn.0041ab7f
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40e149
call fcn.0040e0c0
mov esi, dword [esi + 8]
call fcn.0040df74
jmp 0x40e0ff
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
call fcn.0040fc59
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40e13a
cmp edi, ebx
je 0x40e174
mov eax, edi
call fcn.0040d1a6
mov al, 1
call fcn.0041ee3f
ret

Function at 0x40e92f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e95c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e95c
xor al, al
jmp 0x40e977
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0042a920
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x40eb76
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x4c
mov eax, 0x437df9
call fcn.0041edd0
push 0x43ca40
mov esi, ecx
call fcn.0041a647
pop ecx
push eax
mov eax, esi
call fcn.0040ec3c
cmp eax, 0xffffffff
jne 0x40ebbd
cmp dword [esi + 0x18], 8
jb 0x40eba7
mov esi, dword [esi + 4]
jmp 0x40ebaa
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40ebde
lea eax, [ebp - 0x58]
call fcn.004102ca
and dword [ebp - 4], 0
push eax
push esi
call fcn.00410512
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x58]
call fcn.004102f8
mov al, bl
call fcn.0041ee53
ret

Function at 0x40ecf9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4369a0
call fcn.0041edd0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.0040231d
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040e5e6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40ed2c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ed4e
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040193c
mov al, bl
call fcn.0041ee53
ret
xor bl, bl
jmp 0x40ed3a
Function at 0x40ed52
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4369a0
call fcn.0041edd0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.0040231d
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040e5e6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40ed85
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40edab
test al, 0x10
jne 0x40edab
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040193c
mov al, bl
call fcn.0041ee53
ret
xor bl, bl
jmp 0x40ed97

Function at 0x40edaf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4369a0
call fcn.0041edd0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.0040231d
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040e5e6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40ede2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ee08
test al, 0x10
je 0x40ee08
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040193c
mov al, bl
call fcn.0041ee53
ret
xor bl, bl
jmp 0x40edf4

Function at 0x40f5f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40f60e
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40f6d2
jmp 0x40f6ca
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40f6d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040e92f
test al, al
jne 0x40f670
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040e9dd
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.0040231d
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40f6d2
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40f642
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40fcb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.0041b0d0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40fd14
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.0040185a
mov al, 1
jmp 0x40fd16
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a6a2
leave
ret

Function at 0x40fd23
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40fd2d
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40fd40
mov eax, dword [eax + 4]
jmp 0x40fd43
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40fd54
Capabilities:
Move file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40fd5f
mov eax, dword [eax + 4]
jmp 0x40fd62
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40fd6d
mov ecx, dword [ecx + 4]
jmp 0x40fd70
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40fe2d
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40fe45
mov eax, dword [edi]
jmp 0x40fe47
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fe59
mov al, 1
jmp 0x40fef5
cmp dword [esi + 0x18], 8
jb 0x40fe63
mov eax, dword [edi]
jmp 0x40fe65
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40fef3
cmp dword [esi + 0x18], 8
jb 0x40fe7e
mov eax, dword [edi]
jmp 0x40fe80
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.004017b2
push 0
lea eax, [ebp - 0x20]
call fcn.0040fd23
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.0040193c
test bl, bl
pop ebx
jne 0x40fef3
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40feba
mov eax, dword [edi]
jmp 0x40febc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fe52
cmp dword [esi + 0x18], 8
jb 0x40fed1
mov eax, dword [edi]
jmp 0x40fed3
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.004017b2
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040fd23
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040193c
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40fef9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x4455f8], ebx
push esi
mov esi, ecx
je 0x40ff2e
push 0xffffffffffffffff
push esi
mov eax, 0x4455e4
call fcn.00401a1b
mov al, 1
jmp 0x40ffca
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40ffc8
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.0041b0d0
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40ffb8
cmp eax, ebx
je 0x40ffb8
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40ffbe
lea eax, [ebp - 0x210]
call fcn.0040185a
jmp 0x40ff27
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a6a2
leave
ret

Function at 0x40ffd8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.0041b0d0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x410026
mov edi, dword [edi + 4]
jmp 0x410029
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x410034
mov ebx, dword [ebx + 4]
jmp 0x410037
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x41005e
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.0040185a
mov al, 1
jmp 0x410060
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a6a2
add ebp, 0x194
leave
ret

Function at 0x41014e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x410159
mov eax, dword [eax + 4]
jmp 0x41015c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret