joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100713c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b05b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.100709b0
push 9
push str.lfmgr.dat
lea ecx, [ebp - 0x28]
call fcn.1000c1d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007144c
cmp byte [ebp + 8], al
jne 0x1007143e
xor esi, esi
jmp 0x100714f5
mov ecx, esi
call fcn.10071010
mov esi, eax
jmp 0x100714f5
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10069a10
mov edi, dword [ebp - 0x30]
test eax, eax
je 0x100714e2
mov esi, dword [ebp - 0x2c]
lea eax, [esi + 1]
push eax
call fcn.101160b2
mov ebx, eax
push esi
push edi
push ebx
mov byte [esi + ebx], 0
call fcn.1011b250
push 0x48
call fcn.1011a4b2
add esp, 0x14
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x100714b3
mov ecx, eax
call fcn.10074610
mov esi, eax
jmp 0x100714b5
xor esi, esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100714e2
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push ebx
call dword [eax + 8]
mov al, byte [esi + 0x2c]
test al, al
je 0x10071526
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov byte [ebp - 4], 0
test edi, edi
je 0x100714f5
push edi
call fcn.1011bfcc
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x10071506
push dword [ebp - 0x28]
call fcn.1011a1ea
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.10075520
mov esi, eax
jmp 0x100714e4
Function at 0x10071a90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b1ca
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], 0x10156744
mov dword [edi + 4], 0x10156748
lea esi, [edi + 0x300]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2fc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
je 0x10071af6
call ebx
push 0xffffffffffffffff
push dword [edi + 0x2fc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10071af8
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x2fc]
test eax, eax
je 0x10071b1f
push 0xabcd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0x2fc], 0
push esi
call ebx
push dword [edi + 0x31c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x2f8], 0x101561f0
lea esi, [edi + 0x300]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x2fc]
test eax, eax
je 0x10071b65
push 0xabcd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0x2fc], 0
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call ebx
lea ecx, [edi + 0x2e0]
call fcn.10072250
push dword [edi + 0x2e0]
call fcn.1011a1ea
add esp, 4
mov dword [edi + 0x2e0], 0
lea eax, [edi + 0x2c8]
push eax
call ebx
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x10071bce
push eax
call fcn.1011a1ea
add esp, 4
mov dword [edi + 0x2bc], 0
mov dword [edi + 0x2c0], 0
mov dword [edi + 0x2c4], 0
mov esi, dword [edi + 0x2b0]
test esi, esi
je 0x10071c22
mov ebx, dword [edi + 0x2b4]
cmp esi, ebx
je 0x10071bf0
mov ecx, esi
call fcn.10064750
add esi, 0x68
cmp esi, ebx
jne 0x10071be2
push dword [edi + 0x2b0]
call fcn.1011a1ea
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add esp, 4
mov dword [edi + 0x2b0], 0
mov dword [edi + 0x2b4], 0
mov dword [edi + 0x2b8], 0
cmp dword [edi + 0x2ac], 8
lea esi, [edi + 0x280]
jb 0x10071c3c
push dword [esi + 0x18]
call fcn.1011a1ea
add esp, 4
xor eax, eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
push esi
mov word [esi + 0x18], ax
call ebx
lea ecx, [edi + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.100679c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10073630
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x10074490
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b519
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x1018fa58
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], 0x10156958
mov dword [ebp - 4], 0
mov dword [ecx], 0x1018fa58
mov dword [esi + 0x30], 0x1018fa58
mov dword [esi + 0x34], 0x1018fa58
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10074531
sub edx, ebx
push edx
push edi
call fcn.100741e0
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x10074550
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.100741e0
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
jmp 0x10074570
mov al, byte [edx]
inc edx
test al, al
jne 0x10074570
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.100741e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10074610
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b553
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x1018fa58
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], 0x101561f4
mov dword [ebp - 4], 0
mov dword [ecx], 0x1018fa58
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x10178415
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.100741e0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10079a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014bc08
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.10001580
mov ecx, dword [ebp + 8]
mov dword [esi], 0x10159368
push 0xffffffffffffffff
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.1000bf70
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1007a4c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
cmp dword [ebx + 0x10], 0
jne 0x1007a4e0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x74]
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x6c]
push ebx
mov ecx, edi
call fcn.1005ef40
mov esi, eax
cmp esi, dword [edi]
je 0x1007a524
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x1007a50d
mov eax, dword [eax]
push ecx
push eax
push dword [ebx + 0x10]
mov ecx, ebx
push 0
call fcn.1000e880
test eax, eax
js 0x1007a524
mov dword [ebp + 8], esi
jmp 0x1007a529
mov eax, dword [edi]
mov dword [ebp + 8], eax
lea esi, [ebp + 8]
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x1007a57e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x70], 0x14
jne 0x1007a540
call fcn.1007a930
push ebx
mov ecx, edi
call fcn.1007a210
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ecx, edi
mov dword [esi], eax
call fcn.1007a210
mov edx, dword [ebp + 0xc]
mov ecx, edi
push ebx
mov dword [eax + 4], edx
call fcn.1007a210
mov edx, dword [ebp + 0x10]
mov ecx, edi
push ebx
mov dword [eax + 8], edx
call fcn.1007a210
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
jmp 0x1007a59d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1007a597
cmp dword [esi + 0x2c], 0
jne 0x1007a597
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1007ebc0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
push esi
mov esi, dword [ebp + 8]
push closesocket
push eax
push eax
mov byte [esi], al
or dword [esi], 0xb
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [esi + 1], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1007ecea
push edi
push closesocket
push str.knbcenter
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x1007ece0
push ebx
lea eax, [ebp - 0x24]
mov byte [esi], 0
or dword [esi], 0x12
push eax
push 0
push 0
push edi
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x1007ecb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007ecb6
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1007ecb6
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1007ecaf
mov eax, dword [ebx + 4]
sub eax, 2
je 0x1007ec9e
dec eax
je 0x1007ec97
dec eax
je 0x1007ec90
xor eax, eax
jmp 0x1007eca3
mov eax, 4
jmp 0x1007eca3
mov eax, 3
jmp 0x1007eca3
mov eax, 2
movzx eax, al
shl eax, 8
mov byte [esi + 1], 0
or dword [esi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop ebx
test eax, eax
je 0x1007ecd9
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov byte [esi], 0
call fcn.1007e940
movzx eax, al
or dword [esi], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4

Function at 0x1007ef70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1007ef92
pop edi
pop esi
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1007efc1
cmp eax, 0x102
jne 0x1007efc6
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1007f790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1018fb8c]
test eax, eax
jne 0x1007f90a
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push closesocket
mov dword [ebp - 0x128], 0xf
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007f8f4
push 0x103
push eax
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x117]
push eax
call fcn.1011a400
add esp, 0xc
mov dword [ebp - 0x124], 0x103
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push str.svcVersion
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007f88f
cmp dword [ebp - 0x120], 1
jne 0x1007f88f
lea eax, [ebp - 0x118]
push 0x10178434
push eax
call fcn.10120f90
add esp, 8
test eax, eax
je 0x1007f88f
mov byte [eax], 0
lea eax, [ebp - 0x118]
push eax
call fcn.1011fe0b
add esp, 4
cmp eax, 0xa
jne 0x1007f88f
mov dword [0x1018fb8c], eax
jmp 0x1007f8f4
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push str.Build
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007f8f4
lea eax, [ebp - 0x14]
push eax
call fcn.1011fe0b
mov ecx, eax
add esp, 4
cmp ecx, 0xf
jl 0x1007f8e6
jmp 0x1007f8d0
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf
jge 0x1007f8d0
xor eax, eax
cmp ecx, 6
cmovl ecx, eax
mov dword [0x1018fb8c], ecx
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1007f905
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1018fb8c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret

Function at 0x1007f960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.1007f9d0
push str.RPCRT4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1007f97c
mov esp, ebp
pop ebp
ret
push str.NdrStubCall2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007f9c6
mov dword [0x1018fb24], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0x38
push 0x1018fb24
mov dword [ebp - 4], 0
mov dword [0x1018fb28], 0x1007feb0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1007f9c6
push 0x1018fb24
call fcn.10054180
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1007f9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.1007f790
add eax, 0xfffffffa
cmp eax, 4
ja 0x1007faa4
push esi
push 0x101594f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1007fa9c
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x1007fa9c
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1007fa9c
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
push esi
call fcn.1007ffa0
add esp, 0xc
test eax, eax
je 0x1007fa9c
push 0x38
push 0
push 0x1018fa7c
mov dword [ebp - 8], 0
call fcn.1011a400
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [0x1018fa7c], eax
lea eax, [ebp - 8]
mov dword [0x1018fa80], 0x100802b0
push eax
push 0x40
push 0x38
push 0x1018fa7c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1007fa9c
push 0x1018fa7c
call fcn.10054180
add esp, 4
test al, al
je 0x1007fa9c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x10085d20
Capabilities:
Check if file exists
Check os version
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
push edi
push eax
xor esi, esi
mov dword [ebp - 0x11c], ecx
call fcn.10096ba0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10085d64
pop edi
lea eax, [esi + 7]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1018fff4]
test eax, eax
jne 0x10085d96
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x1018fff4], eax
push ebx
cmp eax, 2
jne 0x10085dd6
lea esp, [esp]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10085dc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x10085e0c
inc esi
cmp esi, 5
jge 0x10085e0c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10085da0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10085dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
cmp eax, 5
jne 0x10085e0c
inc esi
cmp esi, 5
jge 0x10085e0c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10085dd6
push edi
call fcn.1011bc41
add esp, 4
cmp ebx, 0xffffffff
pop ebx
jne 0x10085e36
cmp dword [ebp - 0x11c], 2
jne 0x10085e36
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa0a
pop edi
xor ecx, ebp
pop esi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x1009e1b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10c]
mov ecx, dword [ebp + 8]
push edx
push 0x104
push eax
push ecx
mov dword [ebp - 0x228], 0x200
call fcn.1008ba50
add esp, 0x10
test eax, eax
jne 0x1009e2f6
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.10096ba0
mov esi, eax
add esp, 4
test esi, esi
je 0x1009e2e2
mov ecx, dword [0x1018fff4]
test ecx, ecx
jne 0x1009e23f
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
cmp dword [ebp - 0x210], 2
sete cl
inc ecx
mov dword [0x1018fff4], ecx
mov eax, esi
push edi
cmp ecx, 2
jne 0x1009e285
cmp word [esi], 0
je 0x1009e266
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x1009e261
add eax, 2
cmp word [eax], 0
jne 0x1009e250
jmp 0x1009e266
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1009e2bd
cmp byte [esi], 0
je 0x1009e2a0
lea ebx, [ebx]
cmp byte [eax], 0x5c
je 0x1009e29d
inc eax
cmp byte [eax], 0
jne 0x1009e290
jmp 0x1009e2a0
mov byte [eax], 0
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.1011bc41
add esp, 4
test edi, edi
pop edi
je 0x1009e2e2
mov eax, dword [ebp - 0x228]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov eax, 0x200
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x100a4f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x3c]
cmp dword [edx], ebx
jne 0x100a4f9e
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x100a5090
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x100a4fd7
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.1011b210
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
push edi
mov edi, dword [ebp + 0xc]
jmp 0x100a4fe0
test edi, edi
je 0x100a508d
mov ebx, dword [edi + 0xc]
cmp ebx, dword [esi + 0x18]
ja 0x100a507f
test byte [edi + 0x14], 0x20
jne 0x100a507f
mov eax, dword [esi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.1011b210
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
cmp ebx, 1
jne 0x100a5026
push edi
call fcn.100a4ee0
add esp, 4
push dword [ebp + 8]
mov eax, dword [esi + 0x3c]
push dword [ebp - 4]
mov edx, dword [edi]
push dword [esi + 0x80]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 8], edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x100a5069
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x68], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x6c], eax
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x70], eax
cmp ebx, dword [esi + 0x20]
jbe 0x100a5071
mov dword [esi + 0x20], ebx
push dword [edi]
push ebx
push dword [esi + 0x58]
call fcn.100ad650
add esp, 0xc
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 8]
test ebx, ebx
je 0x100a4fe0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret