joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414520
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x50dcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x414699
push 6
push ebx
mov dword [esp + 0x1c], vtable.QMTShortCut.0
mov dword [esp + 0x20], vtable.CQMTInitializeCOMThread.0
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jne 0x414593
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov ebp, 8
mov dword [esp + 0x244], ebx
cmp dword [esi + 0x18], ebp
jb 0x4145b9
mov edi, dword [esi + 4]
jmp 0x4145bc
lea edi, [esi + 4]
lea eax, [esp + 0x14]
call fcn.004de5c0
test eax, eax
jl 0x414690
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
mov dword [esp + 0x34], 2
call fcn.004eeee6
add esp, 0xc
cmp dword [esi + 0x30], ebx
jbe 0x41460b
cmp dword [esi + 0x34], ebp
jb 0x4145f7
mov ecx, dword [esi + 0x20]
jmp 0x4145fa
lea ecx, [esi + 0x20]
lea ebx, [esp + 0x14]
call fcn.004de910
test eax, eax
jl 0x414690
cmp dword [esi + 0x4c], 0
jbe 0x41462b
cmp dword [esi + 0x50], ebp
jb 0x41461b
mov ecx, dword [esi + 0x3c]
jmp 0x41461e
lea ecx, [esi + 0x3c]
lea ebx, [esp + 0x14]
call fcn.004de630
test eax, eax
jl 0x414690
cmp dword [esi + 0x84], 0
jbe 0x414651
cmp dword [esi + 0x88], ebp
jb 0x414641
mov ecx, dword [esi + 0x74]
jmp 0x414644
lea ecx, [esi + 0x74]
lea ebx, [esp + 0x14]
call fcn.004dea00
test eax, eax
jl 0x414690
cmp dword [esi + 0x68], 0
jbe 0x41469d
cmp dword [esi + 0x6c], ebp
jb 0x414661
mov eax, dword [esi + 0x58]
jmp 0x414664
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41469d
cmp dword [esi + 0x6c], ebp
jb 0x414679
mov ecx, dword [esi + 0x58]
jmp 0x41467c
lea ecx, [esi + 0x58]
mov edx, dword [esi + 0x8c]
push edx
lea ebx, [esp + 0x18]
call fcn.004de810
test eax, eax
jge 0x4146a3
lea ecx, [esp + 0x14]
call fcn.004de550
xor eax, eax
jmp 0x4146e4
push 0
xor ecx, ecx
jmp 0x414683
cmp dword [esi + 0xa4], 0
je 0x4146cb
cmp dword [esi + 0xa8], ebp
jb 0x4146bc
mov ecx, dword [esi + 0x94]
jmp 0x4146c2
lea ecx, [esi + 0x94]
lea ebx, [esp + 0x14]
call fcn.004de720
lea esi, [esp + 0x14]
call fcn.004deaf0
mov ecx, esi
test eax, eax
jl 0x414694
call fcn.004de550
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004ea83a
add esp, 0x234
ret
Function at 0x414710
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x50f91b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe4]
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
mov esi, edx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41477f
push 1
push esi
call fcn.004deda0
add esp, 8
lea edx, [esp + 0x18]
push edx
call fcn.004143d0
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xa4], eax
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4147a0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x1c]
call fcn.00408a10
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4147c0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x38]
call fcn.00408a10
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4147e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x54]
call fcn.00408a10
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414800
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x8c]
call fcn.00408a10
mov esi, dword [esp + 0x14]
cmp esi, 0x51ff60
jne 0x414844
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414830
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
jmp 0x414862
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414850
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x70]
call fcn.00408a10
mov esi, dword [esp + 0x10]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414874
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0xac]
call fcn.00408a10
cmp dword [esp + 0x2c], 0
je 0x4148a6
lea ecx, [esp + 0x18]
call fcn.00414520
mov edi, eax
jmp 0x4148a8
xor edi, edi
lea esi, [esp + 0x18]
call fcn.004148e0
mov eax, edi
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004ea83a
add esp, 0xc8
ret 0xc
Function at 0x4151b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5119b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x20]
sub eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [esp + 0x30]
fmul st(1), st(0)
fxch st(1)
call fcn.005075b0
mov ebx, dword [esi + 0x24]
mov ebp, eax
mov eax, dword [esi + 0x34]
sub eax, ebx
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
add ebp, edi
fmul st(1)
call fcn.005075b0
mov ecx, dword [esi + 0x38]
add eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x28]
sub ecx, eax
sub ecx, dword [esi + 0x30]
add ecx, edi
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul st(1)
call fcn.005075b0
mov edx, dword [esi + 0x3c]
sub eax, edi
mov edi, dword [esi + 0x2c]
add eax, dword [esi + 0x28]
sub edx, edi
sub edx, dword [esi + 0x34]
mov dword [esp + 0x1c], eax
add edx, ebx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmulp st(1)
call fcn.005075b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
sub eax, ebx
add eax, edi
add eax, ecx
push eax
mov eax, ecx
push eax
lea ecx, [esp + 0x38]
push ebp
lea ebx, [edx + ebp]
push ecx
call fcn.0042c2d0
add esp, 0x10
mov dword [esp + 0x28], 0
mov edi, dword [eax]
mov esi, dword [esi + 0x1c]
call fcn.00419e00
push edi
push 0x51ff54
add eax, 0x50
push eax
mov ecx, esi
call fcn.00401ec0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4152c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x4155d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x511368
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
push 0x5209b0
lea edi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00401fc0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 8
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00401ec0
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x4158d0
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50eae8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406d70
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x41598a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x41598a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x41598a
lea ecx, [esp + 0x14]
call fcn.00415820
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41596b
lea ecx, [esp + 0x14]
call fcn.00406e40
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.004158d0
add esp, 4
test eax, eax
je 0x41594c
push 0
push esi
call edi
test eax, eax
jne 0x41598a
call ebx
cmp eax, 0xb7
jne 0x41594c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4159ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4159d0
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e678
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x20], esi
call fcn.004f08c0
mov edx, dword [0x546fac]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x546fac
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 8]
push ebx
push ecx
push str.__s___s
lea edi, [esp + 0x24]
mov dword [esp + 0x8c], esi
call fcn.004190d0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov edx, 0xa
push esi
mov word [esp + 0x60], dx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
jne 0x415ac0
mov edx, dword [ebp + 8]
push ebx
push edx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0x18
jmp 0x415ac8
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x415add
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x415aec
push eax
call ebx
mov dword [esp + 0x20], edi
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415ba0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52eb00
push 0x4f09a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x415c4e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x415c4e
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x415c4e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00415c71
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
mov dword [esp], 0
test byte [0x548b5c], al
jne 0x417882
or dword [0x548b5c], eax
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
call edx
add eax, 0x10
push 0x512ef0
mov dword [0x548b58], eax
call fcn.004ec2bc
add esp, 4
mov eax, dword [0x548b58]
cmp dword [eax - 0xc], 0
jne 0x4178ca
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4178c5
push edi
lea edx, [esp + 8]
mov edi, 0x548b58
call fcn.00407780
mov eax, edi
call fcn.00415730
push 8
push str.drivers_
push edi
call fcn.00418e70
pop edi
mov eax, dword [0x548b58]
add eax, 0xfffffff0
call fcn.00404fe0
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.004ea83a
add esp, 0x210
ret

Function at 0x4178f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50f2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
lea edx, [eax + 2]
jmp 0x417960
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x417960
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.00408a10
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x4179ac
push ebx
mov ecx, 0x51fe70
call fcn.00406d70
cmp dword [esp + 0x28], 8
jb 0x417a55
mov edx, dword [esp + 0x14]
push edx
jmp 0x417a4d
lea esi, [eax - 1]
cmp eax, esi
ja 0x4179b8
call fcn.004e94a3
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x4179cb
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x4179eb
cmp ax, 0x2f
je 0x4179eb
push 1
push 0x51fe74
lea eax, [esp + 0x18]
call fcn.004182f0
push 7
push 0x51fe78
lea eax, [esp + 0x18]
call fcn.004182f0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x417a09
lea eax, [esp + 0x14]
push eax
call fcn.004158d0
add esp, 4
test eax, eax
jne 0x417a2e
push ebx
mov ecx, 0x51fe88
call fcn.00406d70
cmp dword [esp + 0x28], edi
jb 0x417a55
mov eax, dword [esp + 0x14]
push eax
jmp 0x417a4d
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x417a3c
lea ecx, [esp + 0x14]
push ebx
call fcn.00406d70
cmp dword [esp + 0x28], edi
jb 0x417a55
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ea82f
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004ea83a
add esp, 0x238
ret
Function at 0x417a80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50f822
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x238]
mov dword [esp + 0x230], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x546fac
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x22]
mov dword [esp + 0x238], 0
push ecx
mov dword [esp + 0x1c], 1
mov word [esp + 0x24], ax
call fcn.004f08c0
add esp, 0xc
push 0
push 5
lea edx, [esp + 0x20]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b33
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
mov eax, edi
call fcn.004076e0
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x417b82
lea edx, [eax - 1]
test edx, edx
jl 0x417be7
cmp edx, eax
jg 0x417be7
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x417b82
cmp ax, 0x2f
je 0x417b82
mov edx, 0x51faf0
call fcn.00417f00
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00418e70
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x417bbe
lea edx, [eax - 1]
test edx, edx
jl 0x417be7
cmp edx, eax
jg 0x417be7
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x417bbe
cmp ax, 0x2f
je 0x417bbe
mov edx, 0x51faf0
call fcn.00417f00
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ea83a
add esp, 0x224
ret
push 0x80070057
call fcn.00402a90
int3
Function at 0x417c00
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [esp + 0x18], ebx
call fcn.00402270
mov eax, dword [esp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x417cea
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x200000
ja 0x417ce3
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [ebp + 1]
sub eax, ecx
or edx, eax
mov edi, ebp
jge 0x417c7a
mov eax, esi
call fcn.00402380
mov ebx, dword [esi]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417cdf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417cdf
sub edi, eax
add ebx, eax
test edi, edi
jne 0x417c80
mov eax, dword [esp + 0x1c]
mov byte [eax + ebp], 0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x417cc7
push ecx
push eax
call fcn.004ec80f
add esp, 8
test eax, eax
jl 0x417cf6
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x417cf6
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00402a90
int3
Function at 0x417d10
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x50f7cb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x234], eax
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x546fac
mov dword [esp + 0x14], ebp
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push ebp
push 2
mov dword [esp + 0x258], ebp
mov dword [esp + 0x1c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x417dbc
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404fe0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417ecb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x417ecb
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebp
jne 0x417e03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404fe0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x417da7
mov ecx, dword [esp + 0x258]
cmp dword [esp + 0x20], ecx
je 0x417e21
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417e03
jmp 0x417e29
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x417e77
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404fe0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ecb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x417ecb
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x417eb2
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
je 0x417ea1
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x417e86
jmp 0x417eb2
lea edx, [esp + 0x3c]
lea edi, [esp + 0x10]
call fcn.00407780
mov edi, dword [esp + 0x10]
push esi
call ebp
lea eax, [edi - 0x10]
call fcn.00404fe0
add eax, 0x10
lea ecx, [esp + 0x10]
mov dword [ebx], eax
call fcn.00406e40
mov eax, ebx
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004ea83a
add esp, 0x244
ret