joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d630
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor edi, edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x41d646
mov eax, dword [esi]
push edi
push 0x80
push 3
push edi
push 1
mov byte [eax], 0
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d6e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x41d6cf
mov eax, dword [esi + 0x10]
cmp edi, eax
ja 0x41d68e
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0042fb10
jmp 0x41d69c
mov ecx, edi
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.00426860
cmp dword [esi + 0x14], 0x10
jb 0x41d6a4
mov esi, dword [esi]
push 0
lea edx, [ebp + 8]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], edi
push ebx
sete al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d6f0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d751
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp + 8]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [ebp + 8], edi
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x41da40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4699fb
mov eax, dword fs:[0]
push eax
sub esp, 0xe80
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [eax + 0x160]
xor edi, edi
mov dword [ebp - 0xe88], eax
cmp dword [ecx - 0xc], edi
jle 0x41dc51
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x41da90
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0x200
jae 0x41dc51
push esi
push ecx
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0044fcb5
push 0x24c
lea edx, [ebp - 0xe80]
xor ecx, ecx
push edi
push edx
mov word [ebp + esi*2 - 0x414], cx
mov dword [ebp - 0xe84], edi
call fcn.004534e0
push 2
push 0x47613c
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0044fb6a
add esp, 0x2c
lea ecx, [ebp - 0xe84]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xe8c], eax
cmp eax, 0xffffffff
je 0x41dc51
test byte [ebp - 0xe84], 0x10
je 0x41dc2e
mov eax, dword [ebp - 0xe88]
mov edx, dword [eax + 0x160]
cmp dword [edx - 0xc], edi
jle 0x41db7c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41db43
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0x200
jae 0x41db7c
push esi
push edx
lea ecx, [ebp - 0x814]
push 0x200
push ecx
call fcn.0044fcb5
add esp, 0x10
xor edx, edx
mov word [ebp + esi*2 - 0x814], dx
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0x814]
push 0x200
push ecx
call fcn.0044fc40
add esp, 0xc
push edi
lea edx, [ebp - 0xc14]
push edx
push 0x200
push edi
push str.mscorlib.dll
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x41dc2e
xor ecx, ecx
lea eax, [ebp - 0xe58]
mov dword [ebp - 0xc1c], 7
mov dword [ebp - 0xc20], edi
mov word [ebp - 0xc30], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41dbe0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xe58]
lea ecx, [ebp - 0xc30]
call fcn.00430450
lea ecx, [ebp - 0xc30]
mov dword [ebp - 4], edi
call fcn.004241e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc1c], 8
jb 0x41dc2e
mov edx, dword [ebp - 0xc30]
push edx
call fcn.0044ee8c
add esp, 4
mov esi, dword [ebp - 0xe8c]
lea eax, [ebp - 0xe84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41db20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4
Function at 0x41dc90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoft.NETFramework
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x48]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x49], 0
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41dd44
lea edx, [ebp - 0x54]
push edx
push ebx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.InstallRoot
mov esi, 0x200
push eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41dd24
cmp dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x50]
push ecx
setbe bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x50]
mov bl, byte [ebp - 0x49]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x49]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x426910
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466e4b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044db27
push 4
mov dword [ebp - 4], 0
call fcn.0044f1df
mov edi, eax
add esp, 4
test edi, edi
je 0x426990
call fcn.0044de3c
mov dword [edi], eax
call fcn.0044dbfb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044dadd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x426986
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044db05
jmp 0x426992
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426a00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466e1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044db27
push 4
mov dword [ebp - 4], 0
call fcn.0044f1df
mov edi, eax
add esp, 4
test edi, edi
je 0x426a7c
call fcn.0044de3c
mov dword [edi], eax
call fcn.0044dbfb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044dadd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x426a72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044db05
jmp 0x426a7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434450
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x110
lea eax, [ebp - 0x158]
push edi
push eax
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x15c], 0x114
call fcn.004534e0
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43458b
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43458b
cmp dword [ebp - 0x158], 6
jb 0x43452b
mov edx, dword [ebp - 0x160]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x170]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x43458b
cmp dword [ebp - 0x170], 3
jne 0x43452b
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x164]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x43458b
cmp dword [ebp - 0x164], edi
jne 0x43454d
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x164]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x43458b
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x48]
push eax
push edi
push 0x1a
mov dword [ebp - 0x168], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x43458b
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x434591
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x160]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4345aa
push eax
call esi
mov dword [ebp - 0x160], edi
mov eax, dword [ebp - 0x164]
cmp eax, edi
je 0x4345b7
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x16c]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x43c320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004534e0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43c38e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43c375
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x43c3fc
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
cmp word [ebp + eax*2 - 0x20e], 0x5c
push esi
je 0x43c3a9
lea esi, [ebp - 0x20c]
call fcn.00441fd0
test eax, eax
js 0x43c3fb
lea esi, [ebp - 0x20c]
call fcn.00441f20
mov esi, eax
test esi, esi
js 0x43c3f9
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x43c3f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43c3e3
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x43c3fb
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret

Function at 0x43c9d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x43ca1c
push edi
call fcn.0044db1c
mov ecx, dword [ebp - 4]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edx, dword [esi]
test eax, eax
jne 0x43ca23
push edx
call fcn.0044f5e8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push str.VarFileInfoTranslation
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x43ca40
mov eax, dword [esi]
push eax
jmp 0x43ca07
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
mov dword [esi + 4], ecx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43dda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468948
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4846a0]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x43dec1
cmp byte [edi + 0x49], bl
je 0x43dec1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x43deb5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x43de15
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x43de2d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x43de56
dec eax
je 0x43de5a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x43deb0
jmp 0x43debc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x43de6a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x43de93
cmp ebx, 0x10
jae 0x43de79
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004513f0
add esp, 0x10
cmp esi, eax
jne 0x43dead
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x43deb9
test esi, esi
jne 0x43de21
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00426860
jmp 0x43de1b
lea ecx, [ebp - 0x2c]
call fcn.004305d0
xor al, al
jmp 0x43dec3
lea ecx, [ebp - 0x2c]
call fcn.004305d0
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.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x442240
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push SysReAllocStringLen
mov dword [ebx], esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x442293
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x442282
mov esi, eax
jmp 0x4423cf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4423cf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jne 0x4422ae
mov dword [ebp - 4], 1
jmp 0x4423b7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x4422c9
mov dword [ebp - 4], 0x8007000e
jmp 0x4423b7
mov ecx, dword [edi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4422e6
mov dword [ebp - 4], 0x8007000e
jmp 0x4423b7
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442322
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x442310
mov dword [ebp - 4], eax
jmp 0x4423b7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x4423b7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 8], edx
cmp dword [edi], edx
jbe 0x442352
lea ecx, [ecx]
mov al, byte [ecx + esi]
cmp al, 9
je 0x44234a
cmp al, 0xd
je 0x44234a
cmp al, 0xa
je 0x44234a
mov ebx, dword [ebx]
mov byte [edx + ebx], al
mov ebx, dword [ebp + 8]
inc edx
jmp 0x44234d
inc dword [ebp - 8]
inc ecx
cmp ecx, dword [edi]
jb 0x442330
mov edx, dword [ebp - 8]
sub dword [edi], edx
mov ecx, dword [ebx]
cmp byte [ecx], 0xef
mov eax, dword [edi]
jne 0x4423b7
cmp byte [ecx + 1], 0xbb
jne 0x4423b7
cmp byte [ecx + 2], 0xbf
jne 0x4423b7
add eax, 0xfffffffd
push eax
push 0x40
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x442389
mov dword [ebp - 4], 0x8007000e
jmp 0x4423b7
mov eax, dword [edi]
mov ecx, dword [ebx]
push eax
add ecx, 3
push ecx
push esi
call fcn.0044f260
add esp, 0xc
test eax, eax
jne 0x4423aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4423b7
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], esi
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4423cc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 4]
test esi, esi
jns 0x4423ec
mov eax, dword [ebx]
test eax, eax
je 0x4423e0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
mov dword [edi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4432c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4789a0
push eax
mov ebx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], ecx
call fcn.004524b6
mov edi, eax
add esp, 8
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x443328
test esi, esi
je 0x443315
call fcn.004525e8
mov edx, dword [eax]
push edx
call fcn.0045253c
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.004216b0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x443336
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
jmp 0x44333d
mov dword [ebp - 0x3c], 0
xor eax, eax
xor ecx, ecx
mov esi, ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.004013d0
push 2
push 0
push edi
call fcn.004526bb
push edi
call fcn.004528cb
mov edx, dword [ebp - 0x30]
push 0
push 0
push edx
mov edi, eax
call fcn.004526bb
add esp, 0x1c
xor esi, esi
test edi, edi
je 0x443443
push edi
call fcn.0044db1c
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
push 1
push edi
push esi
mov dword [ebp - 0x38], esi
call fcn.00452b7a
add esp, 0x14
push 0
push 0
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jns 0x4433d5
push 0x80070057
call fcn.00401670
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x4433f1
mov eax, esi
mov ecx, ebx
call fcn.00401430
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x38]
push esi
push eax
push edi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
cmp esi, 0xffffffff
jne 0x443421
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x443425
push ecx
push eax
call fcn.004503fc
add esp, 8
test eax, eax
js 0x4433cb
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x4433cb
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044f5e8
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x44345f
push esi
push edi
lea ecx, [ebp - 0x2c]
push ecx
push str._s_d_bytes_to__d_wide_chars
mov edi, eax
call fcn.00428bb0
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
call fcn.00452163
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x443477
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x443490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x4789e0
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x2d], 1
call fcn.004524b6
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4434ff
test esi, esi
je 0x4434ec
call fcn.004525e8
mov eax, dword [eax]
push eax
call fcn.0045253c
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.004216b0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x44350a
mov ecx, dword [ebx]
mov dword [ebp - 0x40], ecx
jmp 0x443511
mov dword [ebp - 0x40], 0
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, dword [edi]
mov word [ebp - 0x2c], dx
mov esi, dword [eax - 0xc]
xor edi, edi
test esi, esi
je 0x4435a2
push edi
push edi
push edi
push edi
push esi
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0044db1c
add esp, 4
push 0
push 0
mov ebx, eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push ebx
push esi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x38]
push edx
push 1
push edi
push ebx
call fcn.004513f0
cmp eax, 1
push ebx
sete byte [ebp - 0x2d]
call fcn.0044f5e8
mov ebx, dword [ebp - 0x3c]
add esp, 0x14
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4435c0
push edi
lea ecx, [ebp - 0x2c]
push ecx
push esi
push str._d_wide_chars_to__s_d_bytes
mov edi, eax
call fcn.00428bb0
add esp, 0x10
mov eax, edi
cmp byte [ebp - 0x2d], 0
jne 0x4435e7
test eax, eax
je 0x4435e7
call fcn.004525e8
mov edx, dword [eax]
push edx
call fcn.0045253c
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
call fcn.004216b0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push eax
call fcn.00452163
add esp, 4
test ebx, ebx
je 0x4435fc
mov ecx, dword [ebp - 0x40]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ee97
mov esp, ebp
pop ebp
ret