joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ed6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001398
call fcn.010020d8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001f13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f13
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001f2b
cmp eax, 0x20b
je 0x1001f18
mov dword [ebp - 0x1c], ebx
jmp 0x1001f3f
cmp dword [ecx + 0x84], 0xe
jbe 0x1001f13
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001f39
cmp dword [ecx + 0x74], 0xe
jbe 0x1001f13
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100323c], 0xffffffff
or dword [0x1003240], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003238]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003234]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003244], eax
call fcn.010020d0
cmp dword [0x1003224], ebx
jne 0x1001f9a
push fcn.010020d0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010020b9
push 0x1003010
push 0x100300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003230]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100322c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1003008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1002030
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1002004
cmp al, 0x22
jne 0x1001ff6
cmp byte [esi], 0x22
jne 0x100200d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1002017
cmp al, 0x20
jbe 0x1002009
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100203b
movzx eax, word [ebp - 0x50]
jmp 0x100203e
cmp byte [esi], 0x20
jbe 0x100200d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002030
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100205b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002090
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002113
ret
Function at 0x401490
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x224]
lea ecx, [esp + 4]
push ebp
mov ebp, dword [esp + 0x224]
mov eax, ebx
push esi
push edi
and eax, 0x300
mov esi, ebx
push ecx
mov dword [esp + 0x18], eax
and esi, 1
or eax, 8
push eax
push ebp
push dword [esp + 0x234]
call fcn.00408260
test eax, eax
jne 0x401575
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [esp + 0x18]
push 0x105
push eax
push 0
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x40151e
test esi, esi
jne 0x401551
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.00401490
test eax, eax
jne 0x40151e
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4014f2
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00408ae0
mov ecx, dword [esp + 0x228]
test eax, eax
je 0x40156d
push 0
push dword [esp + 0x18]
push ebp
push ecx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 0xc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x3eb
pop ebx
add esp, 0x214
ret 0xc
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 0xc
Function at 0x404390
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
js 0x4043b6
mov eax, dword [0x4395b8]
push 0
add eax, ecx
push 0
push eax
push dword [0x40e014]
mov dword [0x42718c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00404070
test eax, eax
js 0x404505
push 4
lea eax, [esp + 0xc]
push eax
push dword [0x40e014]
call fcn.00408b50
test eax, eax
jne 0x4043e4
mov eax, 0xfffffffd
pop ecx
ret 0x10
add dword [0x42718c], 4
push esi
push dword [esp + 0xc]
call fcn.00404070
mov esi, eax
test esi, esi
jns 0x404400
pop esi
pop ecx
ret 0x10
mov edx, dword [esp + 0x14]
push ebx
push edi
test edx, edx
jne 0x4044c4
mov edi, dword [esp + 0x18]
test edi, edi
je 0x404500
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x404500
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
lea esp, [esp]
mov eax, 0x4000
cmp ecx, eax
cmovl eax, ecx
push eax
push 0x41b188
push dword [0x40e014]
mov dword [esp + 0x18], eax
call fcn.00408b50
test eax, eax
je 0x4044ea
push dword [esp + 0xc]
push 0x41b188
push edi
call fcn.00408c50
test eax, eax
je 0x4044b8
mov ecx, dword [0x41316c]
mov eax, dword [esp + 0xc]
add ecx, eax
mov edx, dword [0x413170]
mov dword [0x41316c], ecx
test edx, edx
je 0x404499
push ecx
push dword [0x413168]
push 0x430
push edx
call ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add esi, eax
add dword [0x42718c], eax
sub ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jg 0x404430
pop edi
pop ebx
mov eax, esi
pop esi
pop ecx
ret 0x10
pop edi
pop ebx
mov eax, 0xfffffffe
pop esi
pop ecx
ret 0x10
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
cmp dword [esp + 0x14], ecx
push 0
cmovl ecx, dword [esp + 0x18]
push eax
push ecx
push edx
push dword [0x40e014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4044f6
pop edi
pop ebx
mov eax, 0xfffffffd
pop esi
pop ecx
ret 0x10
mov esi, dword [esp + 0xc]
add dword [0x42718c], esi
pop edi
pop ebx
mov eax, esi
pop esi
pop ecx
ret 0x10

Function at 0x404530
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x80
cmp dword [esp + 0x84], 0
je 0x404561
mov eax, dword [0x4271a0]
test eax, eax
je 0x404550
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4271a0], 0
add esp, 0x80
ret
cmp dword [0x4271a0], 0
je 0x404578
push 0
call fcn.00408150
add esp, 0x80
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x413180]
jbe 0x4045e8
cmp dword [0x437518], 0
je 0x4045c3
test byte [0x439654], 1
je 0x4045e8
call fcn.00404510
push eax
lea eax, [esp + 4]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp]
push eax
push 0
call fcn.00407bd0
add esp, 0x80
ret
push 0
push 0x404a40
push 0
push 0x6f
push dword [0x437514]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x4271a0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x80
ret
Function at 0x404ae0
Capabilities:
Check os version
Delete registry value

Disassembly:
sub esp, 0x20c
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x404b77
xor eax, eax
push 0x206
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.0040a780
lea eax, [esp + 0x10]
push 0x103
push eax
call fcn.00404b80
add esp, 0x14
cmp word [esp + 4], 0
je 0x404b77
push esi
mov dword [esp + 4], 0
mov esi, 0xf003f
call fcn.00404f30
test eax, eax
mov ecx, 0xf013f
lea eax, [esp + 4]
push eax
cmovne esi, ecx
push esi
push 0
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsShellMuiCache
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x404b77
lea eax, [esp + 4]
push eax
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x20c
ret
Function at 0x405730
Capabilities:
Check os version
Set registry value

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
test edi, edi
je 0x40580a
cmp word [edi], 0
je 0x40580a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x40580a
push esi
mov dword [esp + 8], 0
mov esi, 0xf003f
call fcn.00404f30
test eax, eax
mov ecx, 0xf013f
lea eax, [esp + 8]
push eax
cmovne esi, ecx
push esi
push 0
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsShellMuiCache
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40580a
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.0040a780
push 0x103
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00404c70
add esp, 0x18
lea ecx, [esp + 8]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x20e], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057d1
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x405800
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x20c
ret
Function at 0x407ce0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x40001
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x18], 0x40cb40
mov dword [esp + 0x1c], 0x40cb40
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x40cb30
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407d68
lea eax, [esp + 0xc]
push eax
push 0x80000007
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x407d62
xor eax, eax
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x20
ret 4
Function at 0x4080d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x23c
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
cmp ecx, 0x104
jbe 0x408132
xor ecx, ecx
mov eax, 1
push dword [esp + 0x240]
lea eax, [eax*2 + 0x40c358]
push eax
lea eax, [esp + 8]
lea eax, [eax + ecx*2]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0x23c
ret 4
test ecx, ecx
je 0x4080f1
cmp word [esp + ecx*2 - 2], 0x5c
je 0x4080f1
xor eax, eax
jmp 0x4080f6

Function at 0x4081a0
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4081c4
push dword [esp + 8]
push dword [esp + 8]
call fcn.004082a0
add esp, 8
inc dword [0x439630]
ret 8
Function at 0x4082a0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x10]
mov dword [0x432eb8], 0x55004e
mov dword [0x432ebc], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40830d
push esi
call ebp
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push 1
push ecx
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x432eb8
push esi
call edi
test eax, eax
je 0x408420
cmp eax, 0x400
jg 0x408420
push 0x400
push 0x4326b8
push dword [esp + 0x18]
call edi
test eax, eax
je 0x408420
cmp eax, 0x400
jg 0x408420
push ebx
push 0x4326b8
push 0x432eb8
push str._ls_ls_r_n
push 0x4322b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x439564]
add esp, 0x10
mov ebx, eax
mov dword [esp + 0x18], ebx
push dword [ecx + 0x128]
push 0x4326b8
call fcn.00407d70
push 0x4326b8
call ebp
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push 4
push ecx
push 1
push 0xc0000000
push 0x4326b8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40841f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebx + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x408418
push esi
push edi
push ebp
call fcn.00408b50
test eax, eax
je 0x408418
push str._Rename__r_n
push edi
call fcn.00408df0
test eax, eax
jne 0x408424
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov edx, esi
push ebx
push 0x4322b8
lea eax, [edx + edi]
push eax
call fcn.00408820
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebx]
push eax
push edi
push ebp
call fcn.00408c50
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0x40cc48
add eax, 0xa
push eax
call fcn.00408df0
mov edx, eax
test edx, edx
je 0x4083e8
lea ecx, [edi + esi]
add ebx, ecx
cmp ecx, edx
jbe 0x40844d
sub ebx, ecx
mov al, byte [ecx]
mov byte [ebx + ecx], al
dec ecx
cmp ecx, edx
ja 0x408443
mov ebx, dword [esp + 0x18]
sub edx, edi
inc edx
jmp 0x4083ea
Function at 0x408460
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4084eb
push eax
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4084ad
cmp dword [esp + 8], 2
jne 0x4084ad
mov eax, 0xfeff
cmp ax, word [esp + 0x10]
jne 0x4084ad
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
cmp dword [esp + 0x14], 0
je 0x4084e2
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4084e2
push 2
push 0x40cb64
push esi
call fcn.00408c50
neg eax
pop edi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ecx
ret 8
push 0
push 0
push 0
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x408600
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408660
mov ecx, edi
and ecx, 0xfffffffe
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x10], 1
push esi
je 0x40863d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408651
pop edi
mov eax, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408651
pop edi
mov eax, 1
pop esi
ret 8
test byte [esp + 0x10], 4
jne 0x408660
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x408700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push 0x800
push dword [esp + 0xc]
push 0x4312b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x4312b8
call fcn.00408e80
mov edi, eax
test edi, edi
jne 0x40872b
xor eax, eax
pop edi
ret 4
push edi
call fcn.00408fe0
test byte [0x439560], 0x80
je 0x408747
movzx eax, word [edi]
test ax, ax
je 0x408725
cmp eax, 0x5c
je 0x408725
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub edi, 0x4312b8
push ebp
push esi
push 0x4312b8
sar edi, 1
call ebx
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, edi
jle 0x4087c5
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
nop
push 0x4336b8
push 0x4312b8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408791
push eax
call ebp
test byte [0x4336b8], 0x10
je 0x40880d
push 0x4312b8
call ebx
lea eax, [eax*2 + 0x4312b8]
nop
cmp word [eax], 0x5c
je 0x4087b5
push eax
push 0x4312b8
call esi
cmp eax, 0x4312b8
ja 0x4087a0
xor ecx, ecx
push 0x4312b8
mov word [eax], cx
call ebx
cmp eax, edi
jg 0x408770
push 0x4312b8
call ebx
lea eax, [eax*2 + 0x4312b8]
push eax
push 0x4312b8
call esi
cmp word [eax], 0x5c
je 0x4087f1
push 0x40c358
push 0x4312b8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4312b8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
pop ebp
setne cl
pop ebx
mov eax, ecx
pop edi
ret 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret 4
Function at 0x408850
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
mov dword [0x430270], 0x44
lea eax, [esp]
mov dword [0x43029c], 0x80
push eax
push 0x430270
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push dword [esp + 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408895
add esp, 0x10
ret 4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x10
ret 4
Function at 0x4088b0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push ebp
push esi
mov esi, dword [esp + 0x26c]
mov ebp, ebx
push esi
and ebp, 4
call fcn.00408700
mov dword [esp + 0xc], eax
test bl, 8
je 0x4088f9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
pop esi
sbb eax, eax
inc eax
add dword [0x439628], eax
pop ebp
pop ebx
add esp, 0x25c
ret 8
push edi
mov edi, ebx
and edi, 1
mov dword [esp + 0x18], edi
je 0x408916
test eax, eax
je 0x408a5c
test bl, 2
je 0x408a5c
push 0x800
push esi
push 0x4302b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40893f
push str..
push 0x4302b8
call edi
jmp 0x408945
push esi
call fcn.00408fa0
cmp word [esi], 0
jne 0x408955
cmp word [0x4302b8], 0x5c
jne 0x40895d
push 0x40c358
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0x4302b8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408a3e
cmp word [esp + 0x48], 0x2e
jne 0x4089aa
mov ax, word [esp + 0x4a]
test ax, ax
je 0x408a1f
cmp ax, 0x2e
jne 0x4089aa
cmp word [esp + 0x4c], 0
je 0x408a1f
push 0x800
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x1c], 0x10
je 0x4089d7
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x408a1f
push ebx
push esi
call fcn.004088b0
jmp 0x408a1f
push ebp
push esi
call fcn.00408600
test eax, eax
jne 0x408a17
test ebp, ebp
je 0x408a0f
push esi
push 0xfffffffffffffff1
call fcn.00407bd0
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408a07
push eax
push esi
call fcn.004082a0
add esp, 8
inc dword [0x439630]
jmp 0x408a1f
inc dword [0x439628]
jmp 0x408a1f
push esi
push 0xfffffffffffffff2
call fcn.00407bd0
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408986
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
jmp 0x408a44
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x408a56
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x10]
jmp 0x408a62
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
pop edi
je 0x408acf
test eax, eax
je 0x408ab5
push 0x4336b8
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408acf
push eax
call ebx
push esi
call fcn.004085d0
mov eax, ebp
or eax, 1
push eax
push esi
call fcn.00408600
test eax, eax
jne 0x408ac7
test ebp, ebp
je 0x408ab5
push esi
push 0xfffffffffffffff1
call fcn.00407bd0
push 0
push esi
call fcn.004081a0
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
inc dword [0x439628]
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
push esi
push 0xffffffffffffffe5
call fcn.00407bd0
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
Function at 0x408b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x408b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
neg eax
mov dword [esp], 0x1000
push edi
sbb eax, eax
and eax, 0x100
or eax, 0x20019
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
call fcn.00408040
mov edi, dword [esp + 0x18]
test eax, eax
je 0x408c23
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x20]
push 0
push dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c23
push esi
lea eax, [esp + 8]
push eax
push edi
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0xffe], ax
pop esi
jne 0x408c23
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x408c28
cmp eax, 2
je 0x408c28
xor eax, eax
mov word [edi], ax
pop edi
pop ecx
ret 0x14

Function at 0x408c30
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x408cb0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, 0x64
lea ebx, [ebx]
mov eax, dword [0x40cc28]
dec esi
mov dword [esp + 0x10], eax
mov eax, dword [0x40cc2c]
mov dword [esp + 0x14], eax
call ebp
xor edx, edx
mov ecx, 0x1a
div ecx
push edi
add word [esp + 0x18], dx
lea eax, [esp + 0x14]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x408d17
test esi, esi
jne 0x408cd0
mov word [edi], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x408e50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408e74
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4