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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
push edi
nop word [eax + eax]
mov edx, dword [esp + 0x14]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [esp + 0x14]
shr esi, 4
mov edx, dword [ebp + ecx*4]
movzx ecx, word [eax + edi*2 + 8]
add edx, dword [ebp + esi*4]
mov eax, ecx
add edx, dword [esp + 0x18]
xor ecx, 0x7f0
mov esi, dword [esp + 0x1c]
shr eax, 4
shr ecx, 4
mov eax, dword [ebp + eax*4]
add eax, edx
mov dword [esi + ebx*4], eax
mov eax, dword [ebp + ecx*4]
add eax, edx
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4d9480
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4db2a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4db2e4
pop esi
ret
Function at 0x4eced0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
test ebp, 0xffff7fff
jne 0x4ecfab
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ecf4a
call ebx
cmp eax, 3
jne 0x4ecf31
push edi
call fcn.004ed160
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ecf25
call fcn.0045ccd2
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ecf4a
call ebx
push eax
call fcn.004ece10
push esi
call fcn.0056172e
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4ecfa3
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x4ecf6a
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4ecf71
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call fcn.0056172e
add esp, 4
cmp edi, 0xffffffff
jne 0x4ecf93
call ebx
push eax
call fcn.004ece10
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call fcn.0045d343
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x4ed03f
push dword [esp + 0x1c]
push ebp
push edi
call fcn.005869e7
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4ed0c6
call fcn.0045ccd2
cmp dword [eax], 0xd
jne 0x4ed01e
test ebp, 0x100
je 0x4ed01e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ecff4
call ebx
push eax
call fcn.004ece10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4ed00b
call fcn.0045ccd2
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call fcn.0045ccd2
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call fcn.0045ccd2
cmp dword [eax], 2
jne 0x4ed0c6
push edi
call fcn.004ed160
mov esi, eax
add esp, 4
test esi, esi
je 0x4ecf12
push dword [esp + 0x1c]
push ebp
push esi
call fcn.00586a8d
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x4ed0b6
call fcn.0045ccd2
cmp dword [eax], 0xd
jne 0x4ed0b6
test ebp, 0x100
je 0x4ed0b6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ed08c
call ebx
push eax
call fcn.004ece10
add esp, 4
push esi
call fcn.0056172e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4ed0ab
call fcn.0045ccd2
push esi
mov dword [eax], 0x15
call fcn.0056172e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0045ccd2
mov dword [eax], 0xd
push esi
call fcn.0056172e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4ed0d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4ed0e7
call fcn.0045ccd2
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
je 0x4ed158
push eax
call fcn.0045d2d9
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4ed12d
call fcn.0045ccd2
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x4ed158
cmp eax, 5
jne 0x4ed146
call fcn.0045ccd2
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004ece10
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
xor eax, eax
ret

Function at 0x4ed370
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4ed387
call fcn.0045ccd2
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call fcn.0045d2d9
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ed3d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ed3c4
call fcn.0045ccd2
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004ece10
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
Function at 0x4ffde0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, 8
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov edx, dword [edi + 0xaa4]
lea ebp, [edi + 0xaac]
mov eax, dword [edi + 0xaa8]
sub ecx, edx
and eax, dword [esp + 0x18]
shr esi, cl
mov ecx, edx
shl eax, cl
add esi, eax
imul eax, esi, 0x600
add ebp, eax
cmp byte [esp + 0x20], bl
jne 0x4ffe35
push dword [esp + 0x28]
push 8
push ebp
call fcn.00501600
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x28]
mov esi, 0x100
mov edi, dword [esp + 0x24]
add edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x5d3cc0]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4ffe44
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x501600
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
add ecx, eax
mov eax, dword [esp + 0xc]
nop dword [eax]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [eax + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
movzx edx, byte [edx + 0x5d3cc0]
add edi, edx
cmp ecx, 1
jne 0x501620
mov eax, edi
pop edi
pop esi
ret
Function at 0x504480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x5044bd
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x14a4f78]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x5044a0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x50456c
sub ecx, 1
je 0x504550
sub ecx, 1
je 0x504528
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x543fc0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x54416f
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x54416f
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x543ff6
mov eax, dword [esi + 4]
test eax, eax
je 0x544006
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x544000
push 0x18
call fcn.00561723
add esp, 4
mov edi, eax
test edi, edi
jne 0x544010
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov dword [edi], ebx
test eax, eax
je 0x544070
test esi, esi
je 0x544055
cmp dword [esi], 0
jne 0x54403b
cmp dword [esi + 0xc], 0
jne 0x544041
cmp dword [esi + 4], 0
jne 0x54403b
cmp dword [esi + 8], 0
je 0x544055
cmp dword [esi + 0xc], 0
je 0x544070
cmp dword [esi + 4], 0
jne 0x54404d
cmp dword [esi + 8], 0
je 0x544070
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x544070
mov dword [eax], 0
mov dword [eax + 4], 0x5105c0
mov dword [eax + 8], 0x5105d0
mov dword [eax + 0xc], 0x510550
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x544280
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x5440d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005409c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x544168
test esi, esi
je 0x5440c5
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x5440ce
push dword [esi]
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.0056172e
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 5
cmp eax, 6
ja case.0x5440e1.2
jmp dword [eax*4 + 0x544178]
mov eax, 0xfffffff1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop ebp
mov eax, 0xfffffffe
pop ebx
ret

Function at 0x54db20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x54db40
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x54db40
mov eax, dword [eax + 0x44]
test eax, eax
je 0x54db40
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x560801
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x15243ec], 0
push ebx
push esi
mov esi, 0x15243f4
jne 0x56082d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x152440c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x15243ec], 1
push dword [0x152440c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5608ca
push 0x14
push 8
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x5608f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x15243f0]
test eax, eax
je 0x56086f
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x15243f0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x5608f9
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x152440c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5608f4
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x561050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56107d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56107d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x578fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x14a40c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5dbf38
push esi
call fcn.00462399
pop ecx
pop ecx
test eax, eax
jne 0x578fe7
xor al, al
jmp 0x579064
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.00578c4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x579021
push dword [ebp - 0x210]
call fcn.0056172e
xor al, al
jmp 0x579062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x579027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x579047
push edx
call fcn.00578ef0
pop ecx
test al, al
je 0x579012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x579055
mov bl, 1
push dword [ebp - 0x210]
call fcn.0056172e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045630f
leave
ret
Function at 0x57ae11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00560f10
mov eax, dword [0x14a40c8]
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.004686e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x57ae53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57afaf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005611a0
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 + 0x14aa4c8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046b3b8
mov ecx, dword [esi*4 + 0x14aa4c8]
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 0x57afa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x57afa8
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 0x57afa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b3b8
add esp, 0x14
test edx, edx
jl 0x57afa8
jg 0x57af1e
test eax, eax
jb 0x57afa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x57afa8
jl 0x57af38
cmp dword [ebp - 0x1008], eax
ja 0x57afa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x57af56
test ebx, ebx
je 0x57af8f
cmp ecx, edi
jae 0x57af8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x57af70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57af7c
cmp byte [ecx + 1], 0xa
jne 0x57af7c
inc ecx
jmp 0x57af7c
movzx eax, al
movsx eax, byte [eax + 0x14a4820]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x57af56
cmp edx, ebx
jne 0x57af56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x57afad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045630f
leave
ret
Function at 0x590c36
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.00590aa5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x590da5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x590da5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x590d5a
jg 0x590c92
test eax, eax
je 0x590d50
push 1
push 0x1000
call fcn.0045b9e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x590cb5
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x590d47
push 0x8000
push ebx
call fcn.00456a58
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x590cde
jg 0x590cd9
cmp ecx, 0x1000
jb 0x590cde
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00469368
add esp, 0x10
cmp eax, 0xffffffff
je 0x590d23
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 0x590cd9
jl 0x590d0a
test ecx, ecx
jne 0x590ccb
push dword [ebp - 0xc]
push ebx
call fcn.00456a58
push esi
call fcn.0045a430
add esp, 0xc
xor ebx, ebx
jmp 0x590db3
cmp byte [edi + 0x24], 0
je 0x590d3a
cmp dword [edi + 0x20], 5
jne 0x590d3a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x590d45
mov ebx, dword [edi + 0x18]
jmp 0x590d47
xor ebx, ebx
push esi
call fcn.0045a430
pop ecx
jmp 0x590db3
test ecx, ecx
jg 0x590d1c
jl 0x590d5a
test eax, eax
jae 0x590d1c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b3d6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x590d7a
cmp byte [edi + 0x1c], 0
je 0x590d1c
jmp 0x590dab
push ebx
call fcn.0045d2d9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x590d1c
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 0x590db3
cmp byte [edi + 0x1c], 0
je 0x590db0
mov ebx, dword [edi + 0x18]
jmp 0x590db3
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046b3d6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x594e80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x14a40c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x594ec3
call fcn.0045ccbf
mov dword [eax], 0xf
call fcn.0045ccd2
mov dword [eax], 0xd
call fcn.0045b68d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045630f
leave
ret
test eax, eax
jne 0x594eca
inc eax
jmp 0x594eb7
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 0x594eb5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x594eb7

Function at 0x59859f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x14a90f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x152483c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x1524840], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0059b559
mov dword [esi + 0x58], 0x599582
mov eax, esi
mov dword [esi + 0x5c], 0x5995ce
mov dword [esi + 0x10], fcn.005990ba
mov dword [esi + 0x30], 0x598e95
mov dword [esi + 0x64], 0x599663
mov dword [esi + 0x60], 0x599617
mov dword [esi + 0x34], 0x598960
mov dword [esi + 0x24], 0x598937
mov dword [esi + 0x28], 0x59890c
mov dword [esi + 0x2c], 0x598860
mov dword [esi + 0x44], 0x599352
mov dword [esi + 0x68], 0x598660
mov dword [esi + 0x6c], 0x599865
pop esi
ret 4