joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aab40
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 [0x591014]
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.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004a9540
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4aac1a
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4aac1a
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004af300
test al, al
jne 0x4aac4c
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 0x4aac3a
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4aac66
lea ecx, [esp + 0x28]
call fcn.004af3a0
lea ecx, [esp + 0x30]
call fcn.004a95a0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004c66e3
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 0x4aac11
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.00513e90
jmp 0x4aabcc
int3

Function at 0x4aac70
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 [0x591014]
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.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004a9540
test ebx, ebx
js 0x4aad36
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004af300
test al, al
jne 0x4aad3b
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 0x4aad4f
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4aad61
lea ecx, [esp + 0x10]
call fcn.004af3a0
lea ecx, [esp + 0x20]
call fcn.004a95a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4aad16
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.00513e90
jmp 0x4aacea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4aad0d
int3
Function at 0x4aad70
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 [0x591014]
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.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004a9540
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x4aae40
cmp dword [ebp + 0x14], 0
js 0x4aae40
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004af300
test al, al
jne 0x4aae60
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.004af3a0
lea ecx, [esp + 0x30]
call fcn.004a95a0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004c66e3
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.00513e90
jmp 0x4aadf7

Function at 0x4aae80
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 0x4aaebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4aaed2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4aaeb4
mov dword [esi], ebx
call fcn.004a2700
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 0x4aaee9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004a2700
push dword [esi]
call fcn.004ab080
add esp, 4
mov dword [esi], 0
jmp 0x4aaea5
int3
Function at 0x4aaf20
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 0x4aaf86
cmp dword [esi], edi
je 0x4aaf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4aaf90
cmp ebx, 2
jb 0x4aaf5e
mov dword [esi], edi
mov edi, eax
call fcn.004a2700
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 0x4aafad
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004a2700
mov ecx, dword [ebp + 8]
jmp 0x4aaf3c
mov dword [ebp - 0x10], eax
call fcn.004a2700
push dword [esi]
call fcn.004ab080
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4aaf4e
mov edi, ecx
call fcn.004a2700
push dword [edi]
call fcn.004ab080
add esp, 4
mov dword [edi], 0
jmp 0x4aaf7a

Function at 0x4ab280
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 [0x598cd4]
test dl, 1
je 0x4ab29f
call fcn.004b8870
pop ebp
jmp fcn.004b8890
test ecx, ecx
je 0x4ab2ae
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4ab2b0
pop ebp
ret
int3
Function at 0x4b6530
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 0x4b6568
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 + 0x57ffc8]
inc esi
cmp ecx, esi
jne 0x4b6550
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b7150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a7608]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b717b
mov ecx, 0x5a7600
pop ebp
jmp fcn.00451c90
push 0x5a7608
call fcn.004c5d07
add esp, 4
cmp dword [0x5a7608], 0xffffffff
jne 0x4b7170
xor eax, eax
mov dword [0x5a7604], eax
mov dword [0x5a7600], eax
mov ecx, 0x5a7600
push eax
call fcn.00451d30
push 0x5a7608
call fcn.004c5d7d
add esp, 4
jmp 0x4b7170

Function at 0x4b8550
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5a7690]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b859d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, 0x5a768c
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5a7690
call fcn.004c5d07
add esp, 4
cmp dword [0x5a7690], 0xffffffff
jne 0x4b8583
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004c9370
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.004c5c68
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5a76c0]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b8646
mov ecx, esi
push ebx
push 0x5a769c
push edi
call fcn.0046a770
mov dword [0x5a768c], esi
push 0x5a7690
call fcn.004c5d7d
add esp, 4
jmp 0x4b8583
push 0x5a76c0
call fcn.004c5d07
add esp, 4
cmp dword [0x5a76c0], 0xffffffff
jne 0x4b8620
xorps xmm0, xmm0
movups xmmword [0x5a76ac], xmm0
movups xmmword [0x5a769c], xmm0
mov dword [0x5a76bc], 0
push 0x5a769c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5a76c0
call fcn.004c5d7d
add esp, 4
jmp 0x4b8620
Function at 0x4b86a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5a7690]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b86f0
mov esi, dword [0x5a768c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5a7690
call fcn.004c5d07
add esp, 4
cmp dword [0x5a7690], 0xffffffff
jne 0x4b86d3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004c9370
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.004c5c68
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5a76c0]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b8799
mov ecx, esi
push ebx
push 0x5a769c
push edi
call fcn.0046a770
mov dword [0x5a768c], esi
push 0x5a7690
call fcn.004c5d7d
add esp, 4
jmp 0x4b86d3
push 0x5a76c0
call fcn.004c5d07
add esp, 4
cmp dword [0x5a76c0], 0xffffffff
jne 0x4b8773
xorps xmm0, xmm0
movups xmmword [0x5a76ac], xmm0
movups xmmword [0x5a769c], xmm0
mov dword [0x5a76bc], 0
push 0x5a769c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5a76c0
call fcn.004c5d7d
add esp, 4
jmp 0x4b8773
Function at 0x4b91f0
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 [0x591014]
xor eax, ebp
mov dword [esp + 0x48], eax
cmp ebx, 0x30
ja 0x4b932d
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 0x4b92cd
xor eax, eax
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp ebx, eax
jne 0x4b92c1
lea edi, [esi + 0xf4]
mov eax, dword [0x5a76d8]
bt eax, 0x19
jae 0x4b9331
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
lea edx, [esp + 0x30]
mov ebx, dword [esp + 0xc]
je 0x4b9309
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movups xmm0, xmmword [edx]
movups xmmword [ebx], xmm0
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4b9318
bt eax, 9
jae 0x4b9353
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x4b92fb
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
call fcn.00518b00
add esp, 0xc
mov ecx, 0x518a00
mov eax, 0x519290
jmp 0x4b92fb

Function at 0x4b9d50
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 0x4b9dce
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4b9db7
lea eax, [edi + 1]
cmp eax, 2
jb 0x4b9d9b
mov dword [esi], edi
call fcn.004a2700
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x4b9dd2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004a2700
push dword [esi]
call fcn.004ab080
add esp, 4
mov dword [esi], 0
jmp 0x4b9d8c
mov byte [esi + 4], 1
int3
Function at 0x4c25c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x476f70
lea eax, [ebp - 0x14]
push 0
push eax
push 0x476e20
push 0x5a7824
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4c263a
xor esi, esi
cmp dword [0x5a7828], 0
jne 0x4c2626
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5a782c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4c2626
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004da990
int3

Function at 0x4c2e40
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 0x4c2e78
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 0x4c2e52
cmp edx, 1
je 0x4c2e99
cmp edx, 2
je 0x4c2e90
cmp edx, 3
jne 0x4c2ea4
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 0x4d57a1
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.004d5944
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d5919
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d5919
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d58c8
jg 0x4d57fa
test eax, eax
je 0x4d58be
push 1
push 0x1000
call fcn.004ab1a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d5820
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d58b5
push 0x8000
push ebx
call fcn.004daa53
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 0x4d584c
jg 0x4d5847
cmp ecx, 0x1000
jb 0x4d584c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004de041
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d5891
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 0x4d5847
jl 0x4d5878
test ecx, ecx
jne 0x4d5839
push dword [ebp - 0xc]
push ebx
call fcn.004daa53
push esi
call fcn.004ab100
add esp, 0xc
xor edi, edi
jmp 0x4d592a
cmp byte [edi + 0x24], 0
je 0x4d58a8
cmp dword [edi + 0x20], 5
jne 0x4d58a8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d58b3
mov edi, dword [edi + 0x18]
jmp 0x4d58b5
xor edi, edi
push esi
call fcn.004ab100
pop ecx
jmp 0x4d592a
test ecx, ecx
jg 0x4d588a
jl 0x4d58c8
test eax, eax
jae 0x4d588a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d9b5a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d58eb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d588a
jmp 0x4d5922
push ebx
call fcn.004d8ebd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d588a
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 0x4d592a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d5927
mov edi, dword [edi + 0x18]
jmp 0x4d592a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d9b5a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d89b8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x56628c
push esi
call fcn.004e8a51
pop ecx
pop ecx
test eax, eax
jne 0x4d89e6
xor al, al
jmp 0x4d8a63
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.004d8749
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4d8a20
push dword [ebp - 0x210]
call fcn.004ab100
xor al, al
jmp 0x4d8a61
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4d8a26
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4d8a46
push edx
call fcn.004d8909
pop ecx
test al, al
je 0x4d8a11
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4d8a54
mov bl, 1
push dword [ebp - 0x210]
call fcn.004ab100
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c66e3
leave
ret
Function at 0x4da56f
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 + 0x595e80]
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 0x4da5af
cmp byte [ebx], 0xa
jne 0x4da5af
or byte [eax + edi + 0x28], 4
jmp 0x4da5b4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4da6b2
mov al, byte [edx]
cmp al, 0x1a
je 0x4da694
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4da5e3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4da608
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4da612
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 0x4da5c5
jmp 0x4da6b2
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 0x4da68f
cmp dword [ebp - 0xc], 0
je 0x4da68f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x595e80]
test byte [eax + edi + 0x28], 0x48
je 0x4da669
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4da654
mov byte [esi], dl
jmp 0x4da665
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x595e80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4da6b2
cmp byte [ebp - 1], 0xa
jne 0x4da678
cmp esi, ebx
jne 0x4da678
mov byte [esi], 0xa
jmp 0x4da6b1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d9b5a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4da6b2
mov byte [esi], 0xd
jmp 0x4da6b1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x595e80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4da6ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4da6b2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4da6bb
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 + 0x595e80]
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 0x4da6fe
cmp word [esi], dx
jne 0x4da6fe
or byte [edi + eax + 0x28], 4
jmp 0x4da703
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 0x4da83c
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 0x4da81c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4da745
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4da77b
cmp eax, edx
jae 0x4da787
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 0x4da71d
jmp 0x4da83c
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 0x4da818
cmp dword [ebp - 0x14], 0
je 0x4da818
mov eax, dword [ebx*4 + 0x595e80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4da7f0
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4da836
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x595e80]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x595e80]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x595e80]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4da839
pop ebx
cmp word [ebp - 4], bx
jne 0x4da801
cmp esi, dword [ebp + 0xc]
jne 0x4da801
mov word [esi], bx
jmp 0x4da839
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d9b5a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4da83c
push 0xd
jmp 0x4da835
mov ecx, dword [ebx*4 + 0x595e80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4da833
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4da83c
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