joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xaee008], 0x8088405
inc edx
mov dword [ebx + 0xaee008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xad254a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xad2551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xad38af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0xaf0348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0xaf0348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0xaef178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xad38b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1001128
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, 0x100
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x864]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10010b8
mov edi, 0x400
push 0x80000002
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10010b0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x864]
push eax
push edi
push 0x10010a8
push 0x100109c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x100108c
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0xef6d34
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef6d3e
pushal
call 0xef6d44
pop ebp
sub ebp, 0x10
sub ebp, 0xaf6d34
jmp 0xef6d5a
mov eax, 0xaf6d34
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xa32ef052
xor byte [eax], dl
inc eax
dec ecx
jne 0xef6d71
jmp 0xef6d84
fstp dword [edi + 0x526edbd9]
push edx
push edx
rcl dword [ebx + 0x525252aa], cl
push ecx
lahf
ljmp 0x7ae8
Function at 0x40a109
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0xc
cmp eax, 4
jb 0x40a15b
push esi
mov esi, dword [ecx]
push edi
lea edi, [eax - 3]
add edi, esi
cmp esi, edi
jae 0x40a159
push ebx
lea ebx, [ecx + 8]
mov edx, dword [esi]
mov eax, edx
imul ecx, edx, 0x25
shr eax, 0x11
add ecx, eax
imul eax, edx, 0x11
shr edx, 0x17
add ecx, eax
lea eax, [ebp - 4]
xor ecx, edx
mov dword [ebp - 4], ecx
mov ecx, ebx
push dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00409e63
inc esi
cmp esi, edi
jb 0x40a128
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
call fcn.004248a0
mov esi, eax
push 0x460288
mov ecx, esi
call fcn.00424c50
test al, al
jne 0x421849
push str.vmodule
mov ecx, esi
call fcn.00424c50
test al, al
je 0x421986
cmp dword [0x470efc], ebx
je 0x421870
push str._g_vlog_info_prev
push 0x17a
push str..._.._base_logging.cc
lea ecx, [ebp - 0xf8]
call fcn.00421080
mov ebx, 1
test bl, 1
je 0x421883
lea ecx, [ebp - 0xf8]
and ebx, 0xfffffffe
call fcn.00421220
mov eax, dword [0x470ef8]
push 0x10
mov dword [0x470efc], eax
call fcn.0043dbb3
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x421933
cmp byte [str.vmodule], 0
mov dword [ebp - 0x40], str.vmodule
jne 0x4218bb
mov dword [ebp - 0x3c], 0
jmp 0x4218cf
mov ecx, str.vmodule
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4218c3
sub ecx, edx
mov dword [ebp - 0x3c], ecx
cmp byte [0x460288], 0
mov dword [ebp - 0x48], 0x460288
jne 0x4218e8
mov dword [ebp - 0x44], 0
jmp 0x4218fc
mov ecx, 0x460288
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4218f0
sub ecx, edx
mov dword [ebp - 0x44], ecx
push 0x470f00
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
or ebx, 6
push eax
call fcn.00424a80
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00424a80
mov ecx, dword [ebp - 0x38]
push eax
call fcn.0042c510
mov dword [0x470ef8], eax
jmp 0x42193d
mov dword [0x470ef8], 0
test bl, 4
je 0x42196c
mov eax, dword [ebp - 8]
and ebx, 0xfffffffb
cmp eax, 0x10
jb 0x42195a
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00420d40
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
test bl, 2
je 0x421986
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x421986
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00420d40
mov eax, dword [edi]
mov dword [0x470008], eax
test al, 1
jne 0x4219a4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
mov eax, dword [0x470f08]
test eax, eax
je 0x4219be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x470f08], 0
mov edx, dword [0x470f04]
test edx, edx
jne 0x4219f5
push 0x18
call fcn.0043dbb3
mov edx, eax
add esp, 4
test edx, edx
je 0x4219ed
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x4219ef
xor edx, edx
mov dword [0x470f04], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x421a02
xor ecx, ecx
jmp 0x421a16
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421a07
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00422600
cmp dword [edi + 0xc], 0
jne 0x421a39
mov eax, dword [0x470f04]
cmp dword [eax + 0x14], 8
jb 0x421a32
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00421f80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
Function at 0x421f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x470f08], 0
jne 0x4220c4
mov eax, dword [0x470f04]
test eax, eax
jne 0x421fc9
push 0x18
call fcn.0043dbb3
add esp, 4
test eax, eax
je 0x421fc2
push eax
call fcn.00421aa0
add esp, 4
jmp 0x421fc4
xor eax, eax
mov dword [0x470f04], eax
test byte [0x470008], 1
je 0x4220c4
cmp dword [eax + 0x14], 8
jb 0x421fde
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x470f08], eax
cmp eax, 0xffffffff
je 0x422006
test eax, eax
jne 0x4220c4
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4220b4
cmp eax, 0x104
ja 0x4220b4
mov ecx, dword [0x470f04]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00421580
mov esi, dword [0x470f04]
mov ecx, esi
call fcn.00422700
cmp word [eax], 0x5c
je 0x42206c
push 0x45ef34
mov ecx, esi
call fcn.004217b0
mov esi, dword [0x470f04]
push str.debug.log
mov ecx, esi
call fcn.004217b0
mov eax, dword [0x470f04]
pop esi
cmp dword [eax + 0x14], 8
jb 0x422086
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x470f08], eax
cmp eax, 0xffffffff
je 0x4220aa
test eax, eax
jne 0x4220c4
mov dword [0x470f08], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret

Function at 0x424d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x470f34], 0
je 0x424d29
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.0043dbb3
add esp, 4
test eax, eax
je 0x424d47
push 0
mov ecx, eax
call fcn.004240d0
mov dword [0x470f34], eax
jmp 0x424d51
mov dword [0x470f34], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00420fd0
mov ecx, dword [0x470f34]
lea eax, [ebp - 0x1c]
push eax
call fcn.004251b0
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x424d84
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00422720
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
Function at 0x4251b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push 3
push eax
mov dword [ebp - 0xc], 0
call fcn.0042c220
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x425228
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.00424f00
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x42523d
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00422720
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret 4

Function at 0x427d30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x52c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 3
push 0
push eax
call fcn.0042ddb0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x52c]
call fcn.0042e080
cmp dword [ebp - 0xc], 0
je 0x427e51
mov bl, byte [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x52c]
call fcn.0042dff0
mov ecx, dword [ebp - 0x284]
test cl, 1
je 0x427dcc
test bl, bl
jne 0x427db6
lea ecx, [ebp - 0x284]
call fcn.0042e070
test al, al
jne 0x427dcc
mov ecx, dword [ebp - 0x284]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x284]
call fcn.0042e070
test al, al
je 0x427e06
test bl, bl
je 0x427e1c
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00427d30
add esp, 0xc
test al, al
je 0x427e79
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
jmp 0x427e18
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x427e79
lea ecx, [ebp - 0x284]
call fcn.0040d4b0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x52c]
call fcn.0042e080
push eax
lea ecx, [ebp - 0x1c]
call fcn.00425ff0
lea ecx, [ebp - 0x34]
call fcn.004241b0
cmp dword [ebp - 0xc], 0
jne 0x427d80
lea ecx, [ebp - 0x1c]
call fcn.004241b0
mov bl, 1
lea ecx, [ebp - 0x52c]
call fcn.0042df70
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x284]
call fcn.0040d4b0
lea ecx, [ebp - 0x1c]
call fcn.004241b0
xor bl, bl
jmp 0x427e5b
Function at 0x427ea0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x427ed3
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x428028
push esi
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004263d0
push 2
push 0
push 0x45f000
mov ecx, eax
call fcn.00425b10
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004241b0
cmp esi, 0xffffffff
pop esi
je 0x427f51
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.004263d0
push dword [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004264d0
push eax
call fcn.00427d30
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.004241b0
lea ecx, [ebp - 0x34]
call fcn.004241b0
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x427f5b
mov eax, dword [edi]
jmp 0x427f5d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x427ec1
test al, 1
je 0x427f96
cmp dword [edi + 0x14], 8
jb 0x427f7e
mov ecx, dword [edi]
jmp 0x427f80
mov ecx, edi
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x428028
mov eax, dword [ebp - 0x3c]
test al, 0x10
jne 0x427fbf
cmp dword [edi + 0x14], 8
jb 0x427fa2
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
pop edi
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], bl
je 0x427fec
push 0x45f008
lea ecx, [ebp - 0x1c]
call fcn.00420fd0
mov ebx, 1
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
call fcn.00427d30
add esp, 0xc
mov byte [ebp - 0x35], 0
test al, al
je 0x427ff0
mov byte [ebp - 0x35], 1
test bl, 1
je 0x427ffd
lea ecx, [ebp - 0x1c]
call fcn.004241b0
cmp byte [ebp - 0x35], 0
je 0x428028
cmp dword [edi + 0x14], 8
jb 0x42800b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop edi
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
Function at 0x428040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4280f5
lea eax, [ebp - 0x228]
push eax
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x428098
xor eax, eax
jmp 0x4280b0
lea eax, [ebp - 0x210]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4280a1
sub eax, esi
sar eax, 1
lea ecx, [ebp - 0x240]
mov dword [edx + 4], eax
call fcn.00425f10
mov ecx, eax
call fcn.00427450
push eax
mov ecx, edi
call fcn.00425ff0
lea ecx, [ebp - 0x228]
call fcn.004241b0
lea ecx, [ebp - 0x240]
call fcn.004241b0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret

Function at 0x428190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x4281b0
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00428110
mov eax, dword [ebp - 4]
test eax, eax
je 0x428207
cmp eax, 0xffffffff
je 0x428207
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428204
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x428204
mov eax, dword [ebp - 4]
jmp 0x42820a
mov eax, dword [ebp - 4]
or esi, 0xffffffff
test eax, eax
je 0x428234
cmp eax, 0xffffffff
je 0x428234
call fcn.0042ce40
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call fcn.0042d6d0
push dword [ebp - 4]
call fcn.0042d210
add esp, 0x14
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret