joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4976e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c6582
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
cmp byte [ebp + 0x10], cl
mov eax, 3
setne cl
mov word [esp + 0x3c], ax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, 8
push eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x48], ecx
mov word [esp + 0x50], dx
call esi
mov edx, dword [ebp + 8]
mov ecx, 8
push edx
mov dword [esp + 0x58], eax
mov word [esp + 0x60], cx
call esi
mov ecx, dword [edi + 0x44]
sub ecx, dword [edi + 0x40]
xor ebx, ebx
mov dword [esp + 0x64], eax
sar ecx, 2
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
test ecx, ecx
jbe 0x497873
mov edx, dword [edi + 0x44]
sub edx, dword [edi + 0x40]
sar edx, 2
cmp ebx, edx
jb 0x497793
call fcn.0059471a
mov eax, dword [edi + 0x40]
mov esi, dword [eax + ebx*4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x497831
mov edx, dword [esi]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x6a11ec
push esi
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
test eax, eax
jl 0x497831
cmp dword [esp + 0x14], 0
je 0x497831
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x28]
push edx
push 1
push 0x400
push 0x6862bc
push 0xd
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x497821
mov byte [esp + 0x13], 1
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x497849
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [edi + 0x44]
sub ecx, dword [edi + 0x40]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x497781
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498220
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x5d17e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6d26f8]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp], ebx
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
jl 0x498286
mov edx, dword [ebp]
push edx
push 0x27
lea eax, [ebp + 0x20]
push eax
call fcn.00594946
add esp, 0xc
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 4], ebx
mov eax, str.CLSID_
lea ecx, [ebp - 0x30]
call fcn.0040b2d0
mov byte [ebp - 4], 1
push eax
lea edx, [ebp + 4]
push edx
lea edi, [ebp + 0x20]
call fcn.00468ce0
add esp, 8
mov byte [ebp - 4], 3
lea esi, [ebp - 0x30]
call fcn.00440d90
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4982c9
lea eax, [ebp + 8]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
jne 0x498341
mov eax, str.AppID_
lea ecx, [ebp - 0x4c]
call fcn.0040b2d0
mov bl, 4
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp + 0x20]
call fcn.00468ce0
add esp, 8
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 4]
call fcn.0040d430
mov byte [ebp - 4], bl
lea esi, [ebp - 0x30]
call fcn.00440d90
mov byte [ebp - 4], 3
lea esi, [ebp - 0x4c]
call fcn.00440d90
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x49832e
lea eax, [ebp + 8]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x498341
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea esi, [ebp + 4]
call fcn.00440d90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.0059393a
add ebp, 0x74
mov esp, ebp
pop ebp
ret
Function at 0x498390
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5d1798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4983e5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040d4e0
mov dword [esp + 0x38], 0
push 1
mov eax, 0x692fe8
mov ecx, esi
call fcn.0040d350
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x498420
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x498420
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.0040d350
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x498446
lea ecx, [esp + 0x14]
test edi, edi
je 0x498465
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x498450
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x498467
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.0042b2e0
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x498495
mov edx, dword [esp + 0x14]
push edx
call fcn.0059392f
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret

Function at 0x498670
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c64e9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, ebx
mov dword [esp + 0x18], eax
call fcn.004383a0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x49872d
mov esi, dword [ebx]
call fcn.0043b870
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], edi
mov eax, dword [eax]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49870f
cmp dword [esp + 0x40], edi
je 0x49872d
mov esi, dword [ebx]
cmp dword [esi + 4], 0
je 0x49872d
mov eax, dword [esi]
push 0
push eax
call fcn.005967a8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x498750
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4987c6
ja 0x498769
cmp esi, dword [esp + 0x20]
jae 0x4987ca
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x498785
jb 0x498781
cmp ecx, 0x10000
jae 0x498785
mov edi, ecx
jmp 0x49878a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4987c6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4987c6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x498769
ja 0x4987c6
cmp esi, dword [esp + 0x20]
jb 0x498769
cmp esi, dword [esp + 0x20]
jne 0x4987e7
cmp ebp, ebx
jne 0x4987e7
or esi, ebp
je 0x4987df
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x4987f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c7d68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x498895
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
call fcn.00498750
add esp, 0x10
test al, al
je 0x49887d
mov dword [esp + 0x18], 0xffffffff
push esi
call ebx
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
cmp byte [esp + 0x2c], 0
je 0x498895
push esi
call ebx
or esi, 0xffffffff
push edi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], 0xffffffff
cmp esi, 0xffffffff
je 0x4988a5
push esi
call ebx
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x498930
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x498956
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
Function at 0x498c90
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5c7d41
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x2c], edi
mov esi, ebp
mov dword [esp + 0x1c], edi
call fcn.004383a0
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
mov edi, 1
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x498d65
mov ecx, dword [esp + 0x14]
mov edx, ecx
and edx, dword [esp + 0x18]
cmp edx, 0xffffffff
je 0x498d65
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00498670
add esp, 0x10
mov ebx, eax
mov dword [esp + 0x2c], edi
mov esi, dword [ebp]
add dword [esi + 8], 0xffffffff
jne 0x498d2f
xor edi, edi
call fcn.0043b870
mov edi, 1
mov eax, dword [ebx]
add dword [eax + 8], edi
mov dword [ebp], eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x498d65
xor edi, edi
call fcn.0043b870
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x499280
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d4f84
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x54], esi
mov ebp, dword [esp + 0x5c]
push ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
call fcn.0041d3b0
mov dword [esp + 0x54], esi
push esi
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
cmp edi, esi
je 0x4993fe
mov dword [esp + 0x3c], esi
xor eax, eax
push esi
lea ebx, [edi + 1]
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.00439bb0
mov dword [esp + 0x54], 1
mov eax, dword [esp + 0x2c]
mov ebx, 8
cmp dword [esp + 0x40], ebx
jae 0x499323
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4993cf
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x499341
lea esi, [esp + 0x2c]
cmp word [esi], 0
je 0x4993cf
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040b8a0
mov byte [esp + 0x54], 2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x54], 3
lea ebx, [esp + 0x18]
mov edi, ebp
call fcn.0041d0e0
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4993a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4993b0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x49934b
mov ebx, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x40], ebx
jb 0x4993e7
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], dx
mov eax, ebp
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0059393a
add esp, 0x44
ret
Function at 0x49a7c0
Capabilities:
Get token privileges

Disassembly:
push 0xffffffffffffffff
push 0x5c7cc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x49a803
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49a8a7
mov edi, 0x1000
lea ebx, [esp + 0x18]
call fcn.00438410
mov byte [esp + 0x24], 1
mov esi, dword [esp + 0x18]
mov edi, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x18]
push edi
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x49a888
xor eax, eax
cmp dword [edi], eax
jbe 0x49a871
lea ecx, [edi + 0xc]
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [edi]
jb 0x49a863
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0
push ecx
push edi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x49a8a7
xor edi, edi
call fcn.0043b870
push esi
call fcn.0059392f
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49a8be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x49a8e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5ce391
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040b7e0
mov dword [esp + 0x24], esi
mov ebp, 1
mov edi, 0x400
lea ebx, [esp + 0x14]
mov dword [esp + 0x18], ebp
call fcn.0049a6c0
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push ebp
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x49a98f
mov edx, dword [esi]
test edx, edx
jne 0x49a96b
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov ebx, eax
push edx
mov eax, ebp
call fcn.0040f6d0
jmp 0x49a993
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a970
mov ebp, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
mov eax, ebp
call fcn.0040f6d0
jmp 0x49a993
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov byte [esp + 0x24], bl
add dword [esi + 8], 0xffffffff
jne 0x49a9b3
xor edi, edi
call fcn.0049a760
push esi
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x49a9d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5ce351
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x28], edi
push ebp
mov dword [esp + 0x1c], edi
call fcn.0040b7e0
mov dword [esp + 0x28], edi
push edi
mov esi, 1
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x49aa7e
lea edi, [eax + 1]
lea ebx, [esp + 0x14]
call fcn.0049a6c0
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x49aa5f
cmp eax, dword [esi + 4]
jae 0x49aa5f
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esi]
mov edi, ebp
call fcn.0040b9c0
mov byte [esp + 0x28], 0
add dword [esi + 8], 0xffffffff
jne 0x49aa7e
xor edi, edi
call fcn.0049a760
push esi
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14], edi
mov edx, dword [ebp]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x49aaa0
mov edx, dword [esp + 0x34]
test edx, edx
je 0x49ab30
mov edi, ebp
call fcn.0040b9c0
jmp 0x49ab30
lea ecx, [eax - 1]
test ecx, ecx
jl 0x49ab46
cmp ecx, eax
jg 0x49ab46
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5c
jne 0x49aad8
mov edx, dword [esp + 0x34]
mov edi, ebp
test edx, edx
je 0x49aace
call fcn.0040ba00
jmp 0x49ab30
lea esi, [eax - 1]
call fcn.0041e930
jmp 0x49ab30
mov esi, dword [esp + 0x34]
test esi, esi
je 0x49ab30
lea eax, [esp + 0x1c]
push ebp
push eax
mov ebx, 0x692fe8
call fcn.004176f0
mov dword [esp + 0x30], 2
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, esi
call fcn.004176f0
add esp, 0x10
mov byte [esp + 0x28], 3
mov edi, ebp
call fcn.0040daa0
mov byte [esp + 0x28], 2
lea ecx, [esp + 0x14]
call fcn.0040b950
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x1c]
call fcn.0040b950
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00403d10
int3
Function at 0x49ad40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d1642
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x692fd0
mov dword [esp + 0x18], 0
call fcn.0040b8a0
mov ebx, 1
mov dword [esp + 0x20], ebx
lea edi, [ebp + 0x25c]
lea eax, [esp + 0x28]
call fcn.0040daa0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
call fcn.0040b950
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp byte [ebp + 8], 0
jne 0x49ade2
mov eax, dword [ebp]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov byte [ebp + 8], bl
call edi
mov esi, eax
mov eax, dword [ebp + 0x260]
cmp esi, eax
je 0x49add7
cmp eax, 0xffffffff
je 0x49add7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 0x260], esi
cmp esi, 0xffffffff
jmp 0x49adfa
mov eax, dword [ebp + 0x260]
cmp eax, 0xffffffff
je 0x49ae16
lea edx, [ebp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49ae16
lea esi, [ebp + 0x38]
call fcn.004a6130
test al, al
jne 0x49adac
lea eax, [ebp + 4]
lea edi, [ebp + 0x25c]
call fcn.0040daa0
mov esi, dword [esp + 0x2c]
add ebp, 0xc
push ebp
push esi
call fcn.0049ae50
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x49aed0
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x5c5b98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor esi, esi
cmp dword [ebx], esi
je 0x49af98
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x49af20
push eax
call edi
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push 1
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x49af85
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x49af85
cmp dword [esp + 0xc], esi
je 0x49af85
mov ecx, dword [ebx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x49af85
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x49af6f
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x49af98
push eax
call edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4