joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e1d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 8], ecx
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x3e
push str....._base_files_file_win.cc
push str.Read
push esi
call fcn.00495240
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.0049ca20
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x49e2aa
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x49e2aa
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004a2ba0
test al, al
jne 0x49e2dc
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e2ca
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x49e2f6
lea ecx, [esp + 0x28]
call fcn.004a2c40
lea ecx, [esp + 0x30]
call fcn.0049caa0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x49e2a1
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.0050b9e0
jmp 0x49e25c
int3

Function at 0x49e300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.00495240
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.0049ca20
test ebx, ebx
js 0x49e3c6
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004a2ba0
test al, al
jne 0x49e3cb
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push 0
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e3df
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x49e3f1
lea ecx, [esp + 0x10]
call fcn.004a2c40
lea ecx, [esp + 0x20]
call fcn.0049caa0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x49e3a6
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.0050b9e0
jmp 0x49e37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x49e39d
int3
Function at 0x49e400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x7b
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.00495240
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.0049ca20
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x49e4d0
cmp dword [ebp + 0x14], 0
js 0x49e4d0
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004a2ba0
test al, al
jne 0x49e4f0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
lea esi, [esp + 0xc]
mov dword [esi], 0xffffffff
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esi]
lea ecx, [esp + 0x28]
call fcn.004a2c40
lea ecx, [esp + 0x30]
call fcn.0049caa0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004babe3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push edi
push str.File::Write
call fcn.0050b9e0
jmp 0x49e487

Function at 0x49e510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x49e54b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x49e562
lea eax, [ebx + 1]
cmp eax, 2
jb 0x49e544
mov dword [esi], ebx
call fcn.00495270
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x49e579
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00495270
push dword [esi]
call fcn.0049e730
add esp, 4
mov dword [esi], 0
jmp 0x49e535
int3
Function at 0x49e5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edi, dword [ecx]
mov dword [ecx], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x49e616
cmp dword [esi], edi
je 0x49e5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x49e620
cmp ebx, 2
jb 0x49e5ee
mov dword [esi], edi
mov edi, eax
call fcn.00495270
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov byte [ecx + 4], 0
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x49e63d
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00495270
mov ecx, dword [ebp + 8]
jmp 0x49e5cc
mov dword [ebp - 0x10], eax
call fcn.00495270
push dword [esi]
call fcn.0049e730
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x49e5de
mov edi, ecx
call fcn.00495270
push dword [edi]
call fcn.0049e730
add esp, 4
mov dword [edi], 0
jmp 0x49e60a

Function at 0x49e960
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [0x590ae4]
test dl, 1
je 0x49e97f
call fcn.004ac790
pop ebp
jmp fcn.004ac7b0
test ecx, ecx
je 0x49e98e
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x49e990
pop ebp
ret
int3
Function at 0x4aa400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4aa438
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5794c4]
inc esi
cmp ecx, esi
jne 0x4aa420
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ab030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x59f408]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ab05b
mov ecx, 0x59f400
pop ebp
jmp fcn.00445a20
push 0x59f408
call fcn.004ba267
add esp, 4
cmp dword [0x59f408], 0xffffffff
jne 0x4ab050
xor eax, eax
mov dword [0x59f404], eax
mov dword [0x59f400], eax
mov ecx, 0x59f400
push eax
call fcn.00445ac0
push 0x59f408
call fcn.004ba2dd
add esp, 4
jmp 0x4ab050

Function at 0x4ac470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x59f490]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ac4bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
mov eax, 0x59f48c
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x59f490
call fcn.004ba267
add esp, 4
cmp dword [0x59f490], 0xffffffff
jne 0x4ac4a3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004bd870
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004ba1be
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x59f4c0]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ac566
mov ecx, esi
push ebx
push 0x59f49c
push edi
call fcn.0045de60
mov dword [0x59f48c], esi
push 0x59f490
call fcn.004ba2dd
add esp, 4
jmp 0x4ac4a3
push 0x59f4c0
call fcn.004ba267
add esp, 4
cmp dword [0x59f4c0], 0xffffffff
jne 0x4ac540
xorps xmm0, xmm0
movups xmmword [0x59f4ac], xmm0
movups xmmword [0x59f49c], xmm0
mov dword [0x59f4bc], 0
push 0x59f49c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x59f4c0
call fcn.004ba2dd
add esp, 4
jmp 0x4ac540
Function at 0x4ac5c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x59f490]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ac610
mov esi, dword [0x59f48c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x59f490
call fcn.004ba267
add esp, 4
cmp dword [0x59f490], 0xffffffff
jne 0x4ac5f3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004bd870
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004ba1be
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x59f4c0]
mov ecx, dword [0x58e4fc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ac6b9
mov ecx, esi
push ebx
push 0x59f49c
push edi
call fcn.0045de60
mov dword [0x59f48c], esi
push 0x59f490
call fcn.004ba2dd
add esp, 4
jmp 0x4ac5f3
push 0x59f4c0
call fcn.004ba267
add esp, 4
cmp dword [0x59f4c0], 0xffffffff
jne 0x4ac693
xorps xmm0, xmm0
movups xmmword [0x59f4ac], xmm0
movups xmmword [0x59f49c], xmm0
mov dword [0x59f4bc], 0
push 0x59f49c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x59f4c0
call fcn.004ba2dd
add esp, 4
jmp 0x4ac693
Function at 0x4ad130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [esp + 0x48], eax
cmp ebx, 0x30
ja 0x4ad26d
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x30]
movdqa xmmword [eax], xmm0
movdqa xmmword [eax - 0x10], xmm0
movdqa xmmword [eax - 0x20], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esi + 0xfc]
mov dword [esp + 0xc], eax
call dword [section..00cfg]
lea eax, [esp + 0x10]
push esi
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
call ecx
add esp, 0xc
test ebx, ebx
je 0x4ad20d
xor eax, eax
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp ebx, eax
jne 0x4ad201
lea edi, [esi + 0xf4]
mov eax, dword [0x59f4d8]
bt eax, 0x19
jae 0x4ad271
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
test edi, edi
je 0x4ad241
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x30]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004babe3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4ad258
bt eax, 9
jae 0x4ad293
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x4ad23b
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00510e50
add esp, 0xc
mov ecx, 0x510d50
mov eax, 0x5115e0
jmp 0x4ad23b

Function at 0x4add50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x4addce
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4addb7
lea eax, [edi + 1]
cmp eax, 2
jb 0x4add9b
mov dword [esi], edi
call fcn.00495270
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x4addd2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00495270
push dword [esi]
call fcn.0049e730
add esp, 4
mov dword [esi], 0
jmp 0x4add8c
mov byte [esi + 4], 1
int3
Function at 0x4b6a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x469bd0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x469a80
push 0x59f618
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4b6aea
xor esi, esi
cmp dword [0x59f61c], 0
jne 0x4b6ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x59f620]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4b6ad6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004cc3d0
int3

Function at 0x4b73e0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edx
cmp edx, 4
jb 0x4b7418
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x4b73f2
cmp edx, 1
je 0x4b7439
cmp edx, 2
je 0x4b7430
cmp edx, 3
jne 0x4b7444
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4c71f1
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]
push dword [ebp + 0xc]
push ebx
call fcn.004c7394
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c7369
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c7369
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c7318
jg 0x4c724a
test eax, eax
je 0x4c730e
push 1
push 0x1000
call fcn.0049e880
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c7270
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4c7305
push 0x8000
push ebx
call fcn.004cc493
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c729c
jg 0x4c7297
cmp ecx, 0x1000
jb 0x4c729c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004cfcdd
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c72e1
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 0x4c7297
jl 0x4c72c8
test ecx, ecx
jne 0x4c7289
push dword [ebp - 0xc]
push ebx
call fcn.004cc493
push esi
call fcn.0049e7e0
add esp, 0xc
xor edi, edi
jmp 0x4c737a
cmp byte [edi + 0x24], 0
je 0x4c72f8
cmp dword [edi + 0x20], 5
jne 0x4c72f8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c7303
mov edi, dword [edi + 0x18]
jmp 0x4c7305
xor edi, edi
push esi
call fcn.0049e7e0
pop ecx
jmp 0x4c737a
test ecx, ecx
jg 0x4c72da
jl 0x4c7318
test eax, eax
jae 0x4c72da
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cb59a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c733b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c72da
jmp 0x4c7372
push ebx
call fcn.004ca8fd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c72da
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4c737a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c7377
mov edi, dword [edi + 0x18]
jmp 0x4c737a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cb59a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ca3f7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x56028c
push esi
call fcn.004da701
pop ecx
pop ecx
test eax, eax
jne 0x4ca425
xor al, al
jmp 0x4ca4a2
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.004ca188
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4ca45f
push dword [ebp - 0x210]
call fcn.0049e7e0
xor al, al
jmp 0x4ca4a0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ca465
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4ca485
push edx
call fcn.004ca348
pop ecx
test al, al
je 0x4ca450
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ca493
mov bl, 1
push dword [ebp - 0x210]
call fcn.0049e7e0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004babe3
leave
ret
Function at 0x4cbfaf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x58eea0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cbfef
cmp byte [ebx], 0xa
jne 0x4cbfef
or byte [eax + edi + 0x28], 4
jmp 0x4cbff4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4cc0f2
mov al, byte [edx]
cmp al, 0x1a
je 0x4cc0d4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4cc023
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4cc048
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4cc052
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4cc005
jmp 0x4cc0f2
push 0
lea eax, [ebp - 0xc]
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 0x4cc0cf
cmp dword [ebp - 0xc], 0
je 0x4cc0cf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x58eea0]
test byte [eax + edi + 0x28], 0x48
je 0x4cc0a9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cc094
mov byte [esi], dl
jmp 0x4cc0a5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x58eea0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cc0f2
cmp byte [ebp - 1], 0xa
jne 0x4cc0b8
cmp esi, ebx
jne 0x4cc0b8
mov byte [esi], 0xa
jmp 0x4cc0f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cb59a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cc0f2
mov byte [esi], 0xd
jmp 0x4cc0f1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x58eea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cc0ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cc0f2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cc0fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x58eea0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cc13e
cmp word [esi], dx
jne 0x4cc13e
or byte [edi + eax + 0x28], 4
jmp 0x4cc143
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4cc27c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4cc25c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4cc185
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cc1bb
cmp eax, edx
jae 0x4cc1c7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4cc15d
jmp 0x4cc27c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cc258
cmp dword [ebp - 0x14], 0
je 0x4cc258
mov eax, dword [ebx*4 + 0x58eea0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4cc230
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4cc276
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x58eea0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x58eea0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x58eea0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4cc279
pop ebx
cmp word [ebp - 4], bx
jne 0x4cc241
cmp esi, dword [ebp + 0xc]
jne 0x4cc241
mov word [esi], bx
jmp 0x4cc279
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004cb59a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4cc27c
push 0xd
jmp 0x4cc275
mov ecx, dword [ebx*4 + 0x58eea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cc273
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cc27c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret