joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045322
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x10045337
mov eax, dword [esi]
jmp 0x10045339
mov eax, esi
push eax
push 0x100cb1d4
push edi
call fcn.100448e6
mov eax, dword [esi + 0x10]
add esp, 0xc
add eax, 3
cdq
push 3
pop ecx
idiv ecx
lea eax, [eax*4 + 1]
push eax
call fcn.10075c0e
cmp dword [esi + 0x14], 0x10
mov ebx, eax
mov eax, dword [esi + 0x10]
pop ecx
jb 0x1004536f
mov esi, dword [esi]
inc eax
push eax
push esi
push ebx
call fcn.10048c14
add esp, 0xc
mov byte [eax + ebx], 0
push 0x34
call fcn.1008a235
mov esi, eax
pop ecx
test esi, esi
je 0x100453a8
xor ecx, ecx
push 0xf
mov dword [esi + 0x10], ecx
pop eax
mov dword [esi + 0x14], eax
mov byte [esi], cl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], ecx
mov byte [esi + 0x18], cl
mov dword [esi + 0x30], ecx
jmp 0x100453aa
xor esi, esi
push dword [ebp + 8]
call fcn.10006fa1
pop ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.10006f28
push dword [ebp + 0xc]
call fcn.10006fa1
pop ecx
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
call fcn.10006f28
mov dword [esi + 0x30], ebx
xor ebx, ebx
push ebx
push ebx
push esi
push 0x1004548d
push ebx
push ebx
call fcn.1008dfc3
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x1004542f
cmp dword [esi + 0x30], ebx
je 0x100453ff
push dword [esi + 0x30]
call fcn.1008a91f
pop ecx
push ebx
lea eax, [esi + 0x18]
push 1
mov ecx, eax
call fcn.100072c0
push ebx
push 1
mov ecx, esi
call fcn.100072c0
push esi
call fcn.1008a230
mov dword [esp], 0x100cb1f8
push edi
call fcn.100448e6
pop ecx
pop ecx
xor al, al
jmp 0x1004547b
lea ebx, [edi + 0xb0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0xc8]
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
push esi
call fcn.10045917
mov edx, dword [edi + 0xcc]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x10045482
lea ecx, [edx + 1]
mov dword [edi + 0xcc], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x100c9c0c
call fcn.1007376a
int3
Function at 0x10045e10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x100cb410
push ecx
mov ebx, eax
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
call fcn.10045f02
test al, al
jne 0x10045e57
push 0x100cb434
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
jmp 0x10045efc
push 0x100cb468
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
call fcn.100466e4
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push eax
push 0x100c979c
push 0x100c92a4
call fcn.10041280
mov ecx, eax
call fcn.10041373
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push eax
push 0x100c97ac
push 0x100c92a4
call fcn.10041280
mov ecx, eax
call fcn.10041373
call fcn.10035efb
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x10045ede
push 0x100cb49c
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
call fcn.100470f1
mov ecx, esi
call fcn.10045fab
call fcn.10045657
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
push eax
push 0x100cb4cc
push esi
call fcn.100448e6
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100469ed
Capabilities:
Get file attributes

Disassembly:
push 0x160
mov eax, 0x100acb2c
call fcn.10091010
mov eax, dword [ebp + 8]
push 0x100cb704
push ecx
mov dword [ebp - 0x16c], eax
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
and dword [ebp - 0x168], 0
lea eax, [ebp - 0x168]
pop ecx
pop ecx
push eax
push eax
push 0x100c9298
mov esi, 0x100c92a4
push esi
call fcn.10041280
mov ecx, eax
call fcn.100412d7
call fcn.10045657
push dword [ebp - 0x168]
push 0x100c92b0
push eax
call fcn.100448e6
add esp, 0xc
mov byte [ebp - 0x11c], 0
lea eax, [ebp - 0x11b]
push 0x103
push 0
push eax
call fcn.10090560
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0x14c], cl
push 0xf
pop eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x134], cl
mov edi, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x168], edi
jle 0x10046bd4
push edi
push 0x100c92e8
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.100360ff
add esp, 0x10
lea ecx, [ebp - 0x164]
push 0x100bc7cc
call fcn.10006fbe
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.10041280
mov ecx, eax
call fcn.100414ad
push 0
push 1
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 1
call fcn.100072c0
push edi
push 0x100c92f4
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.100360ff
add esp, 0x10
lea ecx, [ebp - 0x164]
push 0x100bc7cc
call fcn.10006fbe
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.10041280
mov ecx, eax
call fcn.100414ad
push 0
push 1
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 1
call fcn.100072c0
cmp dword [ebp - 0x13c], 0
je 0x10046bc7
cmp dword [ebp - 0x124], 0
je 0x10046bc7
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x16c]
lea esi, [eax + 1]
neg esi
lea eax, [ebp - 0x14c]
push eax
sbb esi, esi
inc esi
call fcn.1003607f
mov dword [eax], esi
mov esi, 0x100c92a4
inc edi
cmp edi, dword [ebp - 0x168]
jl 0x10046ab3
push 0x100cb72c
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.100072c0
call fcn.10090fbf
ret 4

Function at 0x1004850a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x107]
xor ebx, ebx
push 0x103
push ebx
push eax
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 0x108], bl
call fcn.10090560
add esp, 0xc
push ebx
call fcn.10048586
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.10006fbe
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 4
Function at 0x10048586
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100485de
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100485e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x100485f7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x1004860e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret
push 0x100d8878
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.1008f709
int3
Function at 0x1004887b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push eax
push 0x100b4f28
push 1
push esi
push 0x100b4f48
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x100488c8
xor eax, eax
inc eax
jmp 0x100489c8
cmp dword [edi + 0x14], 0x10
jb 0x100488d0
mov edi, dword [edi]
mov eax, dword [ebp - 0x210]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x100488e5
push 3
jmp 0x100488fc
mov eax, dword [ebp - 0x210]
push 0x100bc7cc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x10048902
push 5
pop esi
jmp 0x100489ba
cmp dword [ebx + 0x14], 0x10
jb 0x1004890a
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x210]
push esi
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x10048920
push 6
jmp 0x100488fc
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x100b4f58
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x1004893f
push 7
jmp 0x100488fc
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10090560
mov eax, dword [ebp - 0x218]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1004896b
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jns 0x100489ae
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 8
jmp 0x100488fc
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100489db
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x14], 0x10
jb 0x100489f7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10048620
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10048a1d
xor esi, esi
inc esi
jmp 0x10048a3a
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10048a38
push 2
pop esi
jmp 0x10048a3a
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.100072c0
mov ecx, dword [ebp - 8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008a221
mov esp, ebp
pop ebp
ret 4
Function at 0x10048a59
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x278
mov eax, 0x100aeae6
call fcn.10091010
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11b]
xor ebx, ebx
push 0x103
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x11c]
push ebx
push 0x19
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x254]
call fcn.10006fbe
push ebx
lea edx, [ebp - 0x254]
mov dword [ebp - 4], ebx
mov ecx, edi
call fcn.1004b9d3
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.100072c0
mov ebx, 0x100bc7cc
lea ecx, [ebp - 0x23c]
push ebx
call fcn.10006fbe
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x254]
call fcn.10006fbe
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push 0
push eax
lea edx, [ebp - 0x254]
mov ecx, edi
call fcn.1004bc31
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.100072c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push 0
push 1
call fcn.100072c0
push 0x103
lea eax, [ebp - 0x223]
mov byte [ebp - 0x224], 0
push 0
push eax
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10006fbe
mov dword [ebp - 4], 3
lea edx, [ebp - 0x23c]
push 0
mov ecx, edi
call fcn.1004b9d3
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.100072c0
push ebx
lea ecx, [ebp - 0x284]
call fcn.10006fbe
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x26c]
call fcn.10006fbe
xor ebx, ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x284]
mov ecx, edi
push ebx
push eax
lea edx, [ebp - 0x26c]
call fcn.1004bc31
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.100072c0
push ebx
push 1
lea ecx, [ebp - 0x284]
call fcn.100072c0
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
cdq
pop ecx
idiv ecx
call fcn.10090fbf
ret 4
Function at 0x10048c14
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push edi
je 0x10048d30
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10048d30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
push esi
cdq
push 3
pop ecx
idiv ecx
mov esi, dword [ebp + 8]
mov eax, ebx
sub eax, edx
mov dword [ebp - 4], eax
test eax, eax
jle 0x10048cb2
push ecx
xor edx, edx
dec eax
pop ebx
div ebx
lea edx, [eax + 1]
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + 0x100cbcc0]
mov byte [esi], cl
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, ebx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x100cbcc0]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x100cbcc0]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, ebx
and eax, 0x3f
mov al, byte [eax + 0x100cbcc0]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x10048c53
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push 3
pop ecx
sub ebx, eax
cmp ebx, 1
jne 0x10048ce0
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x100cbcc0]
mov byte [esi], al
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + 0x100cbcc0]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x10048d21
cmp ebx, 2
jne 0x10048d24
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x100cbcc0]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + 0x100cbcc0]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov cl, byte [eax*4 + 0x100cbcc0]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
sub esi, dword [ebp + 8]
mov eax, esi
pop esi
pop ebx
jmp 0x10048d33
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10049a37
Capabilities:
Get disk information

Disassembly:
push 0x90
mov eax, 0x100aeb53
call fcn.10091010
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x9c], 1
call fcn.10049c01
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.10006fbe
push 0
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
push esi
call fcn.10075c0e
pop ecx
push eax
push esi
mov dword [ebp - 0x94], eax
call edi
lea edi, [esi - 2]
cmp edi, 3
jl 0x10049ba0
push 1
call fcn.1008a235
mov esi, eax
xor eax, eax
pop ecx
test esi, esi
je 0x10049ac9
mov byte [esi], 3
jmp 0x10049acb
mov esi, eax
mov word [esi], ax
lea ecx, [ebp - 0x60]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x94]
push esi
mov al, byte [eax + edi - 3]
mov byte [esi], al
call fcn.10006fbe
mov ecx, dword [ebp - 0x94]
push esi
mov al, byte [ecx + edi - 2]
mov byte [esi + 1], al
mov al, byte [ecx + edi]
mov byte [esi + 2], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10049b81
xor eax, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push esi
mov byte [ebp - 4], 3
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.10006f28
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x78]
xor esi, esi
push esi
push eax
call fcn.1000390a
cmp eax, 0xffffffff
jne 0x10049b74
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1004dd1f
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.10049d7e
push esi
push 1
lea ecx, [ebp - 0x90]
call fcn.100072c0
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.100072c0
jmp 0x10049b83
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.100072c0
sub edi, 4
cmp edi, 3
jge 0x10049ab4
jmp 0x10049ba2
xor esi, esi
mov eax, dword [ebp - 0x94]
push eax
call fcn.1008a230
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
pop ecx
push dword [ebp - 0x98]
cdq
push 0x18
pop ecx
idiv ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
call fcn.10049deb
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x78]
call fcn.100072c0
mov eax, ebx
call fcn.10090fbf
ret 4
Function at 0x10049c01
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
push 6
pop ecx
mov edi, edx
mov dword [ebp - 0x168], edx
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x164], eax
xor ebx, ebx
cmp esi, 0x1a
jge 0x10049c9d
xor edi, edi
mov ecx, ebx
inc edi
shl edi, cl
test eax, edi
je 0x10049c97
lea eax, [ebx + 0x41]
push eax
push 0x100cbd00
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.1008bb66
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x10049c91
cmp eax, 2
je 0x10049c81
cmp eax, 3
je 0x10049cb0
cmp eax, 4
jne 0x10049c91
push edi
call fcn.10049be2
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
mov eax, dword [ebp - 0x164]
inc ebx
cmp ebx, 0x20
jb 0x10049c3c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx + 0x41]
push eax
push 0x100cbd08
push 0x12b
lea eax, [ebp - 0x154]
push 0x12c
push eax
call fcn.1008bac3
add esp, 0x14
xor eax, eax
mov byte [ebp - 0x29], al
push eax
push eax
push 3
push eax
push 3
push 0x80000000
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x16c], eax
cmp eax, 0xffffffff
je 0x10049c91
push 0x227
call fcn.10075c0e
pop ecx
xor ecx, ecx
mov dword [ebp - 0x170], eax
push ecx
mov dword [ebp - 0x160], ecx
mov edx, 0x227
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x174]
push ecx
push edx
push eax
push 0xc
mov dword [eax + 4], edx
lea eax, [ebp - 0x160]
push eax
push 0x2d1400
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x170]
test eax, eax
je 0x10049d66
cmp dword [edx + 0x1c], 7
jne 0x10049d66
push edi
call fcn.10049be2
mov ecx, dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
push edx
call fcn.1008a230
pop ecx
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10049c91

Function at 0x1004a55b
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x100aebd0
call fcn.10091010
mov esi, edx
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x11c]
push 0x104
push ebx
push eax
mov dword [ebp - 0x138], ebx
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x11c]
push 1
push esi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x1004a5f8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.10006fbe
mov esi, 0x100cac5c
mov dword [ebp - 4], ebx
push esi
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x134]
call fcn.10006a1b
lea eax, [ebp - 0x134]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
push eax
mov byte [edi], bl
call fcn.10006b63
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.100072c0
jmp 0x1004a604
push 0x100bc7cc
mov ecx, edi
call fcn.10006fbe
mov eax, edi
call fcn.10090fbf
ret
Function at 0x1004a65d
Capabilities:
Get common file path

Disassembly:
push 0x12c
mov eax, 0x100aebd0
call fcn.10091010
mov esi, ecx
mov edi, 0x104
lea eax, [ebp - 0x11c]
xor ebx, ebx
push edi
push ebx
push eax
mov dword [ebp - 0x138], ebx
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004a717
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.10006fbe
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
cmp byte [ecx + eax - 1], 0x5c
je 0x1004a6ed
mov edi, 0x100cac5c
push edi
call fcn.10006fa1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x134]
call fcn.10006a1b
lea eax, [ebp - 0x134]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.10006b63
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.100072c0
jmp 0x1004a723
push 0x100bc7cc
mov ecx, esi
call fcn.10006fbe
mov eax, esi
call fcn.10090fbf
ret
Function at 0x1004b786
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x44
mov eax, 0x100aee33
call fcn.10091010
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x1004b7a1
xor eax, eax
jmp 0x1004b8ca
xor ebx, ebx
inc ebx
cmp dword [esi + 0x10], ebx
jle 0x1004b79a
call fcn.1004b64a
test eax, eax
je 0x1004b7b9
mov eax, ebx
jmp 0x1004b8ca
push esi
lea ecx, [ebp - 0x28]
call fcn.10006ec7
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
lea edx, [ebp - 0x42]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
mov byte [ebp - 0x42], 0x5c
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x41]
mov byte [ebp - 0x41], 0x2f
call fcn.1004c20d
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
push 0x100cac5c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.10006fbe
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1004ded2
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.100072c0
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1004b8ac
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.1000721f
jmp 0x1004b8ac
push 0x100cac5c
call fcn.10006fa1
pop ecx
push eax
push 0x100cac5c
lea ecx, [ebp - 0x28]
call fcn.10006a1b
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.10006abd
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
jne 0x1004b89f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1004b8ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004b8d0
add esi, 0x18
cmp esi, dword [ebp - 0x4c]
jne 0x1004b84a
mov esi, ebx
lea ecx, [ebp - 0x50]
call fcn.10006bf5
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.100072c0
mov eax, esi
call fcn.10090fbf
ret
mov esi, edi
jmp 0x1004b8b6