joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d610
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a568
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c9ea4]
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 dword [ebp - 0x2c], ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x45d816
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 3
push 0x30
push ebx
call edi
test eax, eax
jne 0x45d80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45d80f
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 3
push 0x30
push ebx
call edi
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x45d7ff
mov esi, eax
test eax, eax
je 0x45d7ff
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x45d7fc
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop dword [eax + eax]
push 0x5bf560
push dword [esi]
call edi
test eax, eax
jne 0x45d755
push str.backup
push dword [esi]
call edi
test eax, eax
jne 0x45d755
push str.database
push dword [esi]
call edi
test eax, eax
jne 0x45d755
push 0x5bf560
push dword [esi + 4]
call edi
test eax, eax
jne 0x45d755
push str.backup
push dword [esi + 4]
call edi
test eax, eax
jne 0x45d755
push str.database
push dword [esi + 4]
call edi
test eax, eax
je 0x45d7ec
mov edx, dword [esi]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x28], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d773
sub eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.0044a140
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0
call fcn.004544b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45d7dd
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d7d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d832
push edx
push ecx
call fcn.00518414
add esp, 8
push dword [esi]
push str.___Added_service:__s
call fcn.00459870
add esp, 8
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x18]
jb 0x45d700
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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.005181d3
mov esp, ebp
pop ebp
ret
call fcn.00533a91
int3
Function at 0x45d840
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x5c9ea4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
or eax, 0xffffffff
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x45d889
call ebx
push eax
push str.____Failed_to_get_activesession_Id._Code__lu
call fcn.00459870
add esp, 8
push 0
push 2
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45d8c9
call ebx
push eax
push str.____CreateToolhelp32Snapshot_failed._Code__lu
call fcn.00459870
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45d91f
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [esp + 0x44]
push eax
push str.explorer.exe
call fcn.0053a490
add esp, 8
test eax, eax
jne 0x45d909
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x45d917
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x45d8e0
jmp 0x45d91f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x45d955
push str.____Couldnt_find_explorer
call fcn.00459870
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x45d9a7
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x45d9a7
call ebx
push eax
push str.____Failed_to_open_explorer._Code__lu
call fcn.00459870
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45d9e9
push dword [esp + 0x14]
push 2
push 2
push 0
push 0xc
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x45d9e3
call ebx
push eax
push str.____Failed_to_duplicate_token._Code__lu
call fcn.00459870
add esp, 8
push dword [esp + 0x18]
call edi
push esi
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
cmp dword [eax], 0
pop ebx
setne al
xor ecx, esp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
Function at 0x460360
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c9ea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 8]
push ebx
push esi
push 0
push ecx
push 0
push 0x20106
push 0
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4603c4
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov edx, dword [ebp + 0x1c]
sete bl
cmp edx, 8
jb 0x4603fd
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4603f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460459
push edx
push ecx
call fcn.00518414
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x460447
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46043d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460459
push edx
push ecx
call fcn.00518414
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.005181d3
mov esp, ebp
pop ebp
ret
call fcn.00533a91
int3
Function at 0x47a2c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00518940
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x47a340
mov cl, byte [edi]
test cl, cl
je 0x47a340
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 0x47a2f0
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 0x47a3e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00518940
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x47a463
mov al, byte [ebx]
test al, al
je 0x47a463
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.004795c0
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 0x47a407
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 0x4eff90
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x4effa4
mov dword [esp + 0x18], fcn.004ee770
jmp fcn.004e7cf0
mov dword [esp + 0x18], fcn.004eda00
jmp fcn.004e79f0

Function at 0x51a114
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 0x53cdd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00518940
mov eax, dword [0x5c9ea4]
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.0053a3ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x53ce1b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x53cf77
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00558e60
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 + 0x5cfd78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0054a5d6
mov ecx, dword [esi*4 + 0x5cfd78]
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 0x53cf70
cmp eax, dword [edi + ecx + 0x24]
jne 0x53cf70
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 0x53cf70
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0054a5d6
add esp, 0x14
test edx, edx
jl 0x53cf70
jg 0x53cee6
test eax, eax
jb 0x53cf70
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x53cf70
jl 0x53cf00
cmp dword [ebp - 0x1008], eax
ja 0x53cf70
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x53cf1e
test ebx, ebx
je 0x53cf57
cmp ecx, edi
jae 0x53cf57
mov al, byte [ecx]
cmp al, 0xd
jne 0x53cf38
lea eax, [edi - 1]
cmp ecx, eax
jae 0x53cf44
cmp byte [ecx + 1], 0xa
jne 0x53cf44
inc ecx
jmp 0x53cf44
movzx eax, al
movsx eax, byte [eax + 0x5ca1e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x53cf1e
cmp edx, ebx
jne 0x53cf1e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x53cf75
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005181d3
leave
ret
Function at 0x53d979
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5b4060
push esi
call fcn.0054cb63
pop ecx
pop ecx
test eax, eax
jne 0x53d9a7
xor al, al
jmp 0x53da24
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.0053d6bc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x53d9e1
push dword [ebp - 0x210]
call fcn.0053375a
xor al, al
jmp 0x53da22
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x53d9e7
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x53da07
push edx
call fcn.0053d8af
pop ecx
test al, al
je 0x53d9d2
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x53da15
mov bl, 1
push dword [ebp - 0x210]
call fcn.0053375a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005181d3
leave
ret
Function at 0x549065
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00548d00

Function at 0x549070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00548e8f

Function at 0x54950c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b6318
push 0x5b6310
push str.FlsAlloc
push 0x1e
call fcn.00549379
mov esi, eax
add esp, 0x10
test esi, esi
je 0x549540
push dword [ebp + 8]
mov ecx, esi
call dword [0x55d470]
call esi
jmp 0x549546
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x54958a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b6328
push 0x5b6320
push str.FlsGetValue
push 0x20
call fcn.00549379
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5495c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x55d470]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x549a8e
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 + 0x5cfd78]
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 0x549ace
cmp byte [ebx], 0xa
jne 0x549ace
or byte [eax + edi + 0x28], 4
jmp 0x549ad3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x549bd1
mov al, byte [edx]
cmp al, 0x1a
je 0x549bb3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x549b02
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x549b27
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x549b31
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 0x549ae4
jmp 0x549bd1
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 0x549bae
cmp dword [ebp - 0xc], 0
je 0x549bae
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5cfd78]
test byte [eax + edi + 0x28], 0x48
je 0x549b88
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x549b73
mov byte [esi], dl
jmp 0x549b84
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5cfd78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x549bd1
cmp byte [ebp - 1], 0xa
jne 0x549b97
cmp esi, ebx
jne 0x549b97
mov byte [esi], 0xa
jmp 0x549bd0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0054a5f4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x549bd1
mov byte [esi], 0xd
jmp 0x549bd0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5cfd78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x549bcd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x549bd1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x549bda
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 + 0x5cfd78]
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 0x549c1d
cmp word [esi], dx
jne 0x549c1d
or byte [edi + eax + 0x28], 4
jmp 0x549c22
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 0x549d5b
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 0x549d3b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x549c64
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x549c9a
cmp eax, edx
jae 0x549ca6
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 0x549c3c
jmp 0x549d5b
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 0x549d37
cmp dword [ebp - 0x14], 0
je 0x549d37
mov eax, dword [ebx*4 + 0x5cfd78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x549d0f
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x549d55
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5cfd78]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5cfd78]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5cfd78]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x549d58
pop ebx
cmp word [ebp - 4], bx
jne 0x549d20
cmp esi, dword [ebp + 0xc]
jne 0x549d20
mov word [esi], bx
jmp 0x549d58
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0054a5f4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x549d5b
push 0xd
jmp 0x549d54
mov ecx, dword [ebx*4 + 0x5cfd78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x549d52
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x549d5b
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 0x54fdce
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c9ea4]
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 0x54fe19
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0054ff6d
test al, al
jne 0x54fe13
sub edx, 2
cmp edx, edi
jne 0x54fdf9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x54fe3b
lea eax, [edi + 2]
cmp edx, eax
je 0x54fe3b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0054fd1a
add esp, 0x10
jmp 0x54ff35
push esi
lea ecx, [ebp - 0x255]
call fcn.0054ff6d
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 0x54fe7e
push dword [ebp - 0x25c]
jmp 0x54fe2b
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 0x54febb
cmp word [ebp - 0x226], 0
je 0x54fedc
cmp word [ebp - 0x226], ax
jne 0x54febb
cmp word [ebp - 0x224], 0
je 0x54fedc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0054fd1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x54ff28
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x54fe95
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x54ff10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x54ff35
push 0x54fb4a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0053bc90
add esp, 0x10
jmp 0x54ff05
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.005181d3
leave
ret
Function at 0x550840
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 0x5508dd
push ebx
push esi
call fcn.00550809
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.0054f04f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x55088a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5508dc
push edi
push eax
call fcn.0054a945
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5508aa
call fcn.005476ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5508db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0054f04f
add esp, 0x20
test eax, eax
jne 0x5508c9
push edi
call fcn.005476ed
jmp 0x5508d1
push ebx
call fcn.005476ed
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 0x5508e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5508f1
pop esi
ret
push ebx
push edi
push esi
call fcn.00550809
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0054a945
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x550919
push ebx
push esi
push edi
call fcn.0052f650
add esp, 0xc
push 0
call fcn.005476ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x551065
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00550b8c