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

Disassembly:
push 0xffffffffffffffff
push 0x50d530
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x58], 0
jne 0x40f870
cmp dword [esp + 0x5c], 8
jb 0x40f85a
mov eax, dword [esp + 0x48]
push eax
call fcn.004ea0ff
add esp, 4
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x48]
mov ebp, 8
cmp dword [esp + 0x5c], ebp
jae 0x40f883
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f897
test al, 0x10
jne 0x40f9a6
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x40f8a5
lea eax, [esp + 0x48]
push eax
call fcn.004eb270
add esp, 4
test eax, eax
je 0x40f9a6
push 1
push 0x51ef3c
lea ebx, [esp + 0x4c]
call fcn.004117e0
mov ecx, dword [esp + 0x58]
mov edi, eax
dec ecx
cmp edi, ecx
jne 0x40f8f6
mov edx, ebx
push edx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x1c]
call fcn.00409040
push 1
push 0x51ef40
mov ebx, eax
call fcn.004117e0
mov edi, eax
call fcn.00426800
lea eax, [esp + 0x44]
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x1c]
call fcn.00409040
mov byte [esp + 0x3c], 1
cmp dword [eax + 0x18], ebp
jb 0x40f917
mov eax, dword [eax + 4]
jmp 0x40f91a
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
call fcn.004134d0
call fcn.0040f810
add esp, 0x1c
test al, al
sete bl
cmp dword [esp + 0x30], ebp
jb 0x40f948
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ea0ff
add esp, 4
test bl, bl
je 0x40f96b
lea esi, [esp + 0x44]
call fcn.00426800
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x40f979
lea eax, [esp + 0x48]
push eax
call fcn.004eb270
add esp, 4
test eax, eax
lea esi, [esp + 0x44]
sete bl
call fcn.00426800
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x5c], ebp
jb 0x40f9b9
mov edx, dword [esp + 0x48]
push edx
call fcn.004ea0ff
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40f9d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f7d3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xc0]
mov edi, 8
cmp dword [esp + 0xd4], edi
jae 0x40fa22
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fa4c
test al, 0x10
jne 0x40fa4c
cmp dword [esp + 0xd4], edi
jb 0x40fb63
mov eax, dword [esp + 0xc0]
push eax
jmp 0x40fb5b
sub esp, 0x1c
mov dword [esp + 0x2c], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0xfc]
mov word [ecx + 4], dx
call fcn.0040e810
mov ecx, esi
call fcn.0040f750
add esp, 0x1c
call fcn.0040f810
add esp, 0x1c
test al, al
jne 0x40faca
cmp dword [esp + 0xd4], edi
jb 0x40fab0
mov eax, dword [esp + 0xc0]
push eax
call fcn.004ea0ff
add esp, 4
xor al, al
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0xd4], edi
jae 0x40fae1
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00411260
lea esi, [esp + 0x20]
mov byte [esp + 0xb4], 1
call fcn.00411980
test eax, eax
jne 0x40fb24
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40fb1c
or eax, 4
push 0
push eax
call fcn.004131d0
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], 0
call fcn.00411340
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.004e8e28
add esp, 4
cmp dword [esp + 0xd4], edi
jb 0x40fb63
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.004ea0ff
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret
Function at 0x413fc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x50dceb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x414139
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 0x414033
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 0x414059
mov edi, dword [esi + 4]
jmp 0x41405c
lea edi, [esi + 4]
lea eax, [esp + 0x14]
call fcn.004dde70
test eax, eax
jl 0x414130
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
mov dword [esp + 0x34], 2
call fcn.004ee7b6
add esp, 0xc
cmp dword [esi + 0x30], ebx
jbe 0x4140ab
cmp dword [esi + 0x34], ebp
jb 0x414097
mov ecx, dword [esi + 0x20]
jmp 0x41409a
lea ecx, [esi + 0x20]
lea ebx, [esp + 0x14]
call fcn.004de1c0
test eax, eax
jl 0x414130
cmp dword [esi + 0x4c], 0
jbe 0x4140cb
cmp dword [esi + 0x50], ebp
jb 0x4140bb
mov ecx, dword [esi + 0x3c]
jmp 0x4140be
lea ecx, [esi + 0x3c]
lea ebx, [esp + 0x14]
call fcn.004ddee0
test eax, eax
jl 0x414130
cmp dword [esi + 0x84], 0
jbe 0x4140f1
cmp dword [esi + 0x88], ebp
jb 0x4140e1
mov ecx, dword [esi + 0x74]
jmp 0x4140e4
lea ecx, [esi + 0x74]
lea ebx, [esp + 0x14]
call fcn.004de2b0
test eax, eax
jl 0x414130
cmp dword [esi + 0x68], 0
jbe 0x41413d
cmp dword [esi + 0x6c], ebp
jb 0x414101
mov eax, dword [esi + 0x58]
jmp 0x414104
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41413d
cmp dword [esi + 0x6c], ebp
jb 0x414119
mov ecx, dword [esi + 0x58]
jmp 0x41411c
lea ecx, [esi + 0x58]
mov edx, dword [esi + 0x8c]
push edx
lea ebx, [esp + 0x18]
call fcn.004de0c0
test eax, eax
jge 0x414143
lea ecx, [esp + 0x14]
call fcn.004dde00
xor eax, eax
jmp 0x414184
push 0
xor ecx, ecx
jmp 0x414123
cmp dword [esi + 0xa4], 0
je 0x41416b
cmp dword [esi + 0xa8], ebp
jb 0x41415c
mov ecx, dword [esi + 0x94]
jmp 0x414162
lea ecx, [esi + 0x94]
lea ebx, [esp + 0x14]
call fcn.004ddfd0
lea esi, [esp + 0x14]
call fcn.004de3a0
mov ecx, esi
test eax, eax
jl 0x414134
call fcn.004dde00
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.004ea10a
add esp, 0x234
ret
Function at 0x4141b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x50f09b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x41421f
push 1
push esi
call fcn.004de650
add esp, 8
lea edx, [esp + 0x18]
push edx
call fcn.00413e70
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 0x414240
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x1c]
call fcn.004133e0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414260
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x38]
call fcn.004133e0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414280
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x54]
call fcn.004133e0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142a0
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x8c]
call fcn.004133e0
mov esi, dword [esp + 0x14]
cmp esi, 0x51ef30
jne 0x4142e4
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142d0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
jmp 0x414302
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142f0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x70]
call fcn.004133e0
mov esi, dword [esp + 0x10]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414314
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0xac]
call fcn.004133e0
cmp dword [esp + 0x2c], 0
je 0x414346
lea ecx, [esp + 0x18]
call fcn.00413fc0
mov edi, eax
jmp 0x414348
xor edi, edi
lea esi, [esp + 0x18]
call fcn.00414380
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.004ea10a
add esp, 0xc8
ret 0xc
Function at 0x414c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x511168
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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.00506e90
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.00506e90
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.00506e90
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.00506e90
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.0042bdc0
add esp, 0x10
mov dword [esp + 0x28], 0
mov edi, dword [eax]
mov esi, dword [esi + 0x1c]
call fcn.00419920
push edi
push 0x51ef24
add eax, 0x50
push eax
mov ecx, esi
call fcn.00401f20
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 0x414d66
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 0x415070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50e7e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
push 0x51f6d8
lea edi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00402020
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.00401f20
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 0x415105
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 0x415370
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f8d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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.00406c40
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x41542a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x41542a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x41542a
lea ecx, [esp + 0x14]
call fcn.004152c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41540b
lea ecx, [esp + 0x14]
call fcn.00406cf0
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.00415370
add esp, 4
test eax, eax
je 0x4153ec
push 0
push esi
call edi
test eax, eax
jne 0x41542a
call ebx
cmp eax, 0xb7
jne 0x4153ec
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 0x41544b
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 0x415470
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50dcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
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.004f0190
mov edx, dword [0x544fac]
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, 0x544fac
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.00418bf0
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 0x415560
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, 0x546980
call fcn.004df340
add esp, 0x18
jmp 0x415568
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x41557d
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x41558c
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 0x4155b3
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 0x415640
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52d810
push 0x4f0270
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x4156ee
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x4156ee
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 0x4156ee
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00415711
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 0x4172d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
mov dword [esp], 0
test byte [0x546b5c], al
jne 0x417322
or dword [0x546b5c], eax
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
push 0x512690
mov dword [0x546b58], eax
call fcn.004ebb8c
add esp, 4
mov eax, dword [0x546b58]
cmp dword [eax - 0xc], 0
jne 0x41736a
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x417365
push edi
lea edx, [esp + 8]
mov edi, 0x546b58
call fcn.00407720
mov eax, edi
call fcn.004151d0
push 8
push str.drivers_
push edi
call fcn.00418990
pop edi
mov eax, dword [0x546b58]
add eax, 0xfffffff0
call fcn.00404eb0
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.004ea10a
add esp, 0x210
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x50ea5b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x417400
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x417400
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.004133e0
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x41744c
push ebx
mov ecx, 0x51ee40
call fcn.00406c40
cmp dword [esp + 0x28], 8
jb 0x4174f5
mov edx, dword [esp + 0x14]
push edx
jmp 0x4174ed
lea esi, [eax - 1]
cmp eax, esi
ja 0x417458
call fcn.004e8d73
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x41746b
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x41748b
cmp ax, 0x2f
je 0x41748b
push 1
push 0x51ee44
lea eax, [esp + 0x18]
call fcn.00417d90
push 7
push 0x51ee48
lea eax, [esp + 0x18]
call fcn.00417d90
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x4174a9
lea eax, [esp + 0x14]
push eax
call fcn.00415370
add esp, 4
test eax, eax
jne 0x4174ce
push ebx
mov ecx, 0x51ee58
call fcn.00406c40
cmp dword [esp + 0x28], edi
jb 0x4174f5
mov eax, dword [esp + 0x14]
push eax
jmp 0x4174ed
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x4174dc
lea ecx, [esp + 0x14]
push ebx
call fcn.00406c40
cmp dword [esp + 0x28], edi
jb 0x4174f5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ea0ff
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.004ea10a
add esp, 0x238
ret
Function at 0x417520
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50efa2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push edi
mov eax, dword [0x53a1a4]
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 [0x544fac]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x544fac
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.004f0190
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 0x4175d3
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00407680
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x417622
lea edx, [eax - 1]
test edx, edx
jl 0x417687
cmp edx, eax
jg 0x417687
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x417622
cmp ax, 0x2f
je 0x417622
mov edx, 0x51eac0
call fcn.004179a0
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00418990
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41765e
lea edx, [eax - 1]
test edx, edx
jl 0x417687
cmp edx, eax
jg 0x417687
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x41765e
cmp ax, 0x2f
je 0x41765e
mov edx, 0x51eac0
call fcn.004179a0
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.004ea10a
add esp, 0x224
ret
push 0x80070057
call fcn.004029f0
int3
Function at 0x4176a0
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.004022d0
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 0x41778a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x200000
ja 0x417783
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 0x41771a
mov eax, esi
call fcn.004023e0
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 0x41777f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41777f
sub edi, eax
add ebx, eax
test edi, edi
jne 0x417720
mov eax, dword [esp + 0x1c]
mov byte [eax + ebp], 0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x417767
push ecx
push eax
call fcn.004ec0df
add esp, 8
test eax, eax
jl 0x417796
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x417796
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.004029f0
int3