joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp ecx, ebx
je 0x405755
lea eax, [ebp - 0x14]
push eax
call fcn.00405d00
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jl 0x40572f
push 0x418a70
push eax
call fcn.004090ce
add esp, 8
cmp eax, ebx
je 0x40572f
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40572f
push 0x418ad0
push ebx
push 0xf001f
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
call edi
cmp eax, ebx
jne 0x4056f3
push 0x418b48
push ebx
push 0xf001f
call edi
cmp eax, ebx
jne 0x4056f3
push 0x418b48
push 0x30
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4056f3
mov dword [ebp - 0x1c], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404e50
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x40563d
call dword [sym.imp.ole32.dll_CoUninitialize]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
push ebx
push ebx
push ebx
push 1
push 0x418bc4
call dword [sym.imp.crt.dll_Ordinal_59]
add esp, 0x14
mov dword [ebp - 0x38], 0x418e24
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
call fcn.00404700
test al, al
jne 0x405687
lea eax, [ebp - 0x38]
call fcn.00404a80
cmp dword [ebp - 0x18], ebx
je 0x4056df
mov esi, dword [ebp - 0x1c]
imul esi, esi, 0x3e8
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, esi
jae 0x4056df
push 0x418ad0
push ebx
push 0xf001f
call edi
mov esi, eax
cmp esi, ebx
jne 0x4056c5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x1c]
jmp 0x405698
push ebx
push ebx
push ebx
push 1
push 0x418bf0
call dword [sym.imp.crt.dll_Ordinal_59]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], 0x418e24
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058a0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [0x41e4c0], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
mov ebx, eax
jne 0x4058da
push 0x418cdc
add eax, 2
jmp 0x4058df
push 0x418ce0
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
lea esi, [eax + 2]
cmp esi, ebx
jb 0x4058fb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
cmp esi, eax
jbe 0x4058fd
xor esi, esi
push 0x104
lea ecx, [ebp - 0x208]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x418ce4
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x41e4f0
mov dword [0x41e6f8], edi
call fcn.00408d9f
add esp, 0xc
mov edx, 0x41e6fc
pop edi
mov eax, esi
sub edx, esi
pop esi
pop ebx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405950
push 0
mov eax, 1
push 0
push 0x405860
mov dword [0x41eb0c], eax
mov dword [0x41eb10], eax
call fcn.00408b86
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4059b0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x418498
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4059d5
push eax
push eax
push 0x405990
call fcn.00408b86
add esp, 0xc
push esi
call fcn.00404480
mov esi, eax
test esi, esi
jne 0x4059f9
cmp byte [0x41eb54], al
je 0x405a00
call fcn.00406230
test eax, eax
jne 0x405a00
mov esi, 0x80004005
jmp 0x405a00
mov byte [0x41eb54], 0
test esi, esi
jne 0x405a0b
call fcn.00406320
jmp 0x405a0d
js 0x405a29
call fcn.00404510
cmp byte [0x41eb54], 0
mov esi, eax
je 0x405a29
mov eax, dword [0x41eb50]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
ret

Function at 0x406230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41eb48], eax
test eax, eax
jne 0x40624f
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x41eb18
push 0x4065b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40627d
mov ecx, dword [0x41eb48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407832
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x4077f0
call fcn.00408b86
add esp, 0xc
xor eax, eax
ret 4

Function at 0x409936
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c090]
jne 0x409940
repz ret
jmp fcn.0040d828
Function at 0x40f00b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a579
and dword [ebp - 0x14], 0
cmp dword [0x41e43c], 0
mov dword [ebp - 0x18], eax
jne 0x40f0be
push 0x417a0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f166
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417a00
push ebx
call edi
test eax, eax
je 0x40f166
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4179f0
push ebx
mov dword [0x41e43c], eax
call edi
push eax
call esi
push 0x4179dc
push ebx
mov dword [0x41e440], eax
call edi
push eax
call esi
push 0x4179c0
push ebx
mov dword [0x41e444], eax
call edi
push eax
call esi
mov dword [0x41e44c], eax
test eax, eax
je 0x40f0be
push 0x4179a8
push ebx
call edi
push eax
call esi
mov dword [0x41e448], eax
mov eax, dword [0x41e448]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f117
cmp dword [0x41e44c], ecx
je 0x40f117
push eax
call esi
push dword [0x41e44c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f117
test ebx, ebx
je 0x40f117
call edi
test eax, eax
je 0x40f10e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f10e
test byte [ebp - 8], 1
jne 0x40f117
or dword [ebp + 0x10], 0x200000
jmp 0x40f14a
mov eax, dword [0x41e440]
cmp eax, dword [ebp - 0x18]
je 0x40f14a
push eax
call esi
test eax, eax
je 0x40f14a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f14a
mov eax, dword [0x41e444]
cmp eax, dword [ebp - 0x18]
je 0x40f14a
push eax
call esi
test eax, eax
je 0x40f14a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e43c]
call esi
test eax, eax
je 0x40f166
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f168
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409936
leave
ret
Function at 0x40601b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x413074]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004075b9
push 0x4014d8
lea ecx, [esp + 0x1c]
call fcn.00407644
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x406099
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x4060bf
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00405d88
mov edi, eax
jmp 0x4060bf
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00405f00
mov ebx, eax
test ebx, ebx
jns 0x4060c5
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00405d6b
mov edi, ebx
test esi, esi
je 0x4060d9
jmp 0x4060d3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.00405de2
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004124d0
mov esp, ebp
pop ebp
ret 8
Function at 0x4071de
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407347

Function at 0x407c94
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
xor eax, eax
push 0x104
mov esi, ecx
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
je 0x407ce4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x407ce4
lea eax, [ebp - 0x20c]
push eax
jmp 0x407ce9
push 0x401ce0
push 4
pop edx
mov ecx, edi
call fcn.004075b9
movzx eax, word [esi]
test ax, ax
je 0x407d51
mov ecx, eax
cmp cx, 0x2d
je 0x407d09
cmp cx, 0x2f
jne 0x407d44
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x407d44
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x44
jne 0x407d44
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x407d44
mov ecx, eax
movzx eax, cx
cmp cx, 0x20
jne 0x407d63
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x407d2e
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x407cfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004124d0
leave
ret 4
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
mov word [edi], ax
push 0x3a
pop eax
mov word [edi + 2], ax
push 0x5c
pop eax
mov word [edi + 4], ax
xor eax, eax
mov word [edi + 6], ax
inc eax
jmp 0x407d53

Function at 0x407e7a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
mov edi, edx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x407f0e
push 0x3c
lea eax, [ebp - 0x248]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x238], eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0x400
push eax
mov dword [ebp - 0x23c], 0x40178c
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407f23
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407f23
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004124d0
leave
ret 4
Function at 0x407f3b
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x401900
mov esi, ecx
push eax
push eax
push 0x64
call fcn.00411b52
mov edi, eax
add esp, 0xc
mov ebx, 0x407d90
test edi, edi
je 0x407f80
push edi
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push 0x40
pop edi
push edi
lea eax, [ebp - 0x84]
push eax
push 0x4ba
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x84], 0
je 0x407faf
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push edi
lea eax, [ebp - 0x84]
push eax
push 0x1c
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x84], 0
je 0x407fd8
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push edi
lea eax, [ebp - 0x84]
push eax
push 0x4b0
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x84], 0
je 0x408004
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push edi
lea eax, [ebp - 0x84]
push eax
push 0x4b6
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x84], 0
je 0x408030
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124d0
leave
ret
Function at 0x40871c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
push 1
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
movzx ecx, word [esi]
push 0x20
pop edi
push 0x22
pop ebx
cmp cx, bx
jne 0x408769
mov edx, esi
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
je 0x408759
cmp ax, bx
jne 0x408745
cmp ax, bx
jne 0x408764
lea esi, [edx + 4]
movzx ecx, word [esi]
movzx eax, cx
jmp 0x40877b
mov eax, ecx
cmp cx, di
jbe 0x40877b
add esi, 2
movzx eax, word [esi]
cmp ax, di
ja 0x408770
test ax, ax
je 0x408795
movzx ecx, ax
cmp cx, di
ja 0x408795
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x408783
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x4087af
movzx eax, word [ebp - 0x14]
jmp 0x4087b2
push 0xa
pop eax
push eax
push esi
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov ecx, eax
call fcn.00408045
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4088b2
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
lea edx, [ebp - 0x18]
push ecx
call fcn.004089a9
test esi, esi
lea eax, [ebp - 0x2cc]
pop esi
je 0x4088e5
push 0x301
jmp 0x4088ea
push 0x300
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2cc]
xor ecx, ebp
call fcn.004124d0
leave
ret

Function at 0x408914
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
xor edi, edi
inc edi
lea edx, [ebp - 0xc]
push ecx
mov dword [esi], edi
call fcn.004089a9
test eax, eax
je 0x408993
mov eax, edx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
sub eax, 0
je 0x408990
sub eax, edi
je 0x40898c
sub eax, edi
je 0x408982
sub eax, edi
je 0x40897a
sub eax, edi
je 0x408972
sub eax, edi
je 0x40896a
sub eax, edi
jne 0x408990
mov dword [esi], 6
jmp 0x408988
mov dword [esi], 5
jmp 0x408993
mov dword [esi], 4
jmp 0x408993
mov dword [esi], 3
jmp 0x408988
mov dword [esi], 2
mov eax, edi
jmp 0x408995
mov dword [esi], edi
jmp 0x408993
and dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004124d0
leave
ret
Function at 0x40c47a
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x2e4], ebx
mov dword [ebx + 0x650], 4
call fcn.0040c16a
test esi, esi
je 0x40c643
mov ecx, esi
call fcn.0040881a
test eax, eax
je 0x40c643
mov edx, ebx
mov ecx, esi
call fcn.00408871
test eax, eax
je 0x40c643
push esi
lea edi, [ebx + 8]
mov esi, 0x104
mov edx, esi
mov ecx, edi
call fcn.004075b9
test eax, eax
js 0x40c643
push esi
lea eax, [ebx + 0x418]
xor esi, esi
push eax
push esi
push esi
push esi
push 0x104
lea eax, [ebx + 0x210]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x40c63c
test byte [ebp + 0xc], 1
je 0x40c52c
push 0x68
push dword [0x413518]
call dword [sym.imp.USER32.dll_LoadIconW]
jmp 0x40c558
push ecx
mov ecx, dword [ebx]
lea edx, [ebp - 0x18]
call fcn.004089a9
push 0x300
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push esi
mov eax, edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebx]
lea edx, [ebx + 0x620]
mov dword [ebx + 4], eax
call fcn.00408914
test eax, eax
je 0x40c63c
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40c63c
mov esi, dword [ebp - 0x2d8]
imul esi, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x2e0]
cmp ecx, dword [ebp - 0x2d4]
jb 0x40c5be
sub ecx, dword [ebp - 0x2d4]
jmp 0x40c5c0
xor ecx, ecx
mov eax, esi
mul dword [ebp - 0x2d4]
mov edi, eax
mov ebx, edx
mov eax, ecx
mul esi
mov dword [ebp - 0x2e8], eax
mov ecx, edx
add eax, edi
mov dword [ebp - 0x2ec], ecx
adc ecx, ebx
push ecx
push eax
push ebx
push edi
call fcn.00410d61
mov edx, dword [ebp - 0x2e4]
xor ecx, ecx
cmp eax, 2
setle cl
mov dword [edx + 0x650], eax
mov eax, dword [ebp - 0x2e8]
mov dword [edx + 0x660], ecx
and dword [edx + 0x638], 0
and dword [edx + 0x63c], 0
mov dword [edx + 0x630], eax
mov eax, dword [ebp - 0x2ec]
mov dword [edx + 0x634], eax
xor eax, eax
mov dword [edx + 0x628], edi
inc eax
mov dword [edx + 0x62c], ebx
jmp 0x40c645
mov ecx, ebx
call fcn.0040c16a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124d0
leave
ret 8
Function at 0x410b90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x413074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20a]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x206
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
test edi, edi
je 0x410c0e
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.004075b9
test eax, eax
jns 0x410c98
push 0x6f
push dword [0x413534]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124d0
leave
ret 8
push 0x401c98
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004076aa
add esp, 0x10
test eax, eax
js 0x410beb
lea eax, [ebp - 0x624]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x80000000
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x410beb
lea eax, [ebp - 0x628]
mov dword [ebp - 0x62c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x628], 0x208
push eax
lea eax, [ebp - 0x62c]
push eax
push esi
push esi
push dword [ebp - 0x624]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x410c8c
xor edi, edi
inc edi
push dword [ebp - 0x624]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x410beb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x410cd8
movzx eax, word [ebp + esi*2 - 0x20c]
cmp eax, 0x2c
je 0x410cd8
mov word [ebp + esi*2 - 0x414], ax
lea eax, [ebp - 0x20c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x410cb1
add esi, esi
cmp esi, 0x208
jae 0x410d55
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x20a]
add eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push 1
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x620]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x410beb
mov esi, dword [ebp - 0x630]
test esi, esi
je 0x410d42
cmp dword [ebp - 0x620], 0
je 0x410d48
push dword [ebp - 0x620]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x410d48
mov esi, dword [ebp - 0x620]
test esi, esi
jne 0x410bfb
jmp 0x410beb
call fcn.0041262a
int3
Function at 0x410d61
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 4
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x401a00
push 0x401970
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jle 0x410da1
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x410dab
mov esi, dword [ebp - 8]
jmp 0x410e83
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edi, edi
ja 0x410df1
jb 0x410dbf
cmp ebx, 0x6400000
jae 0x410dc6
xor esi, esi
jmp 0x410e83
test edi, edi
ja 0x410df1
jb 0x410dd4
cmp ebx, 0xc800000
jae 0x410ddc
xor esi, esi
inc esi
jmp 0x410e83
test edi, edi
ja 0x410df1
jb 0x410dea
cmp ebx, 0x40000000
jae 0x410df1
push 2
jmp 0x410e82
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
shrd eax, ecx, 0x14
mov dword [ebp - 0x10], eax
shr ecx, 0x14
mov eax, ecx
and ecx, 0x7fffffff
mov dword [ebp - 0xc], ecx
and eax, 0x80000000
fild qword [ebp - 0x10]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fchs
faddp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
call sub.msvcrt.dll__CIsqrt
fmul qword [0x401cf0]
fld qword [0x401cf8]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x410e46
fstp st(1)
jmp 0x410e48
fstp st(0)
shrd ebx, edi, 0x14
shr edi, 0x14
mov eax, edi
mov dword [ebp - 0x10], ebx
and edi, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0xc], edi
fild qword [ebp - 0x10]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fchs
faddp st(1)
fstp qword [ebp - 0x10]
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 0x41
jne 0x410e83
push 3
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10