joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047ad0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
call sub.bass.dll_BASS_Free
push 0
push 0
push 6
push 0xac44
push 0xffffffffffffffff
call sub.bass.dll_BASS_Init
test eax, eax
je 0x10047b89
movzx eax, byte [0xba6798]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1008bc10]
comiss xmm0, dword [0x10085508]
movss dword [0x100acec4], xmm0
jbe 0x10047b30
mov dword [0x100acec4], 0x3f800000
push 0
push 0xf
call sub.bass.dll_BASS_SetConfig
push 1
push 0x15
call sub.bass.dll_BASS_SetConfig
push 0x2710
push 5
call sub.bass.dll_BASS_SetConfig
push 0x2710
push 6
call sub.bass.dll_BASS_SetConfig
sub esp, 0xc
mov dword [esp + 8], 0xbf800000
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
push 0xffffffffffffffff
call sub.bass.dll_BASS_SetEAXParameters
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
call sub.bass.dll_BASS_ErrorGetCode
cmp eax, 0xffffffff
jne 0x10047b9a
call fcn.10047ad0
jmp 0x10047ba3
cmp eax, 0xe
je 0x10047cab
push esi
call sub.bass.dll_BASS_ErrorGetCode
mov esi, eax
cmp esi, 0xffffffff
jne 0x10047bb5
call fcn.10047ad0
mov dword [ebp - 0x38], 0x27
xor edx, edx
mov byte [ebp - 0x34], 0x74
mov byte [ebp - 0x33], 0x62
mov byte [ebp - 0x32], 0x64
mov byte [ebp - 0x31], 0x66
mov byte [ebp - 0x30], 0x64
mov byte [ebp - 0x2f], 7
mov byte [ebp - 0x2e], 0x54
mov byte [ebp - 0x2d], 0x42
mov byte [ebp - 0x2c], 0x54
mov byte [ebp - 0x2b], 7
mov byte [ebp - 0x2a], 0x54
mov byte [ebp - 0x29], 0xdb
mov byte [ebp - 0x28], 0x55
mov byte [ebp - 0x27], 0xdb
mov byte [ebp - 0x26], 0x44
mov byte [ebp - 0x25], 0xdb
mov byte [ebp - 0x24], 0x54
mov byte [ebp - 0x23], 0xdb
mov byte [ebp - 0x22], 7
mov byte [ebp - 0x21], 0x45
mov byte [ebp - 0x20], 0x46
mov byte [ebp - 0x1f], 0xd9
mov byte [ebp - 0x1e], 0x4b
mov byte [ebp - 0x1d], 0x46
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x1b], 0xda
mov byte [ebp - 0x1a], 0x4b
mov byte [ebp - 0x19], 0x46
mov byte [ebp - 0x18], 0x4a
mov byte [ebp - 0x17], 0x46
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0xda
mov byte [ebp - 0x14], 9
mov byte [ebp - 0x13], 7
mov byte [ebp - 0x12], 0x7c
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0x46
mov byte [ebp - 0xf], 0x4e
mov byte [ebp - 0xe], 0x4b
mov byte [ebp - 0xd], 0x42
mov byte [ebp - 0xc], 0x43
mov byte [ebp - 0xb], 0x1d
mov byte [ebp - 0xa], 7
mov byte [ebp - 9], 4
mov byte [ebp - 8], 2
mov byte [ebp - 7], 0x43
mov byte [ebp - 6], 0x7a
mov al, byte [ebp - 0x34]
mov byte [ebp - 5], 0
mov al, byte [ebp + edx - 0x34]
mov ecx, dword [ebp - 0x38]
xor cl, al
mov byte [ebp + edx - 0x34], cl
inc edx
cmp edx, 0x2f
jb 0x10047c81
push esi
lea eax, [ebp - 0x34]
mov byte [ebp - 5], 0
push eax
push 0xaac4e5
call fcn.10009000
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
Function at 0x1004beb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
imul esi, edi, 0x125
cmp byte [esi + 0x1017e8f8], 0
je 0x1004bf8f
push 0
push dword [esi + 0x1017ea0f]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1017ea0f]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], 0
jne 0x1004bf34
push edi
push dword [0x10182240]
push dword [0x1018223c]
call fcn.10058b60
mov edx, dword [0x10182240]
cmp eax, edx
je 0x1004bf1e
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.1005a400
add esp, 0xc
sub dword [0x10182240], 4
push dword [esi + 0x1017e8fe]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x1017e8fe]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x1017e8fe], 0
push 0x100
push eax
mov word [esi + 0x1017ea1b], ax
lea eax, [esi + 0x1017e902]
push eax
mov byte [esi + 0x1017e8f9], 0
mov byte [esi + 0x1017ea0e], 0
mov dword [esi + 0x1017e8fa], 0
mov dword [esi + 0x1017ea13], 0
mov dword [esi + 0x1017ea17], 0xffffffff
call fcn.1005a980
add esp, 0xc
mov byte [esi + 0x1017e8f8], 0
pop edi
pop esi
pop ebp
ret

Function at 0x1004bfd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1018223c]
mov ecx, dword [0x10182240]
cmp eax, ecx
je 0x1004c0d9
mov dx, word [ebp + 8]
push esi
push edi
nop dword [eax]
mov edi, dword [eax]
imul esi, edi, 0x125
cmp word [esi + 0x1017ea1b], dx
je 0x1004c00c
add eax, 4
cmp eax, ecx
jne 0x1004bff0
pop edi
pop esi
pop ebp
ret
cmp byte [esi + 0x1017e8f8], 0
je 0x1004c0d7
push 0
push dword [esi + 0x1017ea0f]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1017ea0f]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x10182240]
push dword [0x1018223c]
call fcn.10058b60
mov edx, dword [0x10182240]
cmp eax, edx
je 0x1004c066
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.1005a400
add esp, 0xc
sub dword [0x10182240], 4
push dword [esi + 0x1017e8fe]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x1017e8fe]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x1017e8fe], 0
push 0x100
push eax
mov word [esi + 0x1017ea1b], ax
lea eax, [esi + 0x1017e902]
push eax
mov byte [esi + 0x1017e8f9], 0
mov byte [esi + 0x1017ea0e], 0
mov dword [esi + 0x1017e8fa], 0
mov dword [esi + 0x1017ea13], 0
mov dword [esi + 0x1017ea17], 0xffffffff
call fcn.1005a980
add esp, 0xc
mov byte [esi + 0x1017e8f8], 0
pop edi
pop esi
pop ebp
ret
Function at 0x10054570
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008409d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ad540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x10054688
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 0x28], edi
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x100545fb
lea ecx, [ebp - 0xe]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10053dd0
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
sub esi, edi
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10054655
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x10054655
or ecx, 0xffffffff
test esi, esi
je 0x1005464a
mov edx, edi
nop word [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ad0b0]
sub esi, 1
jne 0x10054630
mov eax, dword [ebp + 0xc]
not ecx
mov byte [ebp - 0xd], 1
mov dword [eax], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10054688
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x1005467e
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005469d
push ebx
push edi
call fcn.10058fe2
add esp, 8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005e201
int3
Function at 0x10055390
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008419d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x288
mov dword [ebp - 4], 0
call fcn.1005deae
mov edi, eax
add esp, 4
test edi, edi
je 0x100554c4
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x10055426
push dword [ebp - 0x2c]
call fcn.1005deae
mov edi, eax
add esp, 4
test edi, edi
je 0x100554c4
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x100554c4
cmp dword [edi + 0x190], eax
jbe 0x10055494
xor esi, esi
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + esi + 0x194]
push eax
push str._.2X
lea eax, [ebp - 0x30]
push 3
push eax
call fcn.10036320
lea eax, [ebp - 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10055472
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.100216e0
inc esi
cmp esi, dword [edi + 0x190]
jb 0x10055450
mov esi, dword [ebp - 0x34]
push edi
call fcn.1005de93
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
jmp 0x100554f0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
mov dword [esi], 0x656e6f6e
mov byte [esi + 4], 0
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.10058f9b
mov esp, ebp
pop ebp
ret

Function at 0x100560a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100560fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100560fb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100560ea
cmp esi, edx
jae 0x100560fb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100560d8
cmp esi, edx
jae 0x100560fb
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100561e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1005623d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10056200
mov eax, dword [esi]
jmp 0x10056317
cmp eax, 0x4e0
jb 0x10056317
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x10056256
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x100562a0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100568b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.10059570
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10058c31
mov dword [ebp - 8], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x1388], eax
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [ebp + ecx*4 - 0x1388], eax
inc ecx
cmp ecx, 0x270
jb 0x100568e0
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
mov dword [ebp - 0x1390], eax
lea ecx, [ebp - 0x1390]
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, edi
cmp eax, 0xffffffff
jne 0x1005693f
call fcn.100561e0
add eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
push esi
lea esi, [eax + 1]
call fcn.100561e0
mul esi
mov dword [ebp - 0x1394], eax
mov ecx, edx
cmp eax, esi
jae 0x10056984
mov eax, esi
xor edx, edx
neg eax
div esi
push ebx
mov ebx, edx
cmp dword [ebp - 0x1394], ebx
jae 0x10056983
nop dword [eax]
lea ecx, [ebp - 0x1390]
call fcn.100561e0
mul esi
mov ecx, edx
cmp eax, ebx
jb 0x10056970
pop ebx
lea eax, [ecx + edi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
Function at 0x10057f7b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10057f57
pop esi
leave
ret 8

Function at 0x10068af1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10059570
mov eax, dword [0x100ad540]
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.100744d7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10068b33
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10068c8f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100813a0
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 + 0x10182d90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006a048
mov ecx, dword [esi*4 + 0x10182d90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10068c88
cmp eax, dword [ecx + edi + 0x24]
jne 0x10068c88
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10068c88
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006a048
add esp, 0x14
test edx, edx
jl 0x10068c88
jg 0x10068bfe
test eax, eax
jb 0x10068c88
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10068c88
jl 0x10068c18
cmp dword [ebp - 0x1008], eax
ja 0x10068c88
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10068c36
test ebx, ebx
je 0x10068c6f
cmp ecx, edi
jae 0x10068c6f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10068c50
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10068c5c
cmp byte [ecx + 1], 0xa
jne 0x10068c5c
inc ecx
jmp 0x10068c5c
movzx eax, al
movsx eax, byte [eax + 0x100ad6b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10068c36
cmp edx, ebx
jne 0x10068c36
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10068c8d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10058f9b
leave
ret
Function at 0x1006a51b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1006a55a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006a55a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006a55a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1006a55a
cmp dword [ecx + 0x74], 0xe
jbe 0x1006a55a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1006c01a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1008fc90
push esi
call fcn.10077b55
pop ecx
pop ecx
test eax, eax
jne 0x1006c048
xor al, al
jmp 0x1006c0c5
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.1006bd5b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1006c082
push dword [ebp - 0x210]
call fcn.1005de93
xor al, al
jmp 0x1006c0c3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1006c088
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1006c0a8
push edx
call fcn.1006bf51
pop ecx
test al, al
je 0x1006c073
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1006c0b6
mov bl, 1
push dword [ebp - 0x210]
call fcn.1005de93
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10058f9b
leave
ret

Function at 0x1006d347
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1006d38a
call fcn.10068df3
mov dword [eax], 0xf
call fcn.10068e06
mov dword [eax], 0xd
call fcn.1005e1f1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058f9b
leave
ret
test eax, eax
jne 0x1006d391
inc eax
jmp 0x1006d37e
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1006d37c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1006d37e
Function at 0x1006f13d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10182d90]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f17d
cmp byte [ebx], 0xa
jne 0x1006f17d
or byte [edi + eax + 0x28], 4
jmp 0x1006f182
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1006f281
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006f264
inc eax
cmp dl, 0xd
je 0x1006f1ae
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006f1d4
cmp eax, ecx
jae 0x1006f1e2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006f196
jmp 0x1006f281
push 0
lea eax, [ebp - 0x10]
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 0x1006f25f
cmp dword [ebp - 0x10], 0
je 0x1006f25f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10182d90]
test byte [eax + edi + 0x28], 0x48
je 0x1006f239
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006f224
mov byte [esi], dl
jmp 0x1006f235
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10182d90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006f281
cmp byte [ebp - 1], 0xa
jne 0x1006f248
cmp esi, ebx
jne 0x1006f248
mov byte [esi], 0xa
jmp 0x1006f280
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006a066
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006f281
mov byte [esi], 0xd
jmp 0x1006f280
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10182d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006f27e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006f281
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006f28a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10182d90]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f2d0
cmp word [ebx], dx
jne 0x1006f2d0
or byte [eax + edi + 0x28], 4
jmp 0x1006f2d5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006f438
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006f418
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006f316
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006f34c
cmp eax, edx
jae 0x1006f35a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006f2f1
jmp 0x1006f438
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006f413
cmp dword [ebp - 0x18], 0
je 0x1006f413
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10182d90]
test byte [eax + edi + 0x28], 0x48
je 0x1006f3e9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006f3ad
mov word [esi], cx
jmp 0x1006f3e4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10182d90]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10182d90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10182d90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006f438
pop eax
cmp word [ebp - 4], ax
jne 0x1006f3f9
cmp esi, ebx
jne 0x1006f3f9
mov word [esi], ax
jmp 0x1006f435
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006a066
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006f438
push 0xd
pop eax
jmp 0x1006f3f4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10182d90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006f432
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006f438
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret