joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4395ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x30
push esi
mov eax, dword [ecx*4 + 0x46caf0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + ebx + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
cmp edi, ecx
jae 0x43974a
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x1c], 0
mov ch, byte [edi]
mov byte [ebp - 0x15], ch
mov edx, dword [eax*4 + 0x46caf0]
mov cl, byte [edx + ebx + 0x2d]
test cl, 4
je 0x439644
mov al, byte [edx + ebx + 0x2e]
and cl, 0xfb
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push 2
mov byte [ebp - 0xb], ch
mov byte [edx + ebx + 0x2d], cl
push eax
jmp 0x43967e
call fcn.00434dfa
movzx ecx, byte [edi]
mov edx, 0x8000
test word [eax + ecx*2], dx
je 0x43967b
cmp edi, dword [ebp - 0x20]
jae 0x439721
push 2
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00432403
add esp, 0xc
cmp eax, 0xffffffff
je 0x43974a
inc edi
jmp 0x439693
push 1
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00432403
add esp, 0xc
cmp eax, 0xffffffff
je 0x43974a
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push 5
push eax
push 1
lea eax, [ebp - 0x1c]
inc edi
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43974a
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439742
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x34]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jb 0x43974a
cmp byte [ebp - 0x15], 0xa
jne 0x439716
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0xd
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439742
cmp dword [ebp - 0x28], 1
jb 0x43974a
inc dword [esi + 8]
inc dword [esi + 4]
cmp edi, dword [ebp - 0x20]
jb 0x43960f
jmp 0x43974a
mov edx, dword [ebp - 0x30]
mov al, byte [edi]
mov ecx, dword [edx*4 + 0x46caf0]
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [edx*4 + 0x46caf0]
or byte [eax + ebx + 0x2d], 4
inc dword [esi + 4]
jmp 0x43974a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret
Function at 0x439843
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00449460
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x46caf0]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
and dword [esi], 0
add eax, ebx
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x1410], ecx
mov dword [ebp - 0x1408], eax
jmp 0x4398ff
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x4398c2
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4398b2
inc dword [esi + 8]
mov byte [edi], 0xd
inc edi
mov byte [edi], al
lea eax, [ebp - 5]
inc edi
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x4398a0
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
push edi
lea eax, [ebp - 0x1404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439905
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x43990d
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x43989a
jmp 0x43990d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret

Function at 0x439920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00449460
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x46caf0]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
add eax, ebx
mov dword [ebp - 0x1410], ecx
xor edx, edx
mov dword [ebp - 0x1408], eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
jmp 0x4399eb
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x4399ab
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xa
jne 0x439998
add dword [esi + 8], 2
push 0xd
pop edx
mov word [edi], dx
add edi, 2
mov word [edi], ax
lea eax, [ebp - 6]
add edi, 2
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x43997c
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
and edi, 0xfffffffe
lea eax, [ebp - 0x1404]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4399f1
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x4399f9
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x439976
jmp 0x4399f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret
Function at 0x439a0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00449460
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x30
push ebx
push esi
mov eax, dword [eax*4 + 0x46caf0]
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [esi], ebx
mov edi, ecx
mov dword [esi + 4], ebx
mov dword [ebp - 0x1418], eax
mov dword [ebp - 0x1414], edx
mov dword [esi + 8], ebx
cmp ecx, edx
jae 0x439b1e
lea eax, [ebp - 0x6b0]
cmp edi, edx
jae 0x439a95
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x439a88
push 0xd
pop ebx
mov word [eax], bx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x439a70
xor ebx, ebx
lea ecx, [ebp - 0x1408]
push ebx
push ebx
push 0xd55
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x140c], eax
test eax, eax
je 0x439b16
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1418]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439b16
add ebx, dword [ebp - 0x1410]
mov eax, dword [ebp - 0x140c]
cmp ebx, eax
jb 0x439ac9
mov edx, dword [ebp - 0x1414]
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, edx
jb 0x439a6a
jmp 0x439b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret
Function at 0x43c243
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042a6f0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43c2ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43c318
mov esi, 0x80004005
jmp 0x43c318
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x43c2d7
push 1
push 0x465a14
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0043c13c
mov esi, eax
test esi, esi
js 0x43c318
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043c18b
mov esi, eax
test esi, esi
js 0x43c318
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x43c28c
test edi, edi
je 0x43c318
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00440857
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d0d2
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], ebx
push eax
push ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x43d136
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042a6f0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00443ea4
test eax, eax
jns 0x43d160
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x43d186
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x43d17e
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004480e4
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.0043d4fc
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.0043d4fc
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.0043d4fc
mov eax, dword [0x46abb8]
add esp, 0x34
sub eax, ebx
je 0x43d227
sub eax, 1
je 0x43d21f
sub eax, 1
je 0x43d217
sub eax, 1
je 0x43d20f
sub eax, 1
jne 0x43d22d
mov esi, dword [str.debug]
jmp 0x43d22d
mov esi, dword [str.verbose]
jmp 0x43d22d
mov esi, dword [str.standard]
jmp 0x43d22d
mov esi, dword [str.warning]
jmp 0x43d22d
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.0043d4fc
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x43d253
push dword [ebp - 0x418]
call fcn.0044506c
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00429d4c
mov esp, ebp
pop ebp
ret

Function at 0x43d53a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46abb4]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x43d576
push edi
push ebx
push 0x46d134
call fcn.00440a36
mov esi, eax
test esi, esi
js 0x43d5cc
xor esi, esi
jmp 0x43d5cc
test eax, eax
je 0x43d5cc
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43d5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43d5bc
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x43d5cc
mov ecx, dword [0x46abb4]
jmp 0x43d57a
push esi
push 0x31b
push str.logutil.cpp
call fcn.0043c22c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442f5d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042a6f0
mov eax, dword [0x46d20c]
add esp, 0xc
test eax, eax
jne 0x44303d
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
push 4
or ecx, eax
pop edx
mov dword [0x46d210], ecx
cmp dword [ebp - 0x11c], edx
jne 0x442fd3
xor eax, eax
inc eax
jmp 0x443038
cmp dword [ebp - 0x11c], 5
jne 0x442ffe
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x442fea
push 2
jmp 0x443037
cmp ecx, 1
jne 0x442ff3
push 3
jmp 0x443037
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x443038
cmp dword [ebp - 0x11c], 6
jne 0x443035
cmp dword [ebp - 0x118], 0
jne 0x44301e
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443038
cmp dword [ebp - 0x118], 1
jne 0x443035
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443038
push 9
pop eax
mov dword [0x46d20c], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46d210]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.00429d4c
mov esp, ebp
pop ebp
ret 8

Function at 0x443471
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x443548
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4434b7
cmp eax, 0x50
je 0x4434af
cmp eax, 0xb7
jne 0x4434b7
xor esi, esi
inc esi
jmp 0x443548
cmp eax, 3
jne 0x44353a
movzx eax, word [ebx]
mov edi, esi
mov ecx, ebx
test ax, ax
je 0x443533
push 0x5c
pop edx
cmp ax, dx
cmove edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4434cb
test edi, edi
je 0x443533
push esi
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00444804
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x443548
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x443548
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443548
push esi
push 0x457
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x443548
mov esi, 0x80070003
jmp 0x443548
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4435a2
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00443887
test eax, eax
je 0x443629
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x4435f7
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4435f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4435f7
push esi
push 0x5c7
jmp 0x44361e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x443628
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443628
push esi
push 0x5cd
push str.fileutil.cpp
call fcn.0043c22c
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x443632
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
xor eax, eax
mov ebx, esi
inc eax
cmp dword [ebp + 0x10], ebx
cmovne ebx, eax
cmp dword [ebp + 0x14], esi
je 0x44364c
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44373b
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x443684
cmp edi, 0x50
je 0x44367c
cmp edi, 0xb7
jne 0x443684
xor esi, esi
inc esi
jmp 0x44373a
cmp edi, 2
jne 0x44369d
push esi
push dword [ebp + 8]
call fcn.00443887
test eax, eax
je 0x44372c
push 3
pop edi
cmp edi, 3
jne 0x44372c
mov eax, dword [ebp + 0xc]
mov edi, esi
mov edx, eax
movzx ecx, word [eax]
test cx, cx
je 0x443725
mov dword [ebp + 0x10], 0x5c
cmp cx, word [ebp + 0x10]
cmove edi, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x4436bc
test edi, edi
je 0x443725
push esi
xor ecx, ecx
push eax
mov word [edi], cx
call fcn.00444804
mov esi, eax
mov eax, dword [ebp + 0x10]
mov word [edi], ax
test esi, esi
js 0x44373a
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44373a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x44373a
push esi
push 0x4d7
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x44373a
mov esi, 0x80070003
jmp 0x44373a
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x443ea4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x443ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443ef9
push esi
push 0x120
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x443fa0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x443f14
mov esi, 0x8007000e
push esi
push 0x124
jmp 0x443eea
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x443f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443f4f
push esi
push 0x128
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x443f99
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x465a14
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x443f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443f86
push esi
push 0x12d
jmp 0x443f43
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444262
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4442a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4442b2
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x444273
jmp 0x4442c2
push esi
push 0x3f2
push str.fileutil.cpp
call fcn.0043c22c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444804
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4448cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x444834
xor esi, esi
jmp 0x4448cb
cmp eax, 3
je 0x444845
push 0
push edi
call fcn.004448d3
test eax, eax
jne 0x44482d
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x4448b8
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x444855
test ebx, ebx
je 0x4448b8
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00444804
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4448ca
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4448b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4448a4
xor esi, esi
inc esi
jmp 0x4448ca
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4448ca
xor esi, esi
jmp 0x4448ca
mov esi, 0x80070003
push esi
push 0x7d
push str.dirutil.cpp
call fcn.0043c22c
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4448f7
test al, 0x10
je 0x4448f7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4448f4
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4457b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
call fcn.004405d4
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4458c5
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x445843
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xcc
push str.dlutil.cpp
call fcn.0043c22c
jmp 0x4458c5
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44588b
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x445875
cmp ecx, 8
jb 0x445846
cmp ecx, 8
je 0x445881
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4458b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd3
push str.dlutil.cpp
call fcn.0043c22c
cmp edi, 0xffffffff
je 0x4458c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10