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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515e3b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x18], 0
call fcn.004411a0
mov dword [ebp - 4], 0
call fcn.004b411c
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0045f260
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47ac9f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x47ac9f
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push dword [ebp + 0xc]
lea ecx, [ebp - 0xb0]
call fcn.004799b0
push 1
call fcn.004b3f6b
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
mov eax, dword [eax + 4]
add ecx, eax
mov byte [ebp - 4], 1
call fcn.0045f260
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x47acf4
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x47acf4
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x47ad10
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x47ad10
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea eax, [ebp - 0xb0]
push 0x2d
push eax
call fcn.00461a80
add esp, 8
lea ecx, [ebp + 0xe]
call fcn.004cbeb0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00478360
lea eax, [ebp - 0xb0]
push 0x2d
push eax
call fcn.00461a80
mov eax, dword [ebp - 0xb0]
movzx edi, word [ebp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0xb0]
add esp, 0x10
add ecx, eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040e080
push eax
mov byte [ebp - 4], 2
call fcn.00405830
mov ecx, dword [ebp - 0x14]
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x47ad90
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x47ad90
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esi]
push 0x30
mov ecx, esi
call dword [eax + 0x30]
push 0
mov si, ax
lea eax, [ebp - 0xc0]
push 2
push eax
call fcn.004b5358
mov ecx, dword [ebp - 0xb0]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 0xb0]
add esp, 0x18
mov eax, dword [eax + 4]
push edi
lea ecx, [ebp - 0xb0]
mov word [ebp + eax - 0x70], si
call fcn.004799b0
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0xb0]
call fcn.00444210
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.004416a0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004b4219
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51621c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00415360
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 1
mov byte [ebp - 4], 3
call fcn.0040d280
mov dword [edi + 0x34], eax
add esp, 8
mov byte [edi + 0x38], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47e360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x28], xmm0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
push edi
mov edx, ecx
xor edi, edi
mov dword [ebp - 8], edx
xor esi, esi
mov dword [ebp - 4], eax
mov ecx, 1
mov dword [ebp - 0x1c], esi
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp dword [edx], 1
jne 0x47e39e
test eax, eax
je 0x47e496
test esi, esi
jne 0x47e3ca
mov eax, dword [0x571544]
test eax, eax
jne 0x47e3b8
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov ecx, 1
cmp ecx, eax
sbb esi, esi
and esi, 0xffffffe0
add esi, 0x20
mov dword [ebp - 0x1c], esi
cmp esi, 8
jb 0x47e441
cmp esi, 0x20
jae 0x47e3dc
pause
mov edx, dword [ebp - 8]
inc esi
jmp 0x47e383
jne 0x47e425
call fcn.0047dfa0
push 9
mov edi, eax
call fcn.0047de50
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
call eax
test eax, eax
jne 0x47e413
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
inc esi
jmp 0x47e383
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
inc esi
jmp 0x47e383
test edi, edi
jne 0x47e44a
mov al, byte [ebp - 0x1c]
and al, 1
je 0x47e485
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x47e441
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
inc esi
jmp 0x47e383
push 9
call fcn.0047de50
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
call eax
test eax, eax
jne 0x47e46e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x47e474
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
sbb ecx, ebx
test ecx, ecx
jb 0x47e430
ja 0x47e483
cmp eax, edi
jb 0x47e430
xor edi, edi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
inc esi
jmp 0x47e383
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ef90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x47efc7
mov eax, dword [0x571544]
test eax, eax
jne 0x47efb5
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 8
jb 0x47f019
cmp eax, 0x20
jae 0x47efde
pause
inc dword [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
jne 0x47efef
call fcn.0047e1b0
inc dword [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0047f030
test al, al
je 0x47f011
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x47f019
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47fe60
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516780
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 8]
push eax
mov dword [esi], 0
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x14], 0x7fffffff
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00435660
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x10]
push eax
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x14], 0x7fffffff
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00435660
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x14], 0x7fffffff
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00435660
xor eax, eax
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], ax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x480910
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x571af4]
push esi
mov esi, eax
cmp eax, 0x19
jne 0x48097e
xor edx, edx
nop
mov ecx, dword [edx*4 + 0x571a90]
mov eax, ecx
and eax, 1
shr ecx, 1
mov eax, dword [eax*4 + 0x5692a8]
xor eax, dword [edx*4 + 0x571aac]
inc edx
xor eax, ecx
mov dword [edx*4 + 0x571a8c], eax
cmp edx, 0x12
jl 0x480920
cmp edx, 0x19
jge 0x480977
lea eax, [edx*4 + 0x571a90]
mov edx, dword [eax]
mov ecx, edx
and ecx, 1
shr edx, 1
xor edx, dword [ecx*4 + 0x5692a8]
add eax, 4
xor edx, dword [eax - 0x4c]
mov dword [eax - 4], edx
cmp eax, 0x571af4
jl 0x480957
xor eax, eax
mov dword [0x571af4], eax
mov ecx, dword [esi*4 + 0x571a90]
inc eax
mov dword [0x571af4], eax
mov eax, ecx
and eax, 0x56b64a
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffb716
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret
Function at 0x480e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5168c9
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x56a8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x571558
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x480ed0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x57155c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x57155c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, eax
test edi, edi
je 0x480f05
call fcn.004ca800
mov dword [ebp - 0x1a4], eax
push str.winsock
lea eax, [ebp - 0x1a8]
push eax
mov dword [ebp - 0x1a8], edi
call fcn.0041eed0
push 0x20
mov dword [ebp - 4], 0
call fcn.00493374
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x480f32
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004809b0
jmp 0x480f34
xor eax, eax
mov ecx, eax
mov dword [esi + 4], eax
call fcn.00480c10
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493d56
mov esp, ebp
pop ebp
ret

Function at 0x4810b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51696f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
mov dword [edi + 0x30], 0
call fcn.00481ac0
mov esi, eax
call fcn.004ca800
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x481167
push str.mutex
lea eax, [ebp - 0x18]
push eax
call fcn.0041eed0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
or ecx, 0xffffffff
cmp dword [ebp + 0xc], 0xffffffff
mov byte [ebp - 4], 5
cmovb ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4811c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004ca800
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4811c4
push str.iocp
lea eax, [ebp - 0x18]
push eax
call fcn.0041eed0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4818e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516b59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
mov edx, dword [edi + 0x334]
mov esi, dword [ebp + 8]
shr esi, 3
add esi, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [edi + 0x334], eax
mov ecx, esi
mov eax, esi
shr eax, 2
shl ecx, 6
add ecx, edx
add eax, 0x9e3779b9
add eax, ecx
xor esi, eax
mov eax, 0x15390949
mul esi
shr edx, 4
imul edx, edx, 0xffffff3f
add esi, edx
cmp dword [edi + esi*4 + 0x30], 0
lea edi, [edi + esi*4]
mov dword [ebp - 4], 0
jne 0x4819c9
push 0x4c
call fcn.00493374
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x48198b
mov ecx, eax
call fcn.00480f60
mov ebx, eax
jmp 0x48198d
xor ebx, ebx
mov esi, dword [edi + 0x30]
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4819c6
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 3
call fcn.00418c50
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00418c50
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.00493278
add esp, 4
mov dword [edi + 0x30], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x30]
push dword [ebp - 0x18]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x481e90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x571b28
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x481edf
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.0043eeb0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516c90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4821f8
mov ecx, edi
call fcn.00482630
call fcn.004ca800
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], 0
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 4
mov dword [ebp - 0x10], 0
push dword [0x571554]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x571554]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.00481b80
test eax, eax
je 0x482259
cmp esi, 0xffffffff
je 0x48224b
inc esi
push ebx
push 1
mov ecx, edi
call fcn.00481b80
test eax, eax
jne 0x482245
push dword [ebp - 0x14]
push dword [0x571554]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x482278
push ecx
call fcn.00493278
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x482bc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516db2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x56a8e0]
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 edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x250], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x23c], 0x22c
mov byte [ebp - 0x23d], bl
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x482d4a
mov esi, dword [ebp - 0x24c]
jmp 0x482c40
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x234], eax
je 0x482cd8
cmp byte [ebp + 0x10], 0
je 0x482cf4
cmp word [ebp - 0x218], 0
jne 0x482c67
xor eax, eax
jmp 0x482c7f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482c70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004158e0
test eax, eax
je 0x482d3c
xor bl, bl
mov eax, dword [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x482cce
and eax, 0xfffffffe
mov dword [ebp - 0x244], eax
test esi, esi
je 0x482cce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x482cce
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
test bl, bl
jne 0x482d43
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x248]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x482c40
jmp 0x482d4a
push 1
call fcn.004b3f6b
mov esi, eax
mov dword [ebp - 0x24c], esi
mov eax, esp
or ebx, 1
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x250], ebx
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004826a0
add esp, 0xc
test al, al
je 0x482c9b
mov bl, 1
jmp 0x482c9d
mov byte [ebp - 0x23d], 1
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x23d]
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.00493d56
mov esp, ebp
pop ebp
ret
Function at 0x482d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
lea eax, [ebp - 0x74]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov bl, byte [ebp + 0x10]
test bl, bl
je 0x482da5
xor eax, eax
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push 1
push eax
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x482deb
xor eax, eax
jmp 0x482df3
cmp dword [eax + 0x14], 8
jb 0x482df3
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x482dfe
mov ecx, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x74]
push edx
push eax
push 0
xor eax, eax
mov edx, 0x10
test bl, bl
cmovne eax, edx
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebx
test eax, eax
jne 0x482e30
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x482e41
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x482e52
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x484290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x4842a5
mov eax, dword [esi]
jmp 0x4842a7
mov eax, esi
lea ecx, [ebp + 0xc]
push ecx
push 0xf003f
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x4842fa
cmp edi, 2
jne 0x4842ee
cmp dword [esi + 0x14], 8
jb 0x4842cf
mov esi, dword [esi]
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x4842fa
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
test edx, edx
jns 0x48430a
or eax, 0xffffffff
sub eax, edx
jmp 0x48430c
mov eax, edx
cmp eax, 4
ja case.default.0x484315
jmp dword [eax*4 + 0x4843f8]
push ecx
call fcn.00424da0
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x484335
mov eax, dword [eax]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
jmp 0x4843b3
push ecx
call fcn.004410d0
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x48435e
mov eax, dword [eax]
push 8
lea ecx, [ebp - 8]
push ecx
push 0xb
jmp 0x4843b3
push ecx
call fcn.00434760
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x48437e
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x484389
mov edx, dword [edx]
add eax, eax
push eax
push ecx
push 1
push 0
push edx
jmp 0x4843b6
push ecx
call fcn.004833f0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
add esp, 4
sub ecx, edx
cmp dword [eax + 0x14], 8
jb 0x4843af
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], str._windows::registry__not_implemented
call fcn.00493bbb
push 0x543898
lea eax, [ebp - 0x18]
push eax
call fcn.00493d65
mov edi, edi
sbb al, 0x43
dec eax
add byte [edi], bh
inc ebx
dec eax
add byte [eax + 0x43], ch
dec eax
add ch, dl
inc ebx
dec eax
add byte [ebx + eax*2 - 0x3333ffb8], dl
int3