joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d950
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x512c40
push eax
mov eax, 0x400c
mov dword fs:[0], esp
call fcn.00421270
push esi
push edi
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00449620
mov ecx, dword [eax]
push str.SCIssueVersion.ini
push ecx
lea edx, [esp + 0x10]
push 0x546e48
push edx
mov dword [esp + 0x402c], 1
call fcn.00449490
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x401c], 3
call fcn.00439d50
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x4030]
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x4030]
push 0x1fff
push ecx
mov ecx, dword [esp + 0x4034]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x4024]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004394e0
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x401c], 0
call fcn.00439d50
mov ecx, dword [esp + 0x4014]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4018
ret

Function at 0x40da70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x512c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea eax, [esp + 8]
push 0
push eax
call fcn.00449620
mov ecx, dword [eax]
push str.SCIssueVersion.ini
push ecx
lea edx, [esp + 0xc]
push 0x546e48
push edx
mov dword [esp + 0x24], 0
call fcn.00449490
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.00439d50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.00439d50
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40dd70
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x512d08
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0040dcb0
add esp, 8
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.0043aeb0
mov esi, eax
test esi, esi
jl 0x40ddee
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.0043c520
mov eax, dword [eax]
push edi
push eax
call ebx
lea ecx, [esp + 0x20]
call fcn.00439d50
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x5c
call fcn.0043aef0
mov esi, eax
test esi, esi
jge 0x40ddbd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00439d50
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x41636d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513a93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x51f06c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [esi], 0x51bf2c
mov eax, dword [0x51f06c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 4
test eax, eax
je 0x4163c2
call fcn.0047d5b0
push eax
lea ecx, [esp + 0x18]
push str.__lu
push ecx
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4163e3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x14]
push str.__lu
push edx
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x416404
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x10]
push str.__lu
push eax
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x416425
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x548030
push ecx
call fcn.0043cd60
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.004394e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._s_s_s_s_s
push edi
mov byte [esp + 0x40], 5
call fcn.0043cd60
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.00439d50
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.00439d50
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00439d50
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.00439d50
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00439d50
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x41650d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x51f06c]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
cmp eax, 0xffffffff
je 0x416549
push eax
lea eax, [esp + 0x14]
push str.__lu
push eax
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x416565
push eax
lea ecx, [esp + 0x10]
push str.__lu
push ecx
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x416581
push eax
lea edx, [esp + 0xc]
push str.__lu
push edx
call fcn.0043cd60
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x41659d
push eax
lea eax, [esp + 8]
push 0x548030
push eax
call fcn.0043cd60
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004394e0
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
add esi, 4
push str._s_s_s_s_s
push esi
mov byte [esp + 0x38], 4
call fcn.0043cd60
add esp, 0x1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.00439d50
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.00439d50
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.00439d50
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00439d50
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00439d50
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x4211e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x421204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423309
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x421227
test byte [esp + 8], 2
je 0x421227
call fcn.0042337c
mov dword [eax], 0xd
call fcn.00423385
mov dword [eax], 5
jmp 0x421200
xor eax, eax
ret
Function at 0x438240
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x438299
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x438299
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4382a0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x43827d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43829b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x43dd70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43ddc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43ddc0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43ddc5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43ddab
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43ddd2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x4498f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x515b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x51f06c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0043a030
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0043c310
mov ecx, dword [eax]
push 0x546e84
push ecx
call fcn.004211af
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00439d50
test edi, edi
je 0x449970
push 0x546e84
mov ecx, esi
call fcn.0043a990
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x449ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x515b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x51f06c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0043a030
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0043c310
mov ecx, dword [eax]
push 0x546e84
push ecx
call fcn.004211af
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00439d50
test edi, edi
je 0x449b50
push 0x546e84
mov ecx, esi
call fcn.0043a990
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x44d9e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
je 0x44da95
mov esi, dword [esp + 0x10]
test esi, esi
je 0x44da95
mov eax, dword [esp + 8]
cmp esi, 4
push ebx
not eax
jb 0x44da6a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x51f08c]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x51f08c]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x51f08c]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x51f08c]
xor eax, ecx
dec edi
jne 0x44da0b
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x44da90
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x51f08c]
xor eax, ecx
inc edx
dec esi
jne 0x44da72
pop ebx
pop esi
not eax
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x44dabd
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x515f1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x51f06c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov ecx, dword [0x51f06c]
lea ebp, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebp], ecx
mov edx, dword [0x51f06c]
mov dword [esi + 0xc], edx
mov eax, dword [0x51f06c]
mov dword [esi + 0x10], eax
push 0xf003f
push edi
push edi
mov byte [esp + 0x28], 3
mov dword [esi], 0x51f548
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x44db1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0043a030
mov edx, dword [esp + 0x28]
mov ecx, ebp
push edx
call fcn.0043a030
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0xc]
push eax
call fcn.0043a030
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esi + 0x10]
call fcn.0043a030
push edi
push edi
push 1
push edi
mov dword [esi + 0x18], 0x10
mov dword [esi + 0x1c], 1
mov dword [esi + 0x30], 0xbb8
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x38], eax
mov dword [0x562f28], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x44e410
Capabilities:
Delete registry key
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], esi
cmp eax, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
jne 0x44e45c
mov eax, dword [esi + 0x3c]
lea ecx, [ebp - 0x24]
push 0x53bb38
push ecx
mov dword [ebp - 0x24], eax
call fcn.00421674
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x44e481
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x28]
push 0x53bb38
push edx
mov dword [ebp - 0x28], eax
call fcn.00421674
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x14]
lea ebx, [esi + 4]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
jne 0x44e4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2c]
push 0x53bb38
push edx
mov dword [ebp - 0x2c], eax
call fcn.00421674
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x44e4e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x53bb38
push eax
call fcn.00421674
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [ebp - 0x14]
call fcn.004394e0
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043a9f0
mov ecx, dword [ebp - 0x14]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x40], 0
mov byte [ebp - 4], 0
call fcn.00439d50
jmp 0x44e533
test edi, edi
je 0x44e53e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44e54c
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov ecx, dword [esi + 0x40]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450f20
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [ecx]
lea eax, [esp]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x450f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x450f48
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esp + 4]
xor edx, edx
xor eax, eax
or edx, esi
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
pop ecx
ret 4

Function at 0x451000
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x516268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esp + 0x10]
mov ecx, dword [esi]
push ebx
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x451058
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x451058
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0xc]
call fcn.004488c0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push 0x2000
lea ecx, [esp + 0x14]
call fcn.00448aa0
lea edx, [esp + 0x10]
push 0
push edx
push 0x2000
lea ecx, [esp + 0x18]
call fcn.004491d0
push eax
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x4510dc
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x14]
call fcn.00448aa0
lea ecx, [esp + 0xc]
call fcn.00448a90
test eax, eax
je 0x451103
lea ecx, [esp + 0xc]
call fcn.00448a90
push eax
lea ecx, [esp + 0x10]
call fcn.004491b0
push eax
push ebx
call fcn.0044d9e0
add esp, 0xc
mov ebx, eax
jmp 0x45106f
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004489f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
mov dword [edx], ebx
call fcn.004489f0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x451330
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x562f8c]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x45137c
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x451377
mov dword [0x562f90], eax
mov dword [0x562f8c], eax
cmp dword [0x562f90], ebx
jne 0x451390
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4513dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4513dc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.004fed42
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.004fed42
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x451421
test esi, esi
je 0x451432
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x45142e
push esi
call fcn.004fed6b
add esp, 4
test ebx, ebx
jne 0x451441
mov edi, dword [edi]
test edi, edi
je 0x451441
push edi
call fcn.004fed6b
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x451b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x562f34]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x451d3b
push 1
push 0x562f40
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x562f40
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x562f58], 0xc
mov dword [0x562f60], esi
mov dword [0x562f5c], 0x562f40
call fcn.00440a60
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.004fd413
mov eax, dword [0x562f94]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x451c51
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x451c47
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x451c3d
jne 0x451c47
cmp dword [ebp - 0x154], ecx
jb 0x451c47
mov dword [0x562f98], 1
mov dword [0x562f94], 1
cmp dword [0x562f98], esi
jne 0x451c5e
mov ebx, 1
cmp ebx, esi
jle 0x451ca5
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004394e0
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004411c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00439d50
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.004fd637
add esi, 4
dec edi
jne 0x451c67
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x562f78
mov byte [ebp - 4], 3
call fcn.00451710
add esp, 0xc
cmp eax, esi
jne 0x451cf9
lea eax, [ebp - 0x18]
push 0x5377f0
push eax
mov dword [ebp - 0x18], esi
call fcn.00421674
push 1
push 0x562f78
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x562f78
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x451cf7
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x562f68], 0xc
mov dword [0x562f70], esi
mov dword [0x562f6c], 0x562f78
mov dword [0x562f34], eax
mov byte [ebp - 4], 0
call fcn.004fd446
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00440a70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret