joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed60
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4a2120]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40edda
xor eax, eax
cmp ecx, ebp
je 0x40edc2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40ede8
cmp ecx, ebp
je 0x40ee7b
push ecx
jmp 0x40ee75
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40ee4a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040ed60
mov ebx, eax
cmp ebx, ebp
jne 0x40ee98
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x40ee10
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ee5d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040ec20
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ee7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043094a
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40eea7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40ee7d
Function at 0x40f350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x487430
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a2120]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40f3cf
call fcn.0040e870
mov esi, eax
jmp 0x40f4b1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40f3eb
call fcn.0040e870
jmp 0x40f4a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40f404
call fcn.0040e870
jmp 0x40f4a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40f438
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40f426
lea eax, [ebp]
call fcn.0041bb40
lea esi, [ebp - 0x1c]
call fcn.0041a800
mov eax, 0x8007000e
jmp 0x40f4c3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0041a940
mov dword [ebp - 4], 1
jmp 0x40f461
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40f46f
mov esi, 0x8007000e
jmp 0x40f4aa
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40f48d
call fcn.0040e870
jmp 0x40f4a8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004101a0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40f4c1
lea eax, [ebp]
call fcn.0041bb40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043094a
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d2c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push edi
call fcn.00416270
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x6d
push esi
or ebp, 0xffffffff
call ebx
mov edi, eax
test edi, edi
je 0x41d380
push 0xf0
push 0x6d
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d302
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [esp + 0x14], 0
call ebx
test eax, eax
je 0x41d367
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41d367
push edi
call fcn.004113d0
add esp, 4
push 0
mov ebx, eax
mov eax, dword [esp + 0x18]
push 0x41c8c0
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov ebp, eax
test ebp, ebp
je 0x41d349
cmp ebp, 0xffffffff
jne 0x41d353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x41d371
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41d371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41d380
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x41dcb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x840
mov eax, dword [0x4a2120]
xor eax, esp
mov dword [esp + 0x838], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x14]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
push eax
push ecx
push str.date:__.2d._.2d._.2d__time:__.2d:_.2d:_.2d:_.3d
lea edx, [esp + 0x38]
push 0x410
push edx
call fcn.00431171
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x28
lea eax, [esp + 0x18]
push eax
call edi
push esi
call edi
mov ecx, dword [esp + 0x83c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0043094a
add esp, 0x840
ret
Function at 0x41de10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
mov esi, eax
mov edi, ecx
push esi
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x41deab
push ebx
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebp
je 0x41deaa
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebp
je 0x41deaa
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41de6b
push esi
push ebx
push eax
call fcn.00433540
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41de9c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41de9c
push eax
call fcn.0041ddd0
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x41eae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x488149
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x3c]
mov eax, dword [esi + ebx*4 + 0xe0]
lea edi, [esi + ebx*4 + 0xe0]
cmp dword [eax - 0xc], ebp
je 0x41eb43
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0041fb90
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], 1
jmp 0x41ecd4
cmp ebx, 0xc
je 0x41ec7b
cmp ebx, 0xf
je 0x41ebfe
mov eax, dword [esi + 0x1e8]
sub eax, 1
je 0x41eb6a
sub eax, 1
jne 0x41eb72
or ebp, 0xffffffff
jmp 0x41eb72
push esi
call fcn.0041eea0
mov ebp, eax
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x41eb97
push 0x104
mov ecx, edi
call fcn.004201b0
mov eax, dword [edi]
push eax
push 0
push ebp
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x41ebbc
push eax
push 0x70
push str.Environment::GetShellFolder
push str..environment.cpp
call fcn.00422e40
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041fad0
mov eax, dword [edi]
push eax
push ebx
push str.ShellFolder__d___S
push 0x73
push str.Environment::GetShellFolder
call fcn.00423290
mov esi, dword [esp + 0x4c]
add esp, 0x14
push edi
mov ecx, esi
call fcn.0041fb90
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 1
jmp 0x41ecd4
push 0x1c
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041eae0
mov ebx, 2
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push eax
push str._sLow
push edx
call fcn.0041f7a0
add esp, 0xc
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x38], bl
call fcn.0041fb30
mov byte [esp + 0x30], 4
call fcn.0041fd80
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0041fb90
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x3c]
call fcn.00420dd0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
call fcn.00420dd0
jmp 0x41ecd4
push 0x1c
lea edx, [esp + 0x24]
push edx
call fcn.0041eae0
mov ebx, 1
mov dword [esp + 0x30], ebx
call fcn.0041fd80
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x20]
call fcn.00420dd0
push esi
call fcn.0041f2c0
test al, al
jne 0x41ecb4
mov esi, edi
call fcn.0041f490
push str.Temp
mov ecx, edi
call fcn.0041f6f0
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0041fb90
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x41eea0
Capabilities:
Compare security identifiers
Enumerate processes on remote desktop session host

Disassembly:
push 0xffffffffffffffff
push 0x4880ee
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xb4]
mov eax, dword [esi + 0xc0]
xor ebp, ebp
cmp eax, ebp
jne 0x41f085
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push ebp
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
jne 0x41ef2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x41ef17
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x90
push str.Environment::GetActiveUserToken
push str..environment.cpp
call fcn.00422e40
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0041e7c0
mov dword [esp + 0xac], ebp
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.00420c30
mov esi, dword [esp + 0x28]
dec esi
cmp esi, ebp
mov dword [esp + 0x20], esi
jle 0x41f083
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
shl esi, 4
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [esi + eax + 0xc]
cmp eax, ebp
je 0x41f067
mov ecx, dword [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41f067
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + edx + 4]
push eax
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xac], 1
cmp edi, ebp
jne 0x41efd6
mov dword [esp + 0xac], 0xffffffff
jmp 0x41f067
mov dword [esp + 0x2c], vtable.ATL::CAccessToken.0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0xac], 2
push 0xb
mov eax, edi
lea esi, [esp + 0x30]
call fcn.00420770
test al, al
je 0x41f044
mov esi, dword [esp + 0xb4]
push esi
call fcn.0041f2c0
test al, al
je 0x41f024
mov ecx, dword [esp + 0x30]
call fcn.0041ecf0
cmp eax, 0x2000
jne 0x41f044
mov ecx, dword [esp + 0x30]
add esi, 0xc0
push esi
push 1
push 3
push ebp
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x41f0a1
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x2c]
call fcn.004207b0
mov dword [esp + 0xac], 0xffffffff
push edi
call ebx
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
dec eax
sub esi, 0x10
cmp eax, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jg 0x41ef78
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 4
mov esi, dword [esi]
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x2c]
call fcn.004207b0
mov dword [esp + 0xac], 0xffffffff
push edi
call ebx
mov dword [esp + 0x18], ebp
mov eax, esi
jmp 0x41f085
Function at 0x41fee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41fef9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ff34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x41ff30
lea ebx, [ebx]
cmp esi, eax
jae 0x41ff34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41ff20
cmp esi, eax
jb 0x41ff3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x422630
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4879f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4226f7
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call fcn.00420970
mov dword [esp + 0x24], 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call fcn.0041fb30
mov dword [esp + 0x20], 1
lea esi, [esp + 0xc]
call fcn.0041f490
test eax, eax
je 0x4226b1
mov ecx, esi
call fcn.00422630
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4226e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4226d4
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x36
push str.Path::EnsureExists
push str..path.cpp
call fcn.00422e40
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00420dd0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4227a0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4879c2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4227f1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 1
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42283c
call fcn.0040e870
test eax, eax
jge 0x422840
push eax
push 0x47
push str.Path::ReadFileToString
push str..path.cpp
call fcn.00422e40
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x42286c
call fcn.0040e870
test eax, eax
jl 0x422876
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x18], edx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x422897
push esi
mov ecx, edi
call fcn.00421e40
mov eax, dword [edi]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4228d4
call fcn.0040e870
test eax, eax
jge 0x4228e1
push eax
push 0x4d
push str.Path::ReadFileToString
push str..path.cpp
call fcn.00422e40
cmp dword [esp + 0x14], esi
je 0x4228e1
mov eax, 0x80070026
jmp 0x4228c2
mov eax, esi
call fcn.00422a30
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x10]
push eax
call fcn.00422ae0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x422940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487e32
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push esi
call fcn.00422710
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 1
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4229c4
call fcn.0040e870
cmp eax, 0x800700b7
je 0x4229c8
test eax, eax
jge 0x4229c8
push eax
push 0x60
push str.Path::WriteBytesToFile
push str..path.cpp
call fcn.00422e40
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x422a01
call fcn.0040e870
test eax, eax
jge 0x422a01
push eax
push 0x63
push str.Path::WriteBytesToFile
push str..path.cpp
call fcn.00422e40
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
call fcn.00422ae0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x424240
Capabilities:
Get file version info

Disassembly:
sub esp, 0x278
mov eax, dword [esp + 0x280]
push ebp
push esi
push edi
push eax
call fcn.00435977
mov ecx, dword [esp + 0x294]
add esp, 4
push ecx
mov edi, eax
call fcn.00435977
xor ebp, ebp
add esp, 4
mov esi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x4242b7
cmp esi, ebp
je 0x4242b7
mov edx, dword [esp + 0x29c]
mov eax, dword [esp + 0x298]
mov ecx, dword [esp + 0x294]
push edx
mov edx, dword [esp + 0x28c]
push eax
mov eax, dword [ebx + 0x30]
push ecx
push esi
push edi
push ebp
push edx
call eax
or eax, edx
jne 0x4242bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x4242bf
mov dword [esp + 0x10], 8
mov eax, dword [ebx]
mov dword [esp + 0x2c], ebp
cmp eax, ebp
je 0x424434
cmp edi, ebp
je 0x424441
test byte [eax + 0x18], 8
je 0x424370
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jbe 0x424370
push esi
call fcn.004331b8
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x424370
mov edx, dword [esp + 0x24]
push eax
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x424363
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0x5c
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x424341
mov dword [esp + 0x14], ebp
jmp 0x424363
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 8]
push 1
push 0
push 0
push ecx
call fcn.00433fa0
mov ebp, eax
mov eax, dword [esi + 0xc]
xor ecx, ecx
add ebp, eax
adc edx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
push edx
call fcn.00430e51
add esp, 4
mov ecx, dword [esp + 0x298]
mov edx, dword [esp + 0x294]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28c]
push ecx
push edx
push eax
push ebx
mov esi, str._unknown_
call fcn.00424490
test eax, eax
je case.0x4243a5.7
mov eax, dword [esp + 0x58]
cmp eax, 9
ja case.0x4243a5.7
jmp dword [eax*4 + 0x424460]
mov esi, str._nosymbols_
jmp case.0x4243a5.7
mov esi, str.COFF
jmp case.0x4243a5.7
mov esi, 0x4994f8
jmp case.0x4243a5.7
mov esi, 0x4994fc
jmp case.0x4243a5.7
mov esi, str._exported_
jmp case.0x4243a5.7
mov esi, str._deferred_
jmp case.0x4243a5.7
mov esi, 0x499518
jmp case.0x4243a5.7
mov esi, str.Virtual
jmp case.0x4243a5.7
mov esi, 0x499524
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push ebp
lea eax, [esp + 0x184]
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x2b0]
push eax
mov eax, dword [esp + 0x2b0]
push eax
mov eax, dword [esp + 0x2b0]
push eax
mov eax, dword [esp + 0x2b0]
push eax
mov eax, dword [esp + 0x2b0]
push eax
call edx
mov esi, dword [esp + 0x20]
xor ebp, ebp
cmp edi, ebp
je 0x424441
push edi
call fcn.00430e51
add esp, 4
cmp esi, ebp
je 0x42444e
push esi
call fcn.00430e51
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x278
ret 0x18