joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510c30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x510c48
cmp dword [ebp + 0x10], 0
jne 0x510c44
call fcn.00520ce0
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.005106f0
Function at 0x5121e0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 0xc]
movsx edx, byte [esi + 0xb]
mov eax, esi
test edx, edx
jns 0x5121fb
mov edx, dword [esi + 4]
mov eax, dword [esi]
test edx, edx
js 0x51256f
sete bl
test eax, eax
setne bh
or bh, bl
je 0x51256f
mov ebx, edx
cmp edx, 4
jb switch.0x00512240
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
xor ebx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x512240
jmp dword [edx*4 + 0x6e5860]
movzx edx, byte [eax + 1]
shl edx, 8
xor ebx, edx
movzx eax, byte [eax]
xor eax, ebx
imul ebx, eax, 0x5bd1e995
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ebx, edx
jmp case.0x512240.2
Function at 0x5192a0
Capabilities:
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005197a0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.0051a6f0
test eax, eax
je 0x5192cd
mov ecx, eax
call fcn.0051a700
mov ebx, dword [0x767e40]
cmp ebx, 1
jbe 0x51948c
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x51940e
mov edi, dword [0x767e48]
xor esi, esi
test edi, edi
je 0x5193df
mov eax, dword [0x767e40]
cmp eax, 1
mov dword [ebp - 0x10], ebx
jbe 0x51944f
mov esi, dword [edi + 4]
test esi, esi
je 0x519407
imul eax, dword [ebp - 0x18], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e995
xor eax, 0xde8f4ca8
imul ecx, dword [ebp - 0x14], 0x5bd1e995
mov edx, ecx
shr edx, 0x18
xor edx, ecx
imul ecx, edx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
mov edx, esi
shr edx, 1
and edx, 0x55555555
mov eax, esi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul ebx, edx, 0x1010101
shr ebx, 0x18
cmp ebx, 1
jbe 0x51941a
mov edx, ecx
cmp ecx, esi
jb 0x5193ab
mov eax, ecx
xor edx, edx
div esi
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x519407
mov edi, dword [eax]
test edi, edi
je 0x519407
cmp ebx, 2
mov dword [ebp - 0x1c], edx
jb 0x519432
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x5193f0
mov eax, dword [edi + 8]
xor eax, dword [ebp - 0x18]
mov edx, dword [edi + 0xc]
xor edx, dword [ebp - 0x14]
or edx, eax
jne 0x5193ff
mov esi, dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, esi
jb 0x5193fa
xor edx, edx
div esi
mov eax, edx
cmp eax, dword [ebp - 0x1c]
jne 0x51940a
mov edi, dword [edi]
test edi, edi
jne 0x5193c5
jmp 0x51940a
mov ebx, dword [ebp - 0x10]
xor esi, esi
jmp 0x5193df
mov ecx, ebx
call fcn.004fa290
jmp 0x5192eb
lea edx, [esi - 1]
and edx, ecx
jmp 0x5193ab
and eax, esi
cmp eax, edx
jne 0x51940a
mov edi, dword [edi]
test edi, edi
mov edx, dword [ebp - 0x1c]
jne 0x519436
jmp 0x51940a
dec esi
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x519421
mov eax, dword [edi + 8]
xor eax, dword [ebp - 0x18]
mov edx, dword [edi + 0xc]
xor edx, dword [ebp - 0x14]
or edx, eax
je 0x5193dc
jmp 0x519427
push 0x767e40
call fcn.004a7180
add esp, 4
test al, al
je 0x5194d9
xor esi, esi
mov dword [0x767e44], esi
mov ebx, 0x767e40
mov ecx, 0x767e44
call fcn.004fa280
push ebx
push esi
push 0x767e44
push ebx
call fcn.004a7250
add esp, 0x10
jmp 0x51930c
push 0x767e40
call fcn.004a7180
add esp, 4
test al, al
je 0x5194ce
xor esi, esi
mov dword [0x767e44], esi
mov edi, 0x767e40
mov ebx, 0x767e44
mov ecx, 0x767e44
call fcn.004fa280
push edi
push esi
push 0x767e44
push edi
call fcn.004a7250
add esp, 0x10
jmp 0x5192dc
mov ebx, dword [0x767e40]
jmp 0x5192dc
mov eax, dword [0x767e40]
jmp 0x51930c
Function at 0x520770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4b5ad0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4b5920
push 0x769900
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x5207ea
xor esi, esi
cmp dword [0x769904], 0
jne 0x5207d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x769908]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x5207d6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0056410f
int3
Function at 0x5210d0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0xb]
mov eax, ecx
test edx, edx
jns 0x5210ed
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
js 0x5213d9
sete cl
test eax, eax
setne ch
or ch, cl
je 0x5213d9
mov ecx, edx
cmp edx, 4
jb switch.0x00521132
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x521132
jmp dword [edx*4 + 0x6ec51c]
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
jmp case.0x521132.2
Function at 0x5224e0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, esi
mov dword [ebp - 0x18], ecx
mov edx, esi
mov dword [ebp - 0x14], esi
cmp esi, 4
jb switch.0x00522530
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ecx, dword [ebp - 0x18]
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 0x52250a
jmp dword [edx*4 + 0x6ec618]
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov edi, dword [ebx + 4]
xor ecx, ecx
test edi, edi
je 0x52264c
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov edx, edi
shr edx, 1
and edx, 0x55555555
mov eax, edi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x20], eax
cmp eax, 1
jbe 0x522660
mov edx, esi
cmp esi, edi
jb 0x5225ba
mov eax, esi
xor edx, edx
div edi
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x52264c
mov ebx, dword [eax]
test ebx, ebx
je 0x52264c
mov dword [ebp - 0x10], edx
lea eax, [edi - 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x5225f8
movsx ecx, byte [ebx + 0x13]
test ecx, ecx
js 0x52261c
lea eax, [ebx + 8]
jmp 0x522622
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x522530.2
cmp dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x10]
jbe 0x52265b
cmp eax, edi
jb 0x52260b
xor edx, edx
div edi
mov eax, edx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x522618
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5225d6
xor ecx, ecx
jmp 0x52264c
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
test ecx, ecx
js 0x52266a
sete dl
test eax, eax
setne dh
or dh, dl
je 0x52266a
mov edx, dword [ebp - 0x14]
cmp edx, ecx
jne 0x522612
push edx
push eax
push dword [ebp - 0x18]
call fcn.00551eed
add esp, 0xc
test eax, eax
jne 0x522612
mov ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
and eax, dword [ebp - 0x1c]
jmp 0x52260e
lea edx, [edi - 1]
and edx, esi
jmp 0x5225ba
ud2
Function at 0x5271b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x200c
call fcn.00550f70
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x75891c]
cmp eax, 0xffffffff
jne 0x5271fb
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
add esp, 0x200c
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push dword [ebp - 0x2018]
call fcn.004cadb0
add esp, 8
jmp 0x5271d4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x5271d4
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00553570
add esp, 0xc
mov ecx, dword [0x75891c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2018], ecx
push ecx
call fcn.004cadb0
add esp, 8
test ebx, ebx
je 0x52724a
push ebx
call fcn.0054fc4c
add esp, 4
mov esi, 0x101
lea edi, [ebp - 0x2010]
mov eax, dword [0x76c2e0]
mov ecx, dword [0x758d88]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5273a1
mov ebx, dword [0x76c2dc]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x527403
push 0x1000
push 0x76b2dc
lea eax, [ebp - 0x1810]
push eax
call fcn.00553570
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push edi
call fcn.00553af0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word cs:[eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x5272d0
mov ecx, edi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.00527410
add esp, 8
mov ebx, 4
xor eax, eax
nop word [eax + eax]
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
jne 0x527348
add ebx, 8
cmp ebx, 0x804
jne 0x527310
dec esi
je 0x5273ec
test al, 1
lea edi, [ebp - 0x2010]
jne 0x527255
jmp 0x5271e9
mov dword [ebp - 0x2014], eax
mov eax, esi
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x5273f6
add ecx, ebp
add ecx, 0xffffe7f0
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ecx + 8]
jne 0x5273f6
mov ecx, dword [ecx + 4]
test ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x2014]
je 0x527323
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x74e248]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x527323
push 0x76c2e0
call fcn.0054fc5d
add esp, 4
cmp dword [0x76c2e0], 0xffffffff
jne 0x527276
push 4
call fcn.0054fbd9
add esp, 4
mov ebx, eax
mov dword [eax], 0
mov ecx, eax
call fcn.004fa280
mov dword [0x76c2dc], ebx
push 0x76c2e0
call fcn.0054fcd7
add esp, 4
jmp 0x527276
call fcn.005cf110
jmp 0x5271e9
mov esi, eax
mov eax, dword [ebp - 0x2014]
jmp 0x527323
mov ecx, ebx
call fcn.004fa290
jmp 0x52728b
Function at 0x530c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x118]
inc esi
cmp esi, 3
mov eax, 2
cmovae eax, esi
lea ecx, [edi + 0x120]
mov dword [edi + 0x120], 0x3020100
dec eax
mov ebx, 0x7060504
xor esi, esi
mov dword [edi + esi*4 + 0x124], ebx
add ebx, 0x4040404
inc esi
cmp eax, esi
jne 0x530c89
test edx, edx
je 0x530cf1
lea eax, [edi + 0x11f]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x14], edx
xor esi, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + ebx]
mov edx, dword [ebp - 0x10]
mov al, byte [edx + edi]
mov byte [ecx + ebx], al
mov ecx, dword [ebp - 0x18]
mov byte [ecx], al
lea eax, [edi + 1]
push eax
push ecx
push edx
call fcn.00553570
add esp, 0xc
or esi, edi
inc ebx
cmp dword [ebp - 0x14], ebx
jne 0x530cb2
shr esi, 2
mov edi, dword [ebp + 8]
mov dword [edi + 0x118], esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x530ce3
Function at 0x550419
Capabilities:
Parse pe header

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

Function at 0x55e892
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0055ea29
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x55ea01
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x55ea01
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x55e9b6
jg 0x55e8ee
test eax, eax
je 0x55e9ac
push 1
push 0x1000
call fcn.00495720
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x55e911
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55e9a3
push 0x8000
push ebx
call fcn.005641d2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x55e93a
jg 0x55e935
cmp ecx, 0x1000
jb 0x55e93a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00567454
add esp, 0x10
cmp eax, 0xffffffff
je 0x55e97f
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 0x55e935
jl 0x55e966
test ecx, ecx
jne 0x55e927
push dword [ebp - 0xc]
push ebx
call fcn.005641d2
push esi
call fcn.00495590
add esp, 0xc
xor ebx, ebx
jmp 0x55ea0f
cmp byte [edi + 0x24], 0
je 0x55e996
cmp dword [edi + 0x20], 5
jne 0x55e996
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x55e9a1
mov ebx, dword [edi + 0x18]
jmp 0x55e9a3
xor ebx, ebx
push esi
call fcn.00495590
pop ecx
jmp 0x55ea0f
test ecx, ecx
jg 0x55e978
jl 0x55e9b6
test eax, eax
jae 0x55e978
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00576d5d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x55e9d6
cmp byte [edi + 0x1c], 0
je 0x55e978
jmp 0x55ea07
push ebx
call fcn.005623ca
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x55e978
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55ea0f
cmp byte [edi + 0x1c], 0
je 0x55ea0c
mov ebx, dword [edi + 0x18]
jmp 0x55ea0f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00576d5d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x561d43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00550f70
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005618fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x561d85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x561ee1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0057a860
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x759838]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00576dbb
mov ecx, dword [esi*4 + 0x759838]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x561eda
cmp eax, dword [ecx + edi + 0x24]
jne 0x561eda
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x561eda
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00576dbb
add esp, 0x14
test edx, edx
jl 0x561eda
jg 0x561e50
test eax, eax
jb 0x561eda
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x561eda
jl 0x561e6a
cmp dword [ebp - 0x1008], eax
ja 0x561eda
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x561e88
test ebx, ebx
je 0x561ec1
cmp ecx, edi
jae 0x561ec1
mov al, byte [ecx]
cmp al, 0xd
jne 0x561ea2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x561eae
cmp byte [ecx + 1], 0xa
jne 0x561eae
inc ecx
jmp 0x561eae
movzx eax, al
movsx eax, byte [eax + 0x7542f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x561e88
cmp edx, ebx
jne 0x561e88
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x561edf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00550b46
leave
ret
Function at 0x563bfd
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 + 0x759838]
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 0x563c3d
cmp byte [ebx], 0xa
jne 0x563c3d
or byte [edi + eax + 0x28], 4
jmp 0x563c42
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 0x563d41
mov dl, byte [eax]
cmp dl, 0x1a
je 0x563d24
inc eax
cmp dl, 0xd
je 0x563c6e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x563c94
cmp eax, ecx
jae 0x563ca2
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 0x563c56
jmp 0x563d41
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 0x563d1f
cmp dword [ebp - 0x10], 0
je 0x563d1f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x759838]
test byte [eax + edi + 0x28], 0x48
je 0x563cf9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x563ce4
mov byte [esi], dl
jmp 0x563cf5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x759838]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x563d41
cmp byte [ebp - 1], 0xa
jne 0x563d08
cmp esi, ebx
jne 0x563d08
mov byte [esi], 0xa
jmp 0x563d40
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00576d5d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x563d41
mov byte [esi], 0xd
jmp 0x563d40
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x759838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x563d3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x563d41
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x563d4a
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 + 0x759838]
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 0x563d90
cmp word [ebx], dx
jne 0x563d90
or byte [eax + edi + 0x28], 4
jmp 0x563d95
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 0x563ef8
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 0x563ed8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x563dd6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x563e0c
cmp eax, edx
jae 0x563e1a
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 0x563db1
jmp 0x563ef8
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 0x563ed3
cmp dword [ebp - 0x18], 0
je 0x563ed3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x759838]
test byte [eax + edi + 0x28], 0x48
je 0x563ea9
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 0x563e6d
mov word [esi], cx
jmp 0x563ea4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x759838]
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 + 0x759838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x759838]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x563ef8
pop eax
cmp word [ebp - 4], ax
jne 0x563eb9
cmp esi, ebx
jne 0x563eb9
mov word [esi], ax
jmp 0x563ef5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00576d5d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x563ef8
push 0xd
pop eax
jmp 0x563eb4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x759838]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x563ef2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x563ef8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x573780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5737ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5737ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x574836
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c3c54
push 0x6c3c4c
push 0x6c3c54
push 0x1f
call fcn.00574d24
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57486a
push dword [ebp + 8]
mov ecx, esi
call dword [0x74e248]
call esi
jmp 0x574870
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5748b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c3c78
push 0x6c3c70
push 0x6c3c78
push 0x21
call fcn.00574d24
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5748eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x74e248]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5748f3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c3c8c
push 0x6c3c84
push 0x6c3c8c
push 0x22
call fcn.00574d24
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57492d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x74e248]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]