joyce8/EMBER2024-capa huggingface dataset:
Function at 0x506670
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
jne 0x506710
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push esi
push 0x5063f0
push dword [0x5b6e34]
push 0
call fcn.0052d576
mov ecx, dword [ebp - 8]
mov edx, eax
add esp, 0x18
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
test edx, edx
je 0x50671e
mov eax, dword [esi + 0x20]
sub eax, 0
je 0x5066dd
sub eax, 1
je 0x5066d9
sub eax, 1
jne 0x50673a
mov eax, 2
jmp 0x5066e2
xor eax, eax
jmp 0x5066e2
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x506748
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x506764
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5a2900
lea eax, [ebp - 1]
push eax
call fcn.00513a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.00505f50
push 0x5a2918
mov eax, ecx
push eax
call fcn.00513a04
push 0x5a2900
lea eax, [ebp - 1]
push eax
call fcn.00513a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.00505f50
push 0x5a2918
mov eax, ecx
push eax
call fcn.00513a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.00505f50
push 0x5a2918
mov eax, ecx
push eax
call fcn.00513a04
int3

Function at 0x506790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x5067ae
cmp eax, 2
jne 0x5067f4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x5f1c18]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x506809
cmp dword [esi + 0x34], 0
jne 0x506817
push 0xffffffffffffffff
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x506825
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5067e6
mov eax, dword [esi + 0x4c]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
ret 4
mov ecx, edi
call fcn.0041f380
push 0x5a2900
lea eax, [ebp + 0xb]
push eax
call fcn.00513a04
push 0x5a2900
lea eax, [ebp + 0xb]
push eax
call fcn.00513a04
push 0x5a2900
lea eax, [ebp + 0xb]
push eax
call fcn.00513a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00505f50
push 0x5a2918
mov eax, ecx
push eax
call fcn.00513a04
int3
Function at 0x5068c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x5f1c18]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x50690e
push esi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x34], 0
pop esi
je 0x50690b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.0052d5f9
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x4c], ebx
push 0
call fcn.0052d5f9
add esp, 4
pop edi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jbe 0x50956f
test bl, 7
je 0x5094d9
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x554948]
test bl, 7
jne 0x5094c0
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x50956f
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [ebp + 0x10], ebx
add dword [ebp + 0x10], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x554d48]
xor edx, dword [ecx*4 + 0x555148]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x555d48]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x556148]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x554948]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x555948]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x555548]
xor edx, dword [eax*4 + 0x556548]
mov eax, edx
cmp ebx, edi
jb 0x5094f0
test esi, esi
je 0x50958d
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x554948]
sub esi, 1
jne 0x509573
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x509a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x509b0c
test bl, 3
je 0x509a8b
movzx ecx, byte [ebx]
dec edi
movzx edx, al
inc ebx
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x556b28]
xor esi, dword [edx*8 + 0x556b2c]
test bl, 3
jne 0x509a64
mov dword [ebp + 8], ebx
mov ecx, edi
and edi, 3
and ecx, 0xfffffffc
mov dword [ebp + 0xc], edi
add ecx, ebx
mov dword [ebp + 0x14], ecx
cmp ebx, ecx
jae 0x509b0c
mov edi, ecx
mov ebx, dword [ebx]
xor ebx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*8 + 0x557328]
mov edx, dword [edx*8 + 0x55732c]
xor eax, dword [ecx*8 + 0x557b28]
xor edx, dword [ecx*8 + 0x557b2c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x556b28]
xor edx, dword [ecx*8 + 0x556b2c]
movzx ecx, bl
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp + 8], ebx
xor eax, dword [ecx*8 + 0x558328]
xor edx, dword [ecx*8 + 0x55832c]
xor eax, esi
xor edx, 0
mov esi, edx
cmp ebx, edi
jb 0x509aa1
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x509b35
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x556b28]
xor esi, dword [edx*8 + 0x556b2c]
sub edi, 1
jne 0x509b10
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x50b3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x50b421
lea eax, [ebx + 0x104]
mov ecx, edx
movaps xmm0, xmmword [0x556a70]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x556a70]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x50b400
cmp byte [ebp + 0x10], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x50b5dc
mov dword [ebp - 4], 0
test edx, edx
je 0x50b5dc
lea eax, [ebx + 0x404]
lea ecx, [ebx + 0x4808]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], ecx
push esi
nop
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [ecx], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 8], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp + 8], esi
movzx eax, byte [eax + 0x558b28]
movzx edx, byte [ecx + 0x558b28]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x558b28]
add eax, edx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + 0x558b28]
add eax, edx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x50b5bb
cmp esi, 8
jae 0x50b519
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x558b28]
add edi, eax
cmp edx, 1
jne 0x50b4d1
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x50b4c4
jmp 0x50b5bb
cmp esi, edi
jae 0x50b5bb
cmp esi, 0x10
jae 0x50b576
mov edx, esi
xor edi, edi
mov esi, dword [ebp - 4]
nop dword [eax]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x558b28]
add edi, eax
cmp edx, 1
jne 0x50b530
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, dword [ebp - 8]
jb 0x50b521
jmp 0x50b5bb
xor edi, edi
lea eax, [esi + 0xf0]
nop
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x558b28]
add edi, ecx
cmp eax, 1
jne 0x50b580
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x50b576
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add dword [ebp + 0x10], 0x440
add ecx, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp + 0xc]
jb 0x50b460
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx + 0x4804]
mov dword [ebp - 8], edi
mov dword [ebx + esi*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
movzx eax, byte [eax + 0x558b28]
movzx edx, byte [ecx + 0x558b28]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x558b28]
add eax, edx
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0x558b28]
add eax, edx
mov dword [ebp - 0x14], eax
imul eax, esi, 0x440
xor esi, esi
mov dword [ebp + 8], esi
add eax, 0x404
add eax, ebx
mov dword [ebp - 4], eax
test edi, edi
je 0x50b773
cmp esi, 8
jae 0x50b6cf
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x558b28]
add edi, eax
cmp edx, 1
jne 0x50b685
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x50b678
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x50b773
cmp esi, 0x10
jae 0x50b730
mov edx, esi
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x558b28]
add edi, eax
cmp edx, 1
jne 0x50b6e3
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, dword [ebp - 8]
jb 0x50b6d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esi + 0xf0]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x558b28]
add edi, ecx
cmp eax, 1
jne 0x50b738
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x50b730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50e4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x3700
mov dword [ebp + 8], esi
lea eax, [edi + 0x10598]
lea edx, [edi + 0x10194]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
nop word [eax + eax]
mov eax, dword [edi + 0x10d94]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x50e54b
nop
lea eax, [ebx + 0x40]
xor esi, esi
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
lea ecx, [ebx + eax]
and edx, 0x7f
movzx ecx, word [edi + ecx*2]
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x558b28]
add esi, ecx
cmp eax, 1
jne 0x50e508
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ebx*4], esi
inc ebx
mov eax, dword [edi + 0x10d94]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x50e500
mov esi, dword [ebp + 8]
mov ecx, 0xe
cmp eax, ecx
jbe 0x50e56a
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [edx + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x10d94]
jb 0x50e554
mov ecx, dword [ebp - 0xc]
add esi, 0x40
mov eax, dword [edx]
mov dword [ebp + 8], esi
mov dword [ecx - 4], eax
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0xc]
add edx, 0x100
mov dword [ecx + 8], eax
add ecx, 0x200
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
cmp esi, 0x3800
jb 0x50e4f0
mov esi, 4
lea eax, [edi + 0x107a4]
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx ebx, byte [esi + 0x558ba8]
mov eax, ebx
mov edx, ebx
shr eax, 1
and edx, 1
dec eax
or edx, 2
mov ecx, eax
mov dword [ebp - 0xc], eax
shl edx, cl
mov eax, esi
mov ecx, 1
mov dword [ebp - 0x10], edx
sub eax, edx
mov dword [ebp + 8], ecx
xor esi, esi
nop dword [eax]
mov edx, eax
sub ecx, ebx
add ecx, dword [ebp - 0x10]
and edx, 1
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, edx
neg eax
movzx ecx, word [edi + ecx*2 + 0x6ffe]
shr eax, 4
shr ecx, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x558b28]
mov ecx, dword [ebp + 8]
add esi, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
lea ecx, [edx + ecx*2]
mov dword [ebp + 8], ecx
jne 0x50e5f0
mov edx, dword [ebp - 4]
mov eax, dword [edi + ebx*4 + 0x10194]
add eax, esi
mov dword [edx - 0x200], eax
mov eax, dword [edi + ebx*4 + 0x10294]
add eax, esi
mov dword [edx], eax
mov eax, dword [edi + ebx*4 + 0x10394]
add eax, esi
mov dword [edx + 0x200], eax
mov eax, dword [edi + ebx*4 + 0x10494]
add eax, esi
mov esi, dword [ebp - 8]
inc esi
mov dword [edx + 0x400], eax
add edx, 4
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
cmp esi, 0x80
jb 0x50e5c0
mov dword [edi + 0x10d98], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50e6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, 8
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [edi + 0xa98]
sub ecx, edx
mov eax, dword [edi + 0xa9c]
and eax, dword [ebp + 0xc]
shr esi, cl
mov ecx, edx
shl eax, cl
add esi, eax
imul eax, esi, 0x600
add eax, 0xaa0
add eax, edi
mov dword [ebp + 8], eax
cmp byte [ebp + 0x14], bl
jne 0x50e6f4
push dword [ebp + 0x1c]
push 8
push eax
call fcn.0050fd40
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0x1c]
mov esi, 0x100
mov edi, dword [ebp + 0x18]
add edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 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 + 0x558b28]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x50e701
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x50fd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
add ecx, eax
mov eax, dword [ebp + 8]
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 + 0x558b28]
add edi, edx
cmp ecx, 1
jne 0x50fd60
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x524ce2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x55c5b8
push esi
call fcn.005338c6
pop ecx
pop ecx
test eax, eax
jne 0x524d10
xor al, al
jmp 0x524d8d
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.00524a25
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x524d4a
push dword [ebp - 0x210]
call fcn.00515679
xor al, al
jmp 0x524d8b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x524d50
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x524d70
push edx
call fcn.00524c18
pop ecx
test al, al
je 0x524d3b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x524d7e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00515679
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00511339
leave
ret
Function at 0x5274a6
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 + 0x5a8240]
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 0x5274e6
cmp byte [ebx], 0xa
jne 0x5274e6
or byte [eax + edi + 0x28], 4
jmp 0x5274eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5275e9
mov al, byte [edx]
cmp al, 0x1a
je 0x5275cb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x52751a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x52753f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x527549
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 0x5274fc
jmp 0x5275e9
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 0x5275c6
cmp dword [ebp - 0xc], 0
je 0x5275c6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5a8240]
test byte [eax + edi + 0x28], 0x48
je 0x5275a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52758b
mov byte [esi], dl
jmp 0x52759c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5a8240]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5275e9
cmp byte [ebp - 1], 0xa
jne 0x5275af
cmp esi, ebx
jne 0x5275af
mov byte [esi], 0xa
jmp 0x5275e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0052847f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5275e9
mov byte [esi], 0xd
jmp 0x5275e8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5a8240]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5275e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5275e9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5275f2
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 + 0x5a8240]
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 0x527635
cmp word [esi], dx
jne 0x527635
or byte [edi + eax + 0x28], 4
jmp 0x52763a
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 0x52778d
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 0x52776d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x52767c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5276b2
cmp eax, edx
jae 0x5276be
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 0x527654
jmp 0x52778d
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 0x527769
cmp dword [ebp - 0x14], 0
je 0x527769
mov eax, dword [ebx*4 + 0x5a8240]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x527741
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x52770a
mov word [esi], cx
jmp 0x52773d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5a8240]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5a8240]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5a8240]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x52778d
pop ebx
cmp word [ebp - 4], bx
jne 0x527752
cmp esi, dword [ebp + 0xc]
jne 0x527752
mov word [esi], bx
jmp 0x52778a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0052847f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x52778d
push 0xd
jmp 0x527786
mov ecx, dword [ebx*4 + 0x5a8240]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x527784
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52778d
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