joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e066
Capabilities:
Create http request
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x18]
push ebx
push dword [edi]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0042fd78
mov esi, eax
cmp esi, ebx
jge 0x42e0bd
push 0x44c630
push esi
call fcn.004317fa
pop ecx
pop ecx
jmp 0x42e217
push ebx
push ebx
push ebx
push ebx
push 0x44c626
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x42e109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42e0e7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x42e0f2
mov esi, 0x80004005
push esi
push 0x93
push 0x44c21a
call fcn.0043180e
push 0x44c606
jmp 0x42e0b0
lea eax, [ebp - 0xc]
push eax
push 0x78
push 0x44c5e6
push 0x40312c
call fcn.004370d8
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jbe 0x42e15b
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 0xc]
push eax
push 6
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 8]
lea eax, [ebp - 8]
push dword [edi + 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0042dd30
mov esi, eax
cmp esi, ebx
jge 0x42e196
push dword [ebp - 8]
push 0x44c5bc
push esi
call fcn.004317fa
add esp, 0xc
jmp 0x42e217
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x24]
lea esi, [ebp - 0x1c]
call fcn.0042d6a4
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [edi + 8]
push dword [edi + 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0042ddf0
mov esi, eax
cmp esi, ebx
jge 0x42e1f5
push dword [ebp - 8]
push 0x44c5a0
push esi
call fcn.004317fa
add esp, 0xc
jmp 0x42e208
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x42e208
cmp word [eax], bx
je 0x42e208
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], 0xffffffff
je 0x42e217
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x42e224
push dword [ebp - 0x14]
call fcn.0042ee18
cmp dword [ebp - 4], ebx
je 0x42e232
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
je 0x42e23f
push dword [ebp - 8]
call fcn.0042ee18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x42eb72
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
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.00408720
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 0x42eba8
mov eax, 0x43b99e
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push 0x43f504
push eax
call fcn.004302dc
mov edi, eax
add esp, 0x10
cmp edi, ebx
jl 0x42ec28
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 0x42ec1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42ec00
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42ec0b
mov edi, 0x80004005
push edi
push 0xa6
push 0x44cab0
call fcn.0043180e
jmp 0x42ec28
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 0x42ec3b
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x42ec48
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x42ec55
push dword [ebp - 4]
call fcn.0042ee18
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4309ee
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
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 0x430ab3
cmp word [eax], bx
je 0x430ab3
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042fd78
mov esi, eax
cmp esi, ebx
jl 0x430b36
lea eax, [ebp - 4]
push eax
call fcn.00430996
mov esi, eax
cmp esi, ebx
jl 0x430b36
mov ebx, dword [ebp + 0x14]
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jb 0x430b2a
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004302dc
mov esi, eax
add esp, 0xc
test esi, esi
js 0x430b36
push dword [ebp - 8]
push dword [ebp - 4]
push 0x44cbc4
push ebx
call fcn.004302dc
mov esi, eax
add esp, 0x10
test esi, esi
js 0x430b36
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x430b0b
inc edi
mov esi, 0x800700b7
cmp edi, dword [ebp + 0x10]
jbe 0x430a4b
jmp 0x430b36
mov edi, 0x104
push edi
lea eax, [ebp - 4]
push eax
call fcn.0042ed04
mov esi, eax
cmp esi, ebx
jl 0x430b36
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x430a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x430aee
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x430af9
mov esi, 0x80004005
push esi
push 0x2cf
push 0x44cb90
call fcn.0043180e
jmp 0x430b36
cmp eax, 3
jne 0x430b1a
push esi
push dword [ebx]
call fcn.00435a98
jmp 0x430b28
cmp eax, esi
jle 0x430b28
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x430b36
push ebx
call fcn.00430996
mov esi, eax
cmp dword [ebp - 8], 0
je 0x430b44
push dword [ebp - 8]
call fcn.0042ee18
cmp dword [ebp - 4], 0
je 0x430b52
push dword [ebp - 4]
call fcn.0042ee18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x430b5c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, dword [esp + 0xc]
push 0x104
push esi
call fcn.0042ed04
test eax, eax
js 0x430b8e
push dword [esi]
push 0
push 0
push dword [esp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x430b8e
push esi
call fcn.00430996
pop esi
ret 8
Function at 0x430ef0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
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 [0x450c58], 0xffffffff
mov dword [ebp + 8], eax
jne 0x430f2c
push ebx
push edi
push 0x451b74
call fcn.0042ffda
mov ebx, eax
test ebx, ebx
js 0x430f84
xor ebx, ebx
jmp 0x430f84
test eax, eax
je 0x430f84
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 [0x450c58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x430f64
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x430f74
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x430f30
jmp 0x430f84
push ebx
push 0x30d
push 0x44cc22
call fcn.0043180e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4314d2
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
push edi
mov edi, dword [0x450c60]
mov eax, 0x104
push eax
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x198]
push eax
push ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x431534
push esi
lea eax, [ebp + 0x198]
push ebx
push eax
call fcn.00408720
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x198]
push eax
call fcn.004353bc
test eax, eax
jns 0x431552
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x43156d
lea eax, [ebp - 0x70]
mov byte [eax], bl
inc eax
dec esi
jne 0x431567
push ebx
lea eax, [ebp - 0x74]
push eax
call fcn.00437214
push dword [ebp - 0x74]
xor esi, esi
push 0x44cd5e
inc esi
push esi
call fcn.0043144a
mov eax, dword [ebp - 0x7c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x78]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp + 0x198]
push eax
push 0x44cd40
push esi
call fcn.0043144a
lea eax, [ebp - 0x70]
push eax
push 0x44cd30
push esi
call fcn.0043144a
mov eax, dword [0x450c5c]
add esp, 0x34
sub eax, ebx
je 0x4315ec
dec eax
je 0x4315e4
dec eax
je 0x4315dc
dec eax
jne 0x4315f2
mov edi, dword [0x450c6c]
jmp 0x4315f2
mov edi, dword [0x450c68]
jmp 0x4315f2
mov edi, dword [0x450c64]
jmp 0x4315f2
mov edi, dword [0x450c70]
push edi
push 0x44cd14
push esi
call fcn.0043144a
add esp, 0xc
cmp dword [ebp - 0x74], ebx
pop edi
pop esi
pop ebx
je 0x431611
push dword [ebp - 0x74]
call fcn.0042ee18
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
xor eax, eax
call fcn.00408498
add ebp, 0x3a4
leave
ret
Function at 0x4318f2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4509f8]
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.00408720
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 0x43198a
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x431961
push 1
push 0x44cbce
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004318a4
mov edi, eax
test edi, edi
js 0x4319a9
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00431864
mov edi, eax
test edi, edi
js 0x4319a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x4319a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43199e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4319a9
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
leave
ret 8
Function at 0x434558
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
push 0x44d00a
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
jne 0x4345d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x434595
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x4345a0
mov edi, 0x80004005
push edi
push 0x8d
push 0x44cfba
call fcn.0043180e
mov eax, dword [ebp - 8]
test eax, eax
je 0x4345bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4345ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44caf6
push edi
call esi
test eax, eax
je 0x434624
push 0x44cb06
push edi
call esi
push 0x44cfec
push edi
mov ebx, eax
call esi
push 0x44cb26
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x434613
cmp dword [ebp - 0xc], 0
je 0x434613
test eax, eax
jne 0x434617
xor ebx, ebx
jmp 0x434624
lea eax, [ebp - 0x10]
push eax
call ebx
push 1
call dword [ebp - 0xc]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x4026d0
push 1
push 0
mov esi, 0x451c2c
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4346c0
push 0x10
push 0x4026c0
push esi
call fcn.00409228
add esp, 0xc
test eax, eax
je 0x43466b
push 0x10
push 0x4026b0
push esi
call fcn.00409228
add esp, 0xc
test eax, eax
jne 0x434675
mov dword [0x451c48], 1
cmp dword [ebp + 8], 0
je 0x4346a4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004342d2
mov edi, eax
test edi, edi
js 0x4346c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push dword [ebp - 8]
push eax
call dword [ecx + 0x54]
mov edi, eax
test edi, edi
js 0x4346c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4346c0
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [eax], ecx
pop esi
test ebx, ebx
je 0x4345b0
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x4345b0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x434bd6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x120
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push edi
mov edi, dword [ebp + 0x78]
push 0x11c
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00408720
add esp, 0xc
cmp dword [0x451c50], 0
jne 0x434ce7
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp + 0x64]
movzx ecx, word [ebp + 0x66]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0xac], 4
mov dword [0x451c54], eax
jne 0x434c59
mov dword [0x451c50], 1
jmp 0x434ce7
cmp dword [ebp - 0xac], 5
jne 0x434ca6
cmp dword [ebp - 0xa8], 0
jne 0x434c77
mov dword [0x451c50], 2
jmp 0x434ce7
cmp dword [ebp - 0xa8], 1
jne 0x434c8c
mov dword [0x451c50], 3
jmp 0x434ce7
xor eax, eax
cmp dword [ebp - 0xa8], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x451c50], eax
jmp 0x434ce7
cmp dword [ebp - 0xac], 6
jne 0x434cdd
cmp dword [ebp - 0xa8], 0
jne 0x434cc6
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 5
jmp 0x434c9f
cmp dword [ebp - 0xa8], 1
jne 0x434cdd
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 7
jmp 0x434c9f
mov dword [0x451c50], 9
mov eax, dword [0x451c50]
mov ecx, dword [ebp + 0x6c]
mov dword [edi], eax
mov eax, dword [0x451c54]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x70
leave
ret 8

Function at 0x434d88
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00434d08
cmp dword [ebp - 0x14], ebx
je 0x434dc6
mov dword [esi], 1
jmp 0x434dfa
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x434dfa
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x434dfa
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x434e09
push dword [ebp - 0x10]
call fcn.004367dc
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00408498
leave
ret 4
Function at 0x434eca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
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 0x434f12
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434f0c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x434f1c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x434ed9
jmp 0x434f2c
push edi
push 0x34c
push 0x44d0b8
call fcn.0043180e
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x434f34
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b8c0
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
mov ebx, dword [ebp + 0xfb0]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfa4]
xor esi, esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], esi
xor edi, edi
mov ecx, dword [ebp + 0xfa8]
xor edx, edx
cmp ecx, edx
jne 0x434f94
cmp dword [ebp + 0xfac], edx
jne 0x434f94
mov dword [ebp - 0x74], 0x1000
jmp 0x434fbc
mov eax, dword [ebp + 0xfac]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x434fb6
ja 0x434fac
cmp ecx, 0x1000
jbe 0x434fb6
mov ecx, 0x1000
mov dword [ebp - 0x74], edx
jmp 0x434fb9
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], ecx
push edx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435039
cmp dword [ebp - 0x74], 0
je 0x434ff1
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call fcn.00434eca
mov dword [ebp - 0x70], eax
test eax, eax
js 0x43501c
add edi, dword [ebp - 0x74]
adc esi, 0
cmp esi, dword [ebp + 0xfac]
ja 0x435013
jb 0x435009
cmp edi, dword [ebp + 0xfa8]
jae 0x435013
cmp dword [ebp - 0x74], 0
jne 0x434f77
test ebx, ebx
je 0x43501c
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0xf98
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43504d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x70], eax
test eax, eax
jl 0x43505b
mov dword [ebp - 0x70], 0x80004005
push dword [ebp - 0x70]
push 0x36c
push 0x44d0b8
call fcn.0043180e
jmp 0x43501c
Function at 0x435070
Capabilities:
Copy file

Disassembly:
mov edi, edi
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 0x43514b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x4350b9
cmp eax, 0x50
je 0x4350b1
cmp eax, 0xb7
jne 0x4350b9
xor edi, edi
inc edi
jmp 0x43514b
cmp eax, 3
jne 0x43513b
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x435134
cmp ax, 0x5c
jne 0x4350d0
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4350c8
test esi, esi
je 0x435134
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00435a98
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x43514b
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43514b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43511c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x43514b
push edi
push 0x3b1
push 0x44d0b8
call fcn.0043180e
jmp 0x43514b
mov edi, 0x80070003
jmp 0x43514b
cmp eax, esi
jle 0x435149
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4351a8
Capabilities:
Move file

Disassembly:
mov edi, edi
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 0x4351c4
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x4351cd
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 0x435296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x435204
cmp eax, 0x50
je 0x4351fc
cmp eax, 0xb7
jne 0x435204
xor edi, edi
inc edi
jmp 0x435296
cmp eax, 3
jne 0x435286
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x43527f
cmp ax, 0x5c
jne 0x43521b
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435213
test esi, esi
je 0x43527f
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00435a98
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x435296
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x435296
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435267
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x435296
push edi
push 0x424
push 0x44d0b8
call fcn.0043180e
jmp 0x435296
mov edi, 0x80070003
jmp 0x435296
cmp eax, esi
jle 0x435294
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4352fc
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
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.00434e54
test eax, eax
je 0x43538c
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x435359
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x435359
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43534b
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x435359
push ebx
push 0x519
jmp 0x435380
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43538a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435374
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x43538a
push ebx
push 0x51f
push 0x44d0b8
call fcn.0043180e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4353bc
Capabilities:
Get file version info

Disassembly:
mov edi, edi
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 0x435418
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4353fd
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435418
push esi
push 0x118
push 0x44d0b8
call fcn.0043180e
jmp 0x4354c1
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x435437
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x435409
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x435466
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435458
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435466
push esi
push 0x120
jmp 0x435499
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44cbce
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4354a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43548d
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4354a5
push esi
push 0x125
push 0x44d0b8
call fcn.0043180e
jmp 0x4354b8
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