joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bfb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4dadf4]
test ebx, ebx
je 0x41bfe0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41c008
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
mov ebx, eax
jmp 0x41bfbe
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41bfcf

Function at 0x41c4b0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41c4e0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41c4e1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x41c535
jmp 0x41c543
cmp eax, 0x6a
je 0x41c54d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41c530
cmp eax, 0x6a
je 0x41c54d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]
Function at 0x41c560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4dadf8]
test eax, eax
je 0x41c6c8
cmp dword [eax], 1
je 0x41c57e
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41c6f0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41c5b0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x41c59f
test esi, esi
je 0x41c59f
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call sym._replace_spin_keys.constprop.0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41c720
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf8], eax
jmp 0x41c574
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41c58b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41c69e
Function at 0x41e1c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41e1e2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x41e244
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41e2cb
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e23b
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41e29b
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41e22e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x41e258
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x41e2c2
mov eax, dword [0x4dadf4]
test eax, eax
je 0x41e2f1
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x41e23b
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41e2af
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
jne 0x41e27b
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41e27b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41e1f5
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dadf4], eax
jmp 0x41e284
Function at 0x41fce0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x30]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0040d460
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x41fdd4
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x41fe20
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x41fe46
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x41fe38
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x41fe5d
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call sym._get_ptr_from_atom_1
mov ebx, eax
cmp esi, eax
je 0x41fe83
mov dword [esp], esi
call sym._free
jmp 0x41fdfa
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41fdfa
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41fdfa
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x398f1c97
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1a78626d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x109c5d44
Capabilities:
Encode data using xor

Disassembly:
jmp 0x109c5d4e
pushal
call 0x109c5d54
pop ebp
sub ebp, 0x10
sub ebp, 0x9c5d44
mov al, byte [esp + 0x28]
cmp al, 1
je 0x109c5d78
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x109c5d81
mov eax, 0x9c5d44
add eax, ebp
add eax, 0x63
mov ecx, 0x5f9
mov edx, 0xb5331108
xor byte [eax], dl
inc eax
dec ecx
jne 0x109c5d98
jmp 0x109c5dab
add ebp, 0xffffff83
xor dword [eax + ecx], 0xc9890808
lock or byte [eax], cl
or byte [ebx], cl
lds esi, [eax + 0x808080f]
mov dl, 0x20
or byte [eax], cl
or bh, bh
ljmp 0x804
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x699978f7
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2cc84243
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x42b536
Capabilities:
Terminate process

Disassembly:
jmp 0x45f142
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45f153
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0042c963
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x42b5cc
Capabilities:
Query environment variable

Disassembly:
jmp 0x46240b
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46241f
xor edi, edi
jmp 0x462456
push ebx
push esi
call fcn.00462315
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042bb08
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x462446
push ebx
push esi
push edi
call fcn.0042c800
add esp, 0xc
push 0
call fcn.0042ce77
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c887
Capabilities:
Parse pe header

Disassembly:
jmp 0x432829
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x432869
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432869
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432869
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x432869
cmp dword [ecx + 0x74], 0xe
jbe 0x432869
cmp dword [ecx + 0xe8], 0
je 0x432869
mov al, 1
ret
xor al, al
ret
Function at 0x402970
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x43c], 0
cmp dword [ebp + 8], 0
je 0x40299e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
jmp 0x4029ac
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x440], ecx
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
je 0x402a9b
push 0x428
push 0
lea edx, [ebp - 0x42c]
push edx
call fcn.00419380
add esp, 0xc
mov dword [ebp - 0x42c], 0x428
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x402a14
mov byte [ebp - 0x42d], 1
jmp 0x402a1b
mov byte [ebp - 0x42d], 0
mov dl, byte [ebp - 0x42d]
mov byte [ebp - 0x42f], dl
jmp 0x402a5c
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x402a49
mov byte [ebp - 0x42e], 1
jmp 0x402a50
mov byte [ebp - 0x42e], 0
mov dl, byte [ebp - 0x42e]
mov byte [ebp - 0x42f], dl
movzx eax, byte [ebp - 0x42f]
test eax, eax
je 0x402a8e
mov ecx, dword [ebp - 0x410]
cmp ecx, dword [ebp - 0x440]
jne 0x402a8c
lea edx, [ebp - 0x20c]
push edx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x43c], eax
jmp 0x402a8e
jmp 0x402a29
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x28
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x38]
push edx
push 0x4397b0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp + ecx - 0x10], edx
mov dword [ebp + ecx - 0xc], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x1c
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x406460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437fb0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x248
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
push 0
push 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
je 0x40659a
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00419380
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406577
push 0x439f40
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c070
add esp, 8
test eax, eax
je 0x40652c
push 0x439f88
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0041c070
add esp, 8
test eax, eax
jne 0x406560
mov edx, dword [ebp - 0x238]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x406560
push 0xffffffffffffffff
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x406577
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4064fc
cmp dword [ebp - 0x248], 0
je 0x40658d
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4065a2
mov dword [ebp - 4], 0xffffffff
jmp 0x4065b2
mov edx, dword [ebp - 0x244]
cmp dword [edx + 0x4c], 0
je 0x406627
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x4c]
push ecx
push 0x439fc8
push 0
push 0
call fcn.00407960
add esp, 0x10
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
add edx, 1
push edx
call fcn.004168a6
add esp, 4
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x254]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x4c]
push eax
push 0x439fd8
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 0x54]
push edx
call fcn.00407a20
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x244]
push eax
push 0x407790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x407460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437fda
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x240
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 4], 0
push 0
push 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
je 0x407542
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00419380
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407535
push 0x439fe8
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c070
add esp, 8
test eax, eax
jne 0x40751e
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4075ab
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x248]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4074f2
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 0x48]
push eax
push 0x43a008
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406cc0
add esp, 0xc
xor al, al
jmp 0x4075ab
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43802d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x516c24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push 6
push 0x43a2a8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4080de
xor al, al
jmp 0x4081eb
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x408103
xor al, al
jmp 0x4081eb
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x408124
xor al, al
jmp 0x4081eb
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408149
xor al, al
jmp 0x4081eb
mov eax, dword [ebp - 0x18]
push eax
call fcn.004168a6
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00418e00
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4081c2
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0x43a2b8
push 6
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x4081b8
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081d4
mov dword [ebp - 4], 0xffffffff
jmp 0x4081e9
mov al, 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 8
Function at 0x40f890
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 6
jb 0x40f8aa
mov dword [ebp - 4], 0x43a568
jmp 0x40f8b1
mov dword [ebp - 4], 0x43a5bc
push 0
lea eax, [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40f8ca
xor eax, eax
jmp 0x40f8cd
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret