joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047083
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x48
push ebp
push str.renderPickupTexts__
call fcn.1005eeb8
mov eax, dword [0x101240a8]
xor ebp, ebp
pop ecx
cmp dword [eax + 0x3d3fe], ebp
jne 0x1004722a
mov eax, dword [0x10184cc8]
mov eax, dword [eax + 0x3de]
cmp dword [eax + 0x10], ebp
je 0x1004722a
push ebx
push ebp
push 0xffffffffffffffff
call fcn.10029203
pop ecx
pop ecx
push 9
mov ebx, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100470df
cmp dword [0x1016851f], ebp
jne 0x10047229
mov eax, dword [0x10184ce0]
cmp dword [eax], ebp
jne 0x10047229
test ebx, ebx
je 0x10047229
push esi
push edi
mov edi, ebp
mov esi, ebp
mov eax, dword [0x10184cc8]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
cmp dword [eax + esi + 0xf004], ebp
je 0x10047217
cmp dword [eax + esi + 0xf008], ebp
je 0x10047217
lea ecx, [esp + 0x14]
add eax, 0xf00c
push ecx
add eax, esi
push eax
call fcn.1003ff12
lea eax, [esp + 0x1c]
push eax
call fcn.10040008
add esp, 0xc
test eax, eax
jne 0x10047217
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1003ff22
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x1017f6ef]
pop ecx
pop ecx
ja 0x10047217
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x2c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
push eax
movss dword [esp + 0x28], xmm0
lea eax, [esp + 0x24]
movss xmm0, dword [esp + 0x20]
push eax
movss dword [esp + 0x30], xmm0
call fcn.10002875
movss xmm0, dword [0x10087b2c]
comiss xmm0, dword [esp + 0x3c]
pop ecx
pop ecx
ja 0x10047217
mov eax, dword [0x10184cc8]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
push dword [eax + esi + 0xf004]
lea eax, [esp + 0x3c]
push edi
push str.Pickup:__d__ModelID:__d
push 0x1f
push eax
call fcn.10043b35
movss xmm0, dword [esp + 0x44]
lea eax, [esp + 0x4c]
subss xmm0, dword [0x1008ded8]
add esp, 0x14
push eax
push 0xff00c800
push ecx
push ecx
mov ecx, dword [0x10193c6c]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp], xmm0
call fcn.1004379c
add esi, 0x14
inc edi
cmp esi, 0x14000
jl 0x100470fa
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
ret

Function at 0x10048c2a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push str.getFPS__
call fcn.1005eeb8
inc dword [0x10193afc]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xf0
cmp eax, dword [0x101992c8]
jbe 0x10048cc3
mov eax, dword [0x10193afc]
movss xmm2, dword [0x10193af0]
movss xmm3, dword [0x10193af4]
movss xmm0, dword [0x10193aec]
shl eax, 2
and dword [0x10193afc], 0
movss dword [0x10193af4], xmm2
addss xmm2, xmm3
movss dword [0x10193af8], xmm3
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [0x10193af0], xmm0
movss dword [0x10193aec], xmm1
addss xmm1, xmm0
addss xmm1, xmm2
mulss xmm1, dword [0x1008de4c]
movss dword [0x10193ae8], xmm1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101992c8], eax
fld dword [0x10193ae8]
ret
Function at 0x1004a395
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.mapMenuTeleport__
call fcn.1005eeb8
cmp dword [0x1017f707], 0
pop ecx
je 0x1004a3bc
cmp byte [0xba68a5], 5
jne 0x1004a465
cmp dword [0xba6774], 0
je 0x1004a465
push dword [0x1017f703]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, 0x10000
je 0x1004a465
cmp dword [0x1019970c], 0
je 0x1004a465
push esi
push edi
mov esi, 0xba8720
mov edi, 0xaf
mov eax, 0x1203
cmp word [esi + 0x1d], ax
jne 0x1004a45b
push 0
call fcn.10029566
movss xmm0, dword [esi]
pop ecx
mov ecx, dword [0x1019970c]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
movss dword [ebp - 8], xmm0
mov eax, dword [ecx]
call dword [eax + 0x38]
movss xmm0, dword [ebp - 8]
push ecx
push ecx
mov edx, dword [eax]
mov ecx, eax
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esp], xmm0
call dword [edx + 0x18]
fadd dword [0x1008deb8]
lea eax, [ebp - 0xc]
push 0
push eax
fstp dword [ebp - 4]
call fcn.1002daec
pop ecx
pop ecx
add esi, 0x28
sub edi, 1
jne 0x1004a3f6
pop edi
pop esi
leave
ret
Function at 0x1005e574
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101240a8]
sub esp, 0x40
cmp byte [eax + 0x162f], 0
je 0x1005e719
cmp dword [0x1019970c], 0
je 0x1005e719
cmp dword [eax + 0x3d3fe], 0
jne 0x1005e719
call fcn.100295a2
test eax, eax
jne 0x1005e719
mov eax, dword [0x10184ccc]
test eax, eax
je 0x1005e719
add eax, 0x26
je 0x1005e719
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call fcn.100413ab
pop ecx
test eax, eax
jne 0x1005e70a
mov eax, dword [0x101240a8]
cmp dword [eax + esi*4 + 0x3c416], 0
je 0x1005e70a
mov eax, dword [0x10184ccc]
mov eax, dword [eax + esi*4 + 0x26]
mov eax, dword [eax + 8]
test eax, eax
je 0x1005e60b
cmp dword [eax + 4], 0
jne 0x1005e70a
push esi
push esi
call fcn.10040ed6
pop ecx
push eax
lea eax, [ebp - 0x40]
push str._s__d_
push eax
call fcn.10006c57
mov eax, dword [0x10193c10]
add esp, 0x10
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
push str.Spectator_List:
push 0xc8ffffff
push ecx
push ecx
mov ecx, dword [0x10193c60]
addsd xmm0, qword [eax*8 + 0x10087b40]
mulsd xmm0, qword [0x1009b7a8]
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
and dword [esp], 0
call fcn.1004379c
lea eax, [ebp - 0x40]
movd xmm0, edi
push eax
mov eax, dword [0x10193c10]
cvtdq2pd xmm0, xmm0
push 0xfaffffff
push ecx
push ecx
mov ecx, dword [0x10193c60]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x10087b40]
mulsd xmm1, qword [0x1009b7a8]
addsd xmm1, qword [0x1009b7b0]
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 4], xmm0
and dword [esp], 0
call fcn.1004379c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x10199490]
jbe 0x1005e6f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xfa0
push fcn.10040ed6
push str._FF31FF_SPECTE_ADMIN_VAR_BASKAN
mov dword [0x10199490], eax
call fcn.10040aaf
pop ecx
pop ecx
push 5
push 0x3e8
push str.ySPEC_ADMIN_TESPIT_EDILDI
call fcn.1003796a
add esp, 0xc
add edi, 0x14
inc esi
cmp esi, 0x3ec
jl 0x1005e5cf
pop edi
pop esi
leave
ret
Function at 0x1005ec2c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push str.init__
call fcn.1005eeb8
cmp dword [0x101994d0], 0
pop ecx
jne 0x1005edb0
push 0xe4
mov edi, 0x101994f0
push edi
push dword [0x101994e8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
test eax, eax
je 0x1005ec88
push 0x5c
push edi
call fcn.100648a0
pop ecx
pop ecx
test eax, eax
je 0x1005ec88
push 0x5c
push edi
call fcn.100648a0
pop ecx
pop ecx
mov byte [eax], bl
jmp 0x1005ec91
push 0x2e
pop eax
mov word [0x101994f0], ax
mov eax, dword [0xc9ac08]
mov dword [0x1019971c], eax
mov ecx, dword [0xc9ac0c]
mov dword [0x10199720], ecx
mov edx, dword [0xc9ac10]
mov dword [0x10199724], edx
push esi
mov esi, dword [0xc9ac14]
mov dword [0x10199728], esi
push ecx
push edx
push esi
cmp eax, 2
jne 0x1005eccf
push str.OS:_Windows_Version__d._d._d
jmp 0x1005ecd4
push str.OS:_Not_Windows___d._d._d_
call fcn.1005ea9f
add esp, 0x10
call fcn.1003f1d2
pop esi
cmp dword [0x10163c8c], ebx
jne 0x1005ed1c
push ebx
push str.Youre_a_retard.
push str.Looks_like_youve_not_edited_the_.ini_file_like_you_were_told_to__n_nBefore_you_can_use_mod_sa__you_have_to_set__i_have_edited_the_ini_fqle__to_true._nWe_did_this_so_you_would_read_the_INI_file_to_see_the_configurability_of_mod_sa._n
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push edi
push str.sikici_sikici.ini
push str.notepad
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x1005edb3
call fcn.10041190
push 0xfa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x104]
push 0x1009ccc4
push eax
call fcn.1002b4c4
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x101994d0], eax
test eax, eax
jne 0x1005ed77
lea eax, [ebp - 0x104]
push eax
push str.Failed_to_load__s
call fcn.1005ea9f
pop ecx
pop ecx
jmp 0x1005ed15
push 0x1009cce4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10193c08], eax
test eax, eax
jne 0x1005edb0
lea eax, [ebp - 0x104]
push eax
push str._s_does_not_export_Direct3DCreate9__
call fcn.1005ea9f
pop ecx
pop ecx
push dword [0x101994d0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1005ed15
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x1007663a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100764b0
Function at 0x10004880
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi + 1]
lea esi, [edi + 1]
test bl, bl
je 0x100048b0
nop
cmp bl, 0x2f
je 0x1000489a
cmp bl, 0x5c
jne 0x100048a8
push edi
mov byte [esi], 0
call fcn.10041f45
add esp, 4
mov byte [esi], bl
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x10004890
pop edi
pop esi
pop ebx
ret

Function at 0x1000bef0
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebp
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
mov dword [esp + 0xc], edx
test edi, edi
jne 0x1000bf28
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
test ebp, ebp
je 0x1000c022
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x1000bf8c
mov ebp, 7
sub ebp, edi
nop
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add edi, 8
add ecx, esi
add esi, eax
add ecx, esi
lea eax, [edi + ebp]
cmp eax, edx
jb 0x1000bf40
xor ebp, ebp
cmp ebx, edx
jae 0x1000bfe2
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x1000bfd3
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, ebp
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebp, esi
add edi, 2
add esi, eax
add ebx, esi
sub edx, 1
jne 0x1000bfb0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jae 0x1000bfdd
jmp 0x1000bfd5
mov ebx, ebp
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
lea eax, [ebx + ebp]
add ecx, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
sub ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
jne 0x1000bf31
pop ebx
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10014af0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [edi]
cmp ebx, 8
jb 0x10014b8b
mov edx, ebx
shr edx, 3
mov ecx, edx
neg ecx
lea ebx, [ebx + ecx*8]
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x10077660]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
sub edx, 1
jne 0x10014b12
test bl, 4
je 0x10014bcc
xor eax, dword [esi]
sub ebx, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10077660]
add esi, 4
test ebx, ebx
je 0x10014bea
movzx edx, byte [esi]
lea esi, [esi + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10077660]
sub ebx, 1
jne 0x10014bd0
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x100223ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002242e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002242e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002242e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002242e
cmp dword [ecx + 0x74], 0xe
jbe 0x1002242e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002505b
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 + 0x1007d700]
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 0x1002509b
cmp byte [ebx], 0xa
jne 0x1002509b
or byte [edi + eax + 0x28], 4
jmp 0x100250a0
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 0x1002519f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10025182
inc eax
cmp dl, 0xd
je 0x100250cc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100250f2
cmp eax, ecx
jae 0x10025100
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 0x100250b4
jmp 0x1002519f
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 0x1002517d
cmp dword [ebp - 0x10], 0
je 0x1002517d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1007d700]
test byte [eax + edi + 0x28], 0x48
je 0x10025157
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10025142
mov byte [esi], dl
jmp 0x10025153
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1007d700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002519f
cmp byte [ebp - 1], 0xa
jne 0x10025166
cmp esi, ebx
jne 0x10025166
mov byte [esi], 0xa
jmp 0x1002519e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100486bc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002519f
mov byte [esi], 0xd
jmp 0x1002519e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1007d700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002519c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002519f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100251a8
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 + 0x1007d700]
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 0x100251ee
cmp word [ebx], dx
jne 0x100251ee
or byte [eax + edi + 0x28], 4
jmp 0x100251f3
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 0x10025356
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 0x10025336
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10025234
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002526a
cmp eax, edx
jae 0x10025278
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 0x1002520f
jmp 0x10025356
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 0x10025331
cmp dword [ebp - 0x18], 0
je 0x10025331
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007d700]
test byte [eax + edi + 0x28], 0x48
je 0x10025307
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 0x100252cb
mov word [esi], cx
jmp 0x10025302
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007d700]
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 + 0x1007d700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007d700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10025356
pop eax
cmp word [ebp - 4], ax
jne 0x10025317
cmp esi, ebx
jne 0x10025317
mov word [esi], ax
jmp 0x10025353
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100486bc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10025356
push 0xd
pop eax
jmp 0x10025312
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007d700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10025350
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10025356
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10027890
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1006f37c
push esi
call fcn.10052290
pop ecx
pop ecx
test eax, eax
jne 0x100278be
xor al, al
jmp 0x1002793b
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.100274ed
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100278f8
push dword [ebp - 0x210]
call fcn.10041f2a
xor al, al
jmp 0x10027939
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100278fe
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1002791e
push edx
call fcn.100277c7
pop ecx
test al, al
je 0x100278e9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1002792c
mov bl, 1
push dword [ebp - 0x210]
call fcn.10041f2a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10015563
leave
ret
Function at 0x1004d45a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100705b4
push 0x100705ac
push str.FlsAlloc
push 0x1f
call fcn.1004d128
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d48e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
jmp 0x1004d494
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004d4d8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100705c4
push 0x100705bc
push str.FlsGetValue
push 0x21
call fcn.1004d128
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d50f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004d517
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100705cc
push 0x100705c4
push str.FlsSetValue
push 0x22
call fcn.1004d128
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d551
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006e184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004e59a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004e3a8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004e709
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004e709
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004e6be
jg 0x1004e5f6
test eax, eax
je 0x1004e6b4
push 1
push 0x1000
call fcn.10050e3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004e619
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004e6ab
push 0x8000
push ebx
call fcn.1004be7e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004e642
jg 0x1004e63d
cmp ecx, 0x1000
jb 0x1004e642
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10049071
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004e687
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004e63d
jl 0x1004e66e
test ecx, ecx
jne 0x1004e62f
push dword [ebp - 0xc]
push ebx
call fcn.1004be7e
push esi
call fcn.1004bc5c
add esp, 0xc
xor ebx, ebx
jmp 0x1004e717
cmp byte [edi + 0x24], 0
je 0x1004e69e
cmp dword [edi + 0x20], 5
jne 0x1004e69e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004e6a9
mov ebx, dword [edi + 0x18]
jmp 0x1004e6ab
xor ebx, ebx
push esi
call fcn.1004bc5c
pop ecx
jmp 0x1004e717
test ecx, ecx
jg 0x1004e680
jl 0x1004e6be
test eax, eax
jae 0x1004e680
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100486bc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004e6de
cmp byte [edi + 0x1c], 0
je 0x1004e680
jmp 0x1004e70f
push ebx
call fcn.1004e112
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004e680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004e717
cmp byte [edi + 0x1c], 0
je 0x1004e714
mov ebx, dword [edi + 0x18]
jmp 0x1004e717
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100486bc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10055dd3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10055ca7