joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47be90
Capabilities:
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d3f0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5f6ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5fdba3], 0
je 0x47bf10
call dword [sym.imp.Everything32.dll_Everything_DeleteRunHistory]
call dword [sym.imp.Everything32.dll_Everything_Exit]
call dword [sym.imp.Everything32.dll_Everything_CleanUp]
push 0x2710
push 0
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov ecx, str.wevtutil.exe_cl_security
call fcn.00475b90
push 0x2710
push 0
xor edx, edx
mov ecx, str.wevtutil.exe_cl_system
call fcn.00475b90
push 0x2710
push 0
xor edx, edx
mov ecx, str.wevtutil.exe_cl_application
call fcn.00475b90
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x47c740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d498
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044d140
push esi
mov edx, 0x5f7e70
mov ecx, edi
call fcn.0047bf20
add esp, 0x1c
test al, al
je 0x47c847
cmp dword [0x5f7e84], 8
mov eax, 0x5f7e70
cmovae eax, dword [0x5f7e70]
push eax
push str.___Search_mask:__s
call fcn.0046b090
add esp, 8
push 0
push 0
push 0
push 0x47c670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x47c833
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47c808
call dword [sym.imp.Everything32.dll_Everything_GetLastError]
push eax
push str.____Timeout_waiting_Everything_SetSearch._LastError___lu.
call fcn.0046b090
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c847
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x14], 1
push esi
jne 0x47c829
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c847
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x47c849
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Failed_to_create_thread__Everything_SetSearch_._LastError___lu.
call fcn.0046b090
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x47c87f
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c875
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c89d
push edx
push ecx
call fcn.00536da7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3
Function at 0x47d910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d558
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5fdba3], 0
je 0x47da8b
call fcn.004571b0
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x47d957
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
add edi, ecx
call fcn.004571b0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x47d96b
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov eax, edi
mov dword [ebp - 0x14], 7
sub eax, esi
push eax
call fcn.0044cd20
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edi
push esi
call fcn.0044ce10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 0
lea ebx, [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SOFTWAREMICROSOFTWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x47d9f9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.legalnoticetext
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
call edi
push 1
push 0x5e227c
lea ecx, [ebp - 0x28]
call fcn.0044b740
mov eax, dword [ebp - 0x18]
push 0
lea ebx, [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SOFTWAREMICROSOFTWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47da55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.legalnoticecaption
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
call edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47da8b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47da81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47daa7
push edx
push ecx
call fcn.00536da7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3
Function at 0x47fb50
Capabilities:
Bypass uac via icmluautil
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x85c
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x1c]
mov edi, edx
push eax
push 0
push 0x10010
push str.ConsentPromptBehaviorAdmin
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [esp + 0x18], 2
jne 0x47fbca
push str.____Abort_elevation__Max_UAC_level_
call fcn.0046b090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
push esi
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.0055a3d6
add esp, 0xc
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [esp + 0x65c]
push 0x104
push eax
call fcn.0055a3d6
add esp, 0xc
lea eax, [esp + 0x450]
push edi
push 0x104
push eax
call fcn.0055a3d6
add esp, 0xc
xor esi, esi
call fcn.0047f8b0
test eax, eax
je 0x47fd02
push 2
push esi
mov edi, 0xc0000022
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov dword [esp + 0x10], esi
mov ecx, 0x24
lea eax, [esp + 0x1c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x47fc46
push str.Elevation:Administrator_new:
lea eax, [esp + 0x44]
mov dword [esp + 0x20], 0x24
push 0x104
push eax
mov dword [esp + 0x3c], 4
call fcn.0055a3d6
add esp, 0xc
lea eax, [esp + 0x40]
push str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push 0x104
push eax
call fcn.0055e8e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x5e9b9c
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x47fce0
test esi, esi
je 0x47fcec
mov eax, dword [esi]
lea ecx, [esp + 0x248]
push 5
push 0
push ecx
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x45c]
push ecx
lea ecx, [esp + 0x668]
push ecx
push esi
call eax
xor ecx, ecx
test eax, eax
cmovns edi, ecx
test esi, esi
je 0x47fcec
mov eax, dword [esi]
push esi
mov eax, dword [eax + 8]
call eax
test ebx, ebx
jne 0x47fcf6
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov eax, 1
test edi, edi
cmove esi, eax
mov ecx, dword [esp + 0x864]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
Function at 0x4986d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00537550
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x498750
mov cl, byte [edi]
test cl, cl
je 0x498750
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x498700
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4987f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00537550
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x498873
mov al, byte [ebx]
test al, al
je 0x498873
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.004979c0
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x498817
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x50e3a0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x50e3b4
mov dword [esp + 0x18], fcn.0050cb80
jmp fcn.00506100
mov dword [esp + 0x18], fcn.0050be10
jmp fcn.00505e00

Function at 0x538ec6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5605d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00537550
mov eax, dword [0x5f6ea4]
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.0056010a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x560614
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x560770
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00579af0
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 + 0x5fd3d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0056b4c1
mov ecx, dword [esi*4 + 0x5fd3d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x560769
cmp eax, dword [edi + ecx + 0x24]
jne 0x560769
push 0
lea eax, [ebp - 0x1014]
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 0x560769
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056b4c1
add esp, 0x14
test edx, edx
jl 0x560769
jg 0x5606df
test eax, eax
jb 0x560769
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x560769
jl 0x5606f9
cmp dword [ebp - 0x1008], eax
ja 0x560769
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x560717
test ebx, ebx
je 0x560750
cmp ecx, edi
jae 0x560750
mov al, byte [ecx]
cmp al, 0xd
jne 0x560731
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56073d
cmp byte [ecx + 1], 0xa
jne 0x56073d
inc ecx
jmp 0x56073d
movzx eax, al
movsx eax, byte [eax + 0x5f71e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x560717
cmp edx, ebx
jne 0x560717
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x56076e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00536b66
leave
ret
Function at 0x56130c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5d8fe4
push esi
call fcn.0056e16d
pop ecx
pop ecx
test eax, eax
jne 0x56133a
xor al, al
jmp 0x5613b7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0056104f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x561374
push dword [ebp - 0x210]
call fcn.0055250a
xor al, al
jmp 0x5613b5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x56137a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x56139a
push edx
call fcn.00561242
pop ecx
test al, al
je 0x561365
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5613a8
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055250a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00536b66
leave
ret
Function at 0x569e65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00569b00

Function at 0x569e70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00569c8f

Function at 0x56a34e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5da7c8
push 0x5da7c0
push str.FlsAlloc
push 0x1e
call fcn.0056a17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56a382
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815c4]
call esi
jmp 0x56a388
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x56a3cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5da7d8
push 0x5da7d0
push str.FlsGetValue
push 0x20
call fcn.0056a17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56a403
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x56a979
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5fd3d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x56a9b9
cmp byte [ebx], 0xa
jne 0x56a9b9
or byte [eax + edi + 0x28], 4
jmp 0x56a9be
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x56aabc
mov al, byte [edx]
cmp al, 0x1a
je 0x56aa9e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x56a9ed
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x56aa12
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x56aa1c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x56a9cf
jmp 0x56aabc
push 0
lea eax, [ebp - 0xc]
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 0x56aa99
cmp dword [ebp - 0xc], 0
je 0x56aa99
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5fd3d8]
test byte [eax + edi + 0x28], 0x48
je 0x56aa73
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x56aa5e
mov byte [esi], dl
jmp 0x56aa6f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fd3d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x56aabc
cmp byte [ebp - 1], 0xa
jne 0x56aa82
cmp esi, ebx
jne 0x56aa82
mov byte [esi], 0xa
jmp 0x56aabb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0056b4df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x56aabc
mov byte [esi], 0xd
jmp 0x56aabb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5fd3d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x56aab8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x56aabc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x56aac5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5fd3d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x56ab08
cmp word [esi], dx
jne 0x56ab08
or byte [edi + eax + 0x28], 4
jmp 0x56ab0d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x56ac46
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x56ac26
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x56ab4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x56ab85
cmp eax, edx
jae 0x56ab91
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x56ab27
jmp 0x56ac46
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 0x56ac22
cmp dword [ebp - 0x14], 0
je 0x56ac22
mov eax, dword [ebx*4 + 0x5fd3d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x56abfa
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x56ac40
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5fd3d8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5fd3d8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5fd3d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x56ac43
pop ebx
cmp word [ebp - 4], bx
jne 0x56ac0b
cmp esi, dword [ebp + 0xc]
jne 0x56ac0b
mov word [esi], bx
jmp 0x56ac43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056b4df
add esp, 0x10
cmp word [ebp - 4], bx
je 0x56ac46
push 0xd
jmp 0x56ac3f
mov ecx, dword [ebx*4 + 0x5fd3d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x56ac3d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x56ac46
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x570cfe
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f6ea4]
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 0x570d49
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00570e9d
test al, al
jne 0x570d43
sub edx, 2
cmp edx, edi
jne 0x570d29
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x570d6b
lea eax, [edi + 2]
cmp edx, eax
je 0x570d6b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00570c4a
add esp, 0x10
jmp 0x570e65
push esi
lea ecx, [ebp - 0x255]
call fcn.00570e9d
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 0x570dae
push dword [ebp - 0x25c]
jmp 0x570d5b
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 0x570deb
cmp word [ebp - 0x226], 0
je 0x570e0c
cmp word [ebp - 0x226], ax
jne 0x570deb
cmp word [ebp - 0x224], 0
je 0x570e0c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00570c4a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x570e58
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x570dc5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x570e40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x570e65
push 0x570a7a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0055f580
add esp, 0x10
jmp 0x570e35
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.00536b66
leave
ret
Function at 0x571789
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x571826
push ebx
push esi
call fcn.00571752
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0056ff7f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5717d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x571825
push edi
push eax
call fcn.0056b830
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5717f3
call fcn.005684ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x571824
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0056ff7f
add esp, 0x20
test eax, eax
jne 0x571812
push edi
call fcn.005684ed
jmp 0x57181a
push ebx
call fcn.005684ed
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x571829
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57183a
pop esi
ret
push ebx
push edi
push esi
call fcn.00571752
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056b830
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x571862
push ebx
push esi
push edi
call fcn.0054e680
add esp, 0xc
push 0
call fcn.005684ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x571fae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00571ad5