joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x34]
xor dl, dl
push esi
push edi
mov ecx, 0x68
mov byte [esp + 0xf], dl
mov eax, dword [ebx + 0x18]
mov edi, 0x78
cmp eax, 0x266
cmovne edi, ecx
mov ecx, dword [esp + 0x38]
add edi, ebx
mov dword [esp + 0x30], edi
cmp dword [ecx + 4], 3
jne 0x489f3a
cmp eax, 0x264
jne 0x489f3a
imul eax, eax, 0x64
mov byte [esp + 0x38], 1
movzx eax, byte [eax + 0x52382d]
imul eax, dword [ebx + eax*4 + 0x30], 0x410
add eax, 0x4106c
jmp 0x489f55
imul eax, eax, 0x64
mov byte [esp + 0x38], dl
movzx eax, byte [eax + 0x52382d]
imul eax, dword [ebx + eax*4 + 0x30], 0x410
add eax, 0x2086c
add eax, ecx
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
cmp byte [ebx + 0x30], dl
jbe 0x48a0e3
push ebp
mov ebp, dword [esp + 0x44]
nop
movups xmm0, xmmword [edi]
mov edx, dword [eax + 0x400]
mov dword [esp + 0x14], edx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x489fbc
movups xmm0, xmmword [edi]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407cf0
mov edx, 1
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x14], edx
jmp 0x489fc6
xor ecx, ecx
test edx, edx
je 0x48a0c2
shl ecx, 5
add ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x48a0aa
mov eax, dword [ecx]
mov ecx, 1
cmp byte [esp + 0x3c], 0
cmovne eax, ecx
mov ecx, dword [esp + 0x48]
shl eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [eax + ecx]
mov dword [esp + 0x28], eax
imul eax, dword [ebx + 0x18], 0x64
movzx eax, byte [eax + 0x523835]
mov eax, dword [ebx + eax*4 + 0x30]
mov ebx, dword [ebp]
add eax, esi
mov dword [esp + 0x30], eax
xor eax, eax
nop dword [eax]
shr eax, 5
test ebx, ebx
jne 0x48a035
inc eax
cmp eax, 4
jae 0x48a09a
mov ebx, dword [ebp + eax*4]
test ebx, ebx
je 0x48a027
bsf edi, ebx
je 0x48a03d
inc edi
jmp 0x48a03f
xor edi, edi
dec edi
xor esi, esi
mov edx, edi
xor ecx, ecx
bts esi, edx
cmp edx, 0x20
cmovae ecx, esi
shl eax, 5
xor esi, ecx
add eax, edi
not esi
and ebx, esi
cmp eax, 0x80
jae 0x48a09a
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x13], 1
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x28]
imul ecx, eax
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
lea esi, [esi + ecx*4]
mov ecx, esi
and esi, 0x1f
shr ecx, 5
lea edx, [edx + ecx*4]
mov ecx, dword [edx]
bts ecx, esi
mov dword [edx], ecx
jmp 0x48a020
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
add ecx, 0x20
sub edx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
jne 0x489fd1
mov edi, dword [esp + 0x34]
movzx ecx, byte [ebx + 0x30]
inc esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], esi
cmp esi, ecx
jb 0x489f70
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret
pop edi
pop esi
mov al, dl
pop ebx
add esp, 0x28
ret
Function at 0x48e390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0x2b0
push 0
call fcn.00460b90
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 8
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x280], eax
lea ecx, [ebx + 0x29c]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0xffffffff
mov dword [ebx + 0x80], 0xffffffff
mov dword [ecx], ecx
mov dword [ecx + 4], ecx
mov dword [ebx + 0x284], eax
cmp edx, 5
jbe 0x48e44c
mov eax, dword [esi]
cmp eax, 0x7230203
je 0x48e426
push 0x7230203
push eax
push str.words_0__was_0x_x__want_0x_x
push 0x19de
push str..._.._src_compiler_spirv_spirv_to_nir.c
push ebx
call fcn.0048c100
add esp, 0x18
push ebx
call fcn.004605c0
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
mov dword [ebx + 0x64], eax
cmp eax, 0x10000
jae 0x48e45c
push eax
push str.version_was_0x_x__want___0x10000
push 0x19e4
push str..._.._src_compiler_spirv_spirv_to_nir.c
push ebx
call fcn.0048c100
add esp, 0x14
push ebx
call fcn.004605c0
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop ecx
ret
movzx eax, word [esi + 0xa]
mov dword [ebx + 0x9c], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
movzx ebp, word [esi + 8]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x48e485
push eax
push str.words_4__was__u__want_0
push 0x19ed
jmp 0x48e43e
imul eax, ecx, 0x58
mov dword [ebx + 0x94], ecx
push edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00460320
push 0x5c
push eax
mov dword [ebx + 0x18], eax
call fcn.00460160
push dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov edi, eax
mov ecx, 0x17
rep movsd dword es:[edi], dword [esi]
push 0x1c
push dword [ebx + 0x18]
mov dword [ebx + 0x6c], eax
call fcn.00460440
mov edx, dword [ebx + 0x6c]
lea edi, [ebx + 0xa4]
mov dword [ebx + 0x98], eax
add esp, 0x1c
mov ecx, 0x3a
mov esi, dword [edx + 0x18]
test esi, esi
jne 0x48e4ea
mov esi, 0x5501d0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x9c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
cmp eax, 8
je 0x48e500
cmp eax, 0xd
jne 0x48e509
cmp ebp, 3
jae 0x48e509
mov cl, 1
jmp 0x48e50b
xor cl, cl
mov byte [ebx + 0x27a], cl
test eax, eax
jne 0x48e51a
cmp ebp, 0x11
je 0x48e523
cmp eax, 0x11
je 0x48e523
xor ecx, ecx
jmp 0x48e528
mov ecx, 1
cmp dword [edx], 1
jne 0x48e535
test ecx, ecx
je 0x48e535
mov cl, 1
jmp 0x48e537
xor cl, cl
mov byte [ebx + 0x27b], cl
cmp eax, 8
je 0x48e547
cmp eax, 0xd
jne 0x48e54c
cmp ebp, 0xb
jb 0x48e55a
cmp eax, 0x13
jne 0x48e556
cmp ebp, 0x12
jb 0x48e55a
xor al, al
jmp 0x48e55c
mov al, 1
mov byte [ebx + 0x27c], al
cmp dword [edx], 0
jne 0x48e57f
cmp dword [ebx + 0x64], 0x10400
jae 0x48e57f
push ebx
call fcn.00462120
add esp, 4
mov dword [ebx + 0x88], eax
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4d5640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x16c
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x180]
push ebx
mov ebx, dword [esp + 0x180]
push esi
mov esi, dword [esp + 0x178]
push edi
push 0xff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x79]
push 0
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x80], 0
call fcn.004f0560
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d5695
push esi
sub ecx, edx
lea eax, [esp + 0x78]
push ecx
push str._Z_zu_s
push eax
call fcn.004d51f0
lea esi, [esp + 0x84]
xor edi, edi
add esp, 0x10
add esi, eax
cmp dword [esp + 0x184], edi
jbe 0x4d587b
mov ecx, 1
mov dword [esp + 0xc], ecx
push ebp
mov eax, dword [ebx + edi*4]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
cmp ebp, 6
jne 0x4d5735
mov ebx, dword [esp + 0x14]
mov byte [esi], 0x50
inc esi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, 8
ja case.0x4d56f4.1
jmp dword [eax*4 + 0x4d58a8]
mov eax, 1
jmp 0x4d5715
mov eax, 2
jmp 0x4d5715
mov eax, 3
jmp 0x4d5715
mov eax, 4
push eax
push str.U3AS_d
push esi
call fcn.004d51f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add esi, eax
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
test dword [esp + 0x184], ecx
je 0x4d5742
mov byte [esi], 0x4b
inc esi
movzx edx, byte [ebx + 0x11]
movzx eax, byte [ebx + 0x10]
imul edx, eax
cmp edx, 1
jbe 0x4d5790
xor ecx, ecx
test edi, edi
je 0x4d577f
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 6
jne 0x4d576f
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp ebx, eax
je 0x4d5831
inc ecx
cmp ecx, edi
jb 0x4d5760
push edx
push str.Dv_d_
push esi
call fcn.004d51f0
add esp, 0xc
add esi, eax
cmp ebp, 8
je 0x4d5848
cmp ebp, 0xd
je 0x4d5841
movsx eax, byte [ebx + 4]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x967c1c
mov dword [esp + 0x20], 0x54754c
mov dword [esp + 0x24], 0x545140
mov dword [esp + 0x28], 0x967c20
mov dword [esp + 0x2c], str.dhcsml
mov dword [esp + 0x30], 0x967c28
mov dword [esp + 0x34], 0x967c2c
mov dword [esp + 0x38], 0x545150
mov dword [esp + 0x3c], 0x967c30
mov dword [esp + 0x40], 0x967c34
mov dword [esp + 0x44], 0x967c38
mov dword [esp + 0x48], 0x547558
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + eax*4 + 0x1c]
jmp 0x4d584d
push 0x967bf4
push esi
call fcn.004d51f0
add esp, 8
jmp 0x4d585c
mov eax, str.9ocl_event
jmp 0x4d584d
mov eax, str.11ocl_sampler
push eax
push 0x51158c
push esi
call fcn.004d51f0
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc edi
mov ebx, dword [esp + 0x14]
add esi, eax
rol ecx, 1
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x188]
jb 0x4d56d4
pop ebp
lea eax, [esp + 0x74]
push eax
call fcn.00502278
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x170]
pop esi
pop ebx
xor ecx, esp
call fcn.004eee05
add esp, 0x16c
ret
Function at 0x4d77c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x70]
xorps xmm0, xmm0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [esp + 0x44], xmm0
test eax, eax
je 0x4d7bb2
push ebx
push ebp
push esi
push edi
mov esi, dword [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi]
test eax, eax
je 0x4d7b96
test esi, esi
je 0x4d7b96
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
mov dword [esp + 0x10], ebp
cmp dword [esi + 0xc], 1
jne 0x4d7b6e
mov eax, dword [esp + 0x88]
test dword [esi + 0x1c], eax
je 0x4d7b6e
push esi
call fcn.004179b0
add esp, 4
test al, al
jne 0x4d7b6e
push dword [esi + 0x20]
call fcn.0045f620
add esp, 4
test al, al
je 0x4d7b6e
cmp dword [esi + 0x18], 0
mov eax, esi
je 0x4d78a2
nop dword [eax]
mov ecx, dword [eax + 0x18]
cmp ecx, 5
je 0x4d7b6e
test ecx, ecx
jne 0x4d7884
xor eax, eax
jmp 0x4d789c
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx + 0xc], 1
cmove eax, ecx
cmp dword [eax + 0x18], 0
jne 0x4d7870
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4d7b6e
push eax
push dword [esp + 0x88]
call fcn.00461a80
add esp, 8
test eax, eax
je 0x4d7b6e
push dword [esp + 0x8c]
mov edi, dword [eax + 8]
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00417a20
mov eax, dword [esp + 0x84]
xor edx, edx
add esp, 0xc
cmp dword [eax], edx
je 0x4d7b56
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 4
jne 0x4d7904
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xc]
lea edi, [eax + ecx*8]
mov eax, dword [esp + 0x78]
inc edx
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
test ecx, ecx
jne 0x4d78f0
mov ebp, dword [edi + 0x14]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x80], esi
nop word [eax + eax]
mov eax, dword [esp + 0x78]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], ecx
mov edx, dword [ecx + 0x18]
jmp dword [edx*4 + 0x4d7bb8]
xor ebx, ebx
lea eax, [ebx + 0x48]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.00407f30
push esi
call fcn.004179b0
add esp, 0xc
mov esi, ebp
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x4d7b88
mov eax, dword [ebp]
test eax, eax
je 0x4d7b88
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
jmp 0x4d7b8a
xor ebp, ebp
mov dword [esp + 0x10], ebp
test esi, esi
jne 0x4d7826
push dword [esp + 0x18]
call fcn.004073e0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4d7802
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4e6640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov byte [esp + 0x10], al
lea eax, [esp + 0x40]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x50], 0
call fcn.00412100
mov ebx, eax
mov dword [esp + 0x50], 1
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ebx
push eax
push ebp
push esi
call fcn.00412100
mov edi, eax
mov dword [esp + 0x60], 2
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], edi
push eax
push ebp
push esi
call fcn.00412100
push ebx
mov ebx, dword [esp + 0x68]
mov esi, eax
push 0x9a
push ebx
mov dword [esp + 0x58], esi
call fcn.0041d840
push edi
push 0x9a
push ebx
mov dword [esp + 0x68], eax
call fcn.0041d840
add esp, 0x48
mov dword [esp + 0x24], eax
push esi
push 0x9a
push ebx
call fcn.0041d840
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
je 0x4e6772
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
push eax
push ebp
push ebx
call fcn.00412100
movsd xmm0, qword [0x9683f8]
mov edi, eax
add esp, 0x10
movzx esi, byte [edi + 0x11]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.00406d20
push esi
push 1
push dword [ebx + 0x10]
mov ebp, eax
mov dword [esp + 0x58], edx
call fcn.00409be0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4e675a
mov eax, dword [esp + 0x40]
push esi
mov dword [esi + 0x30], ebp
push ebx
mov dword [esi + 0x34], eax
call fcn.0041dc20
add esp, 8
add esi, 0x18
push esi
push edi
push 0xed
push ebx
call fcn.0041d890
mov dword [esp + 0x3c], eax
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
push edi
push 0xd4
push ebx
call fcn.0041d890
push dword [esp + 0x34]
mov esi, eax
push edi
push 0xd4
push ebx
call fcn.0041d890
push esi
push eax
push 0x125
push ebx
call fcn.0041d890
push eax
push ebx
call fcn.0041e000
mov esi, eax
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004e5670
add esp, 0x40
mov dword [esp + 0x40], eax
push esi
push ebx
call fcn.0041dfa0
push dword [esp + 0x30]
mov ebp, eax
push dword [esp + 0x30]
push 0xd4
push ebx
call fcn.0041d890
push edi
push dword [esp + 0x40]
mov esi, eax
push 0xd4
push ebx
call fcn.0041d890
push esi
push eax
push 0x125
push ebx
call fcn.0041d890
push eax
push ebx
call fcn.0041e000
add esp, 0x40
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004e59b0
push esi
mov esi, dword [esp + 0x40]
mov ebx, eax
push esi
call fcn.0041dfa0
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004e5cf0
push edi
mov edi, dword [esp + 0x50]
mov esi, eax
push edi
call fcn.0041dee0
push esi
push ebx
push edi
call fcn.0041dcf0
push ebp
push edi
mov esi, eax
call fcn.0041dee0
push esi
push dword [esp + 0x78]
push edi
call fcn.0041dcf0
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4f03e0
Capabilities:
Parse pe header

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

Function at 0x4fd12e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x983bd0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4fd170
cmp byte [ebx], 0xa
jne 0x4fd170
or byte [edi + eax + 0x28], 4
jmp 0x4fd175
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4fd278
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4fd253
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4fd1a4
mov eax, dword [ebp - 8]
jmp 0x4fd1c4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4fd1e0
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4fd1be
add eax, 2
mov cl, 0xa
jmp 0x4fd1c1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4fd186
jmp 0x4fd278
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 0x4fd24e
cmp dword [ebp - 0x10], 0
je 0x4fd24e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
je 0x4fd22d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4fd21d
mov byte [esi], 0xa
jmp 0x4fd277
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x983bd0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4fd277
cmp byte [ebp - 1], 0xa
jne 0x4fd237
cmp esi, ebx
je 0x4fd218
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00507d7b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fd278
mov byte [esi], 0xd
jmp 0x4fd277
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x983bd0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4fd275
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4fd278
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fd281
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x983bd0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4fd2c5
push 0xa
pop esi
cmp word [ebx], si
jne 0x4fd2c5
or byte [eax + edi + 0x28], 4
jmp 0x4fd2ca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4fd435
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4fd40d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4fd317
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4fd341
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4fd360
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4fd32e
push ebx
add eax, 4
pop edx
jmp 0x4fd336
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4fd2dc
jmp 0x4fd435
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 0x4fd408
cmp dword [ebp - 0x14], 0
je 0x4fd408
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4fd3e4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4fd3ac
mov word [esi], ax
jmp 0x4fd432
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x983bd0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x983bd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x983bd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4fd432
cmp word [ebp - 4], ax
jne 0x4fd3ee
cmp esi, ebx
je 0x4fd3a4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00507d7b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fd435
push 0xd
pop eax
jmp 0x4fd3a4
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x983bd0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4fd42f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4fd435
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fef9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004efd10
mov eax, dword [0x97ffc0]
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.005034b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4fefdf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ff156
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ef850
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x983bd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00507d5d
mov ecx, dword [esi*4 + 0x983bd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ff14f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ff14f
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ff14f
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507d5d
add esp, 0x14
cmp edx, esi
jl 0x4ff14f
jg 0x4ff0aa
cmp eax, esi
jb 0x4ff14f
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4ff14f
jl 0x4ff0cc
cmp dword [ebp - 0x1008], eax
ja 0x4ff14f
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4ff0f1
cmp ebx, esi
je 0x4ff136
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4ff136
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff117
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff123
cmp byte [ecx + 1], 0xa
jne 0x4ff123
inc ecx
jmp 0x4ff123
movzx eax, al
movsx eax, byte [eax + 0x980120]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ff0fd
cmp edx, ebx
jne 0x4ff0fd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4ff154
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004eee05
leave
ret
Function at 0x5043a3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x5043bd
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x5043d4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x50442c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00507ab5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x50442c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x50442c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50442c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x504426
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x504428
xor bl, bl
mov al, bl
jmp 0x50442e
xor al, al
pop esi
pop ebx
leave
ret