joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c3b1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c3ba
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c3c4
add ecx, eax
or byte [ecx], 4
enter 0x980, 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c3a6
inc dword [ebp + 0xc]
invalid
invalid
invalid

Function at 0x40c3c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c3b1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c3ba
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c3c4
add ecx, eax
or byte [ecx], 4
enter 0x980, 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c3a6
inc dword [ebp + 0xc]
invalid
invalid
invalid

Function at 0x40c514
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040bc3c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040bc87
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040bc3c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
invalid
Function at 0x410a60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00412090
call fcn.00410c60
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x410a98
jmp 0x410b36
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x410a97
cmp cl, 0x22
je 0x410af0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x410b10
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x410b10
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x410ad0
jmp 0x410b10
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x410af0
cmp cl, 0x22
je 0x410b72
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x410b30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x410b20
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x410b54
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.00404db8
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x410b10
Function at 0x411ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [0x41a7b0]
test ecx, ecx
je 0x411eee
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x38], eax
mov eax, dword [0x4190b4]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x48], 0x41414141
mov dword [ebp - 0x34], eax
mov eax, dword [0x4190b8]
mov dword [ebp - 0x44], 0x41414141
mov dword [ebp - 0x40], 0x41414141
mov dword [ebp - 0x30], eax
mov eax, dword [0x4190bc]
mov dword [ebp - 0x3c], 0x41414141
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4190c0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4190c4]
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x41204d
mov dword [esp], 0x1c
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x412081
cld
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, 7
mov edx, 0x1f
rep stosd dword es:[edi], eax
mov dword [ebx], 0x1c
mov eax, dword [0x41a790]
mov ecx, 1
mov dword [ebx + 4], sub.msvcrt.dll_abort
mov dword [ebx + 8], 0x411e20
mov dword [ebx + 0x14], eax
jmp 0x411fd0
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [ebp + edx - 0x98], al
dec edx
jns 0x411fd0
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
mov dword [ebp - 0x78], eax
mov eax, dword [0x4190b4]
mov dword [ebp - 0x74], eax
mov eax, dword [0x4190b8]
mov dword [ebp - 0x70], eax
mov eax, dword [0x4190bc]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x4190c0]
mov dword [ebp - 0x68], eax
mov eax, dword [0x4190c4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sub.KERNEL32.dll_AddAtomA
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x412072
xor edx, edx
test edx, edx
jne 0x412054
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
movzx eax, ax
call fcn.00411e30
mov ebx, eax
mov dword [0x41a7b0], ebx
lea eax, [ebx + 4]
mov dword [0x41a7a0], eax
lea eax, [ebx + 8]
mov dword [0x41a7c0], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.00411e30
cmp eax, ebx
mov edx, edi
jne 0x412031
jmp 0x412033
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401750
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x4018c4
push ebx
push esi
push 0x40
push 0x3000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov al, 0x74
mov cl, 0x43
mov byte [ebp - 0x17], al
mov byte [ebp - 0x37], al
mov byte [ebp - 0x30], al
mov bl, 0x6c
lea eax, [ebp - 0x38]
mov byte [ebp - 0x35], cl
mov byte [ebp - 0x2e], cl
push eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x64
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 0
mov byte [ebp - 0x38], 0x52
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x34], 0x6f
mov byte [ebp - 0x33], 0x6d
mov byte [ebp - 0x32], 0x70
mov byte [ebp - 0x31], 0x75
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0x33
mov byte [ebp - 0x2a], 0x32
mov byte [ebp - 0x29], 0
call fcn.00486440
mov dword [esi], eax
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], 0x33
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0x2e
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x70
mov byte [ebp - 7], 0
call fcn.00486440
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, 0x401200
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 8], 0x4015d0
xor ebx, ebx
cmp dword [eax], 0xaaaaaaaa
je 0x40188a
mov eax, 0x401200
lea esp, [esp]
inc eax
inc ebx
cmp dword [eax], 0xaaaaaaaa
jne 0x401880
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
mov edi, eax
push 0x401200
push edi
call fcn.00475820
add esp, 0xc
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x401b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov cl, 0x64
mov al, 0x6c
push esi
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, 0x69
push edi
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x24]
mov dl, 0x6e
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1a], cl
push eax
lea ecx, [ebp - 0x10]
mov bl, 0x74
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 7], 0
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x49
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x54
mov byte [ebp - 0x16], 0x68
mov byte [ebp - 0x15], 0x75
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x6b
mov byte [ebp - 0x12], 0
call fcn.00486440
mov ebx, eax
xor esi, esi
lea edi, [esi + ebx]
push edi
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00407af0
mov edx, dword [ebp - 0x28]
mov cl, byte [edx]
cmp cl, 0xe8
je 0x401c31
cmp cl, 0xe9
je 0x401c31
add esi, eax
cmp esi, 0x1000
jb 0x401bf2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 1]
mov ecx, dword [ebp - 4]
lea eax, [eax + edi + 5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], al
mov al, 0x6c
push ebx
mov byte [ebp - 0xf], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
lea eax, [ebp - 0x34]
mov bl, 0x72
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 8], 0
mov byte [ebp - 0x34], 0x4c
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0x64
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x62
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0x79
mov byte [ebp - 0x29], 0x41
mov byte [ebp - 0x28], 0
call fcn.00486440
lea edx, [ebp - 0x24]
mov dword [0x52984c], eax
push edx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x4c
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x62
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x57
mov byte [ebp - 0x18], 0
call fcn.00486440
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [0x529850], eax
mov byte [ebp - 0x44], 0x4c
mov byte [ebp - 0x43], 0x6f
mov byte [ebp - 0x42], 0x61
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x4c
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x62
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x61
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], 0x79
mov byte [ebp - 0x39], 0x45
mov byte [ebp - 0x38], 0x78
mov byte [ebp - 0x37], 0x41
mov byte [ebp - 0x36], 0
call fcn.00486440
mov dword [0x529854], eax
mov byte [ebp - 0x54], 0x4c
mov byte [ebp - 0x53], 0x6f
mov byte [ebp - 0x52], 0x61
mov byte [ebp - 0x51], 0x64
mov byte [ebp - 0x50], 0x4c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x62
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], 0x61
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], 0x79
mov byte [ebp - 0x49], 0x45
mov byte [ebp - 0x48], 0x78
mov byte [ebp - 0x47], 0x57
mov byte [ebp - 0x46], 0
call fcn.00486440
push 0
push 0
push 0
push 0x401d90
push 0
push 0
mov dword [0x529858], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x4030c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x529868], 0
jne 0x403184
cmp byte [0x529869], 0
mov al, 1
mov byte [0x529868], al
jne 0x4030fd
push 0x5294c0
mov byte [0x529869], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00402780
call fcn.004031a0
mov dword [0x529864], eax
mov al, 0x73
mov cl, 0x65
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x20]
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x15], cl
mov dl, 0x6f
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0x36
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], dl
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529860], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret

Function at 0x4031a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x17], al
lea eax, [ebp - 0x24]
mov byte [ebp - 0x22], cl
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x18], cl
mov dl, 0x6e
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x49
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x66
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403282
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call eax
mov eax, dword [ebp - 0x48]
cmp ax, 6
je 0x40326f
cmp ax, 9
jne 0x403282
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3756
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404d4f
mov ecx, 0x5c
mov edx, ecx
mov eax, 0x2e
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1e], dx
mov eax, 0x43
mov word [ebp - 0x20], cx
mov word [ebp - 0x1a], cx
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 0x448]
mov edx, 0x25
mov word [ebp - 0x18], dx
mov ecx, 0x3a
xor edx, edx
mov word [ebp - 0x14], cx
push eax
mov word [ebp - 0x12], dx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x40]
push edx
mov edx, 0x10
call fcn.004072d0
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d4f
xor eax, eax
push eax
lea ecx, [ebp - 0x460]
push ecx
push 0x200
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
push 0xc
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x454]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404d48
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x404cba
lea edx, [ebp - 0x458]
lea ecx, [ebp + eax - 0x240]
push edx
call fcn.00406370
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 4], 0
call fcn.004065f0
mov edi, eax
call fcn.00406680
mov ecx, dword [ebp - 0x458]
cmp dword [ecx - 4], 1
jle 0x404c7f
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x458]
call fcn.00406740
mov ecx, dword [ebp - 0x458]
mov edi, dword [ecx - 0xc]
test edi, edi
jne 0x404ca8
call fcn.00403560
test al, al
je 0x404ca8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x458]
call fcn.00406720
mov al, 1
jmp 0x404d51
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.00406720
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x404d48
lea edx, [ebp - 0x45c]
lea ecx, [ebp + eax - 0x240]
push edx
call fcn.00406370
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 4], 1
call fcn.004065f0
mov edi, eax
call fcn.00406680
mov ecx, dword [ebp - 0x45c]
cmp dword [ecx - 4], 1
jle 0x404d16
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x45c]
call fcn.00406740
mov ecx, dword [ebp - 0x45c]
cmp dword [ecx - 0xc], 0
jne 0x404d3d
xor edi, edi
call fcn.00403560
test al, al
je 0x404d3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x45c]
call fcn.00406720
mov al, 1
jmp 0x404d51
lea ecx, [ebp - 0x45c]
call fcn.00406720
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x405710
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x7e
xor eax, eax
push ecx
lea edx, [ebp - 0x8a]
push edx
mov dword [ebp - 0x90], esi
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x8c], cx
call fcn.004737c0
add esp, 0xc
test ebx, ebx
je 0x40581a
test esi, esi
je 0x40581a
push edi
mov edi, 0x41
mov edi, edi
push 0x40
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xc]
mov eax, 0x3a
push edx
mov word [ebp - 0xc], di
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4057c6
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057a0
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0046e810
add esp, 0xc
test eax, eax
je 0x4057e0
inc edi
cmp di, 0x5b
jl 0x405770
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0xc]
push ecx
push 0x104
push edi
call fcn.0046e8b6
lea edx, [ebx + esi*2]
push edx
push 0x104
push edi
call fcn.0046e925
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret