joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f1
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp ebx, 0x60
setne al
push ebx
mov dword [0x4f9e14], eax
call fcn.0042b2e1
call fcn.00407866
mov dword [esp], fcn.00408b31
call dword [0x4fb470]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x401308
cmp dword [ebp - 4], 4
jne 0x4012bc
push 0x4b7d7c
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4012bc
push 0x10
push edi
push dword [esi + 0xc]
call fcn.00489be1
push 0x10
push edi
push dword [esi + 8]
mov ebx, eax
call fcn.00489be1
add esp, 0x18
push str.Except_Mutex
push edi
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push dword [ebp - 8]
mov edi, eax
call fcn.00408c54
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x40131a
cmp dword [ebp - 4], 2
jne 0x401308
mov ebx, str._Embedding
push ebx
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x401308
call fcn.004208cb
mov dword [ebp - 8], eax
cmp eax, edi
je 0x401308
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401308
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push edi
push ebx
push dword [ebp - 8]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4012b8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0040151f
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401458
Capabilities:
Accept command line arguments

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.0040df16
mov ebx, 0x500db8
test eax, eax
je 0x401494
cmp word [eax], 0
je 0x401494
push eax
push 0x4c2d64
push 0x1047
push ebx
call fcn.00488ec0
xor eax, eax
add esp, 0x10
mov word [0x502e46], ax
call fcn.0042daa5
mov eax, ebx
mov dword [0x500db0], 1
pop ebx
ret

Function at 0x4014a2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4fa360
push str._s.update
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00488ec0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041dd3d
add esp, 0x14
lea eax, [ebp - 0x20c]
call fcn.00420359
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x401511
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401511
xor eax, eax
inc eax
jmp 0x401513
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488e60
leave
ret
Function at 0x401887
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push edi
push 0x4fa568
mov edi, eax
push str._sUser_Cache_
mov ecx, 0x103
call fcn.0040243c
pop ecx
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4018bd
push ebx
mov ebx, edi
call fcn.0041df76
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebx
cmp dword [esp + 8], 0
je 0x4018d2
push dword [esp + 8]
push 0x103
call fcn.0040240a
pop edi
ret 4

Function at 0x4018f1
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x401964
push edi
call esi
cmp dword [ebp - 4], 0
je 0x401960
push ebx
push dword [ebp - 4]
and dword [0x4fa310], 0
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x401944
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
mov dword [0x4fa310], 1
call esi
cmp dword [ebp - 4], 0
jne 0x401914
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401a4a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4fa360
push str._s.videobox
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00488ec0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041dd3d
add esp, 0x14
lea eax, [ebp - 0x20c]
call fcn.00420359
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x401b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040e225
pop ecx
test eax, eax
jne 0x401b0f
push dword [0x588338]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401b0f
push dword [0x588338]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x401b0f
push dword [0x588338]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401b03
push 9
push dword [0x588338]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x588338]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
inc eax
jmp 0x401b16
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488e60
leave
ret

Function at 0x401ce3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4fa360
push str._s.videoboxpop
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00488ec0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041dd3d
add esp, 0x14
lea eax, [ebp - 0x20c]
call fcn.00420359
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x401d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d52
xor eax, eax
inc eax
jmp 0x401d54
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488e60
leave
ret
Function at 0x403132
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x403140
push 0xd
pop eax
jmp 0x403173
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403147
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4035ca
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00403597
mov ebx, eax
cmp ebx, esi
je 0x403632
cmp dword [ebp - 0x214], esi
je 0x40362b
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4036cd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40365a
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004035ca
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4036de
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40363a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x4036a5
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4036cb
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488e60
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4036f2
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4036cd
Function at 0x4047e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4047ff
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404834
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404830
cmp edi, eax
jae 0x404834
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404822
cmp edi, eax
jb 0x404838
xor eax, eax
jmp 0x404841
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4056bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
push ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20119
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x405726
cmp dword [ebp - 4], edi
je 0x405726
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x405726
push dword [ebp - 8]
push edi
push dword [ebp + 0x18]
call fcn.0048e0e0
add esp, 0xc
mov dword [esi], edi
xor eax, eax
jmp 0x405728
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x407509
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push esi
push edi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], eax
je 0x4075e7
cmp dword [ebp + 0x14], eax
je 0x4075e7
lea edi, [ebx + 2]
push edi
call fcn.00487d50
mov esi, eax
pop ecx
test esi, esi
je 0x4075e2
push edi
push 0
push esi
call fcn.0048e0e0
push ebx
push dword [ebp + 8]
push esi
call fcn.0048e160
push ebx
call fcn.00407608
push dword [ebp + 0x10]
mov ecx, esi
push ebx
mov dword [ebp + 8], eax
call fcn.004075ed
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push 0x10
pop edi
push 5
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
and dword [ebp - 4], 0
push 0x4c4410
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call fcn.0048b616
add esp, 0xc
test eax, eax
jne 0x4075d4
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push 1
push edi
push eax
call fcn.0048bda2
push dword [ebp - 4]
push ebx
push 1
push esi
call fcn.0048bda2
push dword [ebp - 4]
call fcn.0048be9b
add esp, 0x24
push esi
call fcn.00489298
pop ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
jmp 0x4075e9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4075ed
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp ecx, eax
je 0x407607
cmp dword [esp + 4], eax
jbe 0x407607
mov dl, byte [esp + 8]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [esp + 4]
jb 0x4075f9
ret

Function at 0x407608
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
xor edi, edi
cmp esi, edi
je 0x40768d
cmp dword [ebp + 8], edi
je 0x40768d
push 0x3fc
lea eax, [ebp - 0x3fc]
push edi
push eax
mov dword [ebp - 0x400], edi
call fcn.0048e0e0
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40764c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40764e
shr eax, 1
dec edx
jne 0x40763f
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x40763a
or eax, 0xffffffff
xor ecx, ecx
cmp dword [ebp + 8], edi
jbe 0x407689
movzx edx, byte [ecx + esi]
mov edi, eax
and edi, 0xff
xor edx, edi
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp ecx, dword [ebp + 8]
jb 0x40766b
not eax
jmp 0x40768f
xor eax, eax
pop edi
leave
ret

Function at 0x4077b8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
mov esi, 0x502f00
cmp ax, word [0x502f00]
jne 0x407855
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Excption
mov ebx, 0x4fa568
push ebx
push esi
call edi
push str.excpt.dat
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
test eax, eax
je 0x407819
xor eax, eax
mov word [0x502f00], ax
jmp 0x407857
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0048e0e0
add esp, 0xc
push str.Excption
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488e60
leave
ret
Function at 0x407866
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push edi
cmp dword [0x4f7454], ebx
jne 0x40793e
push 0x4c4464
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x40788f
push 2
pop eax
jmp 0x407940
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push edi
call esi
push str.SymSetOptions
push edi
mov dword [0x4f7454], eax
call esi
push str.StackWalk
push edi
mov dword [0x4f7458], eax
call esi
push str.SymFunctionTableAccess
push edi
mov dword [0x4f744c], eax
call esi
push str.MiniDumpWriteDump
push edi
mov dword [0x4f7450], eax
call esi
push str.SymGetModuleBase
push edi
mov dword [0x4f745c], eax
call esi
push str.GetModuleFileNameExW
push 0x4c4500
mov dword [0x4f7460], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov dword [0x4f7464], eax
pop esi
cmp dword [0x4f7454], ebx
je 0x407943
mov ecx, dword [0x4f7458]
cmp ecx, ebx
je 0x407943
cmp dword [0x4f744c], ebx
je 0x407943
cmp dword [0x4f7450], ebx
je 0x407943
cmp dword [0x4f745c], ebx
je 0x407943
cmp eax, ebx
je 0x407943
push 0x12
call ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4f7454]
xor eax, eax
pop edi
pop ebx
ret
mov dword [0x4f7454], ebx
push 6
jmp 0x407889
Function at 0x407cca
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push esi
push edi
mov ebp, 0x7ffffffe
push ebp
lea edx, [ebx + 0x454]
mov eax, 0x4f6400
mov ecx, 0x824
call fcn.00402562
xor edi, edi
cmp dword [0x500db0], edi
je 0x407cf9
mov esi, 0x500db8
jmp 0x407d00
call fcn.00401458
mov esi, eax
mov dword [ebx + 0x330], edi
cmp dword [0x4fa340], edi
je 0x407d1a
mov dword [ebx + 0x330], 1
jmp case.default.0x407d3a
cmp dword [0x4fa344], edi
jne case.0x407d3a.8
cmp esi, edi
je case.default.0x407d3a
mov edi, str.__class
call fcn.0040ad08
push 7
add eax, 0xfffffffe
pop ecx
cmp eax, ecx
ja case.default.0x407d3a
jmp dword [eax*4 + 0x407e36]
mov dword [ebx + 0x330], 2
jmp case.default.0x407d3a
mov dword [ebx + 0x330], 3
jmp case.default.0x407d3a
mov dword [ebx + 0x330], 4
jmp case.default.0x407d3a
mov dword [ebx + 0x330], 6
jmp case.default.0x407d3a
mov dword [ebx + 0x330], ecx
jmp case.default.0x407d3a
mov dword [ebx + 0x330], 8
jmp case.default.0x407d3a
mov dword [ebx + 0x330], 9
mov eax, dword [0x4f85f0]
mov dword [ebx + 0x32c], eax
mov eax, dword [0x56c520]
mov dword [ebx + 0x334], eax
mov eax, dword [0x4f5f64]
mov dword [ebx + 0x338], eax
mov eax, dword [0x4f60f8]
mov dword [ebx + 0x33c], eax
mov eax, dword [0x4f74f8]
push 0
mov dword [ebx + 0x340], eax
call fcn.00489c50
pop ecx
mov dword [ebx + 0x348], eax
mov dword [ebx + 0x34c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x350], eax
test esi, esi
je 0x407dee
mov eax, esi
jmp 0x407df4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [ebx + 0x149e]
mov ecx, 0x825
call fcn.004025a1
push ebp
lea edx, [ebx + 0x354]
mov eax, 0x4f6100
mov ecx, 0x80
call fcn.00402562
push ebp
push 0x40
lea edx, [ebx + 0x24e8]
mov eax, 0x572cf8
pop ecx
call fcn.00402562
pop edi
pop esi
pop ebp
ret
Function at 0x408b31
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
inc dword [0x4f60f8]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x408c4b
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 8
push esi
call edi
test eax, eax
jne 0x408c4b
push 0x50
push dword [esi]
call edi
test eax, eax
jne 0x408c4b
push 0x50
push dword [esi + 4]
call edi
test eax, eax
jne 0x408c4b
push ebx
mov edi, 0x2568
push edi
call fcn.004892be
push edi
mov ebx, eax
push 0
push ebx
call fcn.0048e0e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x328], eax
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
push 0x14
lea edi, [ebx + 0x50]
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax]
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x408944
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x408bf7
push ebx
call fcn.00488e55
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edi, edi
inc edi
cmp dword [eax], 0xc00000fd
pop ebx
jne 0x408c47
xor eax, eax
cmp eax, fcn.0048c15a
je 0x408c24
call fcn.0048c15a
test eax, eax
je 0x408c24
or edi, 0xffffffff
mov eax, dword [0x4f7468]
cmp eax, esi
je 0x408c47
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], esi
call eax
add dword [ebp + 8], 0x200000
lea eax, [ebp + 8]
push eax
call dword [0x4f7468]
mov eax, edi
jmp 0x408c4e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x409c4b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x418
lea ebp, [esp - 4]
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x418], eax
push 0x34
mov eax, 0x4a859c
call fcn.00490adb
mov eax, dword [ebp + 0x424]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x409caf
xor eax, eax
jmp 0x409e12
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
push esi
jmp 0x409df5
cmp dword [ebp - 0x10], esi
jne 0x409e06
mov eax, dword [0x4f4a0c]
inc dword [ebp - 0x20]
mov ecx, 0x4f4a0c
mov dword [ebp - 0x28], 0x104
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push str._s_s
lea eax, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.0040202d
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
push ebx
call edi
test eax, eax
jne 0x409dd7
push 0x208
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push esi
push eax
call fcn.0048e0e0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.NetCfgInstanceId
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409dce
lea eax, [ebp + 0x20c]
push eax
push dword [ebp - 0x40]
call fcn.0040e450
test eax, eax
jne 0x409dce
push 4
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push str.Characteristics
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x409dcb
mov eax, dword [ebp - 0x2c]
mov edx, eax
and edx, ecx
je 0x409dc3
mov dword [ebp - 0x1c], 2
jmp 0x409dcb
and eax, 4
je 0x409dcb
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00404bfa
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x409cc7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.00488e60
add ebp, 0x41c
leave
ret 4
Function at 0x409fc8
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x4a8e64
call fcn.00490b44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4f4a0c]
mov esi, 0x4f4a0c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
movzx eax, word [ebp + 0xc]
push eax
xor ebx, ebx
push str.._c:
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.0040202d
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
pop ecx
pop ecx
push 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push dword [ebp - 0x58]
call edi
cmp eax, 1
jne 0x40a075
mov eax, dword [0x4f4a0c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push str._08X
call fcn.0040202d
mov edi, dword [ebp - 0x60]
pop ecx
pop ecx
lea eax, [ebp - 0x54]
call fcn.00405ab8
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
call fcn.00404bfa
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.00404bfa
xor eax, eax
inc eax
jmp 0x40a0f0
movzx eax, word [ebp + 0xc]
push eax
push str._c:_
lea eax, [ebp - 0x58]
call fcn.0040202d
pop ecx
pop ecx
push 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push dword [ebp - 0x58]
call edi
cmp eax, 1
jne 0x40a0e3
mov eax, dword [0x4f4a0c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push str._08X
call fcn.0040202d
mov edi, dword [ebp - 0x60]
pop ecx
pop ecx
lea eax, [ebp - 0x54]
call fcn.00405ab8
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
call fcn.00404bfa
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.00404bfa
mov eax, ebx
call fcn.00490bc7
ret 8