joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465b20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4a6389
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x4da734
mov dword [esp + 0x28], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x40], ebp
mov eax, dword [0x4dbc88]
cmp dword [eax - 0xc], ebp
mov dword [esp + 0x24], 1
jne 0x465b9d
push 0x4c31b0
lea ebx, [ebp + 0x20]
mov eax, edi
call fcn.0040cfc0
jmp 0x465bab
push eax
push 0x4c31f8
call fcn.0040e820
add esp, 8
mov eax, dword [0x4c323c]
mov cx, word [0x4c3240]
mov esi, 0x43
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
jmp 0x465bd0
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x30], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x465c3c
push esi
call fcn.004658c0
add esp, 4
test eax, eax
jne 0x465c3c
push esi
call fcn.00465a40
add esp, 4
test eax, eax
je 0x465c3c
xor eax, eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x465c3c
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jb 0x465c3c
mov eax, dword [esp + 0x1c]
ja 0x465c31
cmp eax, ebx
jbe 0x465c3c
movzx edx, si
mov dword [esp + 0x18], edx
mov ebx, eax
mov ebp, ecx
add esi, 1
cmp si, 0x5a
jbe 0x465bd0
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
test esi, esi
jg 0x465c58
push 0x80070057
call fcn.00401050
cmp dword [eax - 4], 1
jle 0x465c67
mov eax, esi
push eax
push edi
call fcn.0040d760
test esi, esi
mov eax, dword [edi]
mov cx, word [esp + 0x18]
mov word [eax], cx
jl 0x465c4e
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x465c4e
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov word [edx + esi*2], 0
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00488fa3
add esp, 0x30
ret
Function at 0x465f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push 0x208
lea eax, [esp + 0x56]
push 0
push eax
mov word [esp + 0x5c], 0
call int.0048bd10
mov ecx, dword [0x4c323c]
mov dx, word [0x4c3240]
push 0x3a
lea eax, [esp + 0x26]
push 0
push eax
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], dx
call int.0048bd10
add esp, 0x18
push 0x104
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40
lea edx, [esp + 0x14]
push 0
push edx
call int.0048bd10
push 2
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x24]
push 0x20
push ecx
call fcn.00487ed8
lea eax, [esp + 0x2c]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465fd5
sub eax, edx
sar eax, 1
lea edx, [esp + 0x10]
mov ebx, eax
push edx
mov eax, edi
call fcn.0040cfc0
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x466038
mov eax, dword [esp + 8]
and eax, 0xfff00000
cmp dword [esp + 0xc], 0
ja 0x466038
jb 0x466023
cmp eax, 0x80000000
jae 0x466038
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00488fa3
mov esp, ebp
pop ebp
ret
Function at 0x466360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8ac8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x30]
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4663b6
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4663d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x4c32d4
push 0x4c32f8
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x14
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4663fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4664a0
Capabilities:
Access peb ldr_data
Check if file exists
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4a62d6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x264]
xor esi, esi
push 0x208
lea eax, [esp + 0x42]
push esi
push eax
mov dword [esp + 0x2c], esi
mov word [esp + 0x48], si
call int.0048bd10
mov edx, dword [0x4da734]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4da734
mov dword [esp + 0x30], 0x104
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x25c], esi
mov eax, dword [0x4dbc88]
cmp dword [eax - 0xc], esi
jne 0x466543
push 0x4b39f0
lea ebx, [esi + 0x1d]
lea eax, [esp + 0x1c]
call fcn.0040cfc0
jmp 0x466555
push eax
push 0x4b3a2c
lea edi, [esp + 0x20]
call fcn.0040e820
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
mov byte [esp + 0x264], 1
mov edx, dword [esp + 0x20]
push esi
push edx
push 0x80000002
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x46667f
mov ebx, dword [esp + 0x1c]
push str.n4Ur
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x38]
lea esi, [esp + 0x44]
mov dword [esp + 0x24], ebx
call fcn.00410420
xor esi, esi
cmp eax, esi
jne 0x466674
mov ecx, dword [0x4c323c]
mov dx, word [0x4c3240]
mov ax, word [esp + 0x3c]
push esi
mov dword [esp + 0x38], ecx
push esi
lea ecx, [esp + 0x2c]
mov word [esp + 0x40], dx
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x44], ax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x466674
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
shrd ecx, eax, 0x1e
shr eax, 0x1e
push eax
mov eax, dword [ebp]
push ecx
push eax
push 0x4c3348
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x14
cmp dword [esp + 0x28], esi
ja 0x466624
cmp dword [esp + 0x24], 2
jb 0x466674
lea edx, [esp + 0x3c]
mov edi, ebp
call fcn.0040b780
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46664b
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x46666c
mov ebp, dword [ebp]
push ecx
sub ebp, 0x10
mov eax, ebp
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.0040d0b0
add eax, 0x10
mov dword [esi], eax
call fcn.00466050
add esp, 4
mov dword [esp + 0x20], 1
test ebx, ebx
je 0x46667f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4666aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00488fa3
add esp, 0x24c
ret
Function at 0x4666e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
push edi
jbe 0x466700
call fcn.00489916
jmp 0x466700
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x46670d
call fcn.00489916
cmp esi, edi
je 0x46676e
cmp esi, dword [ebx + 8]
jb 0x46671b
call fcn.00489916
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46675f
cmp esi, dword [ebx + 8]
jb 0x466733
call fcn.00489916
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [ebx + 8]
mov edi, eax
jb 0x466748
call fcn.00489916
mov eax, dword [esi]
push edi
push eax
push 0x4c338c
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x10
cmp esi, dword [ebx + 8]
jb 0x466769
call fcn.00489916
add esi, 4
jmp 0x466700
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x46677b
call fcn.00489916
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x466788
call fcn.00489916
push edi
push ebx
push esi
push ebx
lea ecx, [esp + 0x20]
push ecx
call fcn.0043bfb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466a80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5068
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
xor ebx, ebx
push 0x40
lea eax, [esp + 0x34]
push ebx
mov edi, 1
push eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x24], edi
call int.0048bd10
mov esi, dword [esp + 0x98]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], edi
mov word [esp + 0x5c], bx
cmp dword [esi - 4], edi
jle 0x466b17
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.0040d760
mov esi, dword [esp + 0x8c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x466b37
mov dword [esp + 0x18], ebx
cmp esi, ebx
jne 0x466b3f
xor eax, eax
jmp 0x466b59
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x466b44
sub eax, edx
sar eax, 1
js 0x466c05
cmp eax, dword [esi - 8]
jg 0x466c05
mov dword [esi - 0xc], eax
mov word [esi + eax*2], bx
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
mov dword [ebp], ebx
call edi
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
push ecx
push esi
push 0x4c33c4
push 0x4c33e8
call fcn.00474370
push eax
call fcn.004743e0
lea eax, [esi - 0x10]
add esp, 0x14
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
push 0x80070057
call fcn.00401050
int3
Function at 0x466f90
Capabilities:
Query service status

Disassembly:
sub esp, 0x28
push ebx
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x38]
mov edi, eax
cmp edi, ebp
je 0x467020
push esi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
je 0x467018
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push ebp
push esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x467011
cmp dword [esp + 0x18], 4
jne 0x467011
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46703c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x467050
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push ebp
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [esp + 0x38]
mov edi, eax
cmp edi, ebx
je 0x4670f6
push esi
push 0xf01ff
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x4670ee
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4670e7
cmp dword [esp + 0x18], 4
jne 0x4670e7
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4670e7
mov ebx, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret
Function at 0x4671e0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4a502c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2b4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2b8]
xor esi, esi
mov ebp, 7
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], esi
mov word [esp + 0x7c], si
push 0x206
lea ecx, [esp + 0x9a]
push esi
mov dword [esp + 0x2b0], esi
push ecx
mov word [esp + 0xa0], si
call int.0048bd10
push 0x104
lea edx, [esp + 0xa4]
push esi
push edx
call int.0048bd10
add esp, 0x18
push 1
push esi
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x467408
lea eax, [esp + 0x94]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov word [esp + 0x28], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4672c3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x98]
push ecx
lea esi, [esp + 0x2c]
call fcn.0043d0d0
mov edx, esi
push edx
mov ebx, 0x4b72a4
lea esi, [esp + 0x44]
mov byte [esp + 0x2ac], 1
call fcn.0044fe70
push eax
mov ebx, edi
lea esi, [esp + 0x64]
mov byte [esp + 0x2b0], 2
call fcn.0044fe70
add esp, 8
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x2b0], 3
call fcn.0043af30
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x467345
mov eax, dword [esp + 0x60]
push eax
call fcn.00487c06
add esp, 4
cmp dword [esp + 0x58], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jb 0x467365
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00487c06
add esp, 4
mov byte [esp + 0x2a8], bl
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
jb 0x46738c
mov edx, dword [esp + 0x28]
push edx
call fcn.00487c06
add esp, 4
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x46739d
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4673c0
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x4673b9
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x4673d1
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
call fcn.00467120
add esp, 0xc
cmp dword [esp + 0x90], esi
mov edi, eax
jb 0x467404
mov eax, dword [esp + 0x7c]
push eax
call fcn.00487c06
add esp, 4
mov eax, edi
jmp 0x467424
cmp dword [esp + 0x90], 8
jb 0x46741f
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00487c06
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.00488fa3
add esp, 0x298
ret
Function at 0x46cea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4d78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, edx
xor edx, edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x44], edx
mov ebx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call fcn.0040cab0
mov dword [esp + 0x34], edi
lea eax, [esi + 0x14]
lea edi, [esp + 0xc]
call fcn.0046d1c0
cmp dword [esp + 0x30], 0x10
jb 0x46cf31
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00487c06
add esp, 4
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00488fa3
add esp, 0x3c
ret 4
Function at 0x4063c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 1
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406425
mov eax, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40641a
cmp dword [esp + 8], 4
jne 0x40641a
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x407640
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x44
test eax, eax
push esi
mov esi, dword [esp + 0x4c]
jne 0x4076b9
push 0x7f00
push 0
mov dword [esp + 0x4c], 0x4141cc
mov dword [esp + 0x2c], 0x407750
mov dword [esp + 0x28], 0x23
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0
push 0x1d
call esi
push eax
push 0x1c
call esi
push eax
push 0
push 0
push 0xcf0000
push 0x4141bc
push 0x4141cc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004077c0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
test eax, eax
je 0x40773f
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
jne 0x40771e
pop edi
pop ebx
call fcn.004078e0
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
Function at 0x4077c0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004084a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [0x41aec4], eax
call esi
push 0
push 0
push 0
push 0
mov dword [0x41ae78], eax
call esi
mov ecx, dword [0x41ae78]
mov dword [0x41ae7c], eax
test ecx, ecx
je 0x4078d7
test eax, eax
je 0x4078d7
push 0x4141fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4078d7
push 0x4141ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4078d7
mov eax, dword [0x41ae78]
push eax
call esi
mov ecx, dword [0x41ae7c]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0x10]
mov ebx, eax
test edx, edx
je 0x4078d7
push 0
push 0x4000000
push 1
push 0
push 0
push 0
push 0x4141dc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [0x41ae6c], eax
je 0x4078d7
lea ecx, [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 4
push 0x41ae90
push 4
push edi
push 0x8100
push eax
call esi
test eax, eax
je 0x4078d7
mov eax, dword [0x41ae6c]
lea edx, [esp + 0xc]
push 0
push edx
push 4
push 0x41ae94
push 4
push ebx
push 0x8102
push eax
call esi
test eax, eax
je 0x4078d7
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x408000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4079e0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x41ae98]
push esi
test eax, eax
push edi
je 0x407ac6
mov eax, dword [0x41ae80]
mov ecx, dword [0x41ae68]
cmp eax, ecx
jae 0x407ac6
mov esi, dword [sym.imp.WINMM.dll_waveOutWrite]
mov eax, dword [0x41ae74]
mov ecx, dword [eax*4 + 0x41ae84]
xor eax, eax
mov edi, dword [ecx]
mov ecx, 0xfa0
rep stosd dword es:[edi], eax
mov edx, dword [0x41aea4]
mov ecx, dword [0x41ae74]
mov eax, dword [0x41aea0]
push edx
mov edx, dword [ecx*4 + 0x41ae84]
push eax
push 0xfa0
mov eax, dword [edx]
push eax
call fcn.00408480
mov edx, dword [0x41aea0]
mov ecx, dword [0x41aea4]
add esp, 0x10
add edx, 0xfa0
mov eax, dword [0x41aea8]
mov dword [0x41aea0], edx
adc ecx, 0
push 0x3e80
mov dword [0x41aea4], ecx
mov ecx, dword [0x41ae74]
mov dword [0x41ae9c], 1
mov edx, dword [ecx*4 + 0x41ae84]
push edx
push eax
call esi
test eax, eax
jne 0x407ace
mov eax, dword [0x41ae80]
mov ecx, dword [0x41ae68]
inc eax
mov dword [0x41ae80], eax
mov eax, dword [0x41ae74]
inc eax
cmp eax, ecx
mov dword [0x41ae74], eax
jb 0x407aba
xor eax, eax
mov dword [0x41ae74], eax
cmp dword [0x41ae80], ecx
jb 0x407a0d
pop edi
mov eax, 1
pop esi
ret
push 0x41420c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret