joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10866a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10866db
push 0x1008858
push 0x24a
push 0x1008794
call fcn.0107b4be
and dword [edi], 0
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x108670a
test byte [eax + 0x1c], 1
je 0x108670a
cmp byte [eax + 0x19], 4
jb 0x108670a
push 0x10085b8
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x10085d0
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01025872
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086795
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1086780
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108678f
and eax, 0xffff
or eax, 0x80070000
jmp 0x108678f
push 0
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0107c871
mov dword [ebp - 0x418], eax
mov eax, dword [0x111124c]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x10867bf
test byte [eax + 0x1c], 1
je 0x10867bf
cmp byte [eax + 0x19], 4
jb 0x10867bf
push 0x10085b8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 4
Function at 0x108c075
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, 0x111124c
mov edi, 0x1008be8
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x108c0e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x20
jne 0x108c118
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x108c0d4
test byte [eax + 0x1c], 1
je 0x108c0d4
cmp byte [eax + 0x19], 3
jb 0x108c0d4
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jb 0x108c08c
cmp dword [ebp - 4], 5
jne 0x108c156
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x108c111
test byte [eax + 0x1c], 1
je 0x108c111
cmp byte [eax + 0x19], 2
jb 0x108c111
push edi
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, 0x80780163
jmp 0x108c158
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x108c142
test byte [eax + 0x1c], 1
je 0x108c142
cmp byte [eax + 0x19], 2
jb 0x108c142
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
test esi, esi
jle 0x108c152
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x108c158
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x108c2ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 0x28], 0
push 8
pop ecx
xor eax, eax
push eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x108c385
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108c371
test byte [eax + 0x1c], 2
je 0x108c371
cmp byte [eax + 0x19], 2
jb 0x108c371
push esi
push 0x1008be8
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x108c381
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x108c3d7
cmp dword [ebp - 0x28], edi
je 0x108c3ba
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108c3cb
test byte [eax + 0x1c], 2
je 0x108c3cb
cmp byte [eax + 0x19], 2
jb 0x108c3cb
push edi
push dword [ebp - 0x28]
push 0x1008be8
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
jmp 0x108c3cb
mov ecx, dword [esi + 8]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0107c675
test eax, eax
jge 0x108c3d7
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 0x80780002
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0106f5f8
leave
ret 8
Function at 0x108c3ec
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x28], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 8]
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.0107c57d
mov edi, eax
test edi, edi
jl 0x108c49f
push 0
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x108c485
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108c471
test byte [eax + 0x1c], 2
je 0x108c471
cmp byte [eax + 0x19], 2
jb 0x108c471
push esi
push 0x1008be8
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x108c481
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
jmp 0x108c49f
cmp dword [ebp - 0x28], 0x20
je 0x108c49f
push 0x1008c60
push 0xd2f
push 0x1008c14
call fcn.0107b4be
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0106f5f8
leave
ret 4
Function at 0x108f225
Capabilities:
Delete file

Disassembly:
push 0x2a4
mov eax, 0x11070f8
call fcn.0106f6f9
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x286
push eax
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x29a]
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
or dword [ebp - 0x2a8], 0xffffffff
and dword [ebp - 0x2a4], 0
add esp, 0xc
mov dword [ebp - 0x2ac], 0x1008ec0
and dword [ebp - 4], 0
test esi, esi
jne 0x108f28e
push 0x1009420
push 0x599
push 0x1008c14
call fcn.0107b4be
push edi
mov ecx, ebx
call fcn.0108d94a
push dword [ebp + 0x10]
lea eax, [ebp - 0x29c]
push 0x144
push eax
push edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0108dc9a
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0108c4b6
lea eax, [ebp - 0x2ac]
push eax
mov ecx, esi
call fcn.01088433
mov esi, eax
test esi, esi
jge 0x108f31a
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f3f3
test byte [eax + 0x1c], 1
je 0x108f3f3
cmp byte [eax + 0x19], 2
jb 0x108f3f3
push esi
push 0x1008be8
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x108f3f3
lea eax, [ebp - 0x2ac]
push eax
call fcn.0108c164
mov esi, eax
test esi, esi
jge 0x108f35a
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f3f3
test byte [eax + 0x1c], 1
je 0x108f3f3
cmp byte [eax + 0x19], 2
jb 0x108f3f3
push esi
push 0x1008be8
push 0x37
jmp 0x108f30a
lea eax, [ebp - 0x2ac]
push eax
call fcn.0108c506
lea eax, [ebp - 0x2a0]
push eax
push 1
push edi
mov ecx, ebx
call fcn.0108e08d
mov esi, eax
test esi, esi
jge 0x108f3ab
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f3f3
test byte [eax + 0x1c], 1
je 0x108f3f3
cmp byte [eax + 0x19], 2
jb 0x108f3f3
push esi
push edi
push 0x1008be8
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108f3f3
lea eax, [ebp - 0x29c]
push eax
push edi
mov ecx, ebx
call fcn.0108e6db
mov esi, eax
test esi, esi
jge 0x108f425
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f3f3
test byte [eax + 0x1c], 1
je 0x108f3f3
cmp byte [eax + 0x19], 2
jb 0x108f3f3
push esi
lea ecx, [ebp - 0x29c]
push ecx
push edi
push 0x1008be8
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
cmp word [ebp - 0x29c], 0
je 0x108f416
lea eax, [ebp - 0x2ac]
push eax
call fcn.0108c506
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2ac]
call fcn.0108d3b4
mov eax, esi
jmp 0x108f464
xor eax, eax
mov word [ebp - 0x29c], ax
cmp dword [ebp - 0x2a0], eax
jne 0x108f43e
push edi
mov ecx, ebx
call fcn.0108e411
lea ecx, [ebp - 0x2ac]
call fcn.0108d3b4
xor eax, eax
jmp 0x108f464
call fcn.0106f764
ret 0xc
Function at 0x1094041
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
movzx eax, dx
test dx, dx
je 0x109406a
add ecx, 2
jmp 0x1094062
movzx edx, dx
rol eax, 1
xor eax, edx
inc ecx
inc ecx
movzx edx, word [ecx]
test dx, dx
jne 0x1094059
pop ebp
ret 4

Function at 0x1094073
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
xor ecx, ecx
cmp dword [ebp + 0xc], eax
jbe 0x1094092
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
rol eax, 1
xor eax, edx
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1094081
pop ebp
ret 8

Function at 0x109c3c3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 4]
add eax, 0x1f
shr eax, 5
test eax, eax
jbe 0x109c3ef
push esi
mov esi, dword [edx]
xor dword [ecx], esi
add edx, 4
add ecx, 4
dec eax
jne 0x109c3e1
pop esi
pop ebp
ret 8
Function at 0x109ca2d
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], eax
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x109cac7
test byte [eax + 0x1c], 4
je 0x109ca9a
cmp byte [eax + 0x19], 4
jb 0x109ca9a
push 0x100ab40
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x109cac7
test byte [eax + 0x1c], 4
je 0x109cac7
cmp byte [eax + 0x19], 5
jb 0x109cac7
movzx ecx, byte [ebp + 0x10]
push ecx
movzx ecx, byte [ebp + 0xc]
push ecx
push edi
push 0x100ab40
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x109cacc
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, edi
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x109cae1
sub eax, edx
sar eax, 1
lea edi, [eax + ecx]
mov dword [ebp - 0x21c], eax
lea eax, [edi + 1]
cmp eax, 0x104
jbe 0x109cb16
mov eax, dword [ebp - 0x210]
mov dword [eax], 0x57
push 2
pop eax
jmp 0x109cc3d
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x21c]
add eax, eax
push eax
push dword [ebp - 0x214]
lea eax, [ebp + esi - 0x20c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
xor eax, eax
push eax
push 0x2000080
push 3
push eax
push 7
push eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x109cbca
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x109cb89
xor eax, eax
jmp 0x109cc3d
call esi
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x109cbc3
test byte [ecx + 0x1c], 4
je 0x109cbc3
cmp byte [ecx + 0x19], 2
jb 0x109cbc3
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100ab40
push 0x5b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
push 6
jmp 0x109cb10
movzx eax, byte [ebp + 0xc]
push dword [ebp - 0x210]
mov dword [ebp - 0x22c], eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x22c]
push eax
push 0x109c4ba
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push esi
call fcn.0109c5aa
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x109cc3b
test byte [eax + 0x1c], 4
je 0x109cc3b
cmp byte [eax + 0x19], 4
jb 0x109cc3b
push 0x100ab40
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x24
Function at 0x109f670
Capabilities:
Get volume information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x109f6ad
test byte [eax + 0x1c], 4
je 0x109f6ad
cmp byte [eax + 0x19], 4
jb 0x109f6ad
push 0x100ab40
push 0x1c6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 3
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x109f729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x109f721
test byte [ecx + 0x1c], 4
je 0x109f721
cmp byte [ecx + 0x19], 2
jb 0x109f721
push eax
push dword [ebp + 8]
push 0x100ab40
push 0x1c7
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
push 0xd
pop eax
jmp 0x109f822
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x60
lea ecx, [ebp - 0x7c]
push ecx
push ebx
push ebx
push 0x90064
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x109f75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
push dword [ebp + 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x109f721
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
push eax
push ebx
push 0
push 0
push dword [ebp + 0x18]
mov dword [ebp - 8], eax
call dword [ebp + 0x14]
mov byte [ebp + 0x27], al
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp byte [ebp + 0x27], 0
jne 0x109f7c7
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x109f7c2
test byte [eax + 0x1c], 4
je 0x109f7c2
cmp byte [eax + 0x19], 2
jb 0x109f7c2
push 0x100ab40
push 0x1c8
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor eax, eax
inc eax
jmp 0x109f822
push dword [ebp - 8]
push ebx
push dword [ebp - 8]
push ebx
push dword [ebp + 0x18]
call dword [ebp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [edi], ebx
mov dword [edi + 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x109f820
test byte [eax + 0x1c], 4
je 0x109f820
cmp byte [eax + 0x19], 4
jb 0x109f820
push 0x100ab40
push 0x1ca
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x109fbed
Capabilities:
Unmount volume via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x109fc57
test byte [eax + 0x1c], 4
je 0x109fc2f
cmp byte [eax + 0x19], 4
jb 0x109fc2f
push 0x100ab40
push 0x1d0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
cmp eax, esi
je 0x109fc57
test byte [eax + 0x1c], 4
je 0x109fc57
cmp byte [eax + 0x19], 5
jb 0x109fc57
push dword [ebp + 8]
push 0x100ab40
push 0x1d1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push edi
push 0x80
push 3
push edi
push 7
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x109fcba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, esi
je 0x109fcb2
test byte [ecx + 0x1c], 4
je 0x109fcb2
cmp byte [ecx + 0x19], 2
jb 0x109fcb2
push eax
push dword [ebp + 8]
push 0x100ab40
push 0x1d2
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
push 0x12
pop eax
jmp 0x109fdbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push edi
push edi
push 0x90018
push eax
call ebx
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x109fd26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, esi
je 0x109fd83
test byte [eax + 0x1c], 4
je 0x109fd83
cmp byte [eax + 0x19], 2
jb 0x109fd83
push dword [edi]
push dword [ebp + 8]
push 0x100ab40
push 0x1d3
jmp 0x109fd78
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push 0x42c190
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x109fd88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, esi
je 0x109fd83
test byte [eax + 0x1c], 4
je 0x109fd83
cmp byte [eax + 0x19], 2
jb 0x109fd83
push dword [edi]
push dword [ebp + 8]
push 0x100ab40
push 0x1d4
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
push 0x12
pop eax
jmp 0x109fdbd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, esi
je 0x109fdbb
test byte [eax + 0x1c], 4
je 0x109fdbb
cmp byte [eax + 0x19], 4
jb 0x109fdbb
push 0x100ab40
push 0x1d5
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x10a01c9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.010b6888
push dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.010b6d1e
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.010b6dc1
mov ecx, esi
push 0x10
mov eax, edi
sub ecx, edi
pop edx
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x10a0210
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10a028c
test byte [eax + 0x1c], 4
mov ebx, 0x100ab40
je 0x10a025a
cmp byte [eax + 0x19], 5
jb 0x10a025a
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push dword [ebp + 0x10]
push ebx
push 0x1db
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e484e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10a028c
test byte [eax + 0x1c], 4
je 0x10a028c
cmp byte [eax + 0x19], 5
jb 0x10a028c
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0x10]
push ebx
push 0x1dc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e484e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x10

Function at 0x10a02a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [0x111124c]
mov esi, dword [ebp + 0x14]
mov edi, 0x111124c
mov ebx, 0x100ab40
cmp eax, edi
je 0x10a02f1
test byte [eax + 0x1c], 4
je 0x10a02f1
cmp byte [eax + 0x19], 5
jb 0x10a02f1
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x1dd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e484e
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10a033b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10a0333
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a0370
test byte [eax + 0x1c], 4
je 0x10a0370
cmp byte [eax + 0x19], 5
jb 0x10a0370
push ebx
push 0x1de
jmp 0x10a0365
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a0370
test byte [eax + 0x1c], 4
je 0x10a0370
cmp byte [eax + 0x19], 5
jb 0x10a0370
push ebx
push 0x1df
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10a03a5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [0x111124c]
mov esi, dword [ebp + 0x14]
mov edi, 0x111124c
mov ebx, 0x100ab40
cmp eax, edi
je 0x10a03f4
test byte [eax + 0x1c], 4
je 0x10a03f4
cmp byte [eax + 0x19], 5
jb 0x10a03f4
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x1e0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e484e
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10a0436
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10a0436
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a046b
test byte [eax + 0x1c], 4
je 0x10a046b
cmp byte [eax + 0x19], 5
jb 0x10a046b
push ebx
push 0x1e1
jmp 0x10a0460
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a046b
test byte [eax + 0x1c], 4
je 0x10a046b
cmp byte [eax + 0x19], 5
jb 0x10a046b
push ebx
push 0x1e2
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10b6888
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4