joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8a10
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 + 0x1115904]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4b8a23
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4b8a64
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 + 0x11159ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4b8a96
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b8a9a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4b8a8b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4b8ab8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b8abc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4b8aad
xor ecx, ecx
mov eax, 0x1115914
xor ebx, ebx
mov bl, byte [ecx + 0x11159bc]
cmp byte [esp + ebx + 0x14], 0
je 0x4b8ae7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x11159d4]
cmp byte [esp + ebx + 0x14], 0
je 0x4b8afe
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 0x4b8ace
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4b8a57
lea edx, [esp + 0x84]
push edx
call fcn.004b8b40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x1148c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1148d3c
test eax, eax
je 0x1148d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1163ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1148d23
lea edi, [eax + 4]
jmp 0x1148c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1148c9c
mov dword [ebp - 4], 2
jmp 0x1148cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1148cb3
mov dword [ebp - 4], 1
jmp 0x1148cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1148d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1148cf6
mov byte [ecx], 0x3d
jmp 0x1148d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1148d0d
mov byte [ecx], 0x3d
jmp 0x1148d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1148c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005da8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb0
and dword [ebp + 0x74], 0
cmp dword [0x100a2cc], 0xfffffffe
mov dword [ebp + 0x6c], 0xc
jne 0x1005e8f
and dword [0x100a2cc], 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x1005e8f
cmp dword [ebp - 0x28], 1
jne 0x1005e8f
cmp dword [ebp - 0x34], 4
jne 0x1005e8f
cmp dword [ebp - 0x30], 0xa
jae 0x1005e8f
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1005e8f
lea eax, [ebp + 0x70]
push eax
push 0x20019
push 0
push 0x1001498
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005e8f
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x1001251
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp + 0x70]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1005e8f
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.01005ca2
test eax, eax
je 0x1005e8f
and dword [ebp + 0x74], 0x3ff
cmp dword [ebp + 0x74], 1
je 0x1005e85
cmp dword [ebp + 0x74], 0xd
jne 0x1005e8f
mov dword [0x100a2cc], 1
mov eax, dword [0x100a2cc]
add ebp, 0x78
leave
ret

Function at 0x1006f1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1006f29
pop dword [ebp - 0x1c]
mov eax, 0xd19eb80
sub eax, 0xc197c57
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x4e344c89
sub dword [ebp - 0x2c], 0xffe2073e
mov dword [ebp - 0x28], 0x9413c0b6
add dword [ebp - 0x28], 0x9e1f8b8f
mov dword [ebp - 0x24], 0xe8c29dc7
sub dword [ebp - 0x24], 0x9c765999
mov dword [ebp - 0x20], 0x44fa10de
sub dword [ebp - 0x20], 0x44fa10de
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xa1d7a06c
sub dword [ebp - 0x2c], 0x2d653716
mov dword [ebp - 0x28], 0x258bf3ab
sub dword [ebp - 0x28], 0xe41f9236
mov dword [ebp - 0x24], 0xb9fb8a74
add dword [ebp - 0x24], 0xa973e1f8
mov dword [ebp - 0x20], 0xdb4ab778
add dword [ebp - 0x20], 0x24b54888
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x5a6f11f7
add eax, 0xa690fec9
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x374f7
push 0
call eax
mov ecx, 0x92a85009
sub ecx, 0x92a807cd
xor edi, edi
add edi, eax
mov ebx, 0x10e6000
add ebx, dword [ebp - 0x1c]
mov edx, 0x8d0c0b5a
mov esi, dword [ebx]
sub dword [ebp - 0x18], 0xab2a5f9e
sub esi, edx
add dword [ebp - 8], 0xe493a6a6
mov dword [edi], esi
xor dword [ebp - 0x18], ecx
add edi, 0x7926cce9
add edi, 0x86d9331b
add ebx, 0x44f70829
add ebx, 0xbb08f7db
loop 0x100703c
add eax, 0xfaa97384
add eax, 0x557a03f
mov ebx, eax
add eax, 5
mov ecx, 0xe0a2966c
sub ecx, 0xdfa2966c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1007115
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007150
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100712d
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100716c
dec esi
je 0x1007165
dec esi
jne 0x1007171
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40fe50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x40fe72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fe79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fe68
mov eax, 1
add ebx, ebx
jne 0x40fe8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fe80
jne 0x40fe9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fe80
xor ecx, ecx
sub eax, 3
jb 0x40feb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ff22
mov ebp, eax
add ebx, ebx
jne 0x40febb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40fec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40feec
inc ecx
add ebx, ebx
jne 0x40fed8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40fecd
jne 0x40fee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ff0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40fefd
jmp 0x40fe6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ff0c
add edi, ecx
jmp 0x40fe6e
pop esi
mov edi, esi
mov ecx, 0x13
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ff2a
cmp byte [edi], 0
jne 0x40ff2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40ff2f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40ff9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ff5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf040]
or eax, eax
je 0x40ff98
mov dword [ebx], eax
add ebx, 4
jmp 0x40ff79
call dword [esi + 0xf050]
mov ebp, dword [esi + 0xf044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40ffd2
sub esp, 0xffffff80
jmp 0x4020af
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0x402c00
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3c6afc74
add dword [ebp - 0x54], 0x11e748d7
mov dword [ebp - 0x50], 0x48b47893
sub dword [ebp - 0x50], 0x16812c4e
mov dword [ebp - 0x4c], 0x52dd0af9
add dword [ebp - 0x4c], 0xf96f3935
mov dword [ebp - 0x48], 0xc85dc5cc
sub dword [ebp - 0x48], 0xc85dc5cc
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xfd5fe3f0
add dword [ebp - 0x54], 0x77128566
mov dword [ebp - 0x50], 0xaa76e0d
sub dword [ebp - 0x50], 0xc93b0c98
mov dword [ebp - 0x4c], 0x8899e634
add dword [ebp - 0x4c], 0xdad58638
mov dword [ebp - 0x48], 0x4ca27a1c
add dword [ebp - 0x48], 0xb35d85e4
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x1f430e34
sub eax, 0x1f028d60
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3a102
push 0
call eax
mov ecx, 0x5d9e86a
sub ecx, 0x5d992eb
mov edx, eax
mov edi, 0x3d0149e1
sub edi, 0x3cc039e1
add edi, dword [ebp - 0x44]
mov esi, 0x3398191c
mov dword [ebp - 0xc], 0x8446d855
mov ebx, dword [edi]
add dword [ebp - 0x28], esi
xor ebx, esi
sub dword [ebp - 0x20], 0x7e0ff514
mov dword [edx], ebx
sub dword [ebp - 0x34], 0x4cb352bb
add edx, 0xe9e52d
sub edx, 0xe9e529
add edi, 4
loop 0x402d12
add eax, 0x78f5d1b0
add eax, 0x870b771f
mov ebx, eax
add eax, 0x63675414
sub eax, 0x6367540f
mov ecx, 0x58323e97
add ecx, 0xa80dc169
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4172b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4172f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4172f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4172f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4172f2
cmp dword [ecx + 0x74], 0xe
jbe 0x4172f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x429590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4295bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4295bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1093c14
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1093c1e
pushal
call 0x1093c24
pop ebp
sub ebp, 0x10
sub ebp, 0xc93c14
jmp 0x1093c3a
mov eax, 0xc93c14
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a2
mov edx, 0x8425803a
xor byte [eax], dl
inc eax
dec ecx
jne 0x1093c51
jmp 0x1093c64
mov cl, 0xf7
mov cl, 0xb3
push es
cmp bh, byte [edx]
cmp bh, byte [ebx + 0x3a3ac2fb]
cmp bh, byte [ecx]
test dword [edx + 0x3a3a3a3f], 0x3a3a1280
cmp cl, ch
fdivr dword [ecx]
mov cl, 0xbb
cmp bh, byte ss:[edx]
cmp bh, byte [ecx]
push dword [edi - 0x4c39e1a2]
push ds
push 0x52
sub ch, byte [ebx + 0x18]
cmp dl, byte [edx + 0x39]
rcr dword [edx + edi + 0x521e163b], 1
nop
cli
shl ch, 1
sar byte [edi], cl
cmp bh, byte [edx]
cmp dl, bl
adc al, 0x3a
cmp bh, byte [edx]
mov bh, 0x5e
push ds
invalid
Function at 0x404dc1
Capabilities:
Shutdown system

Disassembly:
call fcn.00428aa0
push 2
mov eax, str.SeShutdownPrivilege
push eax
call fcn.00408e21
movsx eax, byte [esp + 4]
push eax
push 0
push 1
mov eax, str.Exit
push eax
push 0
call sub.ADVAPI32.dll_InitiateSystemShutdownW
xor eax, eax
ret 4
Function at 0x4057f7
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428aa0
push dword [esp + 0x20]
call fcn.00415410
mov dword [esp], 0
mov dword [esp + 4], 1
mov edx, 0x42c02e
lea ecx, [esp + 8]
call fcn.00415068
mov edx, 0x42c02e
lea ecx, [esp + 0xc]
call fcn.00415068
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 0x10], eax
mov dword [esp], 0
jmp 0x40584b
mov eax, 0x19
cmp eax, dword [esp]
jl 0x4058a7
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov ecx, dword [esp]
shl edi, cl
and ebx, edi
and ebx, ebx
je 0x4058a2
mov edx, dword [esp + 8]
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.00428990
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov ebx, dword [esp + 0xc]
add ebx, 0x41
push ebx
call fcn.00427200
pop eax
lea eax, [esp + 0xc]
push eax
call fcn.00428900
inc dword [esp]
jno 0x40584b
mov eax, 0x42cd66
push eax
call fcn.00427220
mov dword [esp], eax
jmp 0x4058b7
mov eax, 0x42cdd6
push eax
call fcn.00427220
cmp eax, dword [esp]
jl 0x405997
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push dword [esp + 0xc]
call fcn.00427200
call fcn.00428b60
push dword [esp + 0x10]
call fcn.004153f2
add dword [esp + 4], edx
call fcn.00426860
call fcn.00415410
and eax, eax
je 0x405910
xor eax, eax
jmp 0x405915
mov eax, 1
and eax, eax
je 0x40598e
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push dword [esp + 0xc]
call fcn.00427200
mov edx, 0x42c1d6
push edx
call fcn.00428990
call fcn.004153f2
add dword [esp], edx
call sub.KERNEL32.dll_GetDriveTypeW
call fcn.00415410
mov ebx, eax
cmp ebx, 1
jne 0x40598e
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push dword [esp + 8]
call fcn.00427200
mov edx, 0x42c1d6
push edx
call fcn.00428990
lea eax, [esp + 0x10]
push eax
call fcn.00428900
jmp 0x405997
inc dword [esp]
jno 0x4058b7
mov edx, dword [esp + 0xc]
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.00428990
pop eax
push eax
call fcn.004153e0
pop edx
add eax, edx
jmp 0x4059bf
push dword [esp + 0xc]
call fcn.00428b30
push dword [esp + 8]
call fcn.00428b30
add esp, 0x14
pop edi
pop ebx
ret

Function at 0x409b75
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.00428aa0
push dword [esp + 0x10]
call fcn.00415410
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
call fcn.00426290
lea eax, [esp + 8]
push eax
call fcn.00428900
lea eax, [esp]
push eax
push 0
push 0
push dword [esp + 0x18]
push 0
call sub.SHELL32.dll_SHGetFolderLocation
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov edx, dword [esp + 4]
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.00428990
pop eax
push eax
call fcn.004153e0
pop edx
add eax, edx
jmp 0x409bfd
push dword [esp + 4]
call fcn.00428b30
add esp, 8
ret 4
Function at 0x40ab70
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ab78
call fcn.00428aa0
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
push 0x104
call fcn.00426290
lea eax, [esp + 0x10]
push eax
call fcn.00428900
lea eax, [esp + 0x10]
mov edx, 0x42c02e
push edx
push 3
push eax
call fcn.00428a30
lea eax, [esp + 0x18]
mov edx, 0x42c02e
push edx
push 7
push eax
call fcn.00428a30
mov dword [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x40ac02
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x2c]
jl 0x40ad05
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.00427a20
push edx
call fcn.004288c0
pop edx
push eax
push edx
call fcn.004288c0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0x34]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004279d0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.004289f0
push edx
call fcn.004288c0
pop edx
push eax
mov edx, str.._
push edx
call fcn.00428990
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00428b90
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.004289f0
push edx
call fcn.004288c0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004288c0
pop edx
push eax
push 7
push edx
call fcn.00428b90
call fcn.004153f2
add dword [esp], edx
call fcn.0040af46
call fcn.00415410
and eax, eax
je 0x40acfb
lea ebp, [esp]
mov ebx, dword [ebp + 4]
cmp ebx, dword [esp + 0x44]
jne 0x40acee
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x48]
jne 0x40acee
mov eax, 1
jmp 0x40acf0
xor eax, eax
and eax, eax
je 0x40acfb
mov byte [esp + 0x30], 1
jmp 0x40ad05
inc dword [esp + 0x2c]
jno 0x40ac02
movsx eax, byte [esp + 0x30]
movsx eax, al
jmp 0x40ad11
push dword [esp + 0xc]
call fcn.00428b30
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 8

Function at 0x40af46
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00428aa0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00415060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00403dc8
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x40afc0
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x40afcc
push dword [esp]
call fcn.00428b30
add esp, 0x10
pop ebx
ret 8