joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d6b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x5f8dc0]
push ebx
mov ebx, ecx
lea eax, [edx + 1]
mov dword [0x5f8dc0], eax
test edx, edx
jne 0x50d766
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5f8d98], eax
cmp eax, 0xffffffff
je 0x50d76d
push esi
push edi
push 0x18
call fcn.005187ac
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x60
mov dword [0x5bdfb4], esi
call fcn.005187ac
push ecx
mov ecx, eax
call fcn.0050d910
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push 2
push 0
push 0
lea eax, [edi + 0x44]
mov dword [edi + 0x1c], 1
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x50d789
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push dword [0x5f8d98]
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x50d7a5
push 0
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
test eax, eax
je 0x50d7c1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
int3
Function at 0x50dac0
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 0x50db60
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push esi
push 0x50d840
push dword [0x5bdfb8]
push 0
call fcn.00535ff6
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 0x50db6e
mov eax, dword [esi + 0x20]
sub eax, 0
je 0x50db2d
sub eax, 1
je 0x50db29
sub eax, 1
jne 0x50db8a
mov eax, 2
jmp 0x50db32
xor eax, eax
jmp 0x50db32
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x50db98
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x50dbb4
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 0x5ace68
lea eax, [ebp - 1]
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
push 0x5ace68
lea eax, [ebp - 1]
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
int3

Function at 0x50dbe0
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 0x50dbfe
cmp eax, 2
jne 0x50dc44
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x5f8d98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x50dc59
cmp dword [esi + 0x34], 0
jne 0x50dc67
push 0xffffffffffffffff
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x50dc75
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x50dc36
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.0041e980
push 0x5ace68
lea eax, [ebp + 0xb]
push eax
call fcn.0051ae66
push 0x5ace68
lea eax, [ebp + 0xb]
push eax
call fcn.0051ae66
push 0x5ace68
lea eax, [ebp + 0xb]
push eax
call fcn.0051ae66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0050d3a0
push 0x5ace80
mov eax, ecx
push eax
call fcn.0051ae66
int3
Function at 0x50dd10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x5f8d98]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x50dd5e
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 0x50dd5b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.00536079
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x4c], ebx
push 0
call fcn.00536079
add esp, 4
pop edi
pop ebx
ret

Function at 0x5108f0
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 0x5109bf
test bl, 7
je 0x510929
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x55d988]
test bl, 7
jne 0x510910
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x5109bf
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 + 0x55dd88]
xor edx, dword [ecx*4 + 0x55e188]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x55ed88]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x55f188]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x55d988]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x55e988]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x55e588]
xor edx, dword [eax*4 + 0x55f588]
mov eax, edx
cmp ebx, edi
jb 0x510940
test esi, esi
je 0x5109dd
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x55d988]
sub esi, 1
jne 0x5109c3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x510e90
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 0x510f5c
test bl, 3
je 0x510edb
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 + 0x55fb68]
xor esi, dword [edx*8 + 0x55fb6c]
test bl, 3
jne 0x510eb4
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 0x510f5c
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 + 0x560368]
mov edx, dword [edx*8 + 0x56036c]
xor eax, dword [ecx*8 + 0x560b68]
xor edx, dword [ecx*8 + 0x560b6c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x55fb68]
xor edx, dword [ecx*8 + 0x55fb6c]
movzx ecx, bl
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp + 8], ebx
xor eax, dword [ecx*8 + 0x561368]
xor edx, dword [ecx*8 + 0x56136c]
xor eax, esi
xor edx, 0
mov esi, edx
cmp ebx, edi
jb 0x510ef1
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x510f85
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 + 0x55fb68]
xor esi, dword [edx*8 + 0x55fb6c]
sub edi, 1
jne 0x510f60
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x512830
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 0x512871
lea eax, [ebx + 0x104]
mov ecx, edx
movaps xmm0, xmmword [0x55fab0]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x55fab0]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x512850
cmp byte [ebp + 0x10], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x512a2c
mov dword [ebp - 4], 0
test edx, edx
je 0x512a2c
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 + 0x561b68]
movzx edx, byte [ecx + 0x561b68]
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 + 0x561b68]
add eax, edx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + 0x561b68]
add eax, edx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x512a0b
cmp esi, 8
jae 0x512969
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 + 0x561b68]
add edi, eax
cmp edx, 1
jne 0x512921
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 0x512914
jmp 0x512a0b
cmp esi, edi
jae 0x512a0b
cmp esi, 0x10
jae 0x5129c6
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 + 0x561b68]
add edi, eax
cmp edx, 1
jne 0x512980
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 0x512971
jmp 0x512a0b
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 + 0x561b68]
add edi, ecx
cmp eax, 1
jne 0x5129d0
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 0x5129c6
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 0x5128b0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x512a40
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 + 0x561b68]
movzx edx, byte [ecx + 0x561b68]
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 + 0x561b68]
add eax, edx
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0x561b68]
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 0x512bc3
cmp esi, 8
jae 0x512b1f
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 + 0x561b68]
add edi, eax
cmp edx, 1
jne 0x512ad5
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 0x512ac8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x512bc3
cmp esi, 0x10
jae 0x512b80
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 + 0x561b68]
add edi, eax
cmp edx, 1
jne 0x512b33
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 0x512b27
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 + 0x561b68]
add edi, ecx
cmp eax, 1
jne 0x512b88
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 0x512b80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515920
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 0x5159ab
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 + 0x561b68]
add esi, ecx
cmp eax, 1
jne 0x515968
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 0x515960
mov esi, dword [ebp + 8]
mov ecx, 0xe
cmp eax, ecx
jbe 0x5159ca
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 0x5159b4
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 0x515950
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 + 0x561be8]
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 + 0x561b68]
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 0x515a50
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 0x515a20
mov dword [edi + 0x10d98], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515b00
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 0x515b54
push dword [ebp + 0x1c]
push 8
push eax
call fcn.005171a0
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 + 0x561b68]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x515b61
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x5171a0
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 + 0x561b68]
add edi, edx
cmp ecx, 1
jne 0x5171c0
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x52d29f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5655d0
push esi
call fcn.0053c236
pop ecx
pop ecx
test eax, eax
jne 0x52d2cd
xor al, al
jmp 0x52d34a
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.0052cfe2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x52d307
push dword [ebp - 0x210]
call fcn.0051cad9
xor al, al
jmp 0x52d348
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x52d30d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x52d32d
push edx
call fcn.0052d1d5
pop ecx
test al, al
je 0x52d2f8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x52d33b
mov bl, 1
push dword [ebp - 0x210]
call fcn.0051cad9
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00518799
leave
ret
Function at 0x52fe5d
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 + 0x5b2400]
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 0x52fe9d
cmp byte [ebx], 0xa
jne 0x52fe9d
or byte [eax + edi + 0x28], 4
jmp 0x52fea2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x52ffa0
mov al, byte [edx]
cmp al, 0x1a
je 0x52ff82
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x52fed1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x52fef6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x52ff00
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 0x52feb3
jmp 0x52ffa0
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 0x52ff7d
cmp dword [ebp - 0xc], 0
je 0x52ff7d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5b2400]
test byte [eax + edi + 0x28], 0x48
je 0x52ff57
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52ff42
mov byte [esi], dl
jmp 0x52ff53
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5b2400]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x52ffa0
cmp byte [ebp - 1], 0xa
jne 0x52ff66
cmp esi, ebx
jne 0x52ff66
mov byte [esi], 0xa
jmp 0x52ff9f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00530e36
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52ffa0
mov byte [esi], 0xd
jmp 0x52ff9f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5b2400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x52ff9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52ffa0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52ffa9
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 + 0x5b2400]
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 0x52ffec
cmp word [esi], dx
jne 0x52ffec
or byte [edi + eax + 0x28], 4
jmp 0x52fff1
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 0x530144
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 0x530124
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x530033
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x530069
cmp eax, edx
jae 0x530075
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 0x53000b
jmp 0x530144
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 0x530120
cmp dword [ebp - 0x14], 0
je 0x530120
mov eax, dword [ebx*4 + 0x5b2400]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5300f8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5300c1
mov word [esi], cx
jmp 0x5300f4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5b2400]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5b2400]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5b2400]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x530144
pop ebx
cmp word [ebp - 4], bx
jne 0x530109
cmp esi, dword [ebp + 0xc]
jne 0x530109
mov word [esi], bx
jmp 0x530141
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00530e36
add esp, 0x10
cmp word [ebp - 4], bx
je 0x530144
push 0xd
jmp 0x53013d
mov ecx, dword [ebx*4 + 0x5b2400]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53013b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x530144
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