joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42066d
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x4648f3
call fcn.00451324
sub esp, 0x1b4
push ebx
push esi
push edi
mov esi, str.fs::CreateTemp_383
mov dword [ebp - 0x10], esp
push esi
call fcn.0044f750
mov dword [ebp - 0x14], eax
push esi
xor ebx, ebx
push 0x473e74
push ebx
mov dword [ebp - 4], ebx
call fcn.0043fb8a
add esp, 0x10
push 0x40
mov byte [ebp - 4], 1
pop ecx
xor eax, eax
mov byte [ebp - 0x1c0], bl
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x70]
push eax
call fcn.00420b63
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.0041b5d0
push 0x477564
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.00417e9b
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.0041801e
add esp, 0xc
push 0x477568
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.00417e9b
add esp, 0xc
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
add esi, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0041a38e
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x34]
call fcn.0041a87c
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.0041a87c
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.0041a87c
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0041a87c
push ebx
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0041a87c
cmp dword [esi + 0x18], 0x10
jb 0x420793
mov eax, dword [esi + 4]
jmp 0x420796
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x420874
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x470e4a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.0041b5d0
push str.INVALID_FILENAME
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 7
push dword [0x48e684]
call fcn.0041cf8d
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x4207e3
mov eax, dword [eax + 4]
jmp 0x4207e6
add eax, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.0041b5d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
push eax
lea edi, [ebp - 0x34]
xor eax, eax
call fcn.00409701
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0041a87c
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0041a87c
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041a87c
push 0x470e4a
lea ecx, [ebp - 0x70]
call fcn.0041b5d0
lea eax, [ebp - 0x70]
push eax
push 2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.0041b5f2
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x18], 0x10
jb 0x420858
mov esi, dword [esi + 4]
jmp 0x42085b
add esi, 4
push dword [ebp - 0x18]
push esi
push str.fs::CreateTemp_failed__temp_s__err_d_
push eax
call fcn.0041aecf
add esp, 0x10
mov ecx, eax
call fcn.0041b62e
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.0041b202
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4208dc
Capabilities:
Check if file exists
Delete directory
Delete file
Set current directory

Disassembly:
mov eax, 0x46602b
call fcn.00451324
sub esp, 0x30
push ebx
push esi
push edi
mov esi, str.fs::ClearTemp_404
mov dword [ebp - 0x10], esp
push esi
call fcn.0044f750
mov dword [ebp - 0x18], eax
push esi
xor edi, edi
push 0x473e74
push edi
mov dword [ebp - 4], edi
call fcn.0043fb8a
mov ebx, dword [ebp + 8]
add ebx, 0x44
add esp, 0x10
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea esi, [ebx + 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x42096d
cmp dword [edi + 0x18], 0x10
jb 0x42093e
mov eax, dword [edi + 4]
jmp 0x420941
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420965
cmp dword [edi + 0x18], 0x10
jb 0x420957
mov eax, dword [edi + 4]
jmp 0x42095a
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x420968
inc dword [ebp - 0x14]
add edi, 0x1c
jmp 0x42092e
mov eax, esi
call fcn.0042cb80
push eax
push dword [ebp - 0x14]
xor edi, edi
push str.__remove__d__d_files
push edi
call fcn.0043fb8a
add esp, 0x10
call fcn.00415ff1
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
jne 0x420a0b
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], edi
je 0x420a0b
lea eax, [ebp - 0x3c]
push eax
call fcn.004215c5
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x4209bb
mov eax, dword [eax + 4]
jmp 0x4209be
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.0041a87c
add esi, 0x28
cmp dword [esi + 0x18], 0x10
jb 0x4209de
mov eax, dword [esi + 4]
jmp 0x4209e1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x420a01
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.__cant_remove_temp__err_d
push edi
call fcn.0043fb8a
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0041a0c0
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0041b202
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x420bb5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x462ac7
call fcn.00451324
sub esp, 0x5c
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], esi
call fcn.0041b74c
push str..html
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0041b5d0
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push str..mht
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.0041b5d0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x14], 3
call fcn.0044c300
add esp, 0xc
test eax, eax
je 0x420c3a
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x420c2c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x420c3e
mov byte [ebp - 0xd], 0
push esi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0041a87c
push esi
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0041a87c
cmp byte [ebp - 0xd], 0
mov ecx, edi
je 0x420c63
lea eax, [ebp - 0x30]
push eax
jmp 0x420c66
push dword [ebp + 8]
call fcn.0041b74c
push esi
lea ecx, [ebp - 0x30]
push ebx
call fcn.0041a87c
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x420d4e
Capabilities:
Reference http user-agent string

Disassembly:
mov eax, 0x462a83
call fcn.00451324
sub esp, 0x8ac
push ebx
push esi
push edi
push str.APPCOMPANY
lea eax, [ebp - 0x64]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
push dword [0x48e684]
call fcn.0041cf8d
push str._Agent___
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00417e9b
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0041a87c
xor eax, eax
mov byte [ebp - 0x8b8], bl
mov ecx, 0x1ff
lea edi, [ebp - 0x8b7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8b8]
push eax
push ebx
mov dword [ebp - 0x10], 0x800
call sub.urlmon.dll_ObtainUserAgentString
cmp eax, ebx
jl 0x420de3
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041af92
mov edi, 0x471cb8
push edi
lea ecx, [ebp - 0x48]
call fcn.0041b5d0
lea eax, [ebp - 0x9c]
push 0x932
push eax
mov byte [ebp - 4], 3
call fcn.0044c3f0
push eax
lea eax, [ebp - 0x80]
push str.__OI_build
push eax
mov byte [ebp - 4], 4
call fcn.0041aabf
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 5
call fcn.00417e9b
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.0044c300
add esp, 0x2c
push ebx
push esi
lea ecx, [ebp - 0xb8]
call fcn.0041a87c
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.0041a87c
push ebx
push esi
lea ecx, [ebp - 0x9c]
call fcn.0041a87c
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041a87c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041b74c
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041a87c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x420e9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push str.fs::LoadResourceToString_534
push str._s__id_d_type_s_
push edi
call fcn.0043fb8a
movzx eax, word [ebp + 0xc]
add esp, 0x14
push dword [ebp + 0x10]
push eax
push dword [0x48e14c]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x420f52
cmp esi, 0xffffffff
je 0x420f52
push esi
push dword [0x48e14c]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
cmp ebx, edi
jne 0x420efb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4773f8
jmp 0x420f34
push esi
push dword [0x48e14c]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
push esi
push str.__size:__d
push edi
call fcn.0043fb8a
add esp, 0xc
cmp esi, edi
jbe 0x420f5f
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, edi
jne 0x420f44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4773cc
push str.___s_failed:__d
push edi
call fcn.0043fb8a
add esp, 0x10
jmp 0x420f5f
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.0041afaf
mov al, 1
jmp 0x420f61
push str.__not_found
push edi
call fcn.0043fb8a
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x420f66
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x463832
call fcn.00451324
sub esp, 0x460
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x420f8b
mov eax, dword [edi]
jmp 0x420f8d
mov eax, edi
push eax
push str.fs::LoadFileToString_569
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.0043fb8a
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x420fae
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x421079
cmp esi, 0xffffffff
je 0x421079
push ebx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x421027
cmp dword [ebp - 0x14], ebx
jbe 0x421027
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x46c]
push eax
call fcn.00415baa
add edi, dword [ebp - 0x14]
jmp 0x420fef
cmp edi, dword [ebp - 0x18]
jae 0x42105f
push 0x470e4a
lea ecx, [ebp - 0x58]
call fcn.0041b5d0
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0041b5f2
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_load_file__err_d_
jmp 0x4210aa
cmp esi, ebx
je 0x42106a
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x470e4a
lea ecx, [ebp - 0x58]
call fcn.0041b5d0
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041b5f2
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_open_file__err_d_
push esi
call fcn.0041aecf
add esp, 0xc
mov ecx, eax
jmp fcn.0041b62e
Function at 0x42111e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4637f8
call fcn.00451324
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x421140
mov eax, dword [edi]
jmp 0x421142
mov eax, edi
push eax
push str.fs::SaveFileFromBuffer_600
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.0043fb8a
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x421163
mov edi, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x4211ed
cmp esi, 0xffffffff
je 0x4211ed
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4211d7
push 0x470e4a
lea ecx, [ebp - 0x68]
call fcn.0041b5d0
lea eax, [ebp - 0x68]
push eax
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0041b5f2
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_save_file__err_d_
jmp 0x42121e
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x470e4a
lea ecx, [ebp - 0x68]
call fcn.0041b5d0
lea eax, [ebp - 0x68]
push eax
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0041b5f2
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_create_file__err_d_
push esi
call fcn.0041aecf
add esp, 0xc
mov ecx, eax
jmp fcn.0041b62e
Function at 0x421273
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x462a43
call fcn.00451324
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esi
call fcn.0041b74c
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x421322
mov edi, 0x4772d8
push edi
call fcn.0044f4c0
pop ecx
push eax
push edi
or ecx, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.0042d0ec
cmp eax, 0xffffffff
push 2
pop ebx
je 0x4212db
push eax
push esi
mov eax, edi
push eax
lea eax, [ebp - 0x64]
call fcn.00414c03
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x4212ee
push 0x470e4a
lea ecx, [ebp - 0x48]
call fcn.0041b5d0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a38e
test byte [ebp - 0x10], bl
je 0x42130e
and dword [ebp - 0x10], 0xfffffffd
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041a87c
mov dword [ebp - 4], esi
test byte [ebp - 0x10], 1
je 0x421322
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0041a87c
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x421405
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x421339
lea eax, [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x42134d
push 0x477568
lea ecx, [ebp - 0x2c]
call fcn.00414b4a
xor edi, edi
cmp dword [ebp - 0x18], esi
jbe 0x421405
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x421364
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x4213a7
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.00414c03
cmp dword [eax + 0x18], 0x10
jb 0x421386
mov eax, dword [eax + 4]
jmp 0x421389
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x64]
inc bl
call fcn.0041a87c
test bl, bl
jne 0x421400
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x421358
jmp 0x421400
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4213bb
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x4213ff
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.00414c03
cmp dword [eax + 0x18], 0x10
jb 0x4213dd
mov eax, dword [eax + 4]
jmp 0x4213e0
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x64]
inc bl
call fcn.0041a87c
test bl, bl
jne 0x421423
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x4213af
mov bl, 1
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041a87c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
xor bl, bl
jmp 0x421407
Function at 0x421427
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4637be
call fcn.00451324
sub esp, 0x414
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
push ebx
push esi
push edi
mov edi, ecx
jb 0x42144f
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
jmp 0x421455
add eax, 4
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x421462
mov ecx, dword [esi]
jmp 0x421464
mov ecx, esi
push eax
push ecx
push str.fs::CopyFileA_659
push str._s__in_s_out_s_
xor ebx, ebx
push ebx
call fcn.0043fb8a
add esp, 0x14
cmp dword [edi + 0x18], 0x10
jb 0x421483
mov esi, dword [esi]
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x42157f
cmp eax, 0xffffffff
je 0x421578
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov eax, dword [ebp - 0x10]
jb 0x4214c2
mov eax, dword [eax]
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push eax
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x421568
cmp eax, 0xffffffff
je 0x421575
push ebx
push dword [ebp - 0x18]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
mov edi, 0x400
jmp 0x421532
cmp dword [ebp - 0x14], ebx
jbe 0x421548
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42155f
mov eax, dword [ebp - 0x14]
add dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x421508
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jb 0x42155f
push str.__ok
push ebx
call fcn.0043fb8a
pop ecx
pop ecx
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
jmp 0x421581
push eax
jmp 0x421562
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421a0b
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4629ed
call fcn.00451324
sub esp, 0x40
and dword [ebp - 0x14], 0
cmp dword [esi + 0x18], 0x10
jb 0x421a27
mov eax, dword [esi + 4]
jmp 0x421a2a
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
xor ebx, ebx
inc ebx
test eax, eax
je 0x421a82
push 0x477568
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00417e9b
push dword [ebp + 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0041801e
add esp, 0x18
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 3
jb 0x421a71
mov eax, dword [eax + 4]
jmp 0x421a74
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
je 0x421a86
mov byte [ebp - 0xd], 0
test byte [ebp - 0x14], 2
je 0x421a9b
and dword [ebp - 0x14], 0xfffffffd
push 0
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041a87c
test byte [ebp - 0x14], bl
je 0x421aab
push 0
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0041a87c
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x421abb
Capabilities:
Get file size

Disassembly:
cmp dword [eax + 0x18], 0x10
jb 0x421ac6
mov eax, dword [eax + 4]
jmp 0x421ac9
add eax, 4
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x421afc
cmp esi, 0xffffffff
je 0x421afc
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
jmp 0x421afe
xor ebx, ebx
test esi, esi
je 0x421b09
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x421b5d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x421b7c
mov eax, dword [edi]
jmp 0x421b7e
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x421ba1
mov ecx, dword [ebp + 8]
push 0x470e4a
call fcn.0041b5d0
jmp 0x421c3b
push ebx
push eax
call fcn.0044d808
cmp dword [esi + 0x18], 0x10
pop ecx
mov ebx, eax
jb 0x421bb3
mov edi, dword [edi]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push edi
call sub.VERSION.dll_GetFileVersionInfoA
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x477568
push ebx
call sub.VERSION.dll_VerQueryValueA
push 0x3f
pop ecx
mov byte [ebp - 0x10c], 0
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov ecx, 0xffff
and edx, ecx
push edx
movzx edx, word [eax + 0xe]
push edx
mov edx, dword [eax + 8]
movzx eax, word [eax + 0xa]
and edx, ecx
push edx
push eax
push str._d._d._d._d
lea eax, [ebp - 0x10c]
push 0xff
push eax
call fcn.00450618
push ebx
call fcn.0044e99d
mov ecx, dword [ebp + 8]
add esp, 0x20
lea eax, [ebp - 0x10c]
push eax
call fcn.0041b5d0
pop ebx
mov eax, dword [ebp + 8]
pop edi
leave
ret
Function at 0x423dca
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
mov dword [esi], edi
mov dword [esi + 8], eax
call fcn.0041b74c
mov eax, dword [edi + 0xc]
xor ebx, ebx
mov dword [esi + 0x28], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x2c], eax
cmp dword [edi], ebx
je 0x423e2e
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 0x38], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x423e7d
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, esi
pop ebx
pop ebp
ret 8