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

Disassembly:
push 8
mov eax, 0x10042646
call fcn.1002e444
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1002da26
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x10009dc8
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x10009db4
mov dword [esi + 0x10], edi
jmp 0x10009dca
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x10009dc0
push esi
jmp 0x10009dc1
push edi
call dword [eax]
mov dword [esi + 0x10], eax
jmp 0x10009dca
xor esi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push 0x10001218
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.1000565d
mov eax, edi
jmp 0x10009e04
call fcn.1002e4e9
ret

Function at 0x1000a66e
Capabilities:
Get common file path

Disassembly:
push 0x154
mov eax, 0x10044b47
call fcn.1002e47a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x120], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x128], edi
mov esi, edx
call fcn.1000504b
and dword [ebp - 4], 0
push esi
lea esi, [edi + 0x1c]
call fcn.100050b4
lea ebx, [edi + 0x38]
push ebx
mov byte [ebp - 4], 1
call fcn.10017fec
lea eax, [edi + 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.100052a5
lea eax, [edi + 0x88]
mov byte [ebp - 4], 3
xor esi, esi
push eax
mov dword [edi + 0x80], esi
call fcn.10005303
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 4
mov dword [edi + 0x70], eax
or eax, ecx
mov dword [edi + 0x74], ecx
jne 0x1000a6fc
mov dword [edi + 0x70], 1
mov dword [edi + 0x74], esi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov edx, 0x80000000
cmp eax, esi
ja 0x1000a715
cmp ecx, edx
jbe 0x1000a71b
mov dword [edi + 0x78], edx
mov dword [edi + 0x7c], esi
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x18], 8
jb 0x1000a72c
mov eax, dword [eax + 4]
jmp 0x1000a72f
add eax, 4
push 0x1004b3ac
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10015813
add esp, 0xc
mov esi, eax
mov eax, ebx
mov byte [ebp - 4], 5
call fcn.1000bc8b
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 4
call fcn.10005eee
push dword [ebp - 0x140]
call fcn.1002d932
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1000a77d
mov eax, dword [eax + 4]
jmp 0x1000a780
add eax, 4
push 0x1004b3ac
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10015813
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10008765
pop ecx
push eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 7
call fcn.1000548f
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 6
call fcn.10005467
lea esi, [ebp - 0x140]
call fcn.10005eee
push dword [ebp - 0x140]
call fcn.1002d932
mov dword [esp], 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.10031290
add esp, 0xc
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [ebp - 0x11c]
mov byte [edi + 0x84], al
mov eax, edi
call fcn.1002e4fd
ret 0x18
Function at 0x1000a997
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10057060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x24]
test ecx, eax
je 0x1000aa26
mov bl, byte [ebp - 0x14]
add bl, 0x61
xor eax, eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
lea edi, [ebp - 9]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1000aa26
lea esi, [ebp - 0xd]
call fcn.1002641d
test al, al
je 0x1000aa26
cmp byte [ebp - 0xd], 0
jne 0x1000aa26
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x80], 0
jne 0x1000aa42
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.1000f0dd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1a
jl 0x1000a9c3
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cf2d
leave
ret 8
xor al, al
jmp 0x1000aa31

Function at 0x1000aa46
Capabilities:
Get disk size

Disassembly:
push 0x6c
mov eax, 0x1004538c
call fcn.1002e47a
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
call fcn.10006848
lea eax, [ebp - 0x78]
push eax
mov edx, str.D:_test.docx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.100020dd
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.10005a12
cmp dword [ebp - 0x1c], ebx
jne 0x1000aaa2
xor edi, edi
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.10005bea
mov eax, edi
call fcn.1002e4fd
ret
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000aaae
lea eax, [ebp - 0x2c]
movzx eax, word [eax]
push eax
push str._c:_
lea ecx, [ebp - 0x4c]
call fcn.10015944
xor eax, eax
cmp dword [ebp - 0x34], 8
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x50]
pop ecx
mov dword [ebp - 0x54], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x48]
pop ecx
jae 0x1000aadd
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000ab13
cmp dword [ebp - 0x50], ebx
ja 0x1000ab13
jb 0x1000ab01
cmp dword [ebp - 0x54], 0x3200000
jae 0x1000ab13
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x4c]
call fcn.10005bea
jmp 0x1000aa8f
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.10005bea
jmp 0x1000aa8d
Function at 0x1000e4fd
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1005903c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 8]
mov esi, eax
mov eax, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
push 0xc
mov dword [eax], ecx
call fcn.1002da26
pop ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
and dword [eax + 8], 0
pop esi
ret

Function at 0x1000e58d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
push dword [0x1005903c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
jmp 0x1000e5e8
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x248]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
shl eax, 4
add eax, edx
shl ecx, 4
add ecx, edx
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push eax
mov dword [esi], ecx
call fcn.1002d932
pop ecx
mov eax, dword [esi]
cmp dword [eax + 8], edi
jne 0x1000e5a1
push esi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.1002d932
pop ecx
push edi
push dword [0x1005903c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
ret

Function at 0x1000e645
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 0x250
push edi
call fcn.1002da26
push edi
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.10031290
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1000e739
push ebx
push edi
lea ecx, [ebp - 4]
push ecx
mov ebx, 0x200
push ebx
lea ecx, [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], ebx
jne 0x1000e734
push 4
lea eax, [esi + 0x23]
push eax
push str.NTFS
call fcn.1002da8b
add esp, 0xc
test eax, eax
jne 0x1000e727
movzx eax, byte [esi + 0x2d]
movzx ecx, word [esi + 0x2b]
mov edx, dword [esi + 0x60]
imul eax, ecx
xor ebx, ebx
inc ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x224], eax
cmp edx, 0x80
jae 0x1000e6e3
imul edx, eax
jmp 0x1000e6ee
mov ecx, pe_nt_image_headers32
sub ecx, edx
mov edx, ebx
shl edx, cl
push edi
push eax
push dword [esi + 0x54]
mov dword [esi + 0x220], edx
push dword [esi + 0x50]
mov dword [esi + 0x228], edi
call fcn.10038ac0
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], edx
mov dword [esi + 0x240], edi
mov dword [esi + 0x18], edi
mov dword [esi + 8], edi
mov dword [esi + 0x22c], edi
jmp 0x1000e734
mov dword [esi + 4], 0xff99ff99
mov dword [esi + 0x248], edi
mov eax, esi
pop ebx
jmp 0x1000e742
push esi
call fcn.1002d932
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1000e877
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi + 4], 1
je 0x1000e889
xor eax, eax
xor edx, edx
leave
ret
mov ecx, dword [esi + 0x23c]
mov eax, dword [esi + 0x238]
push ebx
push edi
push 0
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebx, [esi + 0x224]
push dword [ebx]
call fcn.1002cf22
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
call fcn.1000e834
cmp dword [edi], 0x454c4946
jne 0x1000e96b
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0x28]
push 8
pop edx
mov ebx, edx
add eax, edi
cmp bx, cx
jb 0x1000e8f7
movzx edx, cx
and dword [ebp - 4], 0
mov cx, word [edi + 0x16]
mov ebx, dword [ebp - 4]
mov word [edi + 6], cx
test edx, edx
jle 0x1000e94f
mov ecx, dword [eax]
test ecx, ecx
jl 0x1000e94f
cmp ecx, 0x100
jg 0x1000e94f
sub ecx, 0x20
je 0x1000e966
sub ecx, 0x60
je 0x1000e92c
sub ecx, 0x30
jne 0x1000e92e
mov dword [ebp - 8], eax
jmp 0x1000e92e
mov ebx, eax
mov ecx, dword [eax + 4]
test ecx, ecx
jbe 0x1000e93e
cmp ecx, dword [edi + 0x18]
jae 0x1000e93e
add eax, ecx
jmp 0x1000e947
cmp byte [eax + 8], 1
jne 0x1000e947
add eax, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x1000e90a
test ebx, ebx
je 0x1000e959
cmp dword [ebp - 8], 0
jne 0x1000e96e
push edi
call fcn.1002dcf2
pop ecx
xor eax, eax
xor edx, edx
jmp 0x1000e995
push 3
pop eax
jmp 0x1000e962
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x30]
lea eax, [esi + 0x22c]
mov dword [eax], ecx
xor edx, edx
mov eax, ecx
div dword [esi + 0x220]
mov dword [esi + 0x240], edi
mov dword [esi + 0x230], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
pop edi
pop ebx
leave
ret

Function at 0x1000ede2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov esi, ecx
push ebx
push dword [esi + 0x224]
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.10038ac0
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
shr eax, 0xa
cmp eax, 1
jb 0x1000ee63
mov dword [ebp + 0xc], eax
shl eax, 0xa
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x224]
shl eax, 0xa
push eax
push dword [ebp + 0x10]
push dword [esi]
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
add dword [ebp - 8], eax
call fcn.1000ed97
dec dword [ebp + 0xc]
jne 0x1000ee39
sub edi, dword [ebp - 0xc]
push 0
imul edi, dword [esi + 0x224]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
call fcn.1000ed97
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
add eax, ecx
pop ebx
leave
ret
Function at 0x1000fdc9
Capabilities:
Check if file exists

Disassembly:
push 0x84
mov eax, 0x1004612e
call fcn.1002e411
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x38], bl
je 0x1000ff4e
cmp dword [esi + 0x90], 8
jb 0x1000fdf3
mov eax, dword [esi + 0x7c]
jmp 0x1000fdf6
lea eax, [esi + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000ff4e
lea edi, [esi + 0x94]
mov dword [ebp - 0x14], edi
call fcn.10012b08
push ebx
push ebx
lea eax, [ebp - 0x58]
call fcn.1001e240
mov dword [ebp - 4], 2
cmp dword [esi + 0x90], 8
jb 0x1000fe32
mov ecx, dword [esi + 0x7c]
jmp 0x1000fe35
lea ecx, [esi + 0x7c]
lea esi, [ebp - 0x58]
call fcn.100013d8
test al, al
je 0x1000ff42
cmp byte [ebp - 0x50], 7
jne 0x1000ff42
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.1001e569
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jbe 0x1000fe6b
call fcn.1002d8f8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x30], eax
jbe 0x1000fe84
call fcn.1002d8f8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1000fe96
cmp eax, dword [ebp - 0x24]
je 0x1000fe9b
call fcn.1002d8f8
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
je 0x1000ff31
lea esi, [ebp - 0x1c]
call fcn.10005f13
lea ecx, [ebp - 0x58]
push ecx
call fcn.1001e500
cmp byte [eax + 8], 4
jne 0x1000ff24
call fcn.10005f13
lea ecx, [ebp - 0x58]
push ecx
call fcn.1001e500
push eax
lea ecx, [ebp - 0x90]
call fcn.1001d791
mov edi, eax
mov byte [ebp - 4], 4
call fcn.10005f13
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1000125f
pop ecx
pop ecx
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10012776
push 0xffffffffffffffff
push ebx
push edi
mov ecx, eax
call fcn.10005912
push ebx
push 1
lea esi, [ebp - 0x74]
call fcn.10005bea
push ebx
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.10005a12
lea esi, [ebp - 0x1c]
call fcn.10005f3b
jmp 0x1000fe8a
lea esi, [ebp - 0x3c]
call fcn.10005d26
push dword [ebp - 0x3c]
call fcn.1002d932
pop ecx
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x58]
call fcn.1001d5a3
call fcn.1002e4e9
ret
Function at 0x10014633
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x10057060]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x10014858
test eax, eax
jne 0x10014684
test ecx, ecx
je 0x10014858
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x100146da
cmp ax, 0x5c
je 0x100146da
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.10031290
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014858
test al, 0x10
je 0x10014858
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x1004bca0
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x10014858
mov dword [ebp - 0xa7c], 1
push 0x1004b43c
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1001481d
push 0x1004bca4
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1001481d
cmp dword [ebp - 0xa78], 0xffffffff
je 0x1001481d
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x100147fd
cmp dword [ebp - 0xa80], 0
je 0x100147c1
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x1001483a
cmp dword [ebp + 0xc], 0
je 0x1001481d
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.10014633
push 2
pop ecx
cmp eax, ecx
jne 0x1001481d
mov dword [ebp - 0xa7c], ecx
jmp 0x10014844
cmp dword [ebp - 0xa84], 0
je 0x1001481d
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x1001483a
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001473d
jmp 0x10014844
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x1001485a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cf2d
leave
ret 0x18
Function at 0x1001486b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10057060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10014965
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10014965
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10031290
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.10014e71
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100148e2
shr eax, 4
not eax
and eax, 1
jmp 0x10014967
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.10014975
test eax, eax
je 0x10014965
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10014947
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x1001494d
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.10009d68
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10014967
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cf2d
leave
ret
Function at 0x10014cc6
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10014cf2
call fcn.1001486b
test eax, eax
jne 0x10014cf2
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x10014d12
cmp esi, 0xffffffff
jne 0x10014d2a
cmp dword [ebp - 8], ebx
jne 0x10014d1e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
call fcn.10009d68
mov eax, ebx
jmp 0x10014ceb
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10014d4e
cmp dword [ebp - 4], edi
jne 0x10014d4e
xor ebx, ebx
inc ebx
jmp 0x10014d1e
cmp dword [ebp - 8], ebx
jne 0x10014d1e
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x10014d67
cmp esi, ebx
je 0x10014d67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x10014d18

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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10057060]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.10031290
add esp, 0xc
push 0x104
lea esi, [ebp - 0x80]
call fcn.10014d6c
mov eax, 0x179b06cc
xor ecx, ecx
movzx edx, byte [ebp + ecx - 0x80]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10059690]
inc ecx
cmp ecx, 0x24
jl 0x10014e3f
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
not eax
pop esi
call fcn.1002cf2d
add ebp, 0x88
leave
ret
Function at 0x10014ed4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10057060]
xor eax, ebp
mov dword [ebp - 8], eax
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
push str.__c:
lea esi, [ebp - 0x60]
call fcn.100159a2
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x10014f06
mov eax, dword [eax + 4]
jmp 0x10014f09
add eax, 4
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov ebx, eax
push 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], ebx
call fcn.10005a12
cmp ebx, esi
je 0x10014f37
cmp ebx, 0xffffffff
jne 0x10014f51
lea eax, [ebp - 0x40]
call fcn.10009d68
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cf2d
leave
ret
push 0x28
pop edx
push 9
pop ecx
xor eax, eax
push esi
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10014f9d
or esi, 0xffffffff
lea eax, [ebp - 0x40]
call fcn.10009d68
mov eax, esi
jmp 0x10014f42
mov esi, dword [ebp - 0x20]
jmp 0x10014f91

Function at 0x10015473
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x10057060]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.10015515
push esi
test eax, eax
je 0x10015500
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10031290
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x100154f7
cmp esi, 0xffffffff
je 0x100154f7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x100154f3
push edi
lea eax, [esp + 0xc]
push eax
call fcn.10015515
test eax, eax
je 0x100154f7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x100154d9
lea eax, [esp + 4]
call fcn.10009d68
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1002cf2d
mov esp, ebp
pop ebp
ret 4