joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100486e0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor edx, edx
push ebx
mov bl, byte [ecx + edx + 4]
mov eax, dword [ecx]
add al, dl
xor al, bl
mov byte [ecx + edx + 4], al
inc edx
cmp edx, 0x1c
jb 0x100486e4
pop ebx
mov byte [ecx + 0x20], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x10048710
Capabilities:
Encode data using xor

Disassembly:
push esi
xor edx, edx
push ebx
mov bl, byte [ecx + edx + 4]
mov eax, dword [ecx]
add al, dl
xor al, bl
mov byte [ecx + edx + 4], al
inc edx
cmp edx, 0x17
jb 0x10048714
pop ebx
mov byte [ecx + 0x1b], 0
lea eax, [ecx + 4]
pop esi
ret

Function at 0x10048740
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100b5540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 4
mov dword [ebp - 4], 1
call fcn.1005f6a2
add esp, 4
test eax, eax
je 0x10048789
mov dword [eax], 0
jmp 0x1004878b
xor eax, eax
push 0x10025230
push eax
lea ecx, [ebp - 0x70]
call fcn.1000a060
lea ecx, [ebp - 0x68]
call fcn.10010790
lea ecx, [ebp - 0x50]
call fcn.100105b0
xor eax, eax
mov byte [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi], eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [esi + 4], eax
lea eax, [ebp - 0x70]
push eax
push 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.10024fe0
lea ecx, [ebp - 0x70]
call fcn.10010e90
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0xffff
mov dword [esi + 0x2c], 0xffff
mov byte [esi + 0x30], al
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005f68b
mov esp, ebp
pop ebp
ret
Function at 0x1004d1b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100b5540]
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 0x1004d269
movzx eax, byte [0xba6798]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10091ce8]
comiss xmm0, dword [0x1008b528]
movss dword [0x100b4e38], xmm0
jbe 0x1004d210
mov dword [0x100b4e38], 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.1005f68b
mov esp, ebp
pop ebp
ret
call sub.bass.dll_BASS_ErrorGetCode
cmp eax, 0xffffffff
jne 0x1004d27a
call fcn.1004d1b0
jmp 0x1004d283
cmp eax, 0xe
je 0x1004d383
push esi
call sub.bass.dll_BASS_ErrorGetCode
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004d295
call fcn.1004d1b0
mov byte [ebp - 0x34], 0x5a
xor ecx, ecx
mov byte [ebp - 0x33], 0x4c
mov byte [ebp - 0x32], 0x4a
mov byte [ebp - 0x31], 0x48
mov byte [ebp - 0x30], 0x4a
mov byte [ebp - 0x2f], 0x27
mov byte [ebp - 0x2e], 0x7a
mov byte [ebp - 0x2d], 0x6c
mov byte [ebp - 0x2c], 0x7a
mov byte [ebp - 0x2b], 0x27
mov byte [ebp - 0x2a], 0x7a
mov byte [ebp - 0x29], 3
mov byte [ebp - 0x28], 0x79
mov byte [ebp - 0x27], 3
mov byte [ebp - 0x26], 0x6a
mov byte [ebp - 0x25], 3
mov byte [ebp - 0x24], 0x7a
mov byte [ebp - 0x23], 3
mov byte [ebp - 0x22], 0x27
mov byte [ebp - 0x21], 0x69
mov byte [ebp - 0x20], 0x68
mov byte [ebp - 0x1f], 5
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x68
mov byte [ebp - 0x1c], 0x7b
mov byte [ebp - 0x1b], 4
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x68
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 0x17], 0x68
mov byte [ebp - 0x16], 0x6b
mov byte [ebp - 0x15], 4
mov byte [ebp - 0x14], 0x35
mov byte [ebp - 0x13], 0x27
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6d
mov byte [ebp - 0x10], 0x68
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6b
mov byte [ebp - 0xb], 0x41
mov byte [ebp - 0xa], 0x27
mov byte [ebp - 9], 0x2a
mov byte [ebp - 8], 0x2c
mov byte [ebp - 7], 0x6b
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0
mov al, byte [ebp - 0x34]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x34]
sub al, 7
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0x2f
jb 0x1004d360
push esi
lea eax, [ebp - 0x34]
push eax
push 0xaac4e5
call fcn.10009000
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f68b
mov esp, ebp
pop ebp
ret
Function at 0x10051ad0
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 + 0x10187908], 0
je 0x10051baf
push 0
push dword [esi + 0x10187a1f]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10187a1f]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], 0
jne 0x10051b54
push edi
push dword [0x1018b254]
push dword [0x1018b250]
call fcn.1005f250
mov edx, dword [0x1018b254]
cmp eax, edx
je 0x10051b3e
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.10060af0
add esp, 0xc
sub dword [0x1018b254], 4
push dword [esi + 0x1018790e]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x1018790e]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x1018790e], 0
push 0x100
push eax
mov word [esi + 0x10187a2b], ax
lea eax, [esi + 0x10187912]
push eax
mov byte [esi + 0x10187909], 0
mov byte [esi + 0x10187a1e], 0
mov dword [esi + 0x1018790a], 0
mov dword [esi + 0x10187a23], 0
mov dword [esi + 0x10187a27], 0xffffffff
call fcn.10061070
add esp, 0xc
mov byte [esi + 0x10187908], 0
pop edi
pop esi
pop ebp
ret

Function at 0x10051bc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1018b250]
mov ecx, dword [0x1018b254]
cmp eax, ecx
je 0x10051cc9
mov dx, word [ebp + 8]
push esi
push edi
nop dword [eax]
mov edi, dword [eax]
imul esi, edi, 0x125
cmp word [esi + 0x10187a2b], dx
je 0x10051bfc
add eax, 4
cmp eax, ecx
jne 0x10051be0
pop edi
pop esi
pop ebp
ret
cmp byte [esi + 0x10187908], 0
je 0x10051cc7
push 0
push dword [esi + 0x10187a1f]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10187a1f]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1018b254]
push dword [0x1018b250]
call fcn.1005f250
mov edx, dword [0x1018b254]
cmp eax, edx
je 0x10051c56
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.10060af0
add esp, 0xc
sub dword [0x1018b254], 4
push dword [esi + 0x1018790e]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x1018790e]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x1018790e], 0
push 0x100
push eax
mov word [esi + 0x10187a2b], ax
lea eax, [esi + 0x10187912]
push eax
mov byte [esi + 0x10187909], 0
mov byte [esi + 0x10187a1e], 0
mov dword [esi + 0x1018790a], 0
mov dword [esi + 0x10187a23], 0
mov dword [esi + 0x10187a27], 0xffffffff
call fcn.10061070
add esp, 0xc
mov byte [esi + 0x10187908], 0
pop edi
pop esi
pop ebp
ret
Function at 0x1005ac50
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 0x1008a76d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100b5540]
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 0x1005ad68
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 0x1005acdb
lea ecx, [ebp - 0xe]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.1005a4b0
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 0x1005ad35
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x1005ad35
or ecx, 0xffffffff
test esi, esi
je 0x1005ad2a
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 + 0x100b50b0]
sub esi, 1
jne 0x1005ad10
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 0x1005ad68
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x1005ad5e
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ad7d
push ebx
push edi
call fcn.1005f6d2
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.100648f1
int3
Function at 0x1005ba70
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a86d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b5540]
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.1006459e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005bba4
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1005bb06
push dword [ebp - 0x2c]
call fcn.1006459e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005bba4
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1005bba4
cmp dword [edi + 0x190], eax
jbe 0x1005bb74
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.1003b4f0
lea eax, [ebp - 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bb52
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10026430
inc esi
cmp esi, dword [edi + 0x190]
jb 0x1005bb30
mov esi, dword [ebp - 0x34]
push edi
call fcn.10064583
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 0x1005bbd0
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.1005f68b
mov esp, ebp
pop ebp
ret

Function at 0x1005c780
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 0x1005c7db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005c7db
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 0x1005c7ca
cmp esi, edx
jae 0x1005c7db
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1005c7b8
cmp esi, edx
jae 0x1005c7db
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 0x1005c8c0
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 0x1005c91d
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 0x1005c8e0
mov eax, dword [esi]
jmp 0x1005c9f7
cmp eax, 0x4e0
jb 0x1005c9f7
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 0x1005c936
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 0x1005c980
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 0x1005cf90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.1005fc60
mov eax, dword [0x100b5540]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1005f321
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 0x1005cfc0
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 0x1005d01f
call fcn.1005c8c0
add eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f68b
mov esp, ebp
pop ebp
ret
push esi
lea esi, [eax + 1]
call fcn.1005c8c0
mul esi
mov dword [ebp - 0x1394], eax
mov ecx, edx
cmp eax, esi
jae 0x1005d064
mov eax, esi
xor edx, edx
neg eax
div esi
push ebx
mov ebx, edx
cmp dword [ebp - 0x1394], ebx
jae 0x1005d063
nop dword [eax]
lea ecx, [ebp - 0x1390]
call fcn.1005c8c0
mul esi
mov ecx, edx
cmp eax, ebx
jb 0x1005d050
pop ebx
lea eax, [ecx + edi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.1005f68b
mov esp, ebp
pop ebp
ret
Function at 0x1005e66d
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.1005e649
pop esi
leave
ret 8

Function at 0x1006f291
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1005fc60
mov eax, dword [0x100b5540]
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.1007abc7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006f2d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006f42f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10087a90
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 + 0x1018bda8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10070738
mov ecx, dword [esi*4 + 0x1018bda8]
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 0x1006f428
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006f428
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 0x1006f428
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10070738
add esp, 0x14
test edx, edx
jl 0x1006f428
jg 0x1006f39e
test eax, eax
jb 0x1006f428
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006f428
jl 0x1006f3b8
cmp dword [ebp - 0x1008], eax
ja 0x1006f428
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006f3d6
test ebx, ebx
je 0x1006f40f
cmp ecx, edi
jae 0x1006f40f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006f3f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006f3fc
cmp byte [ecx + 1], 0xa
jne 0x1006f3fc
inc ecx
jmp 0x1006f3fc
movzx eax, al
movsx eax, byte [eax + 0x100b56b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006f3d6
cmp edx, ebx
jne 0x1006f3d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006f42d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005f68b
leave
ret
Function at 0x10070c0b
Capabilities:
Parse pe header

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

Function at 0x1007270a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b5540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10095d70
push esi
call fcn.1007e246
pop ecx
pop ecx
test eax, eax
jne 0x10072738
xor al, al
jmp 0x100727b5
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.1007244b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10072772
push dword [ebp - 0x210]
call fcn.10064583
xor al, al
jmp 0x100727b3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10072778
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10072798
push edx
call fcn.10072641
pop ecx
test al, al
je 0x10072763
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100727a6
mov bl, 1
push dword [ebp - 0x210]
call fcn.10064583
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005f68b
leave
ret

Function at 0x10073a37
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b5540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x10073a7a
call fcn.1006855a
mov dword [eax], 0xf
call fcn.1006856d
mov dword [eax], 0xd
call fcn.100648e1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f68b
leave
ret
test eax, eax
jne 0x10073a81
inc eax
jmp 0x10073a6e
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 0x10073a6c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x10073a6e
Function at 0x1007582d
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 + 0x1018bda8]
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 0x1007586d
cmp byte [ebx], 0xa
jne 0x1007586d
or byte [edi + eax + 0x28], 4
jmp 0x10075872
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 0x10075971
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10075954
inc eax
cmp dl, 0xd
je 0x1007589e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100758c4
cmp eax, ecx
jae 0x100758d2
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 0x10075886
jmp 0x10075971
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 0x1007594f
cmp dword [ebp - 0x10], 0
je 0x1007594f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1018bda8]
test byte [eax + edi + 0x28], 0x48
je 0x10075929
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10075914
mov byte [esi], dl
jmp 0x10075925
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018bda8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10075971
cmp byte [ebp - 1], 0xa
jne 0x10075938
cmp esi, ebx
jne 0x10075938
mov byte [esi], 0xa
jmp 0x10075970
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10070756
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10075971
mov byte [esi], 0xd
jmp 0x10075970
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1018bda8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007596e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10075971
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret