joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94

Function at 0x42bc0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004296a2
and dword [ebp - 0x14], 0
cmp dword [0x455cfc], 0
mov dword [ebp - 0x18], eax
jne 0x42bcbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42bd66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44f7cc
push ebx
call edi
test eax, eax
je 0x42bd66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x455cfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x455d00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x455d04], eax
call edi
push eax
call esi
mov dword [0x455d0c], eax
test eax, eax
je 0x42bcbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x455d08], eax
mov eax, dword [0x455d08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42bd17
cmp dword [0x455d0c], ecx
je 0x42bd17
push eax
call esi
push dword [0x455d0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42bd17
test ebx, ebx
je 0x42bd17
call edi
test eax, eax
je 0x42bd0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42bd0e
test byte [ebp - 8], 1
jne 0x42bd17
or dword [ebp + 0x10], 0x200000
jmp 0x42bd4a
mov eax, dword [0x455d00]
cmp eax, dword [ebp - 0x18]
je 0x42bd4a
push eax
call esi
test eax, eax
je 0x42bd4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bd4a
mov eax, dword [0x455d04]
cmp eax, dword [ebp - 0x18]
je 0x42bd4a
push eax
call esi
test eax, eax
je 0x42bd4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x455cfc]
call esi
test eax, eax
je 0x42bd66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42bd68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret
Function at 0x42f0fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x454ef0], 0xffffffff
mov dword [ebp + 8], eax
jne 0x42f134
push ebx
push edi
push 0x455d98
call fcn.004313cb
mov ebx, eax
test ebx, ebx
js 0x42f18c
xor ebx, ebx
jmp 0x42f18c
test eax, eax
je 0x42f18c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x454ef0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f172
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42f16c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x42f17c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x42f138
jmp 0x42f18c
push ebx
push 0x318
push str.logutil.cpp
call fcn.0043294e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x42f727
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [str.unknown]
mov eax, 0x104
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x42f78b
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00427e30
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00435c53
test eax, eax
jns 0x42f7b5
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 0x42f7d9
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec esi
jne 0x42f7d3
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.00437e46
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop esi
push esi
call fcn.0042f6a2
mov eax, dword [ebp - 0x420]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x41c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
push str.Executable:__ls_v_d._d._d._d
push esi
call fcn.0042f6a2
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push esi
call fcn.0042f6a2
mov eax, dword [0x454ef4]
add esp, 0x34
sub eax, ebx
je 0x42f872
dec eax
je 0x42f86a
dec eax
je 0x42f862
dec eax
je 0x42f85a
dec eax
jne 0x42f878
mov edi, dword [str.debug]
jmp 0x42f878
mov edi, dword [str.verbose]
jmp 0x42f878
mov edi, dword [str.standard]
jmp 0x42f878
mov edi, dword [str.warning]
jmp 0x42f878
mov edi, dword [str.none]
push edi
push str.____logging_level:__hs____
push esi
call fcn.0042f6a2
add esp, 0xc
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x42f89d
push dword [ebp - 0x418]
call fcn.004301e8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00427eaa
leave
ret
Function at 0x42fb2b
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push esi
push 0x44
pop eax
push 1
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
call fcn.0043233b
mov dword [ebp - 4], eax
test eax, eax
jne 0x42fb6c
mov esi, 0x8007000e
push esi
push 0xe3
push str.aclutil.cpp
call fcn.0043294e
jmp 0x42fc95
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004300d8
mov esi, eax
test esi, esi
js 0x42fc95
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42fc86
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x42fc59
cmp dword [ebp - 0x10], 0x44
jbe 0x42fbfd
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0043235d
test eax, eax
jne 0x42fbfa
call ebx
test eax, eax
jle 0x42fbe4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42fbef
mov esi, 0x80004005
push esi
push 0xf3
jmp 0x42fc7a
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0xff
jbe 0x42fc18
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004300d8
mov esi, eax
test esi, esi
js 0x42fc93
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42fc86
call ebx
test eax, eax
jle 0x42fc46
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42fc51
mov esi, 0x80004005
push esi
push 0xff
jmp 0x42fc7a
test eax, eax
je 0x42fc86
jle 0x42fc69
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42fc74
mov esi, 0x80004005
push esi
push 0x104
push str.aclutil.cpp
call fcn.0043294e
jmp 0x42fc93
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
pop edi
pop ebx
cmp dword [ebp - 8], 0
je 0x42fca3
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 4], 0
je 0x42fcb1
push dword [ebp - 4]
call fcn.004324f6
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x42fcb8
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x42fcd8
mov esi, 0x80070057
push esi
push 0x1d
jmp 0x42fd2e
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x42fd3a
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.0042fb2b
mov esi, eax
cmp esi, edi
jl 0x42fd97
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42fd8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x42fd20
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x42fd2b
mov esi, 0x80004005
push esi
push 0x2f
push str.aclutil.cpp
call fcn.0043294e
jmp 0x42fd97
lea ecx, [ebp - 4]
push ecx
push dword [eax + 0x30]
movzx ecx, byte [eax + 0x12]
push dword [eax + 0x2c]
add eax, 0xc
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42fcf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x42fd7d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x42fd88
mov esi, 0x80004005
push esi
push 0x29
jmp 0x42fd2e
xor eax, eax
cmp dword [ebp - 8], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x42fda5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x42ff4a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00427e30
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, ebx
jne 0x42ff7e
mov eax, 0x43a5c8
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.0043177a
mov edi, eax
add esp, 0x10
cmp edi, ebx
jl 0x42fffe
mov ax, word [ebp + 0x10]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x58], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42fff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42ffd6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42ffe1
mov edi, 0x80004005
push edi
push 0xa6
push str.procutil.cpp
call fcn.0043294e
jmp 0x42fffe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x430011
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43001e
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x43002b
push dword [ebp - 4]
call fcn.004301e8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x431e7e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x431f41
cmp word [eax], bx
je 0x431f41
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.00431171
mov esi, eax
cmp esi, ebx
jl 0x431fc4
lea eax, [ebp - 4]
push eax
call fcn.00431e29
mov esi, eax
cmp esi, ebx
jl 0x431fc4
mov ebx, dword [ebp + 0x14]
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jb 0x431fb8
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0043177a
mov esi, eax
add esp, 0xc
test esi, esi
js 0x431fc4
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push ebx
call fcn.0043177a
mov esi, eax
add esp, 0x10
test esi, esi
js 0x431fc4
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x431f99
inc edi
mov esi, 0x800700b7
cmp edi, dword [ebp + 0x10]
jbe 0x431ed9
jmp 0x431fc4
mov edi, 0x104
push edi
lea eax, [ebp - 4]
push eax
call fcn.004300d8
mov esi, eax
cmp esi, ebx
jl 0x431fc4
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x431eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x431f7c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x431f87
mov esi, 0x80004005
push esi
push 0x2cf
push str.pathutil.cpp
call fcn.0043294e
jmp 0x431fc4
cmp eax, 3
jne 0x431fa8
push esi
push dword [ebx]
call fcn.004365d3
jmp 0x431fb6
cmp eax, esi
jle 0x431fb6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x431fc4
push ebx
call fcn.00431e29
mov esi, eax
cmp dword [ebp - 8], 0
je 0x431fd2
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 4], 0
je 0x431fe0
push dword [ebp - 4]
call fcn.004301e8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x432a2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00427e30
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x432ac3
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x432a9a
push 1
push 0x450f74
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004329e2
mov edi, eax
test edi, edi
js 0x432ae2
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004329a5
mov edi, eax
test edi, edi
js 0x432ae2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x432ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x432ad7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x432ae2
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 8
Function at 0x4350ca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push str.kernel32.dll
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, esi
jne 0x43514b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x435108
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x435116
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x8d
push str.xmlutil.cpp
call fcn.0043294e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
test eax, eax
je 0x435137
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x435144
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
leave
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.IsWow64Process
push edi
call esi
test eax, eax
je 0x4351a0
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64EnableWow64FsRedirection
push edi
mov ebx, eax
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x43518c
cmp dword [ebp - 0x10], 0
je 0x43518c
test eax, eax
jne 0x435192
and dword [ebp - 0x10], 0
jmp 0x4351a0
lea eax, [ebp - 0x14]
push eax
call ebx
push 1
call dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x43acb0
push 1
push 0
mov ebx, 0x455e58
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
test eax, eax
js 0x43524d
push 0x10
pop ecx
mov edi, 0x43aca0
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4351d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4351f6
push 0x10
pop ecx
mov edi, 0x43ac90
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4351f2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x435200
mov dword [0x455e74], 1
cmp dword [ebp + 8], 0
je 0x435231
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00434e4b
mov dword [ebp - 4], eax
test eax, eax
js 0x43524d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x54]
mov dword [ebp - 4], eax
test eax, eax
js 0x43524d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43524d
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0
pop ebx
je 0x435128
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x435128
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x435783
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4357c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4357c3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4357d3
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x435790
jmp 0x4357e3
push edi
push 0x34c
push str.fileutil.cpp
call fcn.0043294e
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4357eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042e8c0
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push edi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1008], esi
xor edi, edi
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp ecx, edx
jne 0x43583e
cmp dword [ebp + 0x14], edx
jne 0x43583e
mov dword [ebp - 0x100c], 0x1000
jmp 0x43586c
mov eax, dword [ebp + 0x14]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x435860
ja 0x435853
cmp ecx, 0x1000
jbe 0x435860
mov ecx, 0x1000
mov dword [ebp - 0x100c], edx
jmp 0x435866
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x100c], ecx
push edx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4358fe
cmp dword [ebp - 0x100c], 0
je 0x4358bc
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00435783
mov dword [ebp - 0x1008], eax
test eax, eax
js 0x4358e7
add edi, dword [ebp - 0x100c]
adc esi, 0
cmp esi, dword [ebp + 0x14]
ja 0x4358de
jb 0x4358d1
cmp edi, dword [ebp + 0x10]
jae 0x4358de
cmp dword [ebp - 0x100c], 0
jne 0x435824
test ebx, ebx
je 0x4358e7
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435912
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
test eax, eax
jl 0x435926
mov dword [ebp - 0x1008], 0x80004005
push dword [ebp - 0x1008]
push 0x36c
push str.fileutil.cpp
call fcn.0043294e
jmp 0x4358e7
Function at 0x43593d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x435a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x435984
cmp eax, 0x50
je 0x43597c
cmp eax, 0xb7
jne 0x435984
xor edi, edi
inc edi
jmp 0x435a16
cmp eax, 3
jne 0x435a06
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x4359ff
cmp ax, 0x5c
jne 0x43599b
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435993
test esi, esi
je 0x4359ff
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004365d3
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x435a16
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x435a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4359e7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x435a16
push edi
push 0x3b1
push str.fileutil.cpp
call fcn.0043294e
jmp 0x435a16
mov edi, 0x80070003
jmp 0x435a16
cmp eax, esi
jle 0x435a14
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x435a70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x435a8a
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x435a93
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x435b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x435aca
cmp eax, 0x50
je 0x435ac2
cmp eax, 0xb7
jne 0x435aca
xor edi, edi
inc edi
jmp 0x435b5c
cmp eax, 3
jne 0x435b4c
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x435b45
cmp ax, 0x5c
jne 0x435ae1
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435ad9
test esi, esi
je 0x435b45
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004365d3
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x435b5c
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x435b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435b2d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x435b5c
push edi
push 0x424
push str.fileutil.cpp
call fcn.0043294e
jmp 0x435b5c
mov edi, 0x80070003
jmp 0x435b5c
cmp eax, esi
jle 0x435b5a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10