joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4904c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x4904e1
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x490512
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490512
test al, 0x10
jne 0x490512
test al, 1
je 0x4904dc
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x490af0
Capabilities:
Move file

Disassembly:
sub esp, 0x824
push ebx
push ebp
push esi
mov esi, dword [esp + 0x834]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x490cb4
mov edx, dword [esp + 0x83c]
mov ebp, dword [esp + 0x840]
cmp edx, ebx
jne 0x490b25
cmp ebp, ebx
je 0x490cb4
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
push edx
push esi
stosw word es:[edi], ax
push 0x64655c
lea eax, [esp + 0x430]
push 0x207
push eax
call fcn.0044cfbc
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x438]
add esp, 0x14
test ecx, ecx
jne 0x490b95
push 0x57
mov dword [0x68b870], 0x57
call edi
push 2
mov dword [0x68b870], 2
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x824
ret
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
lea eax, [esp + 0x438]
push edx
push eax
mov dword [esp + 0x2c], ebx
call fcn.0049e620
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x490bc0
test al, 0x10
je 0x490bdb
push 2
mov dword [0x68b870], 2
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x824
ret
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
push ebp
push esi
push 0x64655c
lea ecx, [esp + 0x20]
push 0x207
push ecx
stosw word es:[edi], ax
call fcn.0044cfbc
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [esp + 0x28]
add esp, 0x14
test edx, edx
jne 0x490c5a
push 0x57
mov dword [0x68b870], 0x57
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x490ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x68b870], eax
je 0x490cc6
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x824
ret
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call fcn.0049e620
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x490c24
test al, 0x10
jne 0x490c24
push 0xb7
mov dword [0x68b870], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x824
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x824
ret
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x824
ret
Function at 0x492180
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x348
test edx, edx
jne 0x4921a9
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x348
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
push 0x66cc4c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 0x646284
lea eax, [esp + 0x158]
push 0x207
push eax
mov dword [0x68b870], 0
xor ebp, ebp
call fcn.0044dbc8
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x492278
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 1
cmp byte [esp + 0x38], 0x2e
jne 0x492263
mov al, byte [esp + 0x39]
test al, al
je 0x492244
cmp al, 0x2e
jne 0x492263
mov al, byte [esp + 0x3a]
test al, al
jne 0x492263
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x492229
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x68b870], eax
je 0x49228e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x348
ret
Function at 0x4928b0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4928e4
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49290b
test al, 0x10
jne 0x492a73
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x492a73
mov ecx, 0x81
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0044d830
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0044d970
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x49299a
cmp byte [esp + 0x10], 0x5c
jne 0x49299a
cmp byte [esp + 0x11], 0x5c
jne 0x49299a
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.0044d970
add esp, 8
test eax, eax
je 0x492a18
inc eax
push 0x5c
push eax
call fcn.0044d970
add esp, 8
mov esi, eax
test esi, esi
je 0x492a18
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x4929dc
test bl, 1
je 0x4929cb
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x492a50
cmp ebx, 0xffffffff
je 0x4929e5
test edi, edi
jne 0x4929f4
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x492a50
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0044d970
mov esi, eax
add esp, 8
test esi, esi
jne 0x49299e
test ebp, ebp
je 0x492a50
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x492a41
test al, 0x10
jne 0x492a4c
test al, 1
je 0x492a36
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x492a50
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
jne 0x492a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x68b870], eax
je 0x492a66
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x492a86
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x494560
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x49457f
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x494400
push 0x20
push esi
call fcn.00492e80
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
jne 0x4945c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x68b870], eax
je 0x4945c5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x4948b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x494a3c
push esi
call fcn.0044cf30
add esp, 4
test eax, eax
je 0x494a3c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x494a3c
test bl, 1
je 0x4948fd
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x494a28
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.0044cece
lea ecx, [esp + 0x470]
push 0x64c748
push ecx
call fcn.0044cea4
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x494a12
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x64b608
push ecx
call ebp
test eax, eax
je 0x4949f7
lea edx, [esp + 0x3c]
push 0x64b604
push edx
call ebp
test eax, eax
je 0x4949f7
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.0044cece
lea ecx, [esp + 0x268]
push 0x6464a8
push ecx
call fcn.0044cea4
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.0044cea4
lea ecx, [esp + 0x278]
push ecx
call fcn.004948b0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x494979
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x4ace50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4acea0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4acea0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x4acea5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x4ace8b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x4aceb2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x4b2d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f79ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x667c48]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.005de7af
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.005e0c5c
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.005e0ee7
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ba720
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x68bcc8]
sub esp, 0x190
test eax, eax
je 0x4ba73b
mov eax, 1
add esp, 0x190
ret
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
pop edi
je 0x4ba770
xor eax, eax
add esp, 0x190
ret
mov eax, 1
mov dword [0x68bcc8], eax
add esp, 0x190
ret

Function at 0x4caf90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.0044d670
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x4cafbb
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x4cafcd
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4cb139
push esi
call fcn.004cc390
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x4cb003
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.004cbfc0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x4cb042
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004cb4d0
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.004cb640
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.004cb740
add esp, 0x24
jmp 0x4cb081
test ebp, ebp
jl 0x4cb04e
cmp ebp, 0x80
jle 0x4cb062
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.004cbfc0
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x4cb0a6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x4cb0af
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.004cb4d0
push esi
call fcn.004cc390
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004cb640
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x4cb0eb
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.004cb4d0
push esi
call fcn.004cc390
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.004cb640
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.004cb7f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x4cb11e
jmp 0x4cb0ad
Function at 0x4cbe40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0044d670
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4cbe89
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4cbe89
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x668970
call fcn.005b32c4
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.005b3274
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4cbf9b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4cbf9b
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x4cbf9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4cbf9b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x4cbf9b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0044d670
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x4cbf9b
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.0044d2e0
add esp, 8
test eax, eax
je 0x4cbf9b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f4d20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5f9fbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x667c48]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x667c48]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x667c48]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.005e02a0
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x613d4c
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.005e1070
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x4f4dc3
push eax
mov ecx, ebp
call fcn.005e1070
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x4f4de1
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.005e1070
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4f92e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613da8
push 0x44e104
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f8a60
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x4f9393
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x4f938c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ff260
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x68c4dc]
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x4ff2ac
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x4ff2a7
mov dword [0x68c4e0], eax
mov dword [0x68c4dc], eax
cmp dword [0x68c4e0], ebx
jne 0x4ff2c0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4ff30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4ff30c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.005e15b8
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.005e15b8
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x4ff351
test esi, esi
je 0x4ff362
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x4ff35e
push esi
call fcn.005e15e1
add esp, 4
test ebx, ebx
jne 0x4ff371
mov edi, dword [edi]
test edi, edi
je 0x4ff371
push edi
call fcn.005e15e1
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xa0
ret