joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4341d9
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
xor esi, esi
push 0x2e
lea eax, [ebp - 0x40]
push esi
mov edi, ecx
push eax
call fcn.00454540
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.00433ab3
test eax, eax
je 0x434329
push esi
push 0x80
push 3
push esi
lea eax, [edi + 4]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
je 0x43431d
cmp dword [edi + 0x230], 1
jbe 0x43428a
mov eax, dword [edi + 0x218]
push 1
push esi
push eax
push ebx
mov ecx, edi
call fcn.0043419d
test eax, eax
je 0x434329
push dword [0x48d688]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x230]
push esi
dec eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push 0x2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xfffffec8
push esi
push eax
push ebx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0043419d
test eax, eax
je 0x434329
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov ebx, dword [eax + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
cmp ecx, eax
jne 0x4342f1
cmp dword [edi + 0x230], 1
jne 0x4342e3
push esi
push esi
push dword [edi + 0x218]
mov ecx, edi
push dword [ebp + 8]
call fcn.0043419d
test eax, eax
je 0x434329
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4343a7
mov eax, dword [ebp - 8]
push esi
push 0x80
push 3
lea ebx, [ebx + eax + 0x138]
push esi
push 3
lea eax, [edi + 4]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x434332
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x21c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push esi
push ebx
push eax
mov ecx, edi
call fcn.0043419d
test eax, eax
je 0x434329
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x434395
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
je 0x434395
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
jmp 0x43435c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.004343c2
push 1
pop eax
jmp 0x43432b
Function at 0x434b53
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x493568
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x434cda
push esi
call fcn.00455e13
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00454540
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x434cd1
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00454540
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x48b148
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x434c15
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x48d7f0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00454540
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48d7bc
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x434cd1
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x434cd1
and dword [ebp - 0xc], 0
test edi, edi
jle 0x434c77
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00454840
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x434ca8
lea eax, [ebp - 0x244]
push 0x48cb94
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x434cc0
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push 0x48d7b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x434c6b
push dword [ebp - 8]
call fcn.00455d2a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x434f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x48d6bc]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.00435235
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x434f4d
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret
Function at 0x4351cf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call fcn.0043519b
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
je 0x43522f
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x43522a
cmp eax, 5
jne 0x43522f
push 1
pop eax
jmp 0x435231
xor eax, eax
leave
ret 4

Function at 0x435369
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
lea eax, [eax + eax + 4]
push eax
call fcn.00453fde
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48b148
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x4353ea
cmp word [ebx], 0x5c
jne 0x4353dc
and word [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4353d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4353e5
mov word [ebx], 0x5c
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x4353b3
jmp 0x4353ea
and dword [esp + 0x10], 0
push esi
call fcn.004389b2
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4353fd
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 8
lea eax, [ebp - 1]
sub esp, 0x28
xor edi, edi
mov ecx, esp
mov dword [ebp - 8], esp
push 1
push eax
push dword [ebp + 8]
call fcn.00402d75
call fcn.0043918a
add esp, 0x2c
test al, al
je 0x43544b
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x435447
push 1
pop edi
push 0
call esi
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x435453
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp + 0xb]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 4], esp
push 1
push eax
push edi
call fcn.00402d75
call fcn.0043918a
add esp, 0x2c
test al, al
jne 0x435484
push 1
pop eax
jmp 0x4354bd
push edi
xor ebx, ebx
call fcn.004354c4
test eax, eax
jne 0x4354bb
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4354b7
push 1
pop ebx
push 0
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x435615
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x471ec8
call fcn.00453e8c
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x4755e0
mov dword [ebp - 0x5c], 0x4755d8
jne 0x435647
mov eax, 0x493568
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004011a9
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00454540
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00454540
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x43569a
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x4356a6
mov edi, 0x4755fc
push eax
lea eax, [ebp + 0xf]
mov esi, 0x48d764
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x4356c9
mov eax, 0x4755fc
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push 0x48d8ac
push eax
mov dword [ebp - 0x14], 0x4a7
call fcn.0040a587
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040b1ac
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040afe6
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0040b2b4
cmp edi, ebx
je 0x4357ea
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x43577c
cmp eax, 1
jne 0x43577c
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x43577c
cmp dword [ebp - 0x44], 0x10
je 0x43577c
cmp dword [ebp - 0x44], 0x12
jne 0x43573f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x497200], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x4357bb
mov eax, 0x4755fc
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c8
push edi
push 0x48d86c
push eax
call fcn.0040a587
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
mov esi, dword [ebp - 0x10]
jmp 0x4357ef
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x43580e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x471ef2
call fcn.00453e8c
sub esp, 0x8e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00454540
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.00454540
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x9c], esi
mov word [ebp - 0x6c], bx
push 1
pop edi
mov dword [ebp - 0x70], edi
je 0x43585c
mov word [ebp - 0x6c], di
push dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x58], 0x4755e0
test eax, eax
mov dword [ebp - 0x38], 0x4755d8
lea eax, [ebp - 0x8ec]
jne 0x43588f
mov eax, 0x493568
lea ecx, [ebp + 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004011a9
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x4755fc
je 0x4358b1
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, 0x48d764
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x4358d7
mov eax, 0x4755fc
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x4e9
push 0x48d904
push eax
call fcn.0040a587
add esp, 0xc
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], bl
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401093
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x8ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xc4]
call fcn.00401889
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x435956
mov eax, 0x4755fc
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4ee
push 0x48d8e0
push eax
call fcn.0040a587
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401093
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x435999
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4359c5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x435a28
call esi
cmp eax, 0x3f0
jne 0x435a1f
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x435a97
cmp eax, ebx
je 0x435a97
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x435a97
call esi
cmp eax, 0x7a
jne 0x435a97
push dword [ebp - 4]
call fcn.00453fde
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x435a8b
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x435a9b
cmp byte [ebp - 0x24], bl
je 0x435a97
push esi
call fcn.004389b2
pop ecx
xor eax, eax
jmp 0x435ae6
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x435ace
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x435ac7
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x435aaa
jmp 0x435ace
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x435ae3
push esi
call fcn.004389b2
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x435aeb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
cmp dword [0x497270], ecx
jne 0x435b06
mov eax, dword [0x48d6c0]
cmp eax, 0xffffffff
jne 0x435b46
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x435b40
lea eax, [ebp - 0x48]
push eax
call fcn.00454fab
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x435b40
movsx eax, word [ebp - 0x20]
mov dword [0x48d6c0], eax
mov ax, word [0x48d6c0]
leave
ret
Function at 0x435ff7
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x471f53
call fcn.00453e8c
sub esp, 0x870
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x646]
mov word [ebp - 0x648], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x648]
push eax
push dword [0x497208]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x87c]
push eax
call fcn.00432e1c
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov ebx, 0x4959a8
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00401a19
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.004361d0
pop ecx
test eax, eax
pop ecx
je 0x4360ec
and word [ebp - 0x440], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 0xd], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x440]
push 0x48d984
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x238]
push 0
push eax
mov ecx, ebx
call fcn.00401a19
push eax
lea ecx, [ebp - 0x87c]
call fcn.00433b63
jmp 0x436151
mov eax, 0x4959d0
mov ecx, eax
test ecx, ecx
je 0x436111
cmp word [0x4959d0], 0
je 0x436111
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43614d
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.00434fdf
mov eax, dword [0x4959b0]
test eax, eax
jne 0x436139
mov eax, 0x4755fc
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00435235
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.004028ee
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402936
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x493568
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402b35
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x43619b
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402f3d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403a04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043345c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x43918a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x47210e
call fcn.00453e8c
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x4391dc
lea ecx, [ebp + 8]
call fcn.00431d6c
test al, al
je 0x4391dc
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.00407995
call fcn.0043969e
add esp, 0x2c
mov bl, al
jmp 0x439359
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x475628
mov dword [ecx + 0x20], 0x475620
call fcn.00403c6a
call fcn.00442b9e
add esp, 0x28
cmp eax, 0xffffffff
je 0x439229
test bl, 4
je 0x439211
test al, 0x10
je 0x439222
test bl, 8
je 0x439357
test al, 0x10
je 0x439357
mov bl, 1
jmp 0x439359
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x439369
cmp esi, 3
je 0x439369
push 1
cmp esi, 5
pop ebx
jne 0x4392de
lea ecx, [ebp - 0x100]
call fcn.0043960f
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.00407995
call fcn.00442a48
add esp, 0x2c
cmp eax, 0xffffffff
je 0x4392cb
test byte [ebp + 0x30], 4
je 0x439299
test byte [ebp - 0x100], 0x10
je 0x4392aa
test byte [ebp + 0x30], 8
je 0x4392a8
test byte [ebp - 0x100], 0x10
jne 0x4392aa
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x4392b7
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00439668
jmp 0x439359
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00439668
test byte [ebp + 0x30], 0x20
je 0x439357
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x476c94
mov dword [ebp - 0x1c], 0x476c8c
call fcn.00403c6a
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x476c84
call fcn.00439386
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00439507
mov eax, dword [ebp - 0x84]
push 0x482858
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.is::file_exception.0
lea eax, [ebp - 0x84]
push eax
call fcn.00455086
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402424
mov al, bl
jmp 0x439377
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402424
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x439f3c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x439f81
mov eax, dword [ebp + 8]
test eax, eax
je 0x439f56
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x439fdd
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00439868
lea eax, [ebp - 0x4c]
push 0x482a18
push eax
call fcn.00455086
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x439fdd
cmp dword [ebp + 8], 0
jne 0x439fb6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00439933
lea eax, [ebp - 0x48]
push 0x482858
push eax
call fcn.00455086
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x439fdd
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00439ecd
lea eax, [ebp - 0x48]
push 0x482858
push eax
call fcn.00455086
mov eax, edi
pop edi
pop esi
leave
ret 4