joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a40a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100873cd
call fcn.10063fe3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1004a46b
call fcn.1002c67a
mov esi, eax
jmp 0x1004a543
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1004a489
call fcn.1002c67a
jmp 0x1004a53a
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1004a47f
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1004a4bc
mov esi, 0x8007000e
jmp 0x1004a53c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100499e7
mov dword [ebp - 4], 1
jmp 0x1004a4f0
cmp dword [ebp - 0x418], 0
je 0x1004a4b2
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1004a47f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.100499e7
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1004a55c
lea ecx, [ebp - 0x418]
call fcn.1004a63d
mov eax, esi
call fcn.1006403c
ret 0x10
Function at 0x10063241
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10093b08
call fcn.10068f85
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100632cf
call fcn.10068f53
test eax, eax
jne 0x10063265
xor eax, eax
jmp 0x1006339b
call fcn.10068335
test eax, eax
jne 0x10063275
call fcn.10068f71
jmp 0x1006325e
call fcn.10068f07
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x100a2ed4], eax
call fcn.100499e7
mov dword [0x100a0e2c], eax
call fcn.100499e7
test eax, eax
jns 0x1006329f
call fcn.1006800e
jmp 0x1006326e
call fcn.100499e7
test eax, eax
js 0x100632c8
call fcn.10068b3f
test eax, eax
js 0x100632c8
push 0
call fcn.100499e7
pop ecx
test eax, eax
jne 0x100632c8
inc dword [0x100a0e28]
jmp 0x10063398
call fcn.10068aec
jmp 0x10063298
xor edi, edi
cmp eax, edi
jne 0x1006332e
cmp dword [0x100a0e28], edi
jle 0x1006325e
dec dword [0x100a0e28]
mov dword [ebp - 4], edi
cmp dword [0x100a119c], edi
jne 0x100632f3
call fcn.1006887a
cmp dword [ebp + 0x10], edi
jne 0x10063307
call fcn.10068aec
call fcn.1006800e
call fcn.10068f71
mov dword [ebp - 4], 0xfffffffe
call fcn.1006331a
jmp 0x10063398
cmp eax, 2
jne 0x1006338c
call fcn.10067fda
push 0x214
push 1
call fcn.100499e7
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1006325e
push esi
push dword [0x1009e504]
push dword [0x100a1178]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x10063380
push edi
push esi
call fcn.1006804f
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x10063398
push esi
call fcn.100499e7
pop ecx
jmp 0x1006325e
cmp eax, 3
jne 0x10063398
push edi
call fcn.100499e7
pop ecx
xor eax, eax
inc eax
call fcn.10068fca
ret 0xc

Function at 0x10063f36
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100a0f50], eax
mov dword [0x100a0f4c], ecx
mov dword [0x100a0f48], edx
mov dword [0x100a0f44], ebx
mov dword [0x100a0f40], esi
mov dword [0x100a0f3c], edi
mov word [0x100a0f68], ss
mov word [0x100a0f5c], cs
mov word [0x100a0f38], ds
mov word [0x100a0f34], es
mov word [0x100a0f30], fs
mov word [0x100a0f2c], gs
pushfd
pop dword [0x100a0f60]
mov eax, dword [ebp]
mov dword [0x100a0f54], eax
mov eax, dword [ebp + 4]
mov dword [0x100a0f58], eax
lea eax, [ebp + 8]
mov dword [0x100a0f64], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100a0ea0], 0x10001
mov eax, dword [0x100a0f58]
mov dword [0x100a0e54], eax
mov dword [0x100a0e48], 0xc0000409
mov dword [0x100a0e4c], 1
mov eax, dword [0x1009e4f8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1009e4fc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100a0e98], eax
push 1
call fcn.100693d8
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10006b5c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100a0e98], 0
jne 0x100638a0
push 1
call fcn.100693d8
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
cmp ecx, dword [0x1009e4f8]
jne 0x100637b4
repz ret
Function at 0x1007b102
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
test ecx, ecx
je 0x1007b118
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x1007b126
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], ebx
push edi
mov edi, dword [esi + 0x210]
test edi, edi
je 0x1007b145
mov ecx, edi
call fcn.1007b102
push edi
call fcn.100499e7
pop ecx
mov dword [esi + 0x210], ebx
add esi, 0x214
pop edi
cmp byte [esi], bl
je 0x1007b159
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov byte [esi], bl
pop esi
pop ebx
ret

Function at 0x1008260c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x100946d0
call fcn.10068f85
xor esi, esi
mov dword [ebp - 0x34], esi
mov edi, 0x80030002
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x10082828
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1008281e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1008280b
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
call fcn.100499e7
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
call fcn.100499e7
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
js 0x100826e6
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x100826de
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x24]
call fcn.100499e7
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jns 0x100826e6
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x28], esi
jmp 0x100826e6
mov edi, 0x8007000e
mov dword [ebp - 0x20], edi
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10082813
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10082838
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
jmp 0x10082838
push 0x10001964
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
mov edi, esi
test esi, esi
je 0x1008284c
mov edi, esi
jle 0x1008284c
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10082860
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, edi
call fcn.10068fca
ret 0x10
Function at 0x1f367f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x1abe015
lea edi, [esi - 0x16bd015]
push edi
or ebp, 0xffffffff
jmp 0x1f36812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f36819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f36808
mov eax, 1
add ebx, ebx
jne 0x1f3682b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f3683c
jne 0x1f3685b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3685b
dec eax
add ebx, ebx
jne 0x1f36848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f36820
add ebx, ebx
jne 0x1f36857
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f368ad
xor ecx, ecx
sub eax, 3
jb 0x1f36873
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f368e2
sar eax, 1
mov ebp, eax
jmp 0x1f3687e
add ebx, ebx
jne 0x1f3687e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3684c
inc ecx
add ebx, ebx
jne 0x1f3688c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f3684c
add ebx, ebx
jne 0x1f36899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f3688e
jne 0x1f368aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f3688e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f368cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f368be
jmp 0x1f3680e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f368cc
add edi, ecx
jmp 0x1f3680e
pop esi
mov edi, esi
mov ecx, 0x5c833c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1f36907
cmp byte [edi], 0x6e
jne 0x1f368ec
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1f368ea
lea edi, [esi + 0x1b32000]
mov eax, dword [edi]
or eax, eax
je 0x1f3694f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b364ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b3656c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f3690d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b36574]
or eax, eax
je 0x1f36949
mov dword [ebx], eax
add ebx, 4
jmp 0x1f3692a
call dword [esi + 0x1b36570]
mov ebp, dword [esi + 0x1b36578]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x1f36983
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401993
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x4019de
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4019af
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x4019e4
test ecx, ecx
je 0x4019de
test edi, edi
ja 0x4019a4
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x403b26
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x403b3f
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x403b62
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x403b67
inc edi
cmp edi, dword [ebp - 4]
jb 0x403b59
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x403c5f
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x403bbe
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x403b92
cmp cl, 0xff
jne 0x403be9
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x403bf7
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x403bfe
dec ecx
shl edx, cl
and edx, 7
je 0x403b83
movzx ecx, byte [edx + 0x476734]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x47672c], 0
mov cl, byte [ebx + 4]
je 0x403be6
test cl, cl
je 0x403be6
cmp cl, 0xff
jne 0x403b83
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x403b54
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x403c32
movzx esi, byte [edx + 0x476734]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x403c1d
cmp al, 0xff
jne 0x403c2f
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x403bb0
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x403b54
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x403e6e
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x403e90
cmp byte [esi + 0x1c], 0
je 0x403e85
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x4082f6
Capabilities:
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3cc]
push ebx
mov ebx, dword [ebp + 0x3c8]
push esi
push edi
mov dword [ebp - 0x60], eax
xor eax, eax
mov esi, 0x20a
push esi
push eax
mov word [ebp + 0x1b0], ax
lea eax, [ebp + 0x1b2]
push eax
call fcn.0044f620
xor eax, eax
push esi
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
call fcn.0044f620
mov edi, 0x102
push edi
push ebx
lea esi, [edi + 2]
lea eax, [ebp + 0x1b0]
push esi
push eax
call fcn.00450e3e
push edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00450e3e
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0044f620
and dword [ebp - 0x80], 0
lea eax, [ebp + 0x1b0]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x44
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 4
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4083d1
push dword [ebp - 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4083d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4083d3
inc eax
jmp 0x4083d3
xor eax, eax
mov ecx, dword [ebp + 0x3bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f033
add ebp, 0x3c0
leave
ret

Function at 0x409575
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0044f620
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x476d48
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406bde
push eax
push esi
call fcn.00406c00
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x228]
call fcn.00406492
cmp dword [esi + 0x18], 8
jb 0x4095f8
mov eax, dword [esi + 4]
jmp 0x4095fb
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044f033
leave
ret
Function at 0x409798
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x21]
push ecx
push 3
xor esi, esi
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.004069f6
xor eax, eax
cmp dword [ebp - 8], 8
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], esi
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
jae 0x4097d4
lea eax, [ebp - 0x1c]
push esi
push esi
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x409806
fldz
push esi
fstp qword [ebp - 0x2c]
push 1
lea ecx, [ebp - 0x20]
call fcn.00406492
fld qword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044f033
leave
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
and eax, 0x7fffffff
and dword [ebp - 0x30], 0x80000000
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
fild qword [ebp - 0x34]
fchs
faddp st(1)
fmul qword [0x476d80]
jmp 0x4097e7

Function at 0x40bb77
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x486058
push dword [esi]
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00406c00
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x40bbac
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bc05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40bc05
push 0x477ca8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406c00
mov ecx, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x24], 8
jae 0x40bbe3
lea ecx, [ebp - 0x38]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40bbef
lea eax, [ebp - 0x1c]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00406492
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00406492
add esi, 4
cmp esi, 0x4861f4
jl 0x40bb91
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044f033
leave
ret
Function at 0x40c160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x477cd8
call fcn.00406578
test al, al
je 0x40c218
push 0x477cc8
push dword [esi + 0x3c]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0040755e
lea eax, [ebp - 0x3c]
push eax
push 0x476d6c
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00406c00
add esp, 0xc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00406c35
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.00406492
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40c1e4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c1fb
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
call fcn.0040c106
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00406492
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00406492
jmp 0x40c17e
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0044f033
leave
ret

Function at 0x413504
Capabilities:
Check mutex on windows

Disassembly:
push esi
push 0x4785f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x413532
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413532
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x41390a
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9ec]
sub esp, 0xa6c
mov eax, dword [0x4fb448]
xor eax, ebp
mov dword [ebp + 0x9e8], eax
push esi
push edi
lea eax, [ebp - 0x48]
push eax
push 0x26
xor esi, esi
push esi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x413a9f
lea eax, [ebp + 0x7e0]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x413aac
lea eax, [ebp - 0x40]
push eax
push 0x478b10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4139b0
push 0x478af8
lea eax, [ebp + 0x7e0]
push eax
lea ecx, [ebp - 0x64]
call fcn.00406bde
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406c00
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [edi + 0x10]
call fcn.00406770
push esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00406492
lea ecx, [ebp - 0x64]
jmp 0x413a95
xor eax, eax
push 0x7fe
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x1e]
push esi
push eax
call fcn.0044f620
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 0x478ae4
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x7fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x413a25
push 0x478af8
lea eax, [ebp + 0x7e0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406bde
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406c00
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [edi + 0x10]
call fcn.00406770
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.00406492
jmp 0x413a92
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406bde
cmp dword [ebp - 0x28], 3
ja 0x413a83
push 0x478af8
lea eax, [ebp + 0x7e0]
push eax
lea ecx, [ebp - 0x80]
call fcn.00406bde
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406c00
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406770
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.00406492
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.00406492
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 0x10]
call fcn.00406770
lea ecx, [ebp - 0x3c]
push esi
push 1
call fcn.00406492
jmp 0x413aac
push 0x478aac
lea ecx, [edi + 0x10]
call fcn.00406a20
cmp dword [edi + 0x28], 8
jb 0x413ab7
mov edi, dword [edi + 0x14]
jmp 0x413aba
add edi, 0x14
push edi
push 0x478a70
call fcn.0044e8f2
pop ecx
pop ecx
mov ecx, dword [ebp + 0x9e8]
pop edi
xor ecx, ebp
pop esi
call fcn.0044f033
add ebp, 0x9ec
leave
ret