joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fed88
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4fedbb
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4fedb4
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405ab4
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401128]
call fcn.004063f0
xor eax, eax
push ebp
push 0x4fef49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4fef11
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x4fef70
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004059c8
mov eax, dword [ebp - 0x158]
call fcn.00405ac4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4fef05
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4feeea
test al, 2
jne 0x4feeea
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x4fef70
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004058a4
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.004059c8
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.004f55c0
call fcn.0041174c
test al, al
je 0x4feea8
or edi, 0xffffffff
jmp 0x4feeb7
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004f575c
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004f5524
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004058a4
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4fee3d
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4fee00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fef50
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00405658
lea eax, [ebp - 8]
call fcn.00405634
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401128]
call fcn.004062b0
ret
Function at 0x5000b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x500147
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x5e803c]
cmp dword [eax + 4], 0x60000
jl 0x5000e8
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005001dc
mov eax, dword [ebp - 4]
call fcn.004fdf60
test al, al
je 0x500118
mov eax, dword [ebp - 4]
call fcn.00405ac4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x500118
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x460]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50014e
lea eax, [ebp - 4]
call fcn.00405634
ret

Function at 0x503c24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00405ac4
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x503c66
dec eax
je 0x503c47
sub eax, 2
je 0x503c66
jmp 0x503c77
movzx eax, byte [ebx]
call fcn.004f6f3c
test al, al
je 0x503c77
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.004048b0
jmp 0x503c77
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.004048b0
pop esi
pop ebx
pop ebp
ret

Function at 0x503c7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x503d2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x428], 0
jne 0x503cca
push 0x465
mov eax, dword [ebp - 4]
call fcn.00462790
mov ecx, eax
mov dl, 1
mov eax, dword [0x500378]
call fcn.005003e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x428], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
call fcn.005008ac
lea eax, [ebp - 8]
mov edx, 0x503d40
call fcn.004056cc
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x503d15
test bl, 1
je 0x503d0e
lea eax, [ebp - 8]
call fcn.00405b24
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.00503c24
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x503cf2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503d32
lea eax, [ebp - 8]
call fcn.00405634
ret
Function at 0x5048c8
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405ab4
xor eax, eax
push ebp
push 0x5049e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5049b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ac4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x504996
test byte [ebp - 0x14c], 0x10
jne 0x504979
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004058a4
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040a110
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x50493c
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x5049a2
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5049c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5095cc
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x5095db
je 0x5095e0
jmp 0x509604
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x5095ff
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x5e7d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x51e14c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x51e17f
movzx eax, byte [ebx]
mov edx, dword [0x5e5dec]
cmp al, byte [edx]
jne 0x51e17f
cmp dword [ebp + 8], 0x38
je 0x51e189
mov eax, 0xfffffffa
jmp 0x51e34f
lea eax, [esi + 0x18]
call fcn.00405634
cmp dword [esi + 0x20], 0
jne 0x51e1a3
mov dword [esi + 0x20], 0x51e05c
xor eax, eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0
jne 0x51e1b0
mov dword [esi + 0x24], 0x51e054
cmp dword [ebp - 4], 0xffffffff
jne 0x51e1bd
mov dword [ebp - 4], 6
test edi, edi
jge 0x51e1ca
mov dword [ebp - 0xc], 1
neg edi
cmp dword [ebp + 0x14], 1
jl 0x51e1fe
cmp dword [ebp + 0x14], 9
jg 0x51e1fe
cmp dword [ebp - 8], 8
jne 0x51e1fe
cmp edi, 8
jl 0x51e1fe
cmp edi, 0xf
jg 0x51e1fe
cmp dword [ebp - 4], 0
jl 0x51e1fe
cmp dword [ebp - 4], 9
jg 0x51e1fe
cmp dword [ebp + 0x10], 0
jl 0x51e1fe
cmp dword [ebp + 0x10], 2
jle 0x51e208
mov eax, 0xfffffffe
jmp 0x51e34f
mov eax, esi
mov ecx, 0x16bc
mov edx, 1
call fcn.0051e068
mov ebx, eax
test ebx, ebx
jne 0x51e229
mov eax, 0xfffffffc
jmp 0x51e34f
mov dword [esi + 0x1c], ebx
mov dword [ebx], esi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov eax, edi
mov dword [ebx + 0x28], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x24], edx
dec edx
mov dword [ebx + 0x2c], edx
mov eax, dword [ebp + 0x14]
add eax, 7
mov dword [ebx + 0x48], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x44], edx
dec edx
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x48]
add eax, 3
dec eax
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebx + 0x50], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.0051e068
mov dword [ebx + 0x30], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.0051e068
mov dword [ebx + 0x38], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x44]
call fcn.0051e068
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp + 0x14]
add ecx, 6
mov edi, 1
shl edi, cl
mov dword [ebx + 0x1690], edi
mov eax, esi
mov ecx, 4
mov edx, edi
call fcn.0051e068
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x1690]
add edx, edx
add edx, edx
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x30], 0
je 0x51e2f4
cmp dword [ebx + 0x38], 0
je 0x51e2f4
cmp dword [ebx + 0x3c], 0
je 0x51e2f4
cmp dword [ebx + 8], 0
jne 0x51e30f
lea eax, [esi + 0x18]
mov edx, 0x5e5e74
call fcn.00405898
mov eax, esi
call fcn.0051e6fc
mov eax, 0xfffffffc
jmp 0x51e34f
mov edx, dword [ebx + 0x1690]
shr edx, 1
lea eax, [eax + edx*2]
mov dword [ebx + 0x1698], eax
mov eax, dword [ebx + 0x1690]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
lea eax, [edx + eax]
mov dword [ebx + 0x168c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebp - 8]
mov byte [ebx + 0x1d], al
mov eax, esi
call fcn.0051e380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x51ea00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x51ea29
cmp dword [ebx + 0x64], 0
jne 0x51ea29
cmp dword [ebx + 0x6c], 0
jne 0x51ea29
mov esi, edi
jmp 0x51eab5
cmp esi, 0xffffffff
jne 0x51ea34
dec esi
jmp 0x51eab5
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x51eab5
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ecx, edi
call fcn.0051e044
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x51ea7d
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x51ea82
mov word [edx], 0
dec eax
test eax, eax
jne 0x51ea63
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x51eaa9
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x51eaae
mov word [edx], 0
dec eax
test eax, eax
jne 0x51ea8f
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x51eb13
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.0051e778
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x51eafe
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x51eb13
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x51ea09
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5234f4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5f1148
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x523516
shr eax, 1
xor eax, 0xedb88320
jmp 0x523518
shr eax, 1
dec edx
jne 0x523504
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5234fd
mov byte [0x5f1548], 1
pop esi
pop ebx
ret

Function at 0x523534
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5f1548], 0
jne 0x52354b
call fcn.005234f4
mov eax, edi
dec eax
test eax, eax
jl 0x523573
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5f1148]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x523555
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5259e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x525a7e.0
jmp dword [ecx*4 + 0x525a17]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x525a49
sub dl, 8
je 0x525a58
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x525690
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5256e8
jmp case.0x525a7e.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x525a7e.0
movzx ecx, byte [ecx + 0x525a85]
jmp dword [ecx*4 + 0x525a96]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x525794
jmp case.0x525a7e.0
cmp dl, 3
jne 0x525ac3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5257e8
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5257a4
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x52582c
jmp case.0x525a7e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x525aee
sub dl, 8
je 0x525afa
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x525858
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5258c4
jmp case.0x525a7e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x525b19
sub dl, 8
je 0x525b25
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x525980
jmp case.0x525a7e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5259a8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x525bc9
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00524c24
test eax, eax
je 0x525bc9
mov eax, ebx
call fcn.00525bd4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x525b62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x525bd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x525c05
dec al
je 0x525c40
dec al
je 0x525c85
dec al
je 0x525cee
jmp 0x525d78
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x525d78
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x525c15
jmp 0x525d78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x525d78
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x525c50
jmp 0x525d78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x525d78
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x525cb4
xor ebp, ebp
jmp 0x525cc4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x525ccd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x525c95
jmp 0x525d78
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x525d78
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x525d47
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0052357c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x525d02
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x530374
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x530389
add esp, 0xfffffff0
call fcn.00404a18
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405ab4
xor eax, eax
push ebp
push 0x530464
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0052a3c0
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041b908
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041b908
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041b908
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041b908
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041b930
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x52], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53046b
lea eax, [ebp - 4]
call fcn.00405634
ret
Function at 0x536510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x536687
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x5366a0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.00405688
push 0xffffffffffffffff
mov ecx, 0x5366b0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
push 0xffffffffffffffff
mov ecx, 0x5366cc
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 0x5366ec
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00540788
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x536708
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00540674
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x53671c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00540674
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x536734
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00540674
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x536750
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00540788
mov byte [ebx + 0x48], al
mov ecx, 0x536764
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00529f0c
mov byte [ebx + 0x49], al
push 0xffffffffffffffff
mov ecx, 0x536778
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x4c], eax
push 0xffffffffffffffff
mov ecx, 0x536798
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x50], eax
push 0
mov ecx, 0x5367bc
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x54], eax
push 0
mov ecx, 0x5367d8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x58], eax
push 0xff
mov ecx, 0x5367f4
mov edx, dword [ebx + 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53668e
lea eax, [ebp - 4]
call fcn.00405634
ret

Function at 0x550cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ac4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x550cd9
test al, 0x10
jne 0x550cdd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret