joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4928e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e4858
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x492919
inc eax
mov dword [esi + 0x10], eax
jmp 0x492a2c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x49292d
mov eax, 0xffffffc7
jmp 0x492a2e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x49293e
cmp dword [esi + 8], eax
jne 0x49292d
cmp dword [esi + 8], eax
jne 0x492957
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x492957
mov eax, 0xffffffc7
jmp 0x492a2e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x49296b
push eax
mov ecx, ebx
call fcn.00492110
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004679a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x49299c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004679c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00491880
test eax, eax
mov dword [esp + 0x38], eax
je 0x4929cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x503e00
call fcn.00467ba0
mov eax, dword [esp + 0x38]
jmp 0x492a2e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00492740
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x492a13
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00492760
mov esi, eax
test esi, esi
jne 0x492a43
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00492740
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4929e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x503e00
call fcn.00467ba0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x503e00
call fcn.00467ba0
mov eax, esi
jmp 0x492a2e

Function at 0x4973f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x497450
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x497450
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x497450
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x497450
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x497490
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
ret
Function at 0x4a2f70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004ddf9a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004a28d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004ddec8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004da7c2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004da7c2
push 1
push 0
push 0
mov ecx, esi
call fcn.004da76a
push 1
push 0
push 1
mov ecx, esi
call fcn.004da76a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004de00c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4a30f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004ddf9a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004a28d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004ddec8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a31b4
cmp dword [esp + 0x40], 1
jne 0x4a31b2
cmp ecx, eax
jge 0x4a31b4
mov eax, ecx
cmp eax, 0xc8
jge 0x4a31c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004a2f70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004de00c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4a39c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004d8bf4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004de242
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004df75e
test eax, eax
je 0x4a3adc
mov ecx, dword [esp + 0x3c]
call fcn.004de26f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a3aa0
push edi
mov ecx, esi
call fcn.004db8dc
mov ecx, esi
call fcn.004a3c80
cmp dword [esp + 0x38], 1
jne 0x4a3ad5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004dba17
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4a5cf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a5d23
push esi
call fcn.004b4090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a5d1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a5da9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a5d92
mov eax, dword [esi + 8]
test eax, eax
je 0x4a5d47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a5d8e
cmp eax, 2
je 0x4a5d92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a5d3a
cmp eax, 3
je 0x4a5d6d
cmp eax, 1
jne 0x4a5d3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4a5d3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a5d3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a5dd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a5db8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a5dd0
add esp, 4
pop esi
ret

Function at 0x4a6640
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4a6661
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4a6661
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a6661
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4c1e20
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x52264c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4c1e33
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4c1e74
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5226f4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4c1ea6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c1eaa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4c1e9b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4c1ec8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c1ecc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4c1ebd
xor ecx, ecx
mov eax, 0x52265c
xor ebx, ebx
mov bl, byte [ecx + 0x522704]
cmp byte [esp + ebx + 0x14], 0
je 0x4c1ef7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x52271c]
cmp byte [esp + ebx + 0x14], 0
je 0x4c1f0e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4c1ede
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4c1e67
lea edx, [esp + 0x84]
push edx
call fcn.004c1f50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4d99d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d9a08
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d7a77
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d7a4f
jmp 0x4d9a14
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4db0ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4db10c
call fcn.004e0a3e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4db10c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4db103
xor eax, eax
jmp 0x4db114
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004db11a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e0f6e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e0f9c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4e0fba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e0ed4
jmp 0x4e0fba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e0fba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e0ed4
test edi, edi
mov eax, edi
jne 0x4e0fa4
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406fe0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x52efc0]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
xor eax, ebp
cmp ebx, edi
mov dword [ebp - 0x10], eax
je 0x4070f0
movsx eax, byte [ebx]
mov esi, ecx
cmp eax, 0x5b
jg 0x4070a5
cmp eax, 0x24
je 0x4070ca
cmp eax, 0x28
jne 0x4070f0
lea eax, [ebx + 1]
cmp eax, edi
je 0x4070f0
cmp byte [ebx + 1], 0x3f
jne 0x4070f0
lea eax, [ebx + 2]
cmp eax, edi
je 0x4070f0
movsx eax, byte [ebx + 2]
cmp eax, 0x21
je 0x407131
cmp eax, 0x3d
jne 0x4070f0
lea ecx, [ebp - 0x38]
call fcn.00406774
xor eax, eax
lea ecx, [ebp - 0x38]
add ebx, 3
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x3c]
push edi
push ebx
mov ebx, eax
push eax
call fcn.004067a2
lea edx, [ebp - 0x38]
mov ebx, dword [ebx]
mov ecx, esi
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x40], eax
push dword [esi + 0x10]
xor eax, eax
push eax
push edx
jmp 0x407179
cmp eax, 0x5c
je 0x40710b
cmp eax, 0x5e
jne 0x4070f0
push 8
call fcn.004aea96
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4e2948
jmp 0x4070e3
push 8
call fcn.004aea96
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4e2954
mov dword [ecx + 4], eax
inc ebx
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 4]
mov dword [esi + 0x24], eax
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebx + 1]
cmp eax, edi
je 0x4070f0
mov al, byte [ebx + 1]
cmp al, 0x42
je 0x407123
cmp al, 0x62
jne 0x4070f0
mov ecx, esi
push 0
jmp 0x407127
mov ecx, esi
push 1
call fcn.004075da
add ebx, 2
jmp 0x4070f0
lea ecx, [ebp - 0x38]
call fcn.00406774
xor eax, eax
lea ecx, [ebp - 0x38]
add ebx, 3
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x3c]
push edi
push ebx
mov ebx, eax
push eax
call fcn.004067a2
lea eax, [ebp - 0x38]
mov ebx, dword [ebx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x40], ecx
mov ecx, esi
push dword [esi + 0x10]
push 1
push eax
call fcn.0040762c
mov eax, dword [ebp - 0x40]
add dword [esi + 0x10], eax
cmp ebx, edi
je 0x4071bc
cmp byte [ebx], 0x29
jne 0x4071bc
mov esi, dword [ebp - 0x18]
inc ebx
test esi, esi
je 0x4071af
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x4071af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, esi
call fcn.0042713c
lea ecx, [ebp - 0x38]
call fcn.004148a2
jmp 0x4070f0
call fcn.004051c2
int3
Function at 0x40d253
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x52efc0]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ecx], 4
mov dword [eax], 1
push ecx
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor edi, edi
test eax, eax
jne 0x40d2f6
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d2f6
xor ecx, ecx
lea eax, [ebx + ebx + 1]
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.004aeaf3
add esp, 4
mov edi, esi
mov esi, eax
lea eax, [ebx*4 + 2]
push eax
push 0
push esi
call fcn.004b81d0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor edi, edi
test eax, eax
jne 0x40d2ed
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00428a50
xor edi, edi
inc edi
push esi
call fcn.004aeac6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e654
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov eax, dword [0x52efc0]
lea ecx, [ebp - 0x10]
xor esi, esi
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, word [0x4e3301]
mov word [ecx + 4], ax
mov eax, dword [0x4e32fd]
mov dword [ecx], eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40e6c3
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40e6b7
mov dword [ebp - 0x14], 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
add esp, 0x14
pop esi
pop ebp
ret

Function at 0x40e94a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40e98c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0040e9a0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40e985
mov dword [esi], ebx
call fcn.00435790
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.004575c0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40ecb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x52efc0]
mov edi, edx
mov edx, dword [ebp + 8]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 4]
sub esi, dword [edi]
cmp esi, edx
jae 0x40ed11
sub edx, esi
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov ebx, edx
push edx
call fcn.0040f02c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
cmp ecx, esi
jbe 0x40ed25
add eax, esi
xor ecx, ecx
lea esi, [ebp - 0x14]
mov dword [esi], ecx
push ecx
push esi
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp dword [esi], ebx
sete bl
and bl, al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.004295ea

Function at 0x40ee4a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x52efc0]
mov edi, edx
mov esi, ecx
mov ebx, esp
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x28], eax
xor eax, eax
movaps xmmword [ebx + 0x10], xmm0
movaps xmmword [ebx], xmm0
mov dword [ebx + 0x20], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [ebx + 4], eax
jne 0x40ee8c
mov dword [esp + 4], 0x1000
lea eax, [esi + edi - 1]
cmp eax, esi
jbe 0x40ee9e
mov cl, byte [esi]
add esi, dword [esp + 4]
cmp esi, eax
jb 0x40ee94
mov al, byte [eax]
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004aeb01
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40eeb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x52efc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.00458140
cmp eax, 2
jl 0x40ef12
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esi, [ebp - 0x1c]
mov dword [esi], edi
mov ecx, esi
push eax
call fcn.0040e94a
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40ef6c
lea ecx, [ebp - 0x1c]
call fcn.0040e9a0
jmp 0x40ef68
push 9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x40ef68
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ecx], 0x4e3328
mov dword [ecx + 4], eax
call fcn.0045ebe6
test al, al
je 0x40efe7
lea ecx, [ebp - 0x1c]
call fcn.0045e8e4
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
xor edx, edx
cmp ecx, 1
sbb edx, edx
or edx, ecx
mov ecx, esi
cmp eax, edx
cmovb edx, eax
call fcn.0040ee4a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40efd1
xor ebx, ebx
jmp 0x40efd3
mov eax, dword [ebp + 0x10]
mov ebx, 0x100000
cmp eax, ebx
cmova ebx, eax
push 4
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40ef08
dec dword [ebp - 0x20]
mov esi, eax
xor edi, edi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x20], edi
jb 0x40efbb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40efbb
add edi, ecx
test eax, eax
jne 0x40ef98
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x1c]
call fcn.0040e9a0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
int3