joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489fa0
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 0x489ffa
cmp eax, 0x264
jne 0x489ffa
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 0x48a015
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 0x48a1a3
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 0x48a07c
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.00407d60
mov edx, 1
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x14], edx
jmp 0x48a086
xor ecx, ecx
test edx, edx
je 0x48a182
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 0x48a16a
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 0x48a0f5
inc eax
cmp eax, 4
jae 0x48a15a
mov ebx, dword [ebp + eax*4]
test ebx, ebx
je 0x48a0e7
bsf edi, ebx
je 0x48a0fd
inc edi
jmp 0x48a0ff
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 0x48a15a
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 0x48a0e0
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 0x48a091
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 0x48a030
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 0x48e450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0x2b0
push 0
call fcn.00460c40
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 0x48e50c
mov eax, dword [esi]
cmp eax, 0x7230203
je 0x48e4e6
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.0048c1c0
add esp, 0x18
push ebx
call fcn.00460670
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 0x48e51c
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.0048c1c0
add esp, 0x14
push ebx
call fcn.00460670
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 0x48e545
push eax
push str.words_4__was__u__want_0
push 0x19ed
jmp 0x48e4fe
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.004603d0
push 0x5c
push eax
mov dword [ebx + 0x18], eax
call fcn.00460210
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.004604f0
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 0x48e5aa
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 0x48e5c0
cmp eax, 0xd
jne 0x48e5c9
cmp ebp, 3
jae 0x48e5c9
mov cl, 1
jmp 0x48e5cb
xor cl, cl
mov byte [ebx + 0x27a], cl
test eax, eax
jne 0x48e5da
cmp ebp, 0x11
je 0x48e5e3
cmp eax, 0x11
je 0x48e5e3
xor ecx, ecx
jmp 0x48e5e8
mov ecx, 1
cmp dword [edx], 1
jne 0x48e5f5
test ecx, ecx
je 0x48e5f5
mov cl, 1
jmp 0x48e5f7
xor cl, cl
mov byte [ebx + 0x27b], cl
cmp eax, 8
je 0x48e607
cmp eax, 0xd
jne 0x48e60c
cmp ebp, 0xb
jb 0x48e61a
cmp eax, 0x13
jne 0x48e616
cmp ebp, 0x12
jb 0x48e61a
xor al, al
jmp 0x48e61c
mov al, 1
mov byte [ebx + 0x27c], al
cmp dword [edx], 0
jne 0x48e63f
cmp dword [ebx + 0x64], 0x10400
jae 0x48e63f
push ebx
call fcn.004621c0
add esp, 4
mov dword [ebx + 0x88], eax
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4d5720
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.004f0640
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d5775
push esi
sub ecx, edx
lea eax, [esp + 0x78]
push ecx
push str._Z_zu_s
push eax
call fcn.004d52d0
lea esi, [esp + 0x84]
xor edi, edi
add esp, 0x10
add esi, eax
cmp dword [esp + 0x184], edi
jbe 0x4d595b
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 0x4d5815
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.0x4d57d4.1
jmp dword [eax*4 + 0x4d5988]
mov eax, 1
jmp 0x4d57f5
mov eax, 2
jmp 0x4d57f5
mov eax, 3
jmp 0x4d57f5
mov eax, 4
push eax
push str.U3AS_d
push esi
call fcn.004d52d0
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 0x4d5822
mov byte [esi], 0x4b
inc esi
movzx edx, byte [ebx + 0x11]
movzx eax, byte [ebx + 0x10]
imul edx, eax
cmp edx, 1
jbe 0x4d5870
xor ecx, ecx
test edi, edi
je 0x4d585f
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 6
jne 0x4d584f
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp ebx, eax
je 0x4d5911
inc ecx
cmp ecx, edi
jb 0x4d5840
push edx
push str.Dv_d_
push esi
call fcn.004d52d0
add esp, 0xc
add esi, eax
cmp ebp, 8
je 0x4d5928
cmp ebp, 0xd
je 0x4d5921
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 0x4d592d
push 0x967bf4
push esi
call fcn.004d52d0
add esp, 8
jmp 0x4d593c
mov eax, str.9ocl_event
jmp 0x4d592d
mov eax, str.11ocl_sampler
push eax
push 0x51158c
push esi
call fcn.004d52d0
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 0x4d57b4
pop ebp
lea eax, [esp + 0x74]
push eax
call fcn.00502358
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.004eeee5
add esp, 0x16c
ret
Function at 0x4d78a0
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 0x4d7c92
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 0x4d7c76
test esi, esi
je 0x4d7c76
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
mov dword [esp + 0x10], ebp
cmp dword [esi + 0xc], 1
jne 0x4d7c4e
mov eax, dword [esp + 0x88]
test dword [esi + 0x1c], eax
je 0x4d7c4e
push esi
call fcn.00417a40
add esp, 4
test al, al
jne 0x4d7c4e
push dword [esi + 0x20]
call fcn.0045f6d0
add esp, 4
test al, al
je 0x4d7c4e
cmp dword [esi + 0x18], 0
mov eax, esi
je 0x4d7982
nop dword [eax]
mov ecx, dword [eax + 0x18]
cmp ecx, 5
je 0x4d7c4e
test ecx, ecx
jne 0x4d7964
xor eax, eax
jmp 0x4d797c
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 0x4d7950
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4d7c4e
push eax
push dword [esp + 0x88]
call fcn.00461b20
add esp, 8
test eax, eax
je 0x4d7c4e
push dword [esp + 0x8c]
mov edi, dword [eax + 8]
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00417ab0
mov eax, dword [esp + 0x84]
xor edx, edx
add esp, 0xc
cmp dword [eax], edx
je 0x4d7c36
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 4
jne 0x4d79e4
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 0x4d79d0
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 + 0x4d7c98]
xor ebx, ebx
lea eax, [ebx + 0x48]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.00407fa0
push esi
call fcn.00417a40
add esp, 0xc
mov esi, ebp
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x4d7c68
mov eax, dword [ebp]
test eax, eax
je 0x4d7c68
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
jmp 0x4d7c6a
xor ebp, ebp
mov dword [esp + 0x10], ebp
test esi, esi
jne 0x4d7906
push dword [esp + 0x18]
call fcn.004073e0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4d78e2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4e6720
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.00412190
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.00412190
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.00412190
push ebx
mov ebx, dword [esp + 0x68]
mov esi, eax
push 0x9a
push ebx
mov dword [esp + 0x58], esi
call fcn.0041d8d0
push edi
push 0x9a
push ebx
mov dword [esp + 0x68], eax
call fcn.0041d8d0
add esp, 0x48
mov dword [esp + 0x24], eax
push esi
push 0x9a
push ebx
call fcn.0041d8d0
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
je 0x4e6852
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
push eax
push ebp
push ebx
call fcn.00412190
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.00409c50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4e683a
mov eax, dword [esp + 0x40]
push esi
mov dword [esi + 0x30], ebp
push ebx
mov dword [esi + 0x34], eax
call fcn.0041dcb0
add esp, 8
add esi, 0x18
push esi
push edi
push 0xed
push ebx
call fcn.0041d920
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.0041d920
push dword [esp + 0x34]
mov esi, eax
push edi
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
mov esi, eax
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004e5750
add esp, 0x40
mov dword [esp + 0x40], eax
push esi
push ebx
call fcn.0041e030
push dword [esp + 0x30]
mov ebp, eax
push dword [esp + 0x30]
push 0xd4
push ebx
call fcn.0041d920
push edi
push dword [esp + 0x40]
mov esi, eax
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
add esp, 0x40
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004e5a90
push esi
mov esi, dword [esp + 0x40]
mov ebx, eax
push esi
call fcn.0041e030
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004e5dd0
push edi
mov edi, dword [esp + 0x50]
mov esi, eax
push edi
call fcn.0041df70
push esi
push ebx
push edi
call fcn.0041dd80
push ebp
push edi
mov esi, eax
call fcn.0041df70
push esi
push dword [esp + 0x78]
push edi
call fcn.0041dd80
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4f04c0
Capabilities:
Parse pe header

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

Function at 0x4fd20e
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 0x4fd250
cmp byte [ebx], 0xa
jne 0x4fd250
or byte [edi + eax + 0x28], 4
jmp 0x4fd255
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4fd358
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4fd333
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4fd284
mov eax, dword [ebp - 8]
jmp 0x4fd2a4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4fd2c0
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4fd29e
add eax, 2
mov cl, 0xa
jmp 0x4fd2a1
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 0x4fd266
jmp 0x4fd358
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 0x4fd32e
cmp dword [ebp - 0x10], 0
je 0x4fd32e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
je 0x4fd30d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4fd2fd
mov byte [esi], 0xa
jmp 0x4fd357
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x983bd0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4fd357
cmp byte [ebp - 1], 0xa
jne 0x4fd317
cmp esi, ebx
je 0x4fd2f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00507e5b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fd358
mov byte [esi], 0xd
jmp 0x4fd357
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 0x4fd355
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4fd358
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fd361
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 0x4fd3a5
push 0xa
pop esi
cmp word [ebx], si
jne 0x4fd3a5
or byte [eax + edi + 0x28], 4
jmp 0x4fd3aa
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 0x4fd515
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 0x4fd4ed
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4fd3f7
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4fd421
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4fd440
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4fd40e
push ebx
add eax, 4
pop edx
jmp 0x4fd416
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 0x4fd3bc
jmp 0x4fd515
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 0x4fd4e8
cmp dword [ebp - 0x14], 0
je 0x4fd4e8
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4fd4c4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4fd48c
mov word [esi], ax
jmp 0x4fd512
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 0x4fd512
cmp word [ebp - 4], ax
jne 0x4fd4ce
cmp esi, ebx
je 0x4fd484
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00507e5b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fd515
push 0xd
pop eax
jmp 0x4fd484
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 0x4fd50f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4fd515
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 0x4ff07d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004efdf0
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.00503596
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ff0bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ff236
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ef930
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.00507e3d
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 0x4ff22f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ff22f
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 0x4ff22f
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507e3d
add esp, 0x14
cmp edx, esi
jl 0x4ff22f
jg 0x4ff18a
cmp eax, esi
jb 0x4ff22f
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4ff22f
jl 0x4ff1ac
cmp dword [ebp - 0x1008], eax
ja 0x4ff22f
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 0x4ff1d1
cmp ebx, esi
je 0x4ff216
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4ff216
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff1f7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff203
cmp byte [ecx + 1], 0xa
jne 0x4ff203
inc ecx
jmp 0x4ff203
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 0x4ff1dd
cmp edx, ebx
jne 0x4ff1dd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4ff234
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004eeee5
leave
ret
Function at 0x504483
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 0x50449d
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 0x5044b4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x50450c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00507b95
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x50450c
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 0x50450c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50450c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x504506
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x504508
xor bl, bl
mov al, bl
jmp 0x50450e
xor al, al
pop esi
pop ebx
leave
ret