joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bce0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [0x55587c]
mov ecx, 0xff470cd1
add ecx, dword [eax - 0x485a650c]
call ecx
mov esi, eax
mov edx, 0xaaaaaaab
mov eax, edi
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
mov dword [esp + 4], edi
mov edi, 0xf02ef9d2
mov ebp, 0x757e0b1b
mov eax, dword [esp + 0x1c]
jmp 0x41bd30
cmp edi, 0x353331e6
cmove edi, ebp
cmp edi, 0x3256506d
jl 0x41bd70
cmp edi, 0x63a50b6f
jb 0x41bdb0
cmp edi, 0x757e0b1b
jb 0x41be5e
cmp edi, 0x7db16629
jae 0x41bee6
cmp edi, 0x757e0b1b
jne 0x41bd30
jmp 0x41bf78
cmp edi, 0xefb8ca56
jge 0x41be30
cmp edi, 0x81e140fd
jae 0x41be7b
cmp edi, 0x8029de35
jne 0x41bd30
mov ecx, dword [esp]
cmp ecx, 2
mov edi, 0x9c3e1798
mov ecx, 0xf533ddcf
cmovl edi, ecx
jmp 0x41bd30
cmp edi, 0x353331e6
jae 0x41be9a
cmp edi, 0x3256506d
jne 0x41bd30
movzx edi, byte [ebx]
shr edi, 2
movzx ecx, byte [esi + edi]
mov byte [eax], cl
movzx ecx, byte [ebx]
shl ecx, 4
and ecx, 0x30
movzx edi, byte [ebx + 1]
shr edi, 4
or edi, ecx
movzx ecx, byte [esi + edi]
mov byte [eax + 1], cl
movzx ecx, byte [ebx + 2]
shr ecx, 6
movzx edi, byte [ebx + 1]
and edi, 0xf
lea ecx, [ecx + edi*4]
movzx ecx, byte [esi + ecx]
mov byte [eax + 2], cl
movzx ecx, byte [ebx + 2]
and ecx, 0x3f
movzx ecx, byte [esi + ecx]
mov byte [eax + 3], cl
add eax, 4
add ebx, 3
mov edi, 0xf02ef9d2
jmp 0x41bd30
cmp edi, 0xf02ef9d2
jge 0x41bebd
cmp edi, 0xefb8ca56
jne 0x41bd30
cmp dword [esp], 0
mov edi, 0x8029de35
mov ecx, 0x63a50b6f
cmovle edi, ecx
jmp 0x41bd30
cmp edi, 0x63a50b6f
jne 0x41bd30
cmp dword [esp], 0
mov edi, 0x353331e6
cmove edi, ebp
jmp 0x41bd30
cmp edi, 0x9c3e1798
jae 0x41bf25
cmp edi, 0x81e140fd
mov ecx, 0x4e8be4ea
cmove edi, ecx
jmp 0x41bd30
cmp edi, 0x4e8be4ea
jb 0x41bd27
jne 0x41bd30
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov edi, 0xefb8ca56
jmp 0x41bd30
cmp edi, 0xf533ddcf
jge 0x41bf43
cmp edi, 0xf02ef9d2
jne 0x41bd30
sub edx, 1
mov edi, 0x3256506d
mov ecx, 0x81e140fd
cmovb edi, ecx
jmp 0x41bd30
jne 0x41bd30
movzx ecx, byte [ebx]
shr ecx, 2
movzx ecx, byte [esi + ecx]
mov byte [eax], cl
movzx ecx, byte [ebx]
shl ecx, 4
and ecx, 0x30
movzx edi, byte [ebx + 1]
shr edi, 4
or edi, ecx
movzx ecx, byte [esi + edi]
mov byte [eax + 1], cl
movzx ecx, byte [ebx + 1]
and ecx, 0xf
movzx ecx, byte [esi + ecx*4]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
jmp 0x41bf6b
jne 0x41bd30
mov ecx, dword [esp]
cmp ecx, 2
mov edi, 0x353331e6
mov ecx, 0x7db16629
cmove edi, ecx
jmp 0x41bd30
jne 0x41bd30
movzx ecx, byte [ebx]
shr ecx, 2
movzx ecx, byte [esi + ecx]
mov byte [eax], cl
movzx ecx, byte [ebx]
shl ecx, 4
and ecx, 0x30
movzx ecx, byte [esi + ecx]
mov byte [eax + 1], cl
mov word [eax + 2], 0x3d3d
add eax, 4
mov edi, 0x757e0b1b
jmp 0x41bd30
sub eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46ff40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1430
call fcn.004f3750
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c37d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x570d60]
mov ecx, 0xb6a715cd
mov eax, dword [eax + 0x74957ea4]
add eax, ecx
lea ecx, [ebp - 0x9c]
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
call eax
mov eax, dword [0x570d44]
mov ecx, 0xeefe9bf9
add ecx, dword [eax - 0x5a3ad77d]
mov dword [ebp - 0x10], 0
call ecx
mov ecx, dword [0x570d48]
mov edx, 0xbb2c89d2
add edx, dword [ecx - 0x74a481d5]
lea ecx, [ebp - 0x143c]
push 0x6c078965
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [0x570d60]
mov esi, 0xb6a715cd
mov eax, dword [eax + 0x74957ea8]
add eax, esi
lea ecx, [ebp - 0x9c]
call eax
dec eax
mov ecx, dword [0x570d60]
mov edx, dword [ecx + 0x74957eac]
add edx, esi
lea ecx, [ebp - 0x84]
push eax
push 0
call edx
mov eax, dword [0x570d7c]
mov ecx, 0xa608df84
mov eax, dword [eax - 0x57fe1c08]
add eax, ecx
sub esp, 4
movzx ecx, byte [ebp - 0x64]
mov byte [esp], cl
lea esi, [ebp - 0x7c]
mov ecx, esi
call eax
mov dword [ebp - 0x10], 1
mov ecx, esi
push dword [ebp + 8]
push 0
call fcn.00420780
mov eax, dword [0x570d60]
mov edx, 0xb6a715cd
add edx, dword [eax + 0x74957eb0]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x7c]
push eax
call edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x143c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 8]
call fcn.004704d0
add esp, 0x10
mov eax, 0x74957ea4
mov ecx, dword [0x570d68]
add ecx, eax
add eax, dword [0x570d6c]
push eax
push ecx
call fcn.00407fe0
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [0x570d8c]
mov esi, 0x5f01f549
mov edx, dword [edx + 0x423b2b23]
add edx, esi
push 0xa
mov dword [ebp - 0x20], eax
call edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x570d8c]
mov esi, 0x5f01f549
add esi, dword [edx + 0x423b2b27]
movsx eax, al
push eax
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x570d8c]
mov edx, 0x5f01f549
add edx, dword [eax + 0x423b2b2b]
call edx
mov eax, dword [0x570d60]
mov esi, 0xb6a715cd
mov eax, dword [eax + 0x74957eb4]
add eax, esi
lea edi, [ebp - 0x30]
mov ecx, 0x5b28ec
push edi
call eax
mov eax, dword [0x570d60]
mov eax, dword [eax + 0x74957eb8]
add eax, esi
lea edx, [ebp - 0x2c]
mov ecx, 0x5b28ec
push edx
call eax
lea ebx, [ebp - 0x4c]
jmp 0x47016f
mov eax, dword [0x570d60]
mov eax, dword [eax + 0x74957ebc]
add eax, esi
mov ecx, edi
lea edx, [ebp - 0x2c]
push edx
call eax
movzx eax, al
mov ecx, dword [0x570d74]
mov eax, dword [ecx + eax*8 + 0x74957eac]
mov ecx, 0x4030e74
add eax, ecx
mov dword [ebp - 0x10], 2
jmp eax
Function at 0x483810
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor edx, edx
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov esi, 0x1a7d590d
mov ebp, 0x42d156a3
mov ecx, 0xf5d0f9f1
cmp edx, ebx
mov edi, 0xd592b571
cmovb edi, esi
jmp 0x483848
cmp ecx, 0xf5d0f9f1
je 0x48387d
cmp ecx, 0xf5d0f9f1
jl 0x483870
cmp ecx, 0x1a7d590d
jl 0x483840
cmp ecx, 0x42d156a2
ja 0x4838cc
cmp ecx, 0x1a7d590d
jne 0x483848
jmp 0x483890
cmp ecx, 0xd592b571
jb 0x4838a7
cmove ecx, ebp
jmp 0x483838
mov ecx, edi
jmp 0x483838
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
xor eax, ecx
imul eax, eax, 0x1000193
mov ecx, 0xb71a38ba
jmp 0x48382e
cmp ecx, 0xb71a38ba
mov edi, ebx
mov ebx, 0
sete bl
mov dword [esp], ebx
mov ebx, edi
mov edi, 0xf5d0f9f1
cmove ecx, edi
add edx, dword [esp]
jmp 0x48382e
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a8f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov edi, ecx
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
lea eax, [esi + 0x40]
mov dword [esi + 0x44], 0x4c3f00
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
mov eax, dword [0x57235c]
mov ecx, 0xc1f2e0f5
mov eax, dword [eax + 0x442ed6dd]
add eax, ecx
lea ecx, [esi + 0x20]
push dword [ebp + 8]
call eax
lea ebx, [edi + 0x38]
mov dword [esi + 8], edi
lea ecx, [edi + 4]
mov eax, dword [0x57235c]
mov eax, dword [eax + 0x442ed6e1]
mov edx, 0xc1f2e0f5
add eax, edx
mov dword [esi + 0xc], ecx
call eax
mov dword [esi + 0x48], 0
mov ecx, ebx
lea edx, [esi + 0x20]
push edx
push 4
push eax
call fcn.004a9bd0
mov byte [esi + 7], al
mov eax, dword [esi + 8]
lea edi, [eax + 0x20]
mov eax, dword [0x572330]
mov ebx, 0xf4a72f5b
mov eax, dword [eax - 0x72acac8a]
add eax, ebx
lea edx, [esi + 0x10]
mov ecx, edi
push edx
call eax
mov eax, dword [0x572330]
add ebx, dword [eax - 0x72acac86]
lea eax, [esi + 7]
lea edx, [esi + 0x30]
mov ecx, edi
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push edx
call ebx
cmp byte [esi + 7], 0
je 0x4a907e
mov eax, dword [0x57235c]
mov edx, 0xc1f2e0f5
add edx, dword [eax + 0x442ed6e5]
mov ecx, dword [esi + 0xc]
call edx
cmp dword [eax], 0
je 0x4a907e
mov dword [esi + 0x1c], esp
sub esp, 0x10
mov ecx, esp
mov eax, dword [esi + 8]
add eax, 0x68
mov dword [esi + 0x18], ecx
push eax
call fcn.004ab1b0
mov eax, dword [0x57235c]
mov ecx, 0xc1f2e0f5
mov eax, dword [eax + 0x442ed6e5]
add eax, ecx
mov ecx, dword [esi + 0xc]
call eax
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x572750]
mov edx, 0xe5edb55a
add edx, dword [eax + 0x5d099bc8]
mov dword [esi + 0x48], 1
push dword [ebp + 8]
lea eax, [esi + 0x10]
push eax
call edx
mov ecx, dword [esi + 0x10]
add ecx, 0x28
mov eax, dword [0x57235c]
mov edx, 0xc1f2e0f5
add edx, dword [eax + 0x442ed6e9]
call edx
mov esp, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x30], eax
mov eax, dword [0x57235c]
mov edx, 0xc1f2e0f5
add edx, dword [eax + 0x442ed6ed]
lea ecx, [esi + 0x20]
call edx
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4d88b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x13d8
call fcn.004f3750
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4dc340
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x596720]
mov edi, 0xd92f54b3
mov eax, dword [eax - 0x59c04b35]
add eax, edi
push 0
call eax
add esp, 4
mov ecx, dword [0x596720]
mov ecx, dword [ecx - 0x59c04b31]
add ecx, edi
push eax
call ecx
add esp, 4
mov eax, dword [0x596720]
mov eax, dword [eax - 0x59c04b2d]
add eax, edi
lea ecx, [ebp - 0x50]
push esi
call eax
mov eax, dword [0x596770]
mov ecx, 0x2ae7a20b
add ecx, dword [eax - 0x7162908]
mov dword [ebp - 0x10], 0
call ecx
mov ecx, dword [0x596774]
mov edx, 0xeaae0776
add edx, dword [ecx + 0xc49127d]
lea ecx, [ebp - 0x13e4]
push 0x6c078965
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [0x596720]
mov edi, 0xd92f54b3
mov eax, dword [eax - 0x59c04b29]
add eax, edi
lea edx, [ebp - 0x44]
lea esi, [ebp - 0x50]
mov ecx, esi
push edx
call eax
mov eax, dword [0x596720]
add edi, dword [eax - 0x59c04b25]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [0x59676c]
mov ecx, 0x52d5f521
mov eax, dword [eax + 0x1fefcead]
add eax, ecx
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x13e4]
push edx
call eax
mov eax, dword [0x59676c]
mov ecx, 0x52d5f521
add ecx, dword [eax + 0x1fefceb1]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0xc
mov eax, dword [0x596780]
mov edx, 0x543ad8b9
add edx, dword [eax + 0x51f37b97]
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x13e4]
push eax
call edx
mov eax, dword [0x596720]
mov edi, 0xd92f54b3
mov eax, dword [eax - 0x59c04b25]
add eax, edi
lea ebx, [ebp - 0x24]
lea esi, [ebp - 0x50]
mov ecx, esi
push ebx
call eax
mov eax, dword [0x596720]
mov eax, dword [eax - 0x59c04b29]
add eax, edi
lea edx, [ebp - 0x3c]
mov ecx, esi
mov esi, 0xd92f54b3
push edx
call eax
mov edi, 0x8b568075
jmp 0x4d8a73
mov eax, dword [0x596720]
mov eax, dword [eax - 0x59c04b21]
add eax, esi
mov ecx, ebx
lea edx, [ebp - 0x3c]
push edx
call eax
test al, al
mov eax, 0x28
mov ecx, 0x6c
cmovne eax, ecx
mov ecx, dword [0x596724]
mov eax, dword [ecx + eax - 0x59c04b35]
add eax, edi
jmp eax

Function at 0x4f4308
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f4347
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f4347
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f4347
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f4347
cmp dword [ecx + 0x74], 0xe
jbe 0x4f4347
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x50571e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x538d54
push 0x538d4c
push str.FlsAlloc
push 0x1f
call fcn.00505589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x505752
push dword [ebp + 8]
mov ecx, esi
call dword [0x5312c4]
call esi
jmp 0x505758
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x50579c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x538d64
push 0x538d5c
push str.FlsGetValue
push 0x21
call fcn.00505589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5057d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x5312c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5057db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x538d6c
push 0x538d64
push str.FlsSetValue
push 0x22
call fcn.00505589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x505815
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5312c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x50ba04
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 + 0x5bd538]
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 0x50ba44
cmp byte [ebx], 0xa
jne 0x50ba44
or byte [edi + eax + 0x28], 4
jmp 0x50ba49
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 0x50bb48
mov dl, byte [eax]
cmp dl, 0x1a
je 0x50bb2b
inc eax
cmp dl, 0xd
je 0x50ba75
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x50ba9b
cmp eax, ecx
jae 0x50baa9
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 0x50ba5d
jmp 0x50bb48
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 0x50bb26
cmp dword [ebp - 0x10], 0
je 0x50bb26
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5bd538]
test byte [eax + edi + 0x28], 0x48
je 0x50bb00
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x50baeb
mov byte [esi], dl
jmp 0x50bafc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5bd538]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x50bb48
cmp byte [ebp - 1], 0xa
jne 0x50bb0f
cmp esi, ebx
jne 0x50bb0f
mov byte [esi], 0xa
jmp 0x50bb47
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0050c58a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x50bb48
mov byte [esi], 0xd
jmp 0x50bb47
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5bd538]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x50bb45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x50bb48
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x50bb51
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 + 0x5bd538]
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 0x50bb97
cmp word [ebx], dx
jne 0x50bb97
or byte [eax + edi + 0x28], 4
jmp 0x50bb9c
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 0x50bcff
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 0x50bcdf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x50bbdd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x50bc13
cmp eax, edx
jae 0x50bc21
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 0x50bbb8
jmp 0x50bcff
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 0x50bcda
cmp dword [ebp - 0x18], 0
je 0x50bcda
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5bd538]
test byte [eax + edi + 0x28], 0x48
je 0x50bcb0
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 0x50bc74
mov word [esi], cx
jmp 0x50bcab
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5bd538]
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 + 0x5bd538]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5bd538]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x50bcff
pop eax
cmp word [ebp - 4], ax
jne 0x50bcc0
cmp esi, ebx
jne 0x50bcc0
mov word [esi], ax
jmp 0x50bcfc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0050c58a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x50bcff
push 0xd
pop eax
jmp 0x50bcbb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5bd538]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x50bcf9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x50bcff
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 0x50c9e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004f3750
mov eax, dword [0x5afdc0]
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.00507f95
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x50ca25
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x50cb81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f38d0
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 + 0x5bd538]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0050c56c
mov ecx, dword [esi*4 + 0x5bd538]
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 0x50cb7a
cmp eax, dword [ecx + edi + 0x24]
jne 0x50cb7a
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 0x50cb7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050c56c
add esp, 0x14
test edx, edx
jl 0x50cb7a
jg 0x50caf0
test eax, eax
jb 0x50cb7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x50cb7a
jl 0x50cb0a
cmp dword [ebp - 0x1008], eax
ja 0x50cb7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x50cb28
test ebx, ebx
je 0x50cb61
cmp ecx, edi
jae 0x50cb61
mov al, byte [ecx]
cmp al, 0xd
jne 0x50cb42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x50cb4e
cmp byte [ecx + 1], 0xa
jne 0x50cb4e
inc ecx
jmp 0x50cb4e
movzx eax, al
movsx eax, byte [eax + 0x5b0238]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x50cb28
cmp edx, ebx
jne 0x50cb28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x50cb7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f3480
leave
ret
Function at 0x50d174
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5afdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x50d1bf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0050d30f
test al, al
jne 0x50d1b9
sub edx, 2
cmp edx, edi
jne 0x50d19f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x50d1e1
lea eax, [edi + 2]
cmp edx, eax
je 0x50d1e1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0050d0c0
add esp, 0x10
jmp 0x50d2db
push esi
lea ecx, [ebp - 0x255]
call fcn.0050d30f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50d224
push dword [ebp - 0x25c]
jmp 0x50d1d1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x50d261
cmp word [ebp - 0x226], 0
je 0x50d282
cmp word [ebp - 0x226], ax
jne 0x50d261
cmp word [ebp - 0x224], 0
je 0x50d282
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0050d0c0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x50d2ce
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x50d23b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x50d2b6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x50d2db
push 0x50cef0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00513e60
add esp, 0x10
jmp 0x50d2ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3480
leave
ret