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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f188
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 0x42e0c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e1dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42e0dd
mov eax, 0xffffffc7
jmp 0x42e1de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42e0ee
cmp dword [esi + 8], eax
jne 0x42e0dd
cmp dword [esi + 8], eax
jne 0x42e107
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e107
mov eax, 0xffffffc7
jmp 0x42e1de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e11b
push eax
mov ecx, ebx
call fcn.0042d8c0
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.00401740
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e14c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401760
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d030
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e17f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53a7e0
call fcn.00401940
mov eax, dword [esp + 0x38]
jmp 0x42e1de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042def0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e1c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042df10
mov esi, eax
test esi, esi
jne 0x42e1f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042def0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e195
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53a7e0
call fcn.00401940
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], 0x53a7e0
call fcn.00401940
mov eax, esi
jmp 0x42e1de

Function at 0x4313e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431440
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431440
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431440
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431440
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 0x431480
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 0x437360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f828
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.004688c0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436d00
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.004687ee
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.004650b2
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.004650b2
push 1
push 0
push 0
mov ecx, esi
call fcn.0046505a
push 1
push 0
push 1
mov ecx, esi
call fcn.0046505a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468932
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4374e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f848
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.004688c0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436d00
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.004687ee
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 0x4375a4
cmp dword [esp + 0x40], 1
jne 0x4375a2
cmp ecx, eax
jge 0x4375a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4375b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00437360
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.00468932
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437d30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f8b3
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.004634cf
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.00468b68
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a084
test eax, eax
je 0x437e4c
mov ecx, dword [esp + 0x3c]
call fcn.00468b95
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 0x437e10
push edi
mov ecx, esi
call fcn.004661fd
mov ecx, esi
call fcn.00437fb0
cmp dword [esp + 0x38], 1
jne 0x437e45
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.00466338
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 0x43a870
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a8a3
push esi
call fcn.0043d960
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a89c
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 0x43a929
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a912
mov eax, dword [esi + 8]
test eax, eax
je 0x43a8c7
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 0x43a90e
cmp eax, 2
je 0x43a912
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a8ba
cmp eax, 3
je 0x43a8ed
cmp eax, 1
jne 0x43a8ba
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 0x43a8ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a8ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a950
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a938
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a950
add esp, 4
pop esi
ret
Function at 0x44c840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44c88c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44c88c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44c876
push eax
call ebp
test ax, ax
jl 0x44c884
inc esi
add edi, 4
cmp esi, 6
jb 0x44c868
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044c540
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x450550
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4505b0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4505b0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4505b0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4505b0
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 0x4505c0
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 0x4642c5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4642fd
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.0046237c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462354
jmp 0x464309
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4659ba
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 0x4659fc
call fcn.0046b5ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4659fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4659f3
xor eax, eax
jmp 0x465a04
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465a0a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46bb2f
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 0x46bb5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46bb7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ba95
jmp 0x46bb7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46bb7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ba95
test edi, edi
mov eax, edi
jne 0x46bb65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4017a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4017e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4017e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017d0
cmp esi, eax
jb 0x4017ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404920
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x457058
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47305c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00423944
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40495f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x18], 0
je 0x40498c
push eax
push 0x45bd28
lea ecx, [esp + 0x14]
push ecx
jmp 0x40499d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45bd28
lea edx, [esp + 0x14]
push edx
call fcn.00401420
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push edi
push eax
lea ecx, [esi + 0x27c]
push ecx
call fcn.0042cf57
mov edx, dword [esi + 0x2a8]
mov eax, dword [edx + 0x4c]
lea ecx, [esi + 0x2a8]
call eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0x8001
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x405e20
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.GlobalSHADOWTIP_ENTER
push 0
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x405e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e61
push str.Open_Exist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x405ead
push str.GlobalSHADOWTIP_LIMIT_ENTER
push 0
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x405ead
call ebx
cmp eax, 0xb7
jne 0x405eb8
push str.Open_Exist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
ret
push str.Create_Exist_Exist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebx
pop edi
mov eax, 1
pop esi
ret
Function at 0x4091d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4570a1
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x47305c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x33c], ecx
mov eax, 0x405
mov ebx, 0x405
add eax, ebx
inc eax
mov ebx, 0x405
add ebx, eax
inc ebx
inc ebx
cmp eax, ebx
je 0x409223
mov eax, 0x409224
jmp eax
fsubr st(0)
xchg dword [eax], ecx
add dword [eax], eax
mov dword [ebp - 0x2ec], eax
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00439b80
add esp, 0xc
mov word [ebp - 0x2e4], 0
push 0xc6
push 0
lea ecx, [ebp - 0x2e2]
push ecx
call fcn.00439b80
add esp, 0xc
lea ecx, [ebp - 0x2e8]
call fcn.00401340
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2ec], 0x1f46
jne 0x40934a
lea ecx, [ebp - 0x2f0]
call fcn.00401340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f4]
call fcn.00401340
mov byte [ebp - 4], 2
push 0x69
lea ecx, [ebp - 0x2f0]
call fcn.00401bd0
push 0x81
lea ecx, [ebp - 0x2f4]
call fcn.00401bd0
push 0x40
lea ecx, [ebp - 0x2f0]
call fcn.00401150
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00401150
push eax
mov ecx, dword [ebp - 0x33c]
call fcn.00401120
push eax
call fcn.00403630
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x2ec], 0x1f47
jne 0x409382
push 0x7f
lea ecx, [ebp - 0x2e8]
call fcn.00401bd0
lea ecx, [ebp - 0x2e8]
call fcn.00401150
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x640
call fcn.00422416
jmp 0x4093f3
cmp dword [ebp - 0x2ec], 0x1f40
jne 0x4093ba
push 0x7d
lea ecx, [ebp - 0x2e8]
call fcn.00401bd0
lea ecx, [ebp - 0x2e8]
call fcn.00401150
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x640
call fcn.00422416
jmp 0x4093f3
cmp dword [ebp - 0x2ec], 0x1f42
jne 0x4093f3
push 0x80
lea ecx, [ebp - 0x2e8]
call fcn.00401bd0
lea ecx, [ebp - 0x2e8]
call fcn.00401150
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x640
call fcn.00422416
mov dword [ebp - 0x2fc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e8]
call fcn.00401370
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439b33
mov esp, ebp
pop ebp
ret
Function at 0x4094d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45710b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x47305c]
xor eax, esp
mov dword [esp + 0x4c4], eax
push esi
mov eax, dword [0x47305c]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4e0]
test esi, esi
jne 0x40951a
xor eax, eax
jmp 0x409626
push 0
lea ecx, [esp + 0xc]
call fcn.00403b90
mov eax, esi
mov dword [esp + 0x4d8], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409535
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.004020d0
push 0x206
lea eax, [esp + 0x2ca]
push 0
push eax
mov word [esp + 0x2d0], 0
call fcn.00439b80
add esp, 0xc
lea ecx, [esp + 0x2c4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x2c4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x409590
mov edx, dword [str.PsPack.exe]
mov ecx, dword [0x45b8a4]
mov dword [eax], edx
mov edx, dword [0x45b8a8]
mov dword [eax + 4], ecx
mov ecx, dword [0x45b8ac]
mov dword [eax + 8], edx
mov edx, dword [0x45b8b0]
mov dword [eax + 0xc], ecx
mov cx, word [0x45b8b4]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea eax, [esp + 0x2c4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c8]
push edx
lea ecx, [esp + 0x88]
call fcn.004020d0
lea ecx, [esp + 8]
call fcn.0042439c
lea ecx, [esp + 8]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.004033a0
mov eax, 1
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c4]
xor ecx, esp
call fcn.00439b33
add esp, 0x4d4
ret 4
Function at 0x410050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457b48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47305c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
jne 0x4100af
cmp dword [esp + 0x34], 8
jb 0x410097
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c0d3
add esp, 4
mov eax, 5
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x40]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
mov word [ecx + 4], 0
call fcn.00406f50
mov eax, dword [esi + 0x34]
test eax, eax
lea ecx, [esi + 0x30]
je 0x4100fc
mov esi, dword [ecx + 8]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 1
push eax
call fcn.0040f840
cmp dword [esp + 0x34], 8
jb 0x410119
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c0d3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c

Function at 0x4181b0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x47305c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x1c], 0
call fcn.00439b80
add esp, 0xc
add ebx, 0x3d0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x14]
push 0x45e258
push ecx
call fcn.0043d2ab
lea eax, [esp + 0x1c]
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418220
push edi
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x418233
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx], 0
pop edi
je 0x4182a9
test ebp, ebp
je 0x4182a9
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4182a9
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418280
push 0
sub eax, edx
lea edx, [esp + 0x10]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4182ab
xor eax, eax
mov ecx, dword [esp + 0x218]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439b33
add esp, 0x210
ret 4
Function at 0x419920
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41995f
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push str.PsNotify
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x419965
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x18
push str.PsNotify.dll
push 1
push 0
push str.DLLName
push ecx
call esi
mov edx, dword [esp + 4]
push 0xe
push str.PsLogon
push 1
push 0
push str.Logon
push edx
call esi
mov eax, dword [esp + 4]
push 0x10
push str.PsLogoff
push 1
push 0
push str.Logoff
push eax
call esi
mov ecx, dword [esp + 4]
push 0x24
push str.PsStartScreenSaver
push 1
push 0
push str.StartScreenSaver
push ecx
call esi
mov edx, dword [esp + 4]
push 0x22
push str.PsStopScreenSaver
push 1
push 0
push str.StopScreenSaver
push edx
call esi
mov eax, dword [esp + 4]
push 0x12
push str.PsStartup
push 1
push 0
push str.Startup
push eax
call esi
mov ecx, dword [esp + 4]
push 0x14
push str.PsShutdown
push 1
push 0
push str.Shutdown
push ecx
call esi
mov edx, dword [esp + 4]
push 0x1a
push str.PsCreateShell
push 1
push 0
push str.StartShell
push edx
call esi
mov eax, dword [esp + 4]
push 0xc
push str.PsLock
push 1
push 0
push str.Lock
push eax
call esi
mov ecx, dword [esp + 4]
push 0x10
push str.PsUnlock
push 1
push 0
push str.Unlock
push ecx
call esi
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.Impersonate
push eax
mov dword [esp + 0x24], 0
call esi
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.Asynchronous
push edx
call esi
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0xc
ret