joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443feb
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor esi, esi
mov eax, edi
mov word [ebx], si
call fcn.004498c4
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x444139
cmp dword [edi + 0x414], 0x20
jne 0x444139
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov eax, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.00443daf
test eax, eax
je 0x444139
mov edi, 0x8000
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x1388
call fcn.00444961
push dword [ebp - 4]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x444120
push esi
push esi
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [ebp + 0xc], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x444118
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 8]
push 0x452b78
mov dword [ebp - 8], eax
call fcn.004460e8
pop ecx
push edi
call fcn.0044643b
pop ecx
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x44410e
push dword [ebp - 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x444109
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
call ebx
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], si
je 0x444131
mov eax, dword [ebp + 0x10]
push ebx
call fcn.004498c4
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x24]
call fcn.004448e6
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x444e08
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00446454
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x444e6f
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test ebx, ebx
mov esi, eax
je 0x444e36
mov dword [ebx], esi
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.0044493e
test eax, eax
je 0x444e61
mov eax, dword [ebx]
push esi
push eax
push edi
call fcn.004459ef
add esp, 0xc
test eax, eax
jne 0x444e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x444e65
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x444e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8

Function at 0x4451b2
Capabilities:
Enumerate files on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x4451e9
lea edi, [esi + 4]
mov ecx, edi
call fcn.00445f6d
mov dword [esi + 0x404], eax
lea eax, [esi + 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov edi, ecx
jmp 0x445202
lea ecx, [esi + 0x408]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x445206
call fcn.00444a2e
test edi, edi
je 0x445227
lea ecx, [esi + 0x434]
push 0x1ff
lea eax, [esi + 0x658]
push ecx
add esi, 0xa58
push esi
call fcn.00446ae8
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret

Function at 0x4455f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x28], str._NoStartWindow
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret

Function at 0x4456fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x44572e
push dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x445bb2
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x45252c
push eax
push eax
push dword [esp + 0x14]
push 0x452a7c
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x446217
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x446280
mov eax, ebp
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x44622e
push ebx
sub eax, ecx
sar eax, 1
push edi
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x44627e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x44640c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x446416
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x446d85
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp word [0x462110], 0
push esi
mov esi, 0x462110
jne 0x446db1
call fcn.00446c77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x446db1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, esi
pop esi
ret

Function at 0x446f0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ecx + 0x10]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ebp - 0x308]
mov esi, edx
call fcn.0044b89d
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
jbe 0x446f85
mov ebx, dword [ebp + 8]
sub ebx, edi
dec esi
shr esi, 3
inc esi
lea ecx, [ebp - 0x188]
lea eax, [edi + ebx]
push ecx
call fcn.0044b7ad
and dword [ebp + 0xc], 0
pop ecx
mov eax, edi
mov ecx, dword [ebp + 0xc]
lea ecx, [ebp + ecx - 8]
mov dl, byte [ecx]
xor byte [eax], dl
mov dl, byte [ebx + eax]
inc dword [ebp + 0xc]
inc eax
cmp dword [ebp + 0xc], 8
mov byte [ecx], dl
jb 0x446f66
dec esi
mov edi, eax
jne 0x446f50
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4475f9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x3d4], edi
mov dword [ebp - 4], edi
call fcn.00446454
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x4476a0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x64
jbe 0x447647
lea ebx, [esi + 4]
mov eax, ebx
call fcn.00444961
push edi
push dword [ebx]
push dword [ebp + 8]
call fcn.004459ef
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x64
jbe 0x4476a0
mov eax, dword [esi + 4]
cmp dword [eax], 0x61150600
jne 0x4476a0
mov ecx, dword [eax + 0xc]
call fcn.004455ce
mov ebx, eax
test ebx, ebx
jbe 0x4476a0
xor edx, edx
mov eax, edi
div ebx
cmp eax, 1
jbe 0x447693
mov dword [ebp + 8], ebx
lea edi, [eax - 1]
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
push ebx
push eax
push esi
call fcn.004471b8
add dword [ebp + 8], ebx
dec edi
jne 0x44767f
push dword [ebp + 0xc]
mov eax, esi
call fcn.0044742e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8
Function at 0x448900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x18], 0xcf
mov byte [ebp - 0x12], 0x78
mov byte [ebp - 0x11], 0xd2
mov byte [ebp - 0x16], 0xe6
mov byte [ebp - 0x17], 0x17
mov byte [ebp - 0x13], 0x54
mov byte [ebp - 0x15], 0xaf
mov byte [ebp - 0x14], 0x34
xor ecx, ecx
lea esi, [ebp - 0x11]
mov al, cl
mov dl, 0xb
imul dl
xor al, byte [ebp + ecx - 0x18]
xor al, byte [esi]
inc ecx
mov byte [ebp + ecx - 0x11], al
dec esi
cmp ecx, 8
jl 0x44893a
xor ecx, ecx
lea esi, [ebp - 0x11]
mov al, cl
mov dl, 0xe
imul dl
xor al, byte [esi]
xor al, 0x41
mov byte [ebp + ecx - 8], al
inc ecx
dec esi
cmp ecx, 8
jl 0x448956
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0044b89d
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x448a19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x18]
push eax
call fcn.00448900
call fcn.004487c2
test edi, edi
jbe 0x448a87
mov esi, dword [ebp + 8]
lea ebx, [edi - 1]
shr ebx, 3
inc ebx
lea eax, [esp + 0x198]
push eax
lea edi, [esp + 0x14]
mov eax, esi
call fcn.0044b7ad
pop ecx
xor eax, eax
lea ecx, [eax + 0x461c98]
mov dl, byte [ecx]
xor byte [esp + eax + 0x10], dl
mov dl, byte [esi + eax]
inc eax
cmp eax, 8
mov byte [ecx], dl
jb 0x448a5d
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 8
dec ebx
jne 0x448a47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ac5e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00446018
test eax, eax
pop ecx
je 0x44ad35
push dword [ebp + 0xc]
call fcn.00446454
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x44ad35
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x44ad2c
mov eax, 0x1388
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
lea edi, [esi + 0xa]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00444961
mov edi, dword [ebp - 0x1c]
push esi
push edi
push dword [ebp - 4]
call fcn.004459ef
add edi, esi
imul esi, esi, 3
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov edi, esi
lea eax, [ebp - 0x10]
call fcn.00444961
shr esi, 1
push esi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044aa1e
lea esi, [ebp - 0x28]
call fcn.004448e6
lea esi, [ebp - 0x10]
call fcn.004448e6
lea esi, [ebp - 0x1c]
call fcn.004448e6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44b63a
Capabilities:
Encrypt data using des

Disassembly:
mov ecx, dword [eax]
mov edx, dword [0x45e5f0]
mov eax, dword [edx]
push ebx
push ebp
xor eax, ecx
mov ebx, eax
push edi
mov ebp, eax
shr ebx, 0x18
push 0x3f
pop edi
and ebx, edi
mov ebx, dword [ebx*4 + 0x45db40]
shr ebp, 0x10
and ebp, edi
xor ebx, dword [ebp*4 + 0x45dd40]
mov ebp, eax
and eax, edi
shr ebp, 8
and ebp, edi
xor ebx, dword [ebp*4 + 0x45df40]
add edx, 4
xor ebx, dword [eax*4 + 0x45e140]
xor dword [esi], ebx
ror ecx, 4
xor ecx, dword [edx]
add edx, 4
mov dword [0x45e5f0], edx
mov eax, ecx
shr eax, 0x18
and eax, edi
mov eax, dword [eax*4 + 0x45da40]
mov edx, ecx
shr edx, 0x10
and edx, edi
xor eax, dword [edx*4 + 0x45dc40]
mov edx, ecx
shr edx, 8
and edx, edi
xor eax, dword [edx*4 + 0x45de40]
and ecx, edi
xor eax, dword [ecx*4 + 0x45e040]
pop edi
xor dword [esi], eax
pop ebp
pop ebx
ret
Function at 0x44c934
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x14
pop esi
mov dword [ebp - 8], esi
call fcn.0044c86e
cmp edi, esi
jae 0x44c954
mov dword [ebp - 8], edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x30b]
push ebx
push eax
mov byte [ebp - 0x30c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
cmp edi, ebx
jbe 0x44c9e5
xor byte [ebp + eax - 0x20c], 0x5c
xor byte [ebp + eax - 0x10c], 0x36
inc eax
cmp eax, edi
jb 0x44c9d0
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push dword [ebp + 0x10]
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.0044c899
push 0x8004
call fcn.0044c597
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x30c]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 8]
call fcn.0044c899
pop esi
pop ebx
leave
ret 0x14

Function at 0x44d202
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
mov esi, eax
call fcn.0044d1e0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x44d297
push 0xc9
call fcn.00448b4c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push dword [esi]
call edi
push 0xca
mov dword [esi + 8], eax
call fcn.00448b4c
push eax
push dword [esi]
call edi
push 0xcb
mov dword [esi + 0xc], eax
call fcn.00448b4c
push eax
push dword [esi]
call edi
push 0xcc
mov dword [esi + 0x10], eax
call fcn.00448b4c
push eax
push dword [esi]
call edi
push 0xcd
mov dword [esi + 0x14], eax
call fcn.00448b4c
push eax
push dword [esi]
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
je 0x44d292
cmp dword [esi + 0xc], 0
je 0x44d292
mov dword [esi + 4], 1
jmp 0x44d297
call fcn.0044d1e0
mov eax, dword [esi + 4]
pop edi
pop esi
pop ecx
ret
Function at 0x44f2d9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x44f491
push edi
mov eax, esi
call fcn.004013f9
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x452a28
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44f35f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44f3c4
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
push 0x45252c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
test eax, eax
jne 0x44f3d9
movzx ecx, word [eax + str.040904E4]
mov word [ebp + eax - 0x38], cx
inc eax
inc eax
cmp cx, bx
jne 0x44f3af
jmp 0x44f3d9
xor eax, eax
movzx ecx, word [eax + str.040904E4]
mov word [ebp + eax - 0x38], cx
inc eax
inc eax
cmp cx, bx
jne 0x44f3c6
lea eax, [esi + 0x18]
push eax
push 0x45addc
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0x218]
push eax
push 0x45adf4
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0x418]
push eax
push 0x45ae14
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0x618]
push eax
push 0x45ae2c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0x818]
push eax
push 0x45ae4c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0xa18]
push eax
push 0x45ae64
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
lea eax, [esi + 0xc18]
push eax
push 0x45ae80
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
add esi, 0xe18
push esi
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.0044f1ea
xor ebx, ebx
push edi
inc ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x451333
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.00446454
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x4513ae
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 5]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x1388
call fcn.00444961
mov edi, dword [ebp - 0xc]
push esi
push edi
push dword [ebp + 0xc]
call fcn.004459ef
lea eax, [edi + esi]
mov byte [eax], bl
mov byte [eax + 1], bl
add esp, 0xc
mov byte [eax + 2], bl
mov eax, dword [ebp + 8]
push edi
call fcn.00451317
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.004448e6
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
jmp 0x4513b0
xor eax, eax
leave
ret 8
Function at 0x408b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c352
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4fd11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.0042f879
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x408c1e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], str.bad_locale_name
call fcn.0044dc18
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
push 0x4c3848
lea eax, [ebp - 0x1c]
push eax
call fcn.0044c54c
push eax
push esi
call fcn.0042ff5d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40af10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cea8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fd11c]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40b06d
cmp byte [ebx + 0x45], 0
je 0x40b06d
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40af64
xor al, al
jmp 0x40b06f
mov ecx, 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, edx
lea esi, [ebp - 0x28]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40afe7
dec eax
je 0x40afeb
sub eax, 2
je 0x40b03d
xor bl, bl
jmp 0x40b03f
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x40b023
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0044e7e8
add esp, 0x10
cmp esi, eax
jne 0x40afe3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x40b03d
test esi, esi
jne 0x40afb0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004015be
jmp 0x40afa9
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x40b057
push dword [ebp - 0x28]
call fcn.0044c086
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov al, bl
jmp 0x40b06f
mov al, 1
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.0044c53d
mov esp, ebp
pop ebp
ret