joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c17b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea ecx, [ebp - 0x23e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x260], edi
mov word [ebp - 0x240], ax
call fcn.00480280
add esp, 0xc
lea edx, [ebp - 0x240]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], edi
mov word [ebp - 0x25c], ax
xor ecx, ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x38], cx
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf
push 0xffffffffffffffff
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.0048161f
lea eax, [ebp - 0x38]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408612
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00401b70
push 0xf
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push ecx
mov edx, ecx
push edx
call fcn.0048161f
lea eax, [ebp - 0x38]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408650
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004044f0
push 4
push str..exe
lea ecx, [ebp - 0x25c]
call fcn.004044f0
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x408696
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x240]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4086c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.00401b70
cmp dword [ebp - 0x248], 8
jb 0x4086f6
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00480102
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x408b00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c253
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
call fcn.00406950
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x408b61
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b70
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00406c80
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x408ba2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
push 4
mov word [ebp - 0x2c], cx
push 0x54b878
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00401b70
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.004063f0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x408be9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004072e0
mov edx, dword [ebp - 0xac]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00401200
mov ecx, eax
call fcn.00401240
mov ecx, eax
call fcn.00411370
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x408c2b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004062d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 4
Function at 0x40bfb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40c026
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x54bc58
push 0x80000001
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c026
call fcn.0040bd30
push 8
lea ecx, [ebp - 8]
push ecx
push 0xb
push 0
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
push esi
push edx
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x40c0c2
cmp esi, 0xffffffff
je 0x40c0c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x40c760
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
mov ebx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
jne 0x40c7f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c7d6
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
je 0x40c792
pop edi
pop esi
pop ebx
pop ebp
ret 8
test edi, edi
jne 0x40c7f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40c7f0
push edi
push esi
mov ecx, ebx
call fcn.0040c8f0
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40c8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push edi
push 0x90
push 0
push eax
mov edi, ecx
mov dword [esi + 0x14], 2
mov dword [ebp + 8], 0
call fcn.00480280
mov edx, dword [esi + 0x18]
mov eax, dword [edi]
add esp, 0xc
push esi
lea ecx, [ebp + 8]
push ecx
push 0x90
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c963
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x40c962
call ebx
cmp eax, 0xea
je 0x40c962
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, edi
call fcn.0040c760
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x40c9d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 4], eax
xor eax, eax
push 1
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [ebp + 0x18], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xc
mov eax, 0x40000003
je 0x40ca41
mov eax, 0x40080003
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40ca4c
mov ecx, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push 0
push 0x400
push 0x400
push 0xff
push 6
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40ca7b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
push edi
mov edi, dword [ebp + 0x10]
push 0
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
pop edi
jne 0x40ca72
mov eax, dword [ebp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.0040c760
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40d0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x90
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x18]
mov esi, ecx
jne 0x40d152
mov eax, dword [ebx + 0x8c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40d102
push eax
push edi
call fcn.0040ce00
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebx + 0x90]
mov edx, dword [ecx]
add ebx, 0x90
push eax
push ebx
call edx
test eax, eax
je 0x40d152
mov edx, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
push ecx
mov dword [edi + 0x14], 3
mov dword [ebp + 8], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push edx
push ebx
call ecx
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d165
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40d165
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push edi
mov ecx, esi
call fcn.0040c760
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40da20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c98b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x40da74
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047eeb1
xor edi, edi
add esp, 4
mov dword [esi + 0x24], eax
cmp dword [esi + 0x1c], edi
jle 0x40dace
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x40d760
push 0
push 0
mov dword [ebp - 0x14], 0
call ebx
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x24]
cmp dword [edx + edi*4], 0
je 0x40da60
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40daa0
mov edi, dword [esi + 0x1c]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0047eeb1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40db22
push 0x40c750
push 0x40c740
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.00481b29
mov eax, ebx
jmp 0x40db24
xor eax, eax
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 0x1c
mul edx
seto cl
mov dword [ebp - 4], 0xffffffff
neg ecx
or ecx, eax
push ecx
call fcn.0047eeb1
xor ebx, ebx
add esp, 4
mov dword [esi + 0x28], eax
cmp dword [esi + 0x1c], ebx
jle 0x40dbfe
mov dword [ebp - 0x10], ebx
jmp 0x40db60
push 0xa0
call fcn.004801e4
mov edi, eax
add esp, 4
test edi, edi
je 0x40dbbb
push 0x90
push 0
push edi
call fcn.00480280
add esp, 0xc
mov dword [edi + 0x88], 0xbadbeef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x84], eax
xor eax, eax
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], eax
mov dword [edi + 0x90], vtable.wh::MemBuffer.0
mov eax, edi
jmp 0x40dbbd
xor eax, eax
mov ecx, dword [esi + 0x28]
mov edi, dword [ebp - 0x10]
xor edx, edx
test ebx, ebx
sete dl
mov dword [ecx + edi + 0x18], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
add eax, edi
push edx
mov edx, dword [esi + 0x2c]
push eax
push ecx
push esi
push esi
lea ecx, [edx + ebx*8]
call fcn.0040c9d0
test eax, eax
je 0x40da60
inc ebx
add edi, 0x1c
mov dword [ebp - 0x10], edi
cmp ebx, dword [esi + 0x1c]
jl 0x40db60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x14
push esi
test ecx, ecx
je 0x40e3ab
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x40e3ab
mov edx, dword [ebp + 0x10]
xor eax, eax
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e335
call edi
cmp eax, 0x3e5
jne 0x40e389
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e374
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x40e367
push 1
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
push 0
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40e3a1
call edi
test eax, eax
jle 0x40e36c
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40e3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x40e4af
cmp byte [ebx], 0
je 0x40e4af
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x40e4af
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x40e4a3
jmp 0x40e400
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e431
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40e48c
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e46c
push eax
lea edx, [ebp + 8]
mov dword [ebp + 8], eax
push edx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40e48c
mov eax, dword [ebp + 8]
add ebx, eax
sub esi, eax
jne 0x40e400
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp + 0xc], 0x800705b4
call fcn.0040e2b0
mov eax, dword [ebp + 0xc]
add esp, 8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e4a0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f0b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cb88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x40]
push eax
call fcn.00403bb0
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov edx, 4
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.0047eeb1
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
add esp, 4
mov dword [ebp - 0x44], ebx
cmp edi, eax
je 0x40f1e1
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
lea ecx, [edi + 8]
mov dword [eax], 0
call fcn.004317d0
test eax, eax
jne 0x40f1d2
lea ecx, [edi + 8]
call fcn.00402dc0
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40f1cf
lea ecx, [edi + 8]
call fcn.00402e20
test eax, eax
jne 0x40f1c1
lea ecx, [edi + 8]
call fcn.00402df0
test eax, eax
je 0x40f1c1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [edi + 8]
call fcn.0046ea80
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x40f18b
mov eax, dword [eax]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00401200
mov ecx, eax
call fcn.00401240
mov ecx, eax
call fcn.00410d20
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], esi
jb 0x40f1ca
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
jmp 0x40f1ca
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x34]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x44]
mov edi, dword [edi]
add dword [ebp - 0x34], 4
cmp edi, dword [ebp - 0x40]
jne 0x40f122
mov ecx, dword [ebp - 0x30]
push 0x2710
push 1
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [ebp - 0x30]
xor esi, esi
test edi, edi
jle 0x40f23d
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x40f238
lea edx, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f22e
cmp dword [ebp - 0x30], 0x103
jne 0x40f22e
mov eax, dword [ebx + esi*4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebx + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x40f1fc
push ebx
call fcn.00481649
add esp, 4
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x40]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], 0
cmp esi, eax
je 0x40f28c
jmp 0x40f270
mov edi, dword [esi]
lea ecx, [esi + 8]
call fcn.00402f80
push esi
call fcn.00480102
mov eax, dword [ebp - 0x40]
add esp, 4
mov esi, edi
cmp edi, eax
jne 0x40f270
push eax
call fcn.00480102
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x4118a0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00480280
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x411902
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x11c]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411973
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push str.EnableLUA
push edx
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x120], eax
setne al
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret

Function at 0x411b60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x411bea
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00480280
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x411bea
mov ecx, dword [esi]
lea edx, [ebp - 0x120]
push edx
push 4
lea eax, [ebp - 0x11c]
push eax
push 0x12
push ecx
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
mov eax, dword [ebp - 0x11c]
jne 0x411bef
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x411c50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x411c78
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 1
push eax
mov dword [ebp - 0x10], 0
call ebx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0047eeb1
mov ecx, dword [ebp - 0x10]
mov edx, dword [edi]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 1
push edx
call ebx
test eax, eax
je 0x411d32
mov edi, dword [esi]
test edi, edi
je 0x411d32
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x411d32
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x411d32
mov edx, dword [ebp - 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00481649
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
push esi
call fcn.00481649
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00480264
mov esp, ebp
pop ebp
ret

Function at 0x411ed0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call fcn.00480280
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x411f36
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00411b60
cmp eax, 2
je 0x411f5b
cmp eax, 3
je 0x411f5b
call fcn.004118a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00480264
mov esp, ebp
pop ebp
ret