joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f76a
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 [0x456f50], 0xffffffff
mov dword [ebp + 8], eax
jne 0x42f7a4
push ebx
push edi
push 0x457e38
call fcn.004319e5
mov ebx, eax
test ebx, ebx
js 0x42f7fc
xor ebx, ebx
jmp 0x42f7fc
test eax, eax
je 0x42f7fc
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 [0x456f50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f7e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42f7dc
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x42f7ec
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x42f7a8
jmp 0x42f7fc
push ebx
push 0x318
push str.logutil.cpp
call fcn.00432f68
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x42fd97
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x456130]
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 0x42fdfb
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004284a0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004362c4
test eax, eax
jns 0x42fe25
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 0x42fe49
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec esi
jne 0x42fe43
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0043864e
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop esi
push esi
call fcn.0042fd12
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.0042fd12
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push esi
call fcn.0042fd12
mov eax, dword [0x456f54]
add esp, 0x34
sub eax, ebx
je 0x42fee2
dec eax
je 0x42feda
dec eax
je 0x42fed2
dec eax
je 0x42feca
dec eax
jne 0x42fee8
mov edi, dword [str.debug]
jmp 0x42fee8
mov edi, dword [str.verbose]
jmp 0x42fee8
mov edi, dword [str.standard]
jmp 0x42fee8
mov edi, dword [str.warning]
jmp 0x42fee8
mov edi, dword [str.none]
push edi
push str.____logging_level:__hs____
push esi
call fcn.0042fd12
add esp, 0xc
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x42ff0d
push dword [ebp - 0x418]
call fcn.00430858
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042851a
leave
ret
Function at 0x43019c
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.00432955
mov dword [ebp - 4], eax
test eax, eax
jne 0x4301dd
mov esi, 0x8007000e
push esi
push 0xe3
push str.aclutil.cpp
call fcn.00432f68
jmp 0x430306
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00430748
mov esi, eax
test esi, esi
js 0x430306
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 0x4302f7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x4302ca
cmp dword [ebp - 0x10], 0x44
jbe 0x43026e
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00432977
test eax, eax
jne 0x43026b
call ebx
test eax, eax
jle 0x430255
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x430260
mov esi, 0x80004005
push esi
push 0xf3
jmp 0x4302eb
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0xff
jbe 0x430289
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00430748
mov esi, eax
test esi, esi
js 0x430304
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 0x4302f7
call ebx
test eax, eax
jle 0x4302b7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4302c2
mov esi, 0x80004005
push esi
push 0xff
jmp 0x4302eb
test eax, eax
je 0x4302f7
jle 0x4302da
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4302e5
mov esi, 0x80004005
push esi
push 0x104
push str.aclutil.cpp
call fcn.00432f68
jmp 0x430304
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 0x430314
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 4], 0
je 0x430322
push dword [ebp - 4]
call fcn.00432b10
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x430329
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 0x430349
mov esi, 0x80070057
push esi
push 0x1d
jmp 0x43039f
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4303ab
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.0043019c
mov esi, eax
cmp esi, edi
jl 0x430408
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 0x4303fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x430391
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x43039c
mov esi, 0x80004005
push esi
push 0x2f
push str.aclutil.cpp
call fcn.00432f68
jmp 0x430408
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 0x430365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4303ee
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4303f9
mov esi, 0x80004005
push esi
push 0x29
jmp 0x43039f
xor eax, eax
cmp dword [ebp - 8], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x430416
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4305ba
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.004284a0
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 0x4305ee
mov eax, 0x43b5f8
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00431d94
mov edi, eax
add esp, 0x10
cmp edi, ebx
jl 0x43066e
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 0x430663
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x430646
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x430651
mov edi, 0x80004005
push edi
push 0xa6
push str.procutil.cpp
call fcn.00432f68
jmp 0x43066e
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 0x430681
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43068e
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x43069b
push dword [ebp - 4]
call fcn.00430858
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x432498
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 0x43255b
cmp word [eax], bx
je 0x43255b
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.0043178b
mov esi, eax
cmp esi, ebx
jl 0x4325de
lea eax, [ebp - 4]
push eax
call fcn.00432443
mov esi, eax
cmp esi, ebx
jl 0x4325de
mov ebx, dword [ebp + 0x14]
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jb 0x4325d2
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00431d94
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4325de
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push ebx
call fcn.00431d94
mov esi, eax
add esp, 0x10
test esi, esi
js 0x4325de
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4325d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4325b3
inc edi
mov esi, 0x800700b7
cmp edi, dword [ebp + 0x10]
jbe 0x4324f3
jmp 0x4325de
mov edi, 0x104
push edi
lea eax, [ebp - 4]
push eax
call fcn.00430748
mov esi, eax
cmp esi, ebx
jl 0x4325de
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4324e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x432596
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x4325a1
mov esi, 0x80004005
push esi
push 0x2cf
push str.pathutil.cpp
call fcn.00432f68
jmp 0x4325de
cmp eax, 3
jne 0x4325c2
push esi
push dword [ebx]
call fcn.00436c44
jmp 0x4325d0
cmp eax, esi
jle 0x4325d0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4325de
push ebx
call fcn.00432443
mov esi, eax
cmp dword [ebp - 8], 0
je 0x4325ec
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 4], 0
je 0x4325fa
push dword [ebp - 4]
call fcn.00430858
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43309e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
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.004284a0
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 0x433134
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x43310b
push 1
push 0x45238c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00433053
mov edi, eax
test edi, edi
js 0x433153
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00433016
mov edi, eax
test edi, edi
js 0x433153
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x433153
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x433148
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x433153
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 8
Function at 0x43573b
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 0x4357bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x435779
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x435787
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x8d
push str.xmlutil.cpp
call fcn.00432f68
mov eax, dword [ebp - 0xc]
pop edi
pop esi
test eax, eax
je 0x4357a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4357b5
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 0x435811
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 0x4357fd
cmp dword [ebp - 0x10], 0
je 0x4357fd
test eax, eax
jne 0x435803
and dword [ebp - 0x10], 0
jmp 0x435811
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 0x43bce0
push 1
push 0
mov ebx, 0x457ef8
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
test eax, eax
js 0x4358be
push 0x10
pop ecx
mov edi, 0x43bcd0
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43584a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435867
push 0x10
pop ecx
mov edi, 0x43bcc0
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x435863
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x435871
mov dword [0x457f14], 1
cmp dword [ebp + 8], 0
je 0x4358a2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004354bc
mov dword [ebp - 4], eax
test eax, eax
js 0x4358be
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 0x4358be
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 0x4358be
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0
pop ebx
je 0x435799
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x435799
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x435df4
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 0x435e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435e34
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x435e44
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x435e01
jmp 0x435e54
push edi
push 0x34c
push str.fileutil.cpp
call fcn.00432f68
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x435e5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042ef30
mov eax, dword [0x456130]
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 0x435eaf
cmp dword [ebp + 0x14], edx
jne 0x435eaf
mov dword [ebp - 0x100c], 0x1000
jmp 0x435edd
mov eax, dword [ebp + 0x14]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x435ed1
ja 0x435ec4
cmp ecx, 0x1000
jbe 0x435ed1
mov ecx, 0x1000
mov dword [ebp - 0x100c], edx
jmp 0x435ed7
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 0x435f6f
cmp dword [ebp - 0x100c], 0
je 0x435f2d
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00435df4
mov dword [ebp - 0x1008], eax
test eax, eax
js 0x435f58
add edi, dword [ebp - 0x100c]
adc esi, 0
cmp esi, dword [ebp + 0x14]
ja 0x435f4f
jb 0x435f42
cmp edi, dword [ebp + 0x10]
jae 0x435f4f
cmp dword [ebp - 0x100c], 0
jne 0x435e95
test ebx, ebx
je 0x435f58
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.0042851a
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435f83
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
test eax, eax
jl 0x435f97
mov dword [ebp - 0x1008], 0x80004005
push dword [ebp - 0x1008]
push 0x36c
push str.fileutil.cpp
call fcn.00432f68
jmp 0x435f58
Function at 0x435fae
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 0x436087
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x435ff5
cmp eax, 0x50
je 0x435fed
cmp eax, 0xb7
jne 0x435ff5
xor edi, edi
inc edi
jmp 0x436087
cmp eax, 3
jne 0x436077
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x436070
cmp ax, 0x5c
jne 0x43600c
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x436004
test esi, esi
je 0x436070
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00436c44
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x436087
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436087
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436058
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x436087
push edi
push 0x3b1
push str.fileutil.cpp
call fcn.00432f68
jmp 0x436087
mov edi, 0x80070003
jmp 0x436087
cmp eax, esi
jle 0x436085
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4360e1
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 0x4360fb
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x436104
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 0x4361cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x43613b
cmp eax, 0x50
je 0x436133
cmp eax, 0xb7
jne 0x43613b
xor edi, edi
inc edi
jmp 0x4361cd
cmp eax, 3
jne 0x4361bd
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x4361b6
cmp ax, 0x5c
jne 0x436152
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43614a
test esi, esi
je 0x4361b6
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00436c44
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x4361cd
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4361cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43619e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x4361cd
push edi
push 0x424
push str.fileutil.cpp
call fcn.00432f68
jmp 0x4361cd
mov edi, 0x80070003
jmp 0x4361cd
cmp eax, esi
jle 0x4361cb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43622f
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00435d81
test eax, eax
je 0x4362bd
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x43628a
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43628a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43627c
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x43628a
push ebx
push 0x519
jmp 0x4362b1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4362bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4362a5
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x4362bb
push ebx
push 0x51f
push str.fileutil.cpp
call fcn.00432f68
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4362c4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x43631e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436303
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x43631e
push esi
push 0x118
push str.fileutil.cpp
call fcn.00432f68
jmp 0x4363c7
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43633d
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x43630f
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x43636c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43635e
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x43636c
push esi
push 0x120
jmp 0x43639f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x45238c
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4363ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436393
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4363ab
push esi
push 0x125
push str.fileutil.cpp
call fcn.00432f68
jmp 0x4363be
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc