joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eed00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10295cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x1035dd3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.102629f0
mov ax, word [ebp + 0x10]
lea ecx, [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x5c], 0x102a25a0
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], ax
push dword [ebp + 8]
call fcn.100ee220
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp dword [eax - 4], 1
jle 0x100eed83
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.100c6a00
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100eedb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x100eeddd
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100eedff
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100f30b0
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
push eax
push 0x1031558c
push 1
push 0
push 0x103157fc
mov edi, ecx
call esi
test eax, eax
jns 0x100f310d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x1031558c
push 1
push 0
push 0x103157fc
call esi
test eax, eax
jns 0x100f310d
push str.create_shortcut_interface_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100f312a
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x100f313b
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x100f314c
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x100f315f
mov eax, dword [ebp - 4]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x103155cc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x100f3103
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 2
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x100f3103
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ecx
mov ecx, esp
push esi
call fcn.100ee220
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.100f49f0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100f42e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10296132
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
call fcn.100c6b40
mov ecx, eax
test ecx, ecx
je 0x100f4410
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x1a
push 0
mov dword [ebp - 0x220], 1
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x100f43f1
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.102629f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f43a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.100c7180
push 0x3d
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
mov ecx, esi
call fcn.100ee4d0
push 0x5c
push dword [esi]
mov ecx, edi
call fcn.100f4d10
push 1
push 0x10329f00
mov ecx, esi
call fcn.100ee4d0
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102601ec
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100c61c0
int3
Function at 0x100f4820
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10296200
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1035dd3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100f4868
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x103225a4
lea ecx, [ebp - 0x10]
call fcn.100ee220
mov dword [ebp - 4], 0
test esi, esi
jne 0x100f4884
xor ecx, ecx
jmp 0x100f489f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f4890
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.100ee4d0
push 0x15
push str.___T__E__G_Everyone:F
lea ecx, [ebp - 0x10]
call fcn.100ee4d0
push 0
push 0
push dword [ebp - 0x10]
push str.Cacls.exe
push 0x1029b864
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or edi, 0xffffffff
cmp eax, 0x20
jg 0x100f4934
call fcn.100c6b40
mov ecx, eax
test ecx, ecx
je 0x100f496b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecute_failed:_d
push eax
call fcn.100ee960
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100f4934
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100f4953
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100c61c0
int3

Function at 0x100f4980
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor esi, esi
push esi
push 0x2000000
push 3
push esi
push 5
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100f49d7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x100f49d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100fd2f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x10361a84], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100fd365
test edi, edi
je 0x100fd365
mov eax, dword [0x10361a88]
test eax, eax
jne 0x100fd35f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100fd0f0
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.10273a90
add esp, 4
push eax
call fcn.101114e0
push dword [0x10361a80]
call fcn.102671ab
add esp, 0x18
call fcn.1026778c
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x10361a88], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x100fd398
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.100fd0f0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x100fd3d0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x10361a84], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100fd445
test edi, edi
je 0x100fd445
mov eax, dword [0x10361a88]
test eax, eax
jne 0x100fd43f
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100fd0f0
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.10273a90
add esp, 4
push eax
call fcn.101114e0
push dword [0x10361a80]
call fcn.102671ab
add esp, 0x18
call fcn.1026778c
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x10361a88], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x100fd478
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.100fd0f0
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x10123be0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x1035dd3c]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x10361c4c], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x10123c19
call fcn.10191700
test eax, eax
je 0x10123c31
mov byte [0x10361c4c], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.102601ec
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9f8]
test eax, eax
je 0x10123c52
push 0x400
push eax
call fcn.101923c0
add esp, 8
call fcn.10191700
test eax, eax
jne 0x10123c19
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.10103070
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
call fcn.1010c490
lea eax, [esp + 0x5c]
push eax
call fcn.10103070
mov esi, dword [eax + 8]
lea eax, [esp + 0x70]
push eax
call fcn.10103070
add esp, 0x14
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.102607d0
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.102607d0
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.10103070
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.10103070
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x10123c80
movsd xmm0, qword [0x102abd50]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10191530
add esp, 0x10
call fcn.10191700
test eax, eax
je 0x10123c60
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.10192200
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x10123de4
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.101923c0
add esp, 8
call fcn.10191700
test eax, eax
jne 0x10123c19
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.1010c670
add esp, 8
call fcn.10191700
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.102601ec
add esp, 0x1c4
ret
Function at 0x10128cd0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x102abd58
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.100fd220
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10128d2d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10128d4b
cmp esi, ebx
je 0x10128d4b
cmp esi, 0x8000
ja 0x10128d4b
cmp esi, ebx
jb 0x10128d44
push 0x102abd58
push 0x2d
push esi
push edi
call fcn.100fd220
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10128cf0
push 0x102abd58
push 0x2f
push ebp
call fcn.100fd0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x102abd58
push 0x3a
push edi
call fcn.100fd0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x101f4960
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101f4974
mov dword [esp + 0x18], fcn.101f3140
jmp fcn.101ec4b0
mov dword [esp + 0x18], fcn.101f23e0
jmp fcn.101ec1b0

Function at 0x10234140
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.102609e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 0x1048
push 0x1030d3e0
push esi
call fcn.102618f0
mov ebx, dword [esp + 0x30]
mov edi, 0x48
add esp, 0xc
mov eax, ebx
cmp dword [esp + 0x20], edi
cmovle edi, dword [esp + 0x20]
add edi, ebx
xor ebp, ebp
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ebp*4], edx
inc ebp
cmp ebp, 0x12
jl 0x10234180
mov dword [esp + 0x10], 0
xor edi, edi
mov dword [esp + 0x14], 0
nop
lea eax, [esp + 0x10]
push esi
push eax
call fcn.10043540
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x102341d0
xor edi, edi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.10043540
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x102341f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x102750ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.102609e0
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1027bb6e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x102750f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1027524c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10260ad0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10365488]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1027b967
mov ecx, dword [esi*4 + 0x10365488]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10275245
cmp eax, dword [edi + ecx + 0x24]
jne 0x10275245
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10275245
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1027b967
add esp, 0x14
test edx, edx
jl 0x10275245
jg 0x102751bb
test eax, eax
jb 0x10275245
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10275245
jl 0x102751d5
cmp dword [ebp - 0x1008], eax
ja 0x10275245
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x102751f3
test ebx, ebx
je 0x1027522c
cmp ecx, edi
jae 0x1027522c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1027520d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10275219
cmp byte [ecx + 1], 0xa
jne 0x10275219
inc ecx
jmp 0x10275219
movzx eax, al
movsx eax, byte [eax + 0x1035deb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x102751f3
cmp edx, ebx
jne 0x102751f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1027524a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.102601ec
leave
ret
Function at 0x10277d6a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10319c60
push esi
call fcn.10286aea
pop ecx
pop ecx
test eax, eax
jne 0x10277d98
xor al, al
jmp 0x10277e15
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10277a6e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10277dd2
push dword [ebp - 0x210]
call fcn.10265f8b
xor al, al
jmp 0x10277e13
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10277dd8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10277df8
push edx
call fcn.10277ca0
pop ecx
test al, al
je 0x10277dc3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10277e06
mov bl, 1
push dword [ebp - 0x210]
call fcn.10265f8b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.102601ec
leave
ret
Function at 0x102811db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10365488]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1028121b
cmp byte [ebx], 0xa
jne 0x1028121b
or byte [eax + edi + 0x28], 4
jmp 0x10281220
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1028131e
mov al, byte [edx]
cmp al, 0x1a
je 0x10281300
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1028124f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10281274
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1028127e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10281231
jmp 0x1028131e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x102812fb
cmp dword [ebp - 0xc], 0
je 0x102812fb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10365488]
test byte [eax + edi + 0x28], 0x48
je 0x102812d5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x102812c0
mov byte [esi], dl
jmp 0x102812d1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10365488]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1028131e
cmp byte [ebp - 1], 0xa
jne 0x102812e4
cmp esi, ebx
jne 0x102812e4
mov byte [esi], 0xa
jmp 0x1028131d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1027b985
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1028131e
mov byte [esi], 0xd
jmp 0x1028131d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10365488]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1028131a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1028131e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10281327
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10365488]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1028136a
cmp word [esi], dx
jne 0x1028136a
or byte [edi + eax + 0x28], 4
jmp 0x1028136f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x102814c2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x102814a2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x102813b1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x102813e7
cmp eax, edx
jae 0x102813f3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10281389
jmp 0x102814c2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1028149e
cmp dword [ebp - 0x14], 0
je 0x1028149e
mov eax, dword [ebx*4 + 0x10365488]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10281476
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1028143f
mov word [esi], cx
jmp 0x10281472
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10365488]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10365488]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10365488]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x102814c2
pop ebx
cmp word [ebp - 4], bx
jne 0x10281487
cmp esi, dword [ebp + 0xc]
jne 0x10281487
mov word [esi], bx
jmp 0x102814bf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1027b985
add esp, 0x10
cmp word [ebp - 4], bx
je 0x102814c2
push 0xd
jmp 0x102814bb
mov ecx, dword [ebx*4 + 0x10365488]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x102814b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x102814c2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret