joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [edx + 4]
test eax, eax
je 0x478ee8
mov edi, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx]
xor edx, edx
xor esi, esi
or esi, dword [ecx + edx*4]
inc edx
cmp eax, edx
jne 0x478daf
test esi, esi
mov esi, dword [ebp - 0x10]
je 0x478ee8
test eax, eax
jle 0x478f04
mov ecx, dword [edi]
test byte [ecx], 1
je 0x478f04
cmp dword [edi + 0xc], 0
jne 0x478f35
cmp eax, 0x801
jae 0x478f43
lea ebx, [esi + 0x14]
cmp ebx, edi
je 0x478e2c
push eax
push ebx
call fcn.0043b8e0
add esp, 8
test eax, eax
je 0x478f12
mov eax, dword [edi + 4]
lea ecx, [eax*4]
test ecx, ecx
je 0x478e21
push ecx
push dword [edi]
push dword [ebx]
call fcn.004a3290
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x20], eax
mov edi, ebx
test edi, edi
je 0x478f12
mov eax, dword [esi + 0x18]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov edx, eax
test edx, edx
jle 0x478f20
mov edi, dword [ebx]
lea esi, [edx - 1]
cmp dword [edi + edx*4 - 4], 0
mov edx, esi
je 0x478e40
inc esi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], esi
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
cmp esi, 2
jb 0x478f2e
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
xor eax, eax
xor esi, esi
inc esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x18], 0
xor ebx, ebx
mov dword [ebp - 0x14], esi
and esi, 1
neg esi
mov edi, 0
sbb edi, edi
mov edx, dword [ebp - 0x1c]
and edx, edi
and esi, dword [ebp - 0x20]
mov ecx, edx
xor ecx, eax
and edx, eax
mov eax, esi
xor eax, dword [ebp - 0x14]
and esi, dword [ebp - 0x14]
shrd eax, ecx, 1
shr ecx, 1
add esi, eax
adc edx, ecx
and edi, 0x80000000
shrd dword [ebp - 0x18], ebx, 1
shr ebx, 1
or ebx, edi
mov dword [ebp - 0x14], esi
mov eax, edx
dec dword [ebp - 0x24]
jne 0x478e8c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
xor eax, eax
inc eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xa4
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x69
push 0
push 3
call fcn.0050d790
add esp, 0x14
xor eax, eax
jmp 0x478ee0
push 0xa8
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x68
jmp 0x478ef4
push 0xb6
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x44
jmp 0x478ef4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
test eax, eax
jns 0x478f6b
mov eax, dword [ebx]
mov ecx, dword [eax]
xor eax, eax
jmp 0x478e6e
push 0xac
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x6d
jmp 0x478ef4
xor edx, edx
mov esi, 0x800
or edx, dword [ecx + esi*4]
inc esi
cmp eax, esi
jne 0x478f4a
test edx, edx
mov esi, dword [ebp - 0x10]
je 0x478dea
push 0xb0
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x66
jmp 0x478ef4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
jmp 0x478f2a
Function at 0x4798e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 0x30
ja 0x479a0d
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x20]
movdqu xmmword [eax], xmm0
movdqu xmmword [eax - 0x10], xmm0
movdqu xmmword [eax - 0x20], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esi + 0xfc]
mov dword [ebp - 0x44], eax
call dword [section..00cfg]
lea eax, [ebp - 0x40]
push esi
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
call ecx
add esp, 0xc
test ebx, ebx
je 0x4799b1
xor eax, eax
mov cl, byte [edi + eax]
xor byte [ebp + eax - 0x40], cl
inc eax
cmp ebx, eax
jne 0x4799a5
lea edi, [esi + 0xf4]
mov eax, dword [0x55d458]
bt eax, 0x19
jae 0x479a11
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
test edi, edi
je 0x4799e4
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
lea eax, [ebp - 0x20]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x44]
movups xmmword [eax], xmm0
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4799f9
bt eax, 9
jae 0x479a32
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x4799de
push esi
push 0x100
lea eax, [ebp - 0x40]
push eax
call fcn.004eee20
add esp, 0xc
mov ecx, 0x4eed20
mov eax, 0x4ef5b0
jmp 0x4799de
Function at 0x47b440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x47b476
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [ecx + esi]
xor al, byte [edx + esi]
or bl, al
inc esi
cmp edi, esi
jne 0x47b460
movzx eax, bl
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x47b471
Function at 0x47e540
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x47e55c
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x14], eax
cmp eax, 4
jb 0x47e597
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ecx, ebx
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 0x47e571
cmp edx, 2
je 0x47e6e2
cmp edx, 1
je 0x47e6eb
cmp edx, 3
je 0x47e6d9
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 4]
xor ecx, ecx
test edi, edi
je 0x47e6ca
mov dword [ebp - 0x18], ebx
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, 0x33333333
mov ebx, eax
and ebx, edx
shr eax, 2
and eax, edx
add eax, ebx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
jbe 0x47e6fb
mov edx, esi
cmp esi, edi
jb 0x47e625
mov eax, esi
xor edx, edx
div edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x47e6ca
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x47e6ca
lea eax, [edi - 1]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x10]
jne 0x47e6a9
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x47e663
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x47e6be
lea ecx, [ebx + 8]
test al, al
jns 0x47e671
mov ecx, dword [ecx]
js 0x47e68f
test eax, eax
je 0x47e6c8
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dl, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
mov edi, dword [ebp - 0x20]
jne 0x47e6be
inc ecx
cmp eax, ecx
jne 0x47e67c
jmp 0x47e6c8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47e6c8
push eax
push dword [ebp - 0x18]
push ecx
call fcn.004a1c0d
add esp, 0xc
test eax, eax
je 0x47e6c8
jmp 0x47e6be
cmp dword [ebp - 0x28], 1
jbe 0x47e705
cmp eax, edi
jb 0x47e6b9
xor edx, edx
div edi
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x47e6c4
mov ebx, dword [ebx]
test ebx, ebx
jne 0x47e64e
xor ecx, ecx
jmp 0x47e6ca
mov ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
jmp 0x47e5b2
lea edx, [edi - 1]
and edx, esi
jmp 0x47e625
and eax, dword [ebp - 0x1c]
jmp 0x47e6b9
Function at 0x480ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x44a2c0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x44a120
push 0x55d72c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x480f3a
xor esi, esi
cmp dword [0x55d730], 0
jne 0x480f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x55d734]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x480f26
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004b18c8
int3

Function at 0x486330
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d900

Function at 0x486340
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x48634f
pop ebp
jmp fcn.0049d940
pop ebp
ret
Function at 0x486700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.004a0d30
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x54dce8]
cmp eax, 0xffffffff
je 0x4868ce
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4868ce
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004a3290
add esp, 0xc
mov ecx, dword [0x54dce8]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call fcn.00457700
add esp, 8
test ebx, ebx
je 0x48677b
push ebx
call fcn.0049f97c
add esp, 4
mov ecx, 0x101
lea esi, [ebp - 0x2010]
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x55e78c]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4868e3
mov ebx, dword [0x55e788]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x486928
push 0x1000
push 0x55d784
lea eax, [ebp - 0x1810]
push eax
call fcn.004a3290
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push esi
call fcn.004a3810
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop dword [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 0x486800
mov ecx, esi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.00486970
add esp, 8
mov ebx, 4
xor eax, eax
jmp 0x48684b
add ebx, 8
cmp ebx, 0x804
je 0x4868a3
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
je 0x486840
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x486840
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ebp + ecx - 0x1808]
jne 0x486840
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
je 0x486840
mov dword [ebp + edx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x486840
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x486934
test al, 1
lea esi, [ebp - 0x2010]
jne 0x486786
push 2
push dword [ebp - 0x2014]
call fcn.00457700
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x55e78c
call fcn.0049f9b7
add esp, 4
cmp dword [0x55e78c], 0xffffffff
jne 0x4867ad
push 4
call fcn.0049f91a
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0046fe20
mov dword [0x55e788], ebx
push 0x55e78c
call fcn.0049fa2d
add esp, 4
jmp 0x4867ad
mov ecx, ebx
call fcn.0046fe30
jmp 0x4867c2
call fcn.004e5ca0
jmp 0x4868be

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x487d48
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5405c0]
inc esi
cmp ecx, esi
jne 0x487d30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49d900
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49d91e
mov ecx, dword [0x55e818]
test ecx, ecx
jne 0x49d925
pop esi
pop edi
pop ebp
jmp fcn.00464730
mov eax, 0x541c68
jmp 0x49d938
mov edi, dword [0x55e81c]
call dword [section..00cfg]
push esi
push edi
call ecx
add esp, 8
pop esi
pop edi
pop ebp
ret

Function at 0x49d940
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x541c68
je 0x49d975
mov ecx, dword [0x55e820]
test ecx, ecx
jne 0x49d962
pop esi
pop edi
pop ebp
jmp fcn.00464780
mov edi, dword [0x55e81c]
call dword [section..00cfg]
push esi
push edi
call ecx
add esp, 8
pop esi
pop edi
pop ebp
ret

Function at 0x49fff7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a0036
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a0036
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a0036
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a0036
cmp dword [ecx + 0x74], 0xe
jbe 0x4a0036
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4ac797
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.004ac92e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ac906
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ac906
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4ac8bb
jg 0x4ac7f3
test eax, eax
je 0x4ac8b1
push 1
push 0x1000
call fcn.00464820
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ac816
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ac8a8
push 0x8000
push ebx
call fcn.004b198b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ac83f
jg 0x4ac83a
cmp ecx, 0x1000
jb 0x4ac83f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b49bf
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac884
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 0x4ac83a
jl 0x4ac86b
test ecx, ecx
jne 0x4ac82c
push dword [ebp - 0xc]
push ebx
call fcn.004b198b
push esi
call fcn.00464780
add esp, 0xc
xor ebx, ebx
jmp 0x4ac914
cmp byte [edi + 0x24], 0
je 0x4ac89b
cmp dword [edi + 0x20], 5
jne 0x4ac89b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ac8a6
mov ebx, dword [edi + 0x18]
jmp 0x4ac8a8
xor ebx, ebx
push esi
call fcn.00464780
pop ecx
jmp 0x4ac914
test ecx, ecx
jg 0x4ac87d
jl 0x4ac8bb
test eax, eax
jae 0x4ac87d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bcf1d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ac8db
cmp byte [edi + 0x1c], 0
je 0x4ac87d
jmp 0x4ac90c
push ebx
call fcn.004afefa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ac87d
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 0x4ac914
cmp byte [edi + 0x1c], 0
je 0x4ac911
mov ebx, dword [edi + 0x18]
jmp 0x4ac914
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bcf1d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4af92a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a0d30
mov eax, dword [0x54a010]
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.004af54e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4af96c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4afac8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c09e0
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 + 0x54e850]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004bcf7b
mov ecx, dword [esi*4 + 0x54e850]
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 0x4afac1
cmp eax, dword [ecx + edi + 0x24]
jne 0x4afac1
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 0x4afac1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bcf7b
add esp, 0x14
test edx, edx
jl 0x4afac1
jg 0x4afa37
test eax, eax
jb 0x4afac1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4afac1
jl 0x4afa51
cmp dword [ebp - 0x1008], eax
ja 0x4afac1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4afa6f
test ebx, ebx
je 0x4afaa8
cmp ecx, edi
jae 0x4afaa8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4afa89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4afa95
cmp byte [ecx + 1], 0xa
jne 0x4afa95
inc ecx
jmp 0x4afa95
movzx eax, al
movsx eax, byte [eax + 0x54a280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4afa6f
cmp edx, ebx
jne 0x4afa6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4afac6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a0403
leave
ret
Function at 0x4b147b
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 + 0x54e850]
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 0x4b14bb
cmp byte [ebx], 0xa
jne 0x4b14bb
or byte [edi + eax + 0x28], 4
jmp 0x4b14c0
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 0x4b15bf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4b15a2
inc eax
cmp dl, 0xd
je 0x4b14ec
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4b1512
cmp eax, ecx
jae 0x4b1520
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 0x4b14d4
jmp 0x4b15bf
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 0x4b159d
cmp dword [ebp - 0x10], 0
je 0x4b159d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x54e850]
test byte [eax + edi + 0x28], 0x48
je 0x4b1577
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b1562
mov byte [esi], dl
jmp 0x4b1573
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x54e850]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b15bf
cmp byte [ebp - 1], 0xa
jne 0x4b1586
cmp esi, ebx
jne 0x4b1586
mov byte [esi], 0xa
jmp 0x4b15be
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bcf1d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b15bf
mov byte [esi], 0xd
jmp 0x4b15be
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x54e850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b15bc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b15bf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b15c8
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 + 0x54e850]
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 0x4b160e
cmp word [ebx], dx
jne 0x4b160e
or byte [eax + edi + 0x28], 4
jmp 0x4b1613
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 0x4b1776
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 0x4b1756
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b1654
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b168a
cmp eax, edx
jae 0x4b1698
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 0x4b162f
jmp 0x4b1776
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 0x4b1751
cmp dword [ebp - 0x18], 0
je 0x4b1751
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x54e850]
test byte [eax + edi + 0x28], 0x48
je 0x4b1727
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 0x4b16eb
mov word [esi], cx
jmp 0x4b1722
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x54e850]
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 + 0x54e850]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x54e850]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b1776
pop eax
cmp word [ebp - 4], ax
jne 0x4b1737
cmp esi, ebx
jne 0x4b1737
mov word [esi], ax
jmp 0x4b1773
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bcf1d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b1776
push 0xd
pop eax
jmp 0x4b1732
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x54e850]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b1770
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b1776
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret