joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519010
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 0x51907f
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x518e10
push 0
push 0
call fcn.0054411d
mov ecx, dword [ebp - 8]
add esp, 0x18
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
test eax, eax
je 0x51908d
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x5190a9
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x5190c5
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 0x5bf5f8
lea eax, [ebp - 1]
push eax
call fcn.00527116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.005189c0
push 0x5bf610
mov eax, ecx
push eax
call fcn.00527116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.005189c0
push 0x5bf610
mov eax, ecx
push eax
call fcn.00527116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.005189c0
push 0x5bf610
mov eax, ecx
push eax
call fcn.00527116
int3

Function at 0x5190f0
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 0x51910e
cmp eax, 2
jne 0x519154
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x60c8d8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x519169
cmp dword [esi + 0x34], 0
jne 0x519177
push 0xffffffffffffffff
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x519185
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x519146
mov eax, dword [esi + 0x40]
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.005189e0
push 0x5bf5f8
lea eax, [ebp + 0xb]
push eax
call fcn.00527116
push 0x5bf5f8
lea eax, [ebp + 0xb]
push eax
call fcn.00527116
push 0x5bf5f8
lea eax, [ebp + 0xb]
push eax
call fcn.00527116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.005189c0
push 0x5bf610
mov eax, ecx
push eax
call fcn.00527116
int3

Function at 0x519220
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x60c8d8]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x51926e
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 0x51926b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.005441a0
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x40], ebx
push 0
call fcn.005441a0
add esp, 4
pop edi
pop ebx
ret
Function at 0x51be10
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 0x51bedf
test bl, 7
je 0x51be49
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x56ca48]
test bl, 7
jne 0x51be30
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x51bedf
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 + 0x56ce48]
xor edx, dword [ecx*4 + 0x56d248]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x56de48]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x56e248]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x56ca48]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x56da48]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x56d648]
xor edx, dword [eax*4 + 0x56e648]
mov eax, edx
cmp ebx, edi
jb 0x51be60
test esi, esi
je 0x51befd
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x56ca48]
sub esi, 1
jne 0x51bee3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x51c3d0
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 0x51c49c
test bl, 3
je 0x51c41b
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 + 0x56ec28]
xor esi, dword [edx*8 + 0x56ec2c]
test bl, 3
jne 0x51c3f4
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 0x51c49c
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 + 0x56f428]
mov edx, dword [edx*8 + 0x56f42c]
xor eax, dword [ecx*8 + 0x56fc28]
xor edx, dword [ecx*8 + 0x56fc2c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x56ec28]
xor edx, dword [ecx*8 + 0x56ec2c]
movzx ecx, bl
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp + 8], ebx
xor eax, dword [ecx*8 + 0x570428]
xor edx, dword [ecx*8 + 0x57042c]
xor eax, esi
xor edx, 0
mov esi, edx
cmp ebx, edi
jb 0x51c431
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x51c4c5
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 + 0x56ec28]
xor esi, dword [edx*8 + 0x56ec2c]
sub edi, 1
jne 0x51c4a0
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x51da00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x51da43
movups xmm0, xmmword [0x56eb70]
lea eax, [ebx + 0x104]
mov ecx, edx
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x51da30
cmp byte [ebp + 0x10], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x51dc2c
mov dword [ebp + 0x10], 0
test edx, edx
je 0x51dc2c
lea eax, [ebx + 0x404]
mov dword [ebp + 8], eax
lea eax, [ebx + 0x4808]
mov dword [ebp - 0x10], eax
push esi
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [eax], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 0xc], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp - 4], esi
movzx eax, byte [eax + 0x570c28]
movzx edx, byte [ecx + 0x570c28]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x570c28]
add eax, edx
mov dword [ebp - 0x1c], eax
movzx eax, byte [ecx + 0x570c28]
mov ecx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp - 0x20], eax
test edi, edi
je 0x51dc0e
lea eax, [ecx*8]
mov dword [ebp - 8], eax
cmp esi, 8
jae 0x51db5b
mov dword [ebp - 0x14], 0
lea edi, [ecx*8]
lea edx, [esi + 8]
mov dword [ebp - 8], edi
mov esi, dword [ebp - 0x14]
nop
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edi + edx]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x570c28]
add esi, eax
cmp edx, 1
jne 0x51db10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add eax, esi
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], esi
cmp esi, edi
jb 0x51daf2
jmp 0x51dc0b
cmp esi, edi
jae 0x51dc0e
cmp esi, 0x10
jae 0x51dbc3
mov edx, esi
xor edi, edi
mov esi, dword [ebp - 8]
nop
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [esi + edx]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x570c28]
add edi, eax
cmp edx, 1
jne 0x51db70
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], esi
lea eax, [ecx*8]
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0xc]
jb 0x51db63
jmp 0x51dc0e
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax + eax]
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 + 0x570c28]
add edi, ecx
cmp eax, 1
jne 0x51dbd0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x51dbc3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
inc ecx
add dword [ebp + 8], 0x440
add eax, 4
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [ebp + 0xc]
jb 0x51da81
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51dc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, dword [ebx + 0x4804]
mov dword [ebx + eax*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 0xc], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp + 8], esi
movzx eax, byte [eax + 0x570c28]
movzx edx, byte [ecx + 0x570c28]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x570c28]
add eax, edx
mov dword [ebp - 0x18], eax
movzx eax, byte [ecx + 0x570c28]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
imul eax, ecx, 0x440
add eax, 0x404
add eax, ebx
mov dword [ebp - 8], eax
test edi, edi
je 0x51ddfb
lea eax, [ecx*8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
cmp esi, 8
jae 0x51dd41
mov dword [ebp - 0x10], 0
lea edi, [ecx*8]
lea edx, [esi + 8]
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x10]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edi + edx]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x570c28]
add esi, eax
cmp edx, 1
jne 0x51dcf4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add eax, esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x51dcd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x51ddfb
nop dword [eax]
cmp esi, 0x10
jae 0x51ddb1
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, [esi + edx]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x570c28]
add edi, eax
cmp edx, 1
jne 0x51dd60
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], esi
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 0xc]
jb 0x51dd50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax]
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 + 0x570c28]
add edi, ecx
cmp eax, 1
jne 0x51ddc0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x51ddb1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x520bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x3700
mov dword [ebp + 8], edi
lea eax, [esi + 0x10598]
lea edx, [esi + 0x10194]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push ebx
nop word [eax + eax]
mov eax, dword [esi + 0x10d94]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x520c5b
nop
lea eax, [ebx + 0x40]
xor edi, edi
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 [esi + ecx*2]
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x570c28]
add edi, ecx
cmp eax, 1
jne 0x520c18
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ebx*4], edi
inc ebx
mov eax, dword [esi + 0x10d94]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x520c10
mov edi, dword [ebp + 8]
mov ecx, 0xe
cmp eax, ecx
jbe 0x520c7a
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [edx + ecx*4], eax
inc ecx
cmp ecx, dword [esi + 0x10d94]
jb 0x520c64
mov ecx, dword [ebp - 0xc]
add edi, 0x40
mov eax, dword [edx]
mov dword [ebp + 8], edi
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 edi, 0x3800
jb 0x520c00
mov edi, 4
lea eax, [esi + 0x107a4]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx ebx, byte [edi + 0x570ca8]
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, edi
mov ecx, 1
mov dword [ebp - 0x10], edx
sub eax, edx
mov dword [ebp + 8], ecx
xor edi, edi
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 [esi + ecx*2 + 0x6ffe]
shr eax, 4
shr ecx, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x570c28]
mov ecx, dword [ebp + 8]
add edi, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
lea ecx, [edx + ecx*2]
mov dword [ebp + 8], ecx
jne 0x520d00
mov edx, dword [ebp - 4]
mov eax, dword [esi + ebx*4 + 0x10194]
add eax, edi
mov dword [edx - 0x200], eax
mov eax, dword [esi + ebx*4 + 0x10294]
add eax, edi
mov dword [edx], eax
mov eax, dword [esi + ebx*4 + 0x10394]
add eax, edi
mov dword [edx + 0x200], eax
mov eax, dword [esi + ebx*4 + 0x10494]
add eax, edi
mov edi, dword [ebp - 8]
inc edi
mov dword [edx + 0x400], eax
add edx, 4
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
cmp edi, 0x80
jb 0x520cd0
pop ebx
pop edi
mov dword [esi + 0x10d98], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x520db0
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 0x520e04
push dword [ebp + 0x1c]
push 8
push eax
call fcn.00522490
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 + 0x570c28]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x520e11
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x522490
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 edi
xor edi, edi
add ecx, eax
mov eax, dword [ebp + 8]
push esi
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 + 0x570c28]
add edi, edx
cmp ecx, 1
jne 0x5224b0
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x525670
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5256af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5256af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5256af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5256af
cmp dword [ecx + 0x74], 0xe
jbe 0x5256af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x53692c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5748d0
push esi
call fcn.0054b7b6
pop ecx
pop ecx
test eax, eax
jne 0x53695a
xor al, al
jmp 0x5369d7
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.0053666d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x536994
push dword [ebp - 0x210]
call fcn.0052a52b
xor al, al
jmp 0x5369d5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x53699a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5369ba
push edx
call fcn.00536863
pop ecx
test al, al
je 0x536985
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5369c8
mov bl, 1
push dword [ebp - 0x210]
call fcn.0052a52b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00524763
leave
ret

Function at 0x53b773
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x53b7b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53b7b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53b7b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x53b7b2
cmp dword [ecx + 0x74], 0xe
jbe 0x53b7b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x53e458
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5c5dd0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x53e498
cmp byte [ebx], 0xa
jne 0x53e498
or byte [edi + eax + 0x28], 4
jmp 0x53e49d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x53e59c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x53e57f
inc eax
cmp dl, 0xd
je 0x53e4c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x53e4ef
cmp eax, ecx
jae 0x53e4fd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x53e4b1
jmp 0x53e59c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53e57a
cmp dword [ebp - 0x10], 0
je 0x53e57a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5c5dd0]
test byte [eax + edi + 0x28], 0x48
je 0x53e554
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x53e53f
mov byte [esi], dl
jmp 0x53e550
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5c5dd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x53e59c
cmp byte [ebp - 1], 0xa
jne 0x53e563
cmp esi, ebx
jne 0x53e563
mov byte [esi], 0xa
jmp 0x53e59b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0053f440
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x53e59c
mov byte [esi], 0xd
jmp 0x53e59b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5c5dd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53e599
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x53e59c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53e5a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5c5dd0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x53e5eb
cmp word [ebx], dx
jne 0x53e5eb
or byte [eax + edi + 0x28], 4
jmp 0x53e5f0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x53e753
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x53e733
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x53e631
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x53e667
cmp eax, edx
jae 0x53e675
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x53e60c
jmp 0x53e753
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53e72e
cmp dword [ebp - 0x18], 0
je 0x53e72e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5c5dd0]
test byte [eax + edi + 0x28], 0x48
je 0x53e704
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x53e6c8
mov word [esi], cx
jmp 0x53e6ff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5c5dd0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5c5dd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5c5dd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53e753
pop eax
cmp word [ebp - 4], ax
jne 0x53e714
cmp esi, ebx
jne 0x53e714
mov word [esi], ax
jmp 0x53e750
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0053f440
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53e753
push 0xd
pop eax
jmp 0x53e70f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5c5dd0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x53e74d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53e753
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret