joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x49f44b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x49f54e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5887fc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5887fc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5887fc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5887fc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5887fc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5887fc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5887fc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5887fc]
xor eax, edx
inc ecx
dec edi
jne 0x49f466
pop edi
test esi, esi
je 0x49f570
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5887fc]
xor eax, edx
inc ecx
dec esi
jne 0x49f552
pop esi
pop ebx
not eax
ret

Function at 0x49ff10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x49ff51
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49ff46
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x49ff64
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4a0ea0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4a0f55
cmp dword [ebp + 4], 0xffffffff
jne 0x4a0f55
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x5aab00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4a0f1d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4a0f1d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0049fca0
add esp, 0x10
test eax, eax
jne 0x4a0f40
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004a01e0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4a13b0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4a1478
mov al, byte [ecx]
test al, al
je 0x4a1478
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4a13db
cmp al, 0x5c
jne 0x4a13dd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4a13d3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4a1414
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004bd560
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004a13b0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4a3740
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589028
push 0x4bd604
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a3be6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a3be6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a3bc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a4360
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a4398
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a4a30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a4a79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a4ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a4aa0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a4b20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a4b20
lea ecx, [esi + 0xc]
call fcn.004ccb28
lea ecx, [esi + 0x10]
call fcn.004ccb28
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a60b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a60b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a60b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ccb9d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ccb9d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a7460
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5acb0c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a7473
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a74b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5acbb4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a74e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a74ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a74db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a7508
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a750c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a74fd
xor ecx, ecx
mov eax, 0x5acb1c
xor ebx, ebx
mov bl, byte [ecx + 0x5acbc4]
cmp byte [esp + ebx + 0x14], 0
je 0x4a7537
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5acbdc]
cmp byte [esp + ebx + 0x14], 0
je 0x4a754e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a751e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a74a7
lea edx, [esp + 0x84]
push edx
call fcn.004a7590
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4bce8d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bcead
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf65a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4bced0
test byte [esp + 8], 2
je 0x4bced0
call fcn.004bf6cd
mov dword [eax], 0xd
call fcn.004bf6d6
mov dword [eax], 5
jmp 0x4bcea9
xor eax, eax
ret

Function at 0x4cf004
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cf03c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cd044
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cd01c
jmp 0x4cf048
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d06fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d0740
call fcn.004d65ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d0740
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d0737
xor eax, eax
jmp 0x4d0748
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d074e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d6b13
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d6b41
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6b5f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d6a79
jmp 0x4d6b5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d6b5f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d6a79
test edi, edi
mov eax, edi
jne 0x4d6b49
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
jmp loc.004607c2
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x1c5a7bf5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x11c515cc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x104623f
Capabilities:
Accept command line arguments

Disassembly:
push 0x6c
mov eax, 0x10cd731
call fcn.01098a6e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0xff
push 1
push 0x3fc
mov edi, 0x1002e5c
push edi
push 0x1001a0c
mov ebx, 0x10019a8
push ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
call fcn.0109958e
lea ecx, [ebp - 0x78]
call fcn.0109aa5f
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x10e3e78
call fcn.01043530
push 0x1002e40
mov dword [0x10e3e98], 0x100182c
mov dword [0x10e308c], 0x10e3e78
call fcn.01043601
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1002e04
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0xff
push 1
push 0x406
push edi
push 0x1001a0c
push ebx
mov dword [ebp - 0x28], eax
call fcn.0109958e
lea eax, [ebp - 0x78]
push eax
call fcn.0109a735
mov edi, dword [ebp - 0x20]
add esp, 0x64
push 0
push edi
push 0x10e3020
lea ecx, [esi + 8]
call fcn.010431d8
mov dword [esi + 0xc8], edi
mov esi, 0x1002dfc
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
movsw word es:[edi], word [esi]
call fcn.01043b9c
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10463f6
push eax
push 0x1002dd0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0xff
push 1
push 0x413
mov esi, 0x1002e5c
push esi
mov edi, 0x1001a0c
push edi
push ebx
call fcn.0109958e
lea eax, [ebp - 0x78]
push eax
call fcn.0109a735
add esp, 0x64
push 0xffffffffffffffff
push 0x1002dbc
push 0xffffffffffffffff
push dword [ebp - 0x20]
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10463ea
push 0x1002d50
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0xff
push 1
push 0x418
push esi
push edi
push ebx
call fcn.0109958e
lea eax, [ebp - 0x78]
push eax
call fcn.0109a735
mov eax, dword [ebp - 0x24]
add esp, 0x60
mov dword [eax + 0xa0], 0x32
call fcn.0104364f
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0xa0]
lea ecx, [ebp - 0x78]
call fcn.0109ab18
mov eax, esi
call fcn.01098ad9
ret 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
jmp 0x104632d
xor al, al
jne 0x10463ca
mov ecx, dword [ebp - 0x24]
call fcn.01045f90
jmp 0x10463ca
Function at 0x1046cf2
Capabilities:
Get disk information

Disassembly:
push 0x44
mov eax, 0x10cd7bb
call fcn.010989c0
and dword [ebp - 4], 0
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 0xb
push 0x183
mov ebx, 0x10038f4
push ebx
mov edi, 0x10038e4
push edi
mov esi, 0x1003898
push esi
call fcn.0109958e
lea ecx, [ebp - 0x50]
call fcn.0109aa5f
push dword [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
push 0x1003828
sub esp, 0x58
mov dword [ebp - 0x10], esp
xor eax, eax
mov word [ecx], ax
mov ecx, esp
push 0xff
push 0xb
push 0x18b
push ebx
push edi
push esi
mov byte [ebp - 4], 1
call fcn.0109958e
lea eax, [ebp - 0x50]
push eax
call fcn.0109a735
add esp, 0x64
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1046db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x64]
lea eax, [ebp + 8]
push 0x1003798
push dword [ebp + 0x60]
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0x64], esp
push eax
call fcn.010995da
lea eax, [ebp - 0x50]
push eax
call fcn.0109b3d6
push dword [ebp + 0x68]
push 0x1003710
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0x64], esp
push 0xff
push 0xb
push 0x193
push ebx
push edi
push esi
call fcn.0109958e
lea eax, [ebp - 0x50]
push eax
call fcn.0109a735
add esp, 0x64
lea ecx, [ebp - 0x50]
call fcn.0109ab18
lea ecx, [ebp + 8]
call fcn.0109963e
call fcn.01098aac
ret 0x68

Function at 0x104717f
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x630], esp
push 0xff
push 1
push 0xe3f
mov ebx, 0x1003d14
push ebx
mov edi, 0x1003990
push edi
mov esi, 0x1003928
push esi
mov dword [ebp - 0x62c], eax
call fcn.0109958e
lea ecx, [ebp - 0x670]
call fcn.0109aa5f
push 0x105
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10472cc
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x10472cc
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x104727d
push dword [ebp - 0x62c]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb al, al
inc al
pop ecx
movzx eax, al
pop ecx
push eax
lea ecx, [ebp - 0x670]
call fcn.0104693b
lea ecx, [ebp - 0x670]
mov bl, al
call fcn.0109ab18
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.010989ab
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1047291
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1003ca0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x630], esp
push 0xff
push 1
push 0xe4b
push ebx
push edi
push esi
call fcn.0109958e
lea eax, [ebp - 0x670]
push eax
call fcn.0109a735
add esp, 0x68
push 0
jmp 0x1047252
Function at 0x104ad5d
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x10cdbba
call fcn.010989c0
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0xff
push 1
push 0xd5d
mov ebx, 0x1006200
push ebx
mov edi, 0x1003990
push edi
mov esi, 0x1003928
push esi
call fcn.0109958e
lea ecx, [ebp - 0x64]
call fcn.0109aa5f
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x1001df4
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov byte [ebp - 4], 1
cmp eax, ecx
jne 0x104aded
push 0x10061b0
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 2
push 0xd61
push ebx
push edi
push esi
call fcn.0109958e
lea eax, [ebp - 0x64]
push eax
call fcn.0109c45f
or dword [ebp - 0x18], 0xffffffff
push ecx
push ecx
push ecx
push 0x1f4
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], 0xffb3b4c0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x104ae2a
push 0x100617c
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 2
push 0xd66
jmp 0x104addc
and dword [ebp - 0x10], 0
push 0x104
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x104ae5b
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x104ae90
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x64
jl 0x104ae2e
cmp dword [ebp - 0x10], 0x64
jne 0x104aeae
push 0x1006130
push 0x80042308
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 1
push 0xd73
push ebx
push edi
push esi
call fcn.0109958e
lea eax, [ebp - 0x64]
push eax
call fcn.0109b3d6
push 0x10060f4
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0xff
push 1
push 0xd70
jmp 0x104addc
lea ecx, [ebp - 0x24]
call fcn.01043ebd
lea ecx, [ebp - 0x64]
call fcn.0109ab18
call fcn.01098aac
ret 8