joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53afa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
jmp 0x53afba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53afc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53afb0
mov eax, 1
add ebx, ebx
jne 0x53afd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53afe4
jne 0x53b003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b003
dec eax
add ebx, ebx
jne 0x53aff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53afc8
add ebx, ebx
jne 0x53afff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53b055
xor ecx, ecx
sub eax, 3
jb 0x53b01b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53b08a
sar eax, 1
mov ebp, eax
jmp 0x53b026
add ebx, ebx
jne 0x53b026
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53aff4
inc ecx
add ebx, ebx
jne 0x53b034
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53aff4
add ebx, ebx
jne 0x53b041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53b036
jne 0x53b052
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53b036
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53b074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53b066
jmp 0x53afb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53b074
add edi, ecx
jmp 0x53afb6
pop esi
mov edi, esi
mov ecx, 0x70e8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53b092
cmp byte [edi], 0x26
jne 0x53b092
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 0x53b097
lea edi, [esi + 0x137000]
mov eax, dword [edi]
or eax, eax
je 0x53b10f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x141c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x141da4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53b0c4
mov ecx, edi
jns 0x53b0f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x141da8]
or eax, eax
je 0x53b109
mov dword [ebx], eax
add ebx, 4
jmp 0x53b0e1
call dword [esi + 0x141db8]
mov ebp, dword [esi + 0x141dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x53b143
sub esp, 0xffffff80
jmp 0x4909f1
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003bed
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x141c
call fcn.0102ec00
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x140c], eax
lea eax, [ebp - 0x1404]
push 0x1001568
push eax
mov byte [ebp - 0x1405], 0
call esi
add esp, 0xc
lea eax, [ebp - 0x1404]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1003c54
cmp eax, 5
je 0x1003c54
cmp eax, 2
je 0x1003c54
xor al, al
jmp 0x1003e43
push edi
push 0xffffffffffffffff
push 0x80
push 3
xor edi, edi
push edi
push 3
push 0xc0000000
push 0x100153c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1418], eax
jne 0x1003c85
xor al, al
jmp 0x1003e42
push ebx
lea eax, [ebp - 0x1404]
push 0x100151c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xc04]
push eax
push dword [ebp - 0x140c]
mov dword [ebp - 0x1410], 0x400
push dword [ebp - 0x1418]
call fcn.01003839
cmp al, 1
jne 0x1003e30
movzx esi, word [ebp - 0x1410]
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x140c], eax
call fcn.01003305
mov ebx, eax
cmp ebx, edi
je 0x1003e30
push 0x2000
call fcn.01003305
cmp eax, edi
mov dword [ebp - 0x1414], eax
je 0x1003e2a
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [ebx], edi
mov word [ebx + 4], di
mov dword [ebx + 0x10], edi
mov word [ebx + 0x14], di
mov dword [ebx + 8], 0x18
lea esi, [ebp - 0xc04]
lea edi, [ebx + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebp - 0x1410]
push 0
mov word [ebx + 0xc], cx
lea ecx, [ebp - 0x141c]
push ecx
push 0x2000
push eax
push dword [ebp - 0x140c]
push ebx
push 0x6d0008
push dword [ebp - 0x1418]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test al, al
mov byte [ebp - 0x1405], al
je 0x1003e1f
mov edx, dword [ebp - 0x1414]
mov eax, dword [edx + 4]
cmp eax, 1
jb 0x1003e1f
and dword [ebp - 0x140c], 0
test eax, eax
mov byte [ebp - 0x1405], 0
jbe 0x1003e1f
add edx, 0xc
mov dword [ebp - 0x1410], edx
jmp 0x1003da6
mov edx, dword [ebp - 0x1410]
mov esi, dword [edx - 4]
add esi, dword [ebp - 0x1414]
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x804]
rep stosd dword es:[edi], eax
movzx ecx, word [edx]
mov eax, ecx
shr ecx, 2
lea edi, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [edx]
shr eax, 1
and word [ebp + eax*2 - 0x804], 0
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.0101e05d
test eax, eax
jne 0x1003e01
mov byte [ebp - 0x1405], 1
inc dword [ebp - 0x140c]
mov eax, dword [ebp - 0x1414]
mov ecx, dword [ebp - 0x140c]
add dword [ebp - 0x1410], 0x18
cmp ecx, dword [eax + 4]
jb 0x1003da0
push dword [ebp - 0x1414]
call fcn.01003336
push ebx
call fcn.01003336
push dword [ebp - 0x1418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x1405]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x10045bc
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1036a44]
push ebx
push esi
xor ebx, ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x100461a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x8000ffff
jmp 0x1004688
cmp dword [ebp + 0xc], ebx
push edi
jne 0x1004627
push esi
push dword [ebp - 0x10]
push ebx
jmp 0x100464f
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 1
call fcn.010044f6
mov edi, eax
cmp edi, ebx
jge 0x1004648
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
jmp 0x1004687
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_CheckTokenMembership
mov esi, eax
cmp esi, ebx
jne 0x1004660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], ebx
je 0x100466e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 0x10
Function at 0x10052fa
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x1036af8], eax
jne 0x100533e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x1005328
mov dword [0x1036b04], eax
jmp 0x100539b
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [0x1036b04], ecx
jmp 0x100539b
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0x1004828
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x1005392
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jg 0x100536a
mov dword [0x1036b04], edi
jmp 0x100537b
mov eax, edi
and eax, 0xffff
or eax, 0x80070000
mov dword [0x1036b04], eax
push dword [0x1036af8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [0x1036af8], esi
pop edi
jmp 0x100539b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret
Function at 0x100fab5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 3
add ecx, 4
pop edx
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0x100fac5
pop ebp
ret 4

Function at 0x10105e2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xca0
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xca0]
push eax
push 0
push 0
push esi
call ebx
test eax, eax
jne 0x1010623
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x101077a
mov eax, dword [ebp - 0xca0]
push edi
add eax, eax
push eax
call fcn.01003305
mov edi, eax
test edi, edi
mov dword [ebp - 0xc9c], edi
je 0x1010779
push 0
push dword [ebp - 0xca0]
push edi
push esi
call ebx
test eax, eax
jne 0x1010663
push edi
call fcn.01003336
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1010779
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push esi
mov word [esi + 2], 0x3f
call ebx
and word [esi + eax*2 - 2], 0
pop ecx
lea eax, [ebp - 0xc98]
push eax
push esi
call fcn.0101f2ec
push 0x100140c
push esi
mov word [esi + 2], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0xc9c]
cmp word [eax], 0
je 0x101076e
push edi
call ebx
cmp eax, 3
pop ecx
jbe 0x101075b
push edi
call ebx
pop ecx
lea esi, [edi + eax*2 - 4]
jmp 0x10106c5
cmp esi, edi
je 0x10106cb
dec esi
dec esi
cmp word [esi], 0x5c
jne 0x10106bf
and word [esi], 0
push 0x208
lea eax, [ebp - 0x478]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10106f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [esi], 0x5c
jmp 0x101075b
lea eax, [ebp - 0x478]
push eax
mov word [esi], 0x5c
call ebx
pop ecx
lea edi, [edi + eax*2]
push 0x32
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1010724
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101075b
lea eax, [ebp - 0x68]
push eax
mov word [ebp - 0x66], 0x3f
call ebx
and word [ebp + eax*2 - 0x6a], 0
pop ecx
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0101f2ec
lea eax, [ebp - 0xc98]
push eax
push edi
lea eax, [ebp - 0x888]
push eax
call fcn.010104cd
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x101075b
cmp word [edi], ax
jne 0x10106a8
push dword [ebp - 0xc9c]
call fcn.01003336
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4
Function at 0x101078d
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1036a44]
push esi
mov dword [ebp - 4], eax
mov eax, dword [0x1035e28]
and dword [eax], 0
and dword [eax + 4], 0
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10107ee
lea eax, [ebp - 0x210]
push eax
call fcn.010105e2
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10107c8
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret

Function at 0x1010d3b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x1036a44]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010109e7
cmp word [ebp - 0x414], 0
je 0x1010e4b
and word [ebp - 0x824], 0
push esi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01003ebb
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x824]
push eax
call esi
cmp word [ebp + eax*2 - 0x826], 0x5c
je 0x1010dba
push 0x100140c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call esi
cmp word [edi + eax*2 - 2], 0x5c
pop esi
lea eax, [ebp - 0x20c]
push edi
je 0x1010dde
push 0x1001568
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x1010de5
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test al, al
jne 0x1010e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x1010e59
sub eax, 4
je 0x1010e52
sub eax, 0x52
je 0x1010e2f
sub eax, 0x24
je 0x1010e28
sub eax, 0x16
je 0x1010e21
mov eax, 0xc1000418
jmp 0x1010e62
mov eax, 0xc1000417
jmp 0x1010e62
mov eax, 0xc1000419
jmp 0x1010e62
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1010e4b
test eax, eax
je 0x1010e4b
cmp eax, 1
je 0x1010e4b
mov eax, 0xc100041b
jmp 0x1010e62
mov eax, 0xc1000416
jmp 0x1010e62
mov eax, 0xc10003f8
jmp 0x1010e62
mov eax, 0xc1000415
jmp 0x1010e62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.0102e95a
leave
ret 0x10
Function at 0x1011060
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp byte [0x1036b7c], 0
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
je 0x101110c
push esi
push edi
mov esi, 0x1036b5c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1036b78]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10110f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x10110e8
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov ebx, eax
lea eax, [ebp - 0x204]
push eax
push 0x69
push dword [0x1036b20]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x1001b60
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop ebx
push dword [0x1036b78]
call edi
mov eax, dword [0x1036b74]
test eax, eax
je 0x10110fc
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret

Function at 0x1011b33
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x1036b74], eax
jne 0x1011b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1011ba9
push edi
mov edi, 0x1036b5c
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10119c1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1036b78], eax
jne 0x1011b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x1036b74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1011ba8
mov byte [0x1036b7c], 1
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x1012095
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1036a44]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x14], ebx
je 0x101211c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x101211c
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
call fcn.0101ee58
test eax, eax
jge 0x10120d0
or byte [esi + 0x27], 4
jmp 0x101212e
cmp dword [ebp - 0x14], ebx
je 0x101212e
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.01011fea
mov ebx, eax
test ebx, ebx
je 0x101211c
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x14]
call edi
test al, al
jne 0x101213d
push ebx
call fcn.01011fc4
or byte [esi + 0x27], 4
cmp dword [ebp - 0x14], 0
je 0x101212e
push dword [ebp - 0x14]
call fcn.0101f4b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4
mov eax, dword [ebx + 0x1c]
cmp eax, 1
je 0x1012184
jle 0x101217e
cmp eax, 3
jle 0x1012178
cmp eax, 4
je 0x1012172
cmp eax, 5
je 0x101216c
cmp eax, 6
je 0x1012166
cmp eax, 7
jne 0x101217e
or byte [esi + 0x27], 2
jmp 0x1012188
or byte [esi + 0x27], 0x20
jmp 0x1012188
or byte [esi + 0x27], 0x10
jmp 0x1012188
or byte [esi + 0x27], 1
jmp 0x1012188
or byte [esi + 0x27], 0x40
jmp 0x1012188
or byte [esi + 0x27], 4
jmp 0x1012188
or byte [esi + 0x27], 0x80
push ebx
call fcn.01011fc4
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push 8
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push 0x41018
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1012120
movzx eax, byte [ebp - 0x1a]
mov dword [esi + 0x30], eax
movzx eax, byte [ebp - 0x1c]
mov dword [esi + 0x2c], eax
movzx eax, byte [ebp - 0x19]
mov dword [esi + 0x34], eax
jmp 0x1012120
Function at 0x10121ce
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [esi], edi
mov dword [ebp - 4], edi
mov dword [ebx], edi
jne 0x10121f9
mov dword [ebp - 4], 0x68
jmp 0x1012310
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
call fcn.0101ee58
test eax, eax
jl 0x10121ed
push edi
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x2d1080
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp + 0x10]
mov byte [ebp + 0xf], al
call fcn.0101f4b2
cmp byte [ebp + 0xf], 0
je 0x1012310
mov edi, 0x400
push edi
call fcn.01011fea
test eax, eax
mov dword [esi], eax
jne 0x1012257
mov dword [ebp - 4], 0x6b
jmp 0x1012310
push edi
call fcn.01011fea
test eax, eax
mov dword [ebx], eax
jne 0x1012279
push dword [esi]
mov dword [ebp - 4], 0x6b
call fcn.01011fc4
and dword [esi], 0
jmp 0x1012310
mov edi, dword [esi]
xor eax, eax
mov edx, 0x100
mov ecx, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebx]
mov ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
dec eax
dec eax
je 0x10122e3
sub eax, 5
je 0x10122b1
push dword [ebp + 8]
push dword [esi]
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
call esi
push dword [ebp + 8]
push dword [ebx]
call esi
add esp, 0x10
jmp 0x1012310
cmp dword [ebp - 0x10], 0
jl 0x1012309
cmp dword [ebp - 0xc], 0
jl 0x1012309
push dword [ebp - 0x10]
push 0x1001c90
push dword [esi]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x1001c50
push dword [ebx]
call esi
add esp, 0x1c
jmp 0x1012310
cmp dword [ebp - 0x10], 0
jl 0x1012309
push dword [ebp - 0x10]
mov edi, 0x1001c30
push edi
push dword [esi]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
call esi
push dword [ebp - 0x10]
push edi
push dword [ebx]
call esi
add esp, 0x18
jmp 0x1012310
mov dword [ebp - 4], 0x6a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1012537
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x1036a44]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ebx
mov dword [esi], 1
je 0x101257c
lea ecx, [ebp - 0x408]
push ecx
push ebx
push eax
call fcn.0101ee58
test eax, eax
jge 0x1012589
mov dword [esi], 0x10
xor eax, eax
jmp 0x1012731
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0xc
lea eax, [ebp - 0x428]
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp - 0x408]
call edi
test al, al
je 0x101263f
cmp dword [ebp - 0x428], 2
jne 0x101263f
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push 0x2d0c04
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x408]
mov byte [ebp - 0x409], al
call fcn.0101f4b2
cmp byte [ebp - 0x409], bl
je 0x101260a
cmp dword [ebp - 0x404], 2
je 0x101260a
push 5
jmp 0x101260c
push 3
pop edi
lea eax, [ebp - 0x408]
push eax
push 0x80000001
push dword [ebp - 0x418]
call fcn.0101ee58
test eax, eax
jge 0x101262d
or dword [esi], 2
jmp 0x1012638
push dword [ebp - 0x408]
call fcn.0101f4b2
mov eax, edi
jmp 0x1012730
push dword [ebp - 0x408]
call fcn.0101f4b2
lea eax, [ebp - 0x408]
push eax
push 0x80000000
push dword [ebp - 0x418]
call fcn.0101ee58
test eax, eax
jge 0x1012672
mov dword [esi], 0x10
xor eax, eax
jmp 0x1012730
push 0x18
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x70000
lea eax, [ebp - 0x448]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
cmp eax, ebx
jge 0x10126b0
cmp eax, 0xc0000013
jne 0x101271f
push 2
pop eax
or dword [esi], eax
mov dword [ebp - 0x410], eax
jmp 0x101271f
cmp dword [ebp - 0x438], 0xb
jne 0x10126c5
mov dword [ebp - 0x410], 2
jmp 0x101271f
cmp dword [ebp - 0x438], 0xc
jne 0x101271f
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x408]
call fcn.0101f113
test eax, eax
jge 0x10126ec
mov dword [esi], 0x10
jmp 0x101271f
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x414]
push dword [ebp - 0x408]
call fcn.01005fb3
cmp eax, 1
mov dword [ebp - 0x410], eax
jne 0x1012714
mov byte [0x1036bd0], al
push dword [ebp - 0x414]
call fcn.01011fc4
push dword [ebp - 0x408]
call fcn.0101f4b2
mov eax, dword [ebp - 0x410]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8

Function at 0x1013425
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0
push 0x1001ce0
push 0x14
push 0x1001ccc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x101345b
push eax
push eax
push dword [0x1033058]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
test eax, eax
jne 0x101345b
push 1
push 0x14
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
ret 4