joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e7ef
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x47e93c
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x47e825
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e830
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e83b
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [ebx + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x47e86d
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e87a
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e884
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e88e
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e899
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x47e8a4
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, edi
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb4], ecx
mov dword [esi], edi
call fcn.0047df0d
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x154]
call esi
test eax, eax
jns 0x47e8fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.004707df
add esp, 0xc
lea eax, [ebx + 0x1cb3]
push 4
push eax
call fcn.0047e6cc
pop ecx
pop ecx
push 0
push 2
add ebx, 0x1cb7
push ebx
mov eax, edi
push dword [eax + 0x154]
call esi
pop edi
pop esi
test eax, eax
jns 0x47e93c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.004707df
add esp, 0xc
pop ebx
leave
ret
Function at 0x47f240
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x158]
push ebx
push edi
mov edi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x47f294
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push dword [ebp - 0x1c]
push esi
call fcn.00472c6f
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x47f2b6
push str.Error_accept__ing_server_connect
push edi
call fcn.004707df
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x47f30c
push str.Connection_accepted_from_server_n
push edi
call fcn.00470775
push 1
push ebx
mov dword [esi + 0x158], ebx
call fcn.0048c928
xor ecx, ecx
inc ecx
mov dword [esi + 0x168], ecx
mov eax, dword [edi + 0x1b0]
add esp, 0x10
test eax, eax
je 0x47f30a
push ecx
push ebx
push dword [edi + 0x1b4]
call eax
add esp, 0xc
test eax, eax
je 0x47f30a
push ebx
push esi
call fcn.00472c6f
or dword [esi + 0x158], 0xffffffff
pop ecx
pop ecx
push 0x2a
jmp 0x47f2b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
Function at 0x48235a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov ecx, dword [esi]
xor edi, edi
cmp eax, 2
je 0x482383
push str.Couldnt_set_desired_mode
push ecx
call fcn.004707df
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4823d9
cmp dword [ebp + 8], 0xc8
je 0x48239d
push dword [ebp + 8]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00470775
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x13
jne 0x4823ae
push esi
call fcn.004822f3
pop ecx
jmp 0x4823d5
cmp eax, 0x14
jne 0x4823bb
push esi
call fcn.0047fc41
jmp 0x4823ab
cmp eax, 0x15
jne 0x4823c9
mov eax, esi
call fcn.00482342
jmp 0x4823d5
cmp eax, 0x16
jne 0x4823d7
mov eax, esi
call fcn.0048234e
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x488406
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 8]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x488415
jmp dword [eax*4 + 0x48848a]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, byte [ebp + 8]
pop ebp
ret

Function at 0x488796
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0048878e
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a3ec9
add esp, 0x10
pop ebp
ret

Function at 0x48c94a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x48c965
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00470414
push edx
push eax
call fcn.0047042a
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x48c9ae
push dword [ebx + 0x148]
push dword [ebx + 0x144]
call fcn.00470414
push edx
push eax
call fcn.0047042a
mov edi, dword [edi + 0x1e0]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x48c9ae
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x48d83b
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x48d86d
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x48ebd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x48ebf6
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x48ebe7
xor eax, eax
jmp 0x48ec49
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call ecx
jmp 0x48ec27
cmp dword [esi + 8], 0
jne 0x48ec17
push 0x4cdf58
push dword [eax + 8]
call fcn.0049a8cc
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x48ec17
or eax, 0xffffffff
jmp 0x48ec49
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004963c7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48ec47
mov eax, dword [esi + 8]
test eax, eax
je 0x48ec41
push eax
call fcn.00496109
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebp
ret
Function at 0x48f7a8
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4ff380]
mov edi, eax
pop ecx
test edi, edi
je 0x48f886
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x48f80a
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
je 0x48f859
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x48f824
pop ebx
jmp 0x48f87c
push 1
push 0x4e158b
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x4e158c
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x48f85c
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x491355
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa004
call fcn.00497500
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, ecx
jne 0x49137d
xor eax, eax
jmp 0x4913dd
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x24]
call fcn.004024d5
xor eax, eax
push 0x9ffe
push eax
mov word [ebp - 0xa004], ax
lea eax, [ebp - 0xa002]
push eax
call fcn.00495b20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4913b0
mov esi, dword [esi]
push esi
push 0x5000
lea eax, [ebp - 0xa004]
push eax
push str.feature
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionW]
push eax
lea eax, [ebp - 0xa004]
push eax
mov ecx, edi
call fcn.0049123c
xor eax, eax
inc eax
mov dword [edi + 0x20], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret 4
Function at 0x491444
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4bf231
call fcn.00495a07
mov esi, ecx
call fcn.004913f9
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x491480
xor eax, eax
jmp 0x491541
mov dword [ebp - 0x18], ebx
push edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
jne 0x4914a0
cmp ebx, edi
je 0x491479
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x491479
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x14]
push eax
push 0x14
lea eax, [esi + 4]
push eax
push ebx
call edi
test eax, eax
jne 0x4914bc
test ebx, ebx
jmp 0x491495
cmp dword [ebp - 0x14], 0x14
jne 0x4914b8
mov eax, dword [esi + 0x14]
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938c3
pop ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x14]
shl ecx, 3
push ecx
push eax
push ebx
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x4914fd
push dword [ebp - 0x10]
call fcn.00495548
pop ecx
jmp 0x4914b8
and dword [ebp + 8], 0
cmp dword [esi + 0x14], 0
jbe 0x491526
mov edi, dword [ebp - 0x10]
push edi
lea ecx, [esi + 0x18]
call fcn.004910a3
mov ecx, dword [edi + 4]
inc dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
add edi, 8
cmp eax, dword [esi + 0x14]
jb 0x49150a
push dword [ebp - 0x10]
call fcn.00495548
xor edi, edi
inc edi
pop ecx
mov dword [esi], edi
test ebx, ebx
je 0x49153f
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
call fcn.00495adf
ret 4

Function at 0x491580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 4]
push eax
mov edi, str.WPS_OFFICE_ROOT_DIR
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x4915a9
push edi
call esi
jmp 0x4915cf
push 0x400000
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 2
pop esi
push 0x5c
push dword [ebp + 8]
call fcn.004973de
pop ecx
pop ecx
test eax, eax
je 0x4915cc
xor ecx, ecx
mov word [eax], cx
dec esi
jne 0x4915b7
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x492202
Capabilities:
Encode data using xor

Disassembly:
push 0x24
mov eax, 0x4bf27a
call fcn.00495a07
mov edi, ecx
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call fcn.004921dc
mov edx, dword [ebp + 0xc]
push esi
push edx
mov ecx, edi
call fcn.00467704
push 2
push edx
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.00467704
push 4
push edx
mov ecx, edi
mov ebx, eax
call fcn.00467704
push 6
push edx
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00467704
mov edi, dword [ebp - 0x30]
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x18], 8
push dword [edi + esi*4]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00467737
push dword [edi + esi*4 + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [edi + esi*4 + 4]
push dword [ebp + 0x14]
add eax, ebx
mov ebx, dword [edi + esi*4 + 8]
add ebx, dword [ebp + 0xc]
mov ecx, 0xffff
and eax, ecx
and ebx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00467737
push dword [edi + esi*4 + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
xor ebx, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x20], eax
call fcn.00467737
mov ecx, dword [ebp + 0x14]
xor ecx, dword [ebp - 0x14]
push dword [edi + esi*4 + 0x14]
add ecx, eax
and ecx, 0xffff
push ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
call fcn.00467737
mov ebx, eax
mov eax, dword [ebp + 0xc]
xor dword [ebp + 8], ebx
add eax, ebx
xor ebx, dword [ebp - 0x1c]
and eax, 0xffff
xor dword [ebp + 0x14], eax
xor eax, dword [ebp - 0x20]
add esi, 6
dec dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
jne 0x49226f
push dword [edi + esi*4]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00467737
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push eax
call fcn.0046771d
mov eax, dword [edi + esi*4 + 4]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 2
push dword [ebp + 0x10]
push eax
call fcn.0046771d
mov ecx, dword [ebp - 0x10]
push 4
push dword [ebp + 0x10]
lea esi, [edi + esi*4 + 8]
mov eax, dword [esi]
add eax, ebx
push eax
call fcn.0046771d
mov ecx, dword [ebp - 0x10]
push 6
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [ebp + 0x14]
call fcn.00467737
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0046771d
lea ecx, [ebp - 0x30]
call fcn.00411c50
mov al, 1
call fcn.00495adf
ret 0x10
Function at 0x4925aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004025ee
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x28], esi
jae 0x4925e6
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
push 0x20219
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x492647
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x28]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x492647
cmp dword [ebp - 0x24], 1
je 0x492638
cmp dword [ebp - 0x24], 2
jne 0x492647
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401129
xor eax, eax
jmp 0x492657
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401129
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret

Function at 0x4931d9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x4932ec
cmp dword [ebp + 0xc], ebx
je 0x4932ec
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x49321e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4932ec
push dword [ebp - 4]
call fcn.004938c3
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push 1
push dword [ebp + 8]
call esi
test eax, eax
je 0x4932e5
mov eax, dword [edi]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4932e5
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4932e5
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x49327e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4932ec
push dword [ebp - 4]
call fcn.004938c3
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x4932ad
push dword [ebp - 8]
call fcn.00495548
push edi
call fcn.00495548
pop ecx
jmp 0x4932eb
mov esi, dword [edi]
cmp esi, ebx
je 0x49329c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x49329c
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 8]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00495548
push edi
call fcn.00495548
pop ecx
pop ecx
mov al, bl
jmp 0x4932ee
push edi
call fcn.00495548
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4932f5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4933af
cmp word [edi], 0
je 0x4933af
test esi, esi
je 0x4933af
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4933af
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00495b20
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x493398
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00499b67
pop ecx
pop ecx
test eax, eax
jne 0x49338b
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.0044f7c7
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x49336a
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
setne al
jmp 0x4933b1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret 8

Function at 0x493509
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x4bf59a
call fcn.00495a70
xor ebx, ebx
lea ecx, [ebp - 0x219]
mov dword [ebp - 0x220], ebx
call fcn.00493499
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00495b20
add esp, 0xc
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004025ee
cmp byte [ebp - 0x219], bl
je 0x49357a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
call fcn.00495af3
ret

Function at 0x493582
Capabilities:
Get session user name

Disassembly:
push 0x218
mov eax, 0x4bf5cd
call fcn.00495a70
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x224], ebx
test byte [0x5035dc], 1
jne 0x4935cf
or dword [0x5035dc], 1
xor eax, eax
push 0x4bfdf0
mov dword [0x5035d4], 7
mov dword [0x5035d0], ebx
mov word [0x5035c0], ax
call fcn.004973c7
pop ecx
mov esi, 0x5035c0
cmp dword [0x5035d0], ebx
jne 0x493654
lea ecx, [ebp - 0x21d]
call fcn.00493499
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00495b20
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], 0x105
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00402570
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x21d], bl
je 0x493654
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
mov ecx, edi
call fcn.00409485
mov eax, edi
call fcn.00495af3
ret
Function at 0x494c0d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5038a0], 0
push esi
push edi
jne 0x494b83
call fcn.00494aef
test eax, eax
je 0x494bc8
mov eax, dword [0x5038a0]
cmp eax, 1
jne 0x494ba4
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x494bc8
jmp 0x494c0a
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x494c0a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x494bcc
xor eax, eax
jmp 0x494c0a
mov eax, dword [esi]
push dword [0x5038a0]
call edi
mov edi, eax
test edi, edi
je 0x494bee
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x494c0a
lea edi, [esi + 0xff0]
push esi
push dword [0x5038a0]
call dword [sym.imp.KERNEL32.DLL_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x494bf4
mov eax, esi
pop edi
pop esi
ret
jmp 0x494b6f

Function at 0x4959f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5002b0]
jne 0x495a02
repz ret
jmp fcn.004a254c