joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af158
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4af184
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404c98
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4af1a9
call fcn.00410590
xor eax, eax
push ebp
push 0x4af1e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4af1c9
call fcn.00410590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af1e7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4afb08
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff6c
mov edi, 1
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 4]
mov ebx, dword [esp + 8]
cmp eax, 2
jne 0x4afbb1
mov edi, 2
cmp esi, 5
jne 0x4afb47
test ebx, ebx
jne 0x4afb47
mov edi, 3
cmp esi, 5
jne 0x4afb5b
cmp ebx, 1
je 0x4afb56
cmp ebx, 2
jne 0x4afb5b
mov edi, 4
cmp esi, 6
jne 0x4afb69
test ebx, ebx
jne 0x4afb69
mov edi, 5
cmp esi, 6
jne 0x4afba3
test ebx, ebx
jl 0x4afba3
call fcn.004afa10
cmp eax, 2
jle 0x4afb83
mov edi, 7
jmp 0x4afba3
cmp esi, 6
jne 0x4afb94
cmp ebx, 1
jne 0x4afb94
mov edi, 6
jmp 0x4afba3
cmp esi, 6
jne 0x4afba3
cmp ebx, 2
jl 0x4afba3
mov edi, 8
cmp esi, 0xa
jl 0x4afbb1
test ebx, ebx
jl 0x4afbb1
mov edi, 0xe
mov eax, edi
add esp, 0x94
pop edi
pop esi
pop ebx
ret
Function at 0x4afbc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4afbc8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4afd2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004047bc
xor eax, eax
push ebp
push 0x4afd0a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402bd4
mov eax, dword [ebp - 0x14]
call fcn.00404c98
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4afc27
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afd14
mov eax, esi
call fcn.0040271c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402bd4
mov eax, dword [ebp - 0x18]
call fcn.00404c98
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4afd40
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040ae50
push dword [ebx]
push 0x4afd4c
mov eax, dword [edi + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040ae50
push dword [ebp - 0x1c]
mov eax, ebx
mov edx, 3
call fcn.00404b58
push dword [ebx]
push 0x4afd4c
mov eax, dword [edi + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040ae50
push dword [ebp - 0x20]
mov eax, ebx
mov edx, 3
call fcn.00404b58
push dword [ebx]
push 0x4afd4c
mov eax, dword [edi + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040ae50
push dword [ebp - 0x24]
mov eax, ebx
mov edx, 3
call fcn.00404b58
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0040273c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afd14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afd36
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004047e0
ret
Function at 0x4b0320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4b0441
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x4b045c
push esi
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b58
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x64], 0x44
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], 1
mov word [ebp - 0x32], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404c98
push eax
push ebx
push 0x20
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c98
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov dword [ebp - 8], 0x103
jmp 0x4b03fd
push 0x3e8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp bl, 1
jne 0x4b0411
cmp dword [ebp - 8], 0x103
jne 0x4b0411
cmp byte [ebp + 8], 1
je 0x4b03e6
mov esi, dword [ebp - 8]
cmp bl, 1
jne 0x4b042b
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0448
lea eax, [ebp - 4]
call fcn.004047bc
ret
Function at 0x45a8c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x45a8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45a8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a8d8
mov eax, 1
add ebx, ebx
jne 0x45a8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45a90c
jne 0x45a92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a92b
dec eax
add ebx, ebx
jne 0x45a918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45a8f0
add ebx, ebx
jne 0x45a927
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45a97d
xor ecx, ecx
sub eax, 3
jb 0x45a943
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45a9b2
sar eax, 1
mov ebp, eax
jmp 0x45a94e
add ebx, ebx
jne 0x45a94e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a91c
inc ecx
add ebx, ebx
jne 0x45a95c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a91c
add ebx, ebx
jne 0x45a969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45a95e
jne 0x45a97a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45a95e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45a99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45a98e
jmp 0x45a8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45a99c
add edi, ecx
jmp 0x45a8de
pop esi
mov edi, esi
mov ecx, 0x8b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45a9ba
cmp byte [edi], 5
jne 0x45a9ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45a9bf
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45aa37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a0c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45a9ec
mov ecx, edi
jns 0x45aa1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a108]
or eax, eax
je 0x45aa31
mov dword [ebx], eax
add ebx, 4
jmp 0x45aa09
call dword [esi + 0x5a118]
mov ebp, dword [esi + 0x5a10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45aa6b
sub esp, 0xffffff80
jmp 0x40138c
Function at 0x401960
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00413190
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0040e340
add esp, 0x98
ret

Function at 0x4019c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00413190
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0040e340
add esp, 0x98
ret

Function at 0x401a20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push 8
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401a72
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e340
add esp, 0x18
ret
push esi
push 0x10000
call fcn.0040ea22
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x401a99
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e340
add esp, 0x18
ret
mov edx, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x10000
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x401ae6
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401b03
push esi
call fcn.0040e945
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e340
add esp, 0x18
ret
xor edi, edi
push ebp
cmp dword [esi], ebx
jbe 0x401b29
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
jne 0x401b52
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x401b13
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.0040e945
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e340
add esp, 0x18
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.0040e945
mov ecx, dword [esp + 0x28]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040e340
add esp, 0x18
ret
Function at 0x401b80
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x130], eax
push edi
push 0x94
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esi + 8], 0xffffffff
call fcn.00413190
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], 0x94
call edi
cmp dword [esp + 0xa4], 5
jb 0x401c23
push 0x9c
lea edx, [esp + 8]
push 0
push edx
call fcn.00413190
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x9c
call edi
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, 5
jne 0x401c7a
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x401c3b
cmp word [esp + 0x98], 4
mov dword [esi + 8], ecx
jae 0x401d84
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, eax
jne 0x401c58
mov dword [esi + 8], eax
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, 2
jne 0x401d84
mov dword [esi + 8], ecx
pop edi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, 6
jne 0x401d3a
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jne 0x401cb4
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 3
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, eax
jne 0x401ce0
xor edx, edx
cmp byte [esp + 0x9e], al
pop edi
setne dl
add edx, 5
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, 2
jne 0x401d0d
xor ecx, ecx
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 7
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp ecx, 3
jne 0x401d84
xor edx, edx
cmp byte [esp + 0x9e], al
pop edi
setne dl
add edx, 9
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
cmp dword [esp + 0xa4], 0xa
jne 0x401d7d
cmp dword [esp + 0xa8], 0
mov dword [esi + 8], 0xb
jne 0x401d7d
xor ecx, ecx
cmp byte [esp + 0x9e], al
pop edi
setne cl
add ecx, 0xb
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
mov dword [esi + 8], 0xd
mov ecx, dword [esp + 0x134]
pop edi
xor ecx, esp
call fcn.0040e340
add esp, 0x134
ret
Function at 0x401ee0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x418680
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4212d0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
mov eax, 0xf
mov esi, ecx
mov edi, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, edi
mov byte [esp + 0x5c], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401f47
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00403a90
push 1
push 0x41e460
lea eax, [esp + 0x20]
call fcn.00402ad0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401f70
sub eax, edx
push eax
push esi
lea eax, [esp + 0x20]
call fcn.00402ad0
lea ebx, [esp + 0x34]
mov ecx, esi
call fcn.00402080
mov ecx, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0x401fa2
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x401fb0
lea eax, [esp + 0x1c]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401fff
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x401fea
mov eax, 0x13
mov ecx, 0x1d9
mov word [esi], ax
mov word [esi + 2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x401fec
xor esi, esi
push 0x41f244
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], esi
call fcn.0040f38b
lea edx, [ebp + 0x94]
lea ecx, [esp + 0x18]
call fcn.00402d90
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.004030a0
cmp dword [esp + 0x30], esi
jb 0x402032
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040eded
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], esi
jb 0x402055
mov eax, dword [esp + 0x38]
push eax
call fcn.0040eded
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040e340
add esp, 0x4c
ret 4
Function at 0x402080
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x128
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push 0x104
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x24], 0
call fcn.00413190
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402107
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020d0
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00403a90
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040e340
add esp, 0x128
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x12]
push edx
push eax
push ecx
push esi
push edi
push str._s_s__d_d_d.tmp
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.0040eb9d
add esp, 0x20
test eax, eax
jle 0x40217c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402150
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00403a90
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0040e340
add esp, 0x128
ret
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x4021a8
mov ecx, 0x13
mov edx, 0x257
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4021aa
xor esi, esi
push 0x41f244
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
call fcn.0040f38b
int3
Function at 0x402620
Capabilities:
Create directory

Disassembly:
push ecx
push esi
push edi
mov esi, eax
mov edi, ecx
push esi
push edi
mov ecx, str.CreateDirectory:
call fcn.004029e0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40268c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x402694
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x402677
mov eax, 0x13
mov ecx, 0x315
mov word [esi], ax
mov word [esi + 2], cx
call edi
mov dword [esi + 4], eax
jmp 0x402679
xor esi, esi
push 0x41f244
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], esi
call fcn.0040f38b
push edi
mov edx, esi
call fcn.00401e40
pop edi
pop esi
pop ecx
ret

Function at 0x4026a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0x94]
mov esi, dword [eax]
add edi, 0x94
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test ecx, ecx
je 0x4026d8
cmp ecx, eax
je 0x4026dd
call fcn.0040eda9
cmp esi, ebx
je 0x402777
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402709
call fcn.0040eda9
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4026fe
call fcn.0040eda9
cmp dword [esi + 0x40], 0x10
jb 0x40270d
mov eax, dword [esi + 0x2c]
jmp 0x402710
mov eax, dword [eax]
jmp 0x4026f4
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], 0
jne 0x402723
call fcn.0040eda9
cmp byte [esi + 0x45], 0
je 0x402730
call fcn.0040eda9
jmp 0x4026c7
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], 0
jne 0x402752
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x4026c7
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x402743
jmp 0x4026c7
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x402770
jmp 0x402760
cmp esi, dword [eax + 8]
jne 0x402770
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x402760
mov esi, eax
jmp 0x4026c7
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, edi
call fcn.00403730
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
xor ebx, ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov edi, dword [edi + 0x18]
add esi, 0xb4
mov dword [edi + 8], edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00403870
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov esi, dword [esi + 0x18]
pop edi
mov dword [esi + 8], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4027d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
push ebx
mov ebx, dword [eax + 0x34]
push esi
mov esi, dword [ecx]
push edi
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x4c]
mov eax, dword [eax + 0x34]
test ebx, ebx
je 0x4027f6
cmp ebx, eax
je 0x4027fb
call fcn.0040eda9
cmp esi, edi
je 0x40293f
test ebx, ebx
jne 0x402846
call fcn.0040eda9
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x402818
call fcn.0040eda9
cmp dword [esi + 0x28], 1
jne 0x4028db
test ebx, ebx
jne 0x40284a
call fcn.0040eda9
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x402837
call fcn.0040eda9
mov edi, 0x10
cmp dword [esi + 0x24], edi
jb 0x40284e
mov eax, dword [esi + 0x10]
jmp 0x402851
mov eax, dword [ebx]
jmp 0x40280e
mov eax, dword [ebx]
jmp 0x40282d
lea eax, [esi + 0x10]
mov edx, dword [ebp + 8]
push eax
push edx
mov ecx, str.RemoveInstallFiles:
call fcn.004029e0
test ebx, ebx
jne 0x40287f
call fcn.0040eda9
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x402875
call fcn.0040eda9
cmp dword [esi + 0x24], edi
jb 0x402883
mov eax, dword [esi + 0x10]
jmp 0x402886
mov eax, dword [ebx]
jmp 0x40286b
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4028db
test ebx, ebx
jne 0x4028b0
call fcn.0040eda9
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4028a6
call fcn.0040eda9
cmp dword [esi + 0x24], edi
jb 0x4028b4
mov eax, dword [esi + 0x10]
jmp 0x4028b7
mov eax, dword [ebx]
jmp 0x40289c
lea eax, [esi + 0x10]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push 0
mov dword [ecx], 1
push eax
mov ecx, 0x41e488
call fcn.004029e0
test ebx, ebx
jne 0x4028e4
call fcn.0040eda9
cmp byte [esi + 0x2d], 0
je 0x4028f4
call fcn.0040eda9
jmp 0x4027e5
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x40291f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x4027e5
jmp 0x402910
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x402910
jmp 0x4027e5
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x402938
cmp esi, dword [eax + 8]
jne 0x402938
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x402928
mov esi, eax
jmp 0x4027e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4