joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100b4540]
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 0x1004c709
movzx eax, byte [0xba6798]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10090dd8]
comiss xmm0, dword [0x1008a508]
movss dword [0x100b3ec4], xmm0
jbe 0x1004c6b0
mov dword [0x100b3ec4], 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.1005e15b
mov esp, ebp
pop ebp
ret
call sub.bass.dll_BASS_ErrorGetCode
cmp eax, 0xffffffff
jne 0x1004c71a
call fcn.1004c650
jmp 0x1004c723
cmp eax, 0xe
je 0x1004c823
push esi
call sub.bass.dll_BASS_ErrorGetCode
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004c735
call fcn.1004c650
mov byte [ebp - 0x34], 0x55
xor ecx, ecx
mov byte [ebp - 0x33], 0x47
mov byte [ebp - 0x32], 0x45
mov byte [ebp - 0x31], 0x43
mov byte [ebp - 0x30], 0x45
mov byte [ebp - 0x2f], 0x22
mov byte [ebp - 0x2e], 0x75
mov byte [ebp - 0x2d], 0x67
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0x22
mov byte [ebp - 0x2a], 0x75
mov byte [ebp - 0x29], 0xfe
mov byte [ebp - 0x28], 0x74
mov byte [ebp - 0x27], 0xfe
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0xfe
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x23], 0xfe
mov byte [ebp - 0x22], 0x22
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0xff
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x63
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x66
mov byte [ebp - 0x15], 0xff
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x22
mov byte [ebp - 0x12], 0x5d
mov byte [ebp - 0x11], 0x68
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6b
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x67
mov byte [ebp - 0xc], 0x66
mov byte [ebp - 0xb], 0x3c
mov byte [ebp - 0xa], 0x22
mov byte [ebp - 9], 0x25
mov byte [ebp - 8], 0x27
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x5f
mov byte [ebp - 5], 0
mov al, byte [ebp - 0x34]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x34]
sub al, 2
mov byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0x2f
jb 0x1004c800
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.1005e15b
mov esp, ebp
pop ebp
ret
Function at 0x10050ac0
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 + 0x10185900], 0
je 0x10050b9f
push 0
push dword [esi + 0x10185a17]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10185a17]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], 0
jne 0x10050b44
push edi
push dword [0x1018924c]
push dword [0x10189248]
call fcn.1005dd20
mov edx, dword [0x1018924c]
cmp eax, edx
je 0x10050b2e
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.1005f5c0
add esp, 0xc
sub dword [0x1018924c], 4
push dword [esi + 0x10185906]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x10185906]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x10185906], 0
push 0x100
push eax
mov word [esi + 0x10185a23], ax
lea eax, [esi + 0x1018590a]
push eax
mov byte [esi + 0x10185901], 0
mov byte [esi + 0x10185a16], 0
mov dword [esi + 0x10185902], 0
mov dword [esi + 0x10185a1b], 0
mov dword [esi + 0x10185a1f], 0xffffffff
call fcn.1005fb40
add esp, 0xc
mov byte [esi + 0x10185900], 0
pop edi
pop esi
pop ebp
ret

Function at 0x10050bb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10189248]
mov ecx, dword [0x1018924c]
cmp eax, ecx
je 0x10050cb9
mov dx, word [ebp + 8]
push esi
push edi
nop dword [eax]
mov edi, dword [eax]
imul esi, edi, 0x125
cmp word [esi + 0x10185a23], dx
je 0x10050bec
add eax, 4
cmp eax, ecx
jne 0x10050bd0
pop edi
pop esi
pop ebp
ret
cmp byte [esi + 0x10185900], 0
je 0x10050cb7
push 0
push dword [esi + 0x10185a17]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10185a17]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x1018924c]
push dword [0x10189248]
call fcn.1005dd20
mov edx, dword [0x1018924c]
cmp eax, edx
je 0x10050c46
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.1005f5c0
add esp, 0xc
sub dword [0x1018924c], 4
push dword [esi + 0x10185906]
call sub.bass.dll_BASS_ChannelStop
push dword [esi + 0x10185906]
call sub.bass.dll_BASS_MusicFree
xor eax, eax
mov dword [esi + 0x10185906], 0
push 0x100
push eax
mov word [esi + 0x10185a23], ax
lea eax, [esi + 0x1018590a]
push eax
mov byte [esi + 0x10185901], 0
mov byte [esi + 0x10185a16], 0
mov dword [esi + 0x10185902], 0
mov dword [esi + 0x10185a1b], 0
mov dword [esi + 0x10185a1f], 0xffffffff
call fcn.1005fb40
add esp, 0xc
mov byte [esi + 0x10185900], 0
pop edi
pop esi
pop ebp
ret
Function at 0x10059730
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 0x1008933d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100b4540]
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 0x10059848
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 0x100597bb
lea ecx, [ebp - 0xe]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10058f90
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 0x10059815
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x10059815
or ecx, 0xffffffff
test esi, esi
je 0x1005980a
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 + 0x100b40b0]
sub esi, 1
jne 0x100597f0
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 0x10059848
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x1005983e
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005985d
push ebx
push edi
call fcn.1005e1a2
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.100633c1
int3
Function at 0x1005a550
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008943d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b4540]
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.1006306e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005a684
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1005a5e6
push dword [ebp - 0x2c]
call fcn.1006306e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005a684
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1005a684
cmp dword [edi + 0x190], eax
jbe 0x1005a654
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.10039510
lea eax, [ebp - 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005a632
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10024840
inc esi
cmp esi, dword [edi + 0x190]
jb 0x1005a610
mov esi, dword [ebp - 0x34]
push edi
call fcn.10063053
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 0x1005a6b0
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.1005e15b
mov esp, ebp
pop ebp
ret

Function at 0x1005b260
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 0x1005b2bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005b2bb
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 0x1005b2aa
cmp esi, edx
jae 0x1005b2bb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1005b298
cmp esi, edx
jae 0x1005b2bb
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 0x1005b3a0
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 0x1005b3fd
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 0x1005b3c0
mov eax, dword [esi]
jmp 0x1005b4d7
cmp eax, 0x4e0
jb 0x1005b4d7
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 0x1005b416
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 0x1005b460
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 0x1005ba70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.1005e730
mov eax, dword [0x100b4540]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1005ddf1
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 0x1005baa0
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 0x1005baff
call fcn.1005b3a0
add eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e15b
mov esp, ebp
pop ebp
ret
push esi
lea esi, [eax + 1]
call fcn.1005b3a0
mul esi
mov dword [ebp - 0x1394], eax
mov ecx, edx
cmp eax, esi
jae 0x1005bb44
mov eax, esi
xor edx, edx
neg eax
div esi
push ebx
mov ebx, edx
cmp dword [ebp - 0x1394], ebx
jae 0x1005bb43
nop dword [eax]
lea ecx, [ebp - 0x1390]
call fcn.1005b3a0
mul esi
mov ecx, edx
cmp eax, ebx
jb 0x1005bb30
pop ebx
lea eax, [ecx + edi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.1005e15b
mov esp, ebp
pop ebp
ret
Function at 0x1005d13b
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.1005d117
pop esi
leave
ret 8

Function at 0x1006dcb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1005e730
mov eax, dword [0x100b4540]
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.1007976a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006dcf3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006de4f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10086640
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 + 0x10189da0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006f208
mov ecx, dword [esi*4 + 0x10189da0]
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 0x1006de48
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006de48
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 0x1006de48
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006f208
add esp, 0x14
test edx, edx
jl 0x1006de48
jg 0x1006ddbe
test eax, eax
jb 0x1006de48
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006de48
jl 0x1006ddd8
cmp dword [ebp - 0x1008], eax
ja 0x1006de48
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006ddf6
test ebx, ebx
je 0x1006de2f
cmp ecx, edi
jae 0x1006de2f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006de10
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006de1c
cmp byte [ecx + 1], 0xa
jne 0x1006de1c
inc ecx
jmp 0x1006de1c
movzx eax, al
movsx eax, byte [eax + 0x100b46b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006ddf6
cmp edx, ebx
jne 0x1006ddf6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006de4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005e15b
leave
ret
Function at 0x1006f7b1
Capabilities:
Parse pe header

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

Function at 0x100712aa
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b4540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10094ea0
push esi
call fcn.1007cdf5
pop ecx
pop ecx
test eax, eax
jne 0x100712d8
xor al, al
jmp 0x10071355
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.10070feb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10071312
push dword [ebp - 0x210]
call fcn.10063053
xor al, al
jmp 0x10071353
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10071318
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10071338
push edx
call fcn.100711e1
pop ecx
test al, al
je 0x10071303
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10071346
mov bl, 1
push dword [ebp - 0x210]
call fcn.10063053
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005e15b
leave
ret

Function at 0x100725d7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b4540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1007261a
call fcn.1006dfb3
mov dword [eax], 0xf
call fcn.1006dfc6
mov dword [eax], 0xd
call fcn.100633b1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e15b
leave
ret
test eax, eax
jne 0x10072621
inc eax
jmp 0x1007260e
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 0x1007260c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1007260e
Function at 0x100743cd
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 + 0x10189da0]
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 0x1007440d
cmp byte [ebx], 0xa
jne 0x1007440d
or byte [edi + eax + 0x28], 4
jmp 0x10074412
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 0x10074511
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100744f4
inc eax
cmp dl, 0xd
je 0x1007443e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10074464
cmp eax, ecx
jae 0x10074472
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 0x10074426
jmp 0x10074511
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 0x100744ef
cmp dword [ebp - 0x10], 0
je 0x100744ef
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10189da0]
test byte [eax + edi + 0x28], 0x48
je 0x100744c9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100744b4
mov byte [esi], dl
jmp 0x100744c5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10189da0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10074511
cmp byte [ebp - 1], 0xa
jne 0x100744d8
cmp esi, ebx
jne 0x100744d8
mov byte [esi], 0xa
jmp 0x10074510
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006f226
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10074511
mov byte [esi], 0xd
jmp 0x10074510
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10189da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007450e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10074511
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007451a
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 + 0x10189da0]
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 0x10074560
cmp word [ebx], dx
jne 0x10074560
or byte [eax + edi + 0x28], 4
jmp 0x10074565
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 0x100746c8
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 0x100746a8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100745a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100745dc
cmp eax, edx
jae 0x100745ea
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 0x10074581
jmp 0x100746c8
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 0x100746a3
cmp dword [ebp - 0x18], 0
je 0x100746a3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10189da0]
test byte [eax + edi + 0x28], 0x48
je 0x10074679
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 0x1007463d
mov word [esi], cx
jmp 0x10074674
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10189da0]
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 + 0x10189da0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10189da0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100746c8
pop eax
cmp word [ebp - 4], ax
jne 0x10074689
cmp esi, ebx
jne 0x10074689
mov word [esi], ax
jmp 0x100746c5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006f226
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100746c8
push 0xd
pop eax
jmp 0x10074684
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10189da0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100746c2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100746c8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret