joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4288c0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], 0x4b7e1c
test eax, eax
je 0x4288dd
or al, 1
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esi + 4]
call fcn.00447cd0
pop esi
ret

Function at 0x428910
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x42891e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00428c80
add esp, 4
test eax, eax
je 0x428930
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
ret

Function at 0x429150
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2101
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x4292e1
push ebp
call fcn.004386b2
add esp, 4
cmp eax, 2
jbe 0x4292e1
cmp word [ebp + 2], 0x3a
jne 0x4292e1
mov ax, word [ebp]
cmp ax, 0x61
jb 0x4291a8
cmp ax, 0x7a
jbe 0x4291bc
cmp ax, 0x41
jb 0x4292e1
cmp ax, 0x5a
ja 0x4292e1
push ebp
lea ecx, [esp + 0xc]
call fcn.00447770
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.004485c0
mov edx, eax
cmp edx, 0xffffffff
je 0x4292cd
push esi
push edi
mov ecx, 5
mov esi, str.X:_baksd_
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x7c
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
inc edx
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov ax, word [ebp]
push edx
push ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x20], ax
call fcn.00448630
mov edx, dword [0x4bc794]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
mov byte [esp + 0x238], 2
call fcn.00449050
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 1
push eax
push ebp
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42927a
mov edx, dword [esp + 0xc]
push 4
push eax
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.00447cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.00447cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.00447cd0
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.00447cd0
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x4296b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4296bb
xor eax, eax
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret

Function at 0x4296e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4296eb
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret
Function at 0x42d620
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b22d6
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push esi
mov esi, dword [esp + 0x3a0]
cmp esi, 0xffffffff
jne 0x42d66f
push 0x26e
push 1
call fcn.0042d8e0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38c]
mov dword fs:[0], ecx
add esp, 0x398
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push edi
lea eax, [esp + 0x20]
xor edi, edi
push 1
push eax
push edi
push esi
mov dword [esp + 0x30], edi
call ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
push ecx
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push esi
mov dword [esp + 0x34], eax
call ebx
lea edx, [esp + 0x10]
push 1
push edx
push edi
push esi
call ebx
mov ebp, eax
mov eax, dword [esp + 0x24]
cmp ebp, eax
jne 0x42d6d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x42d783
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
call fcn.0044ae30
lea ecx, [esp + 0x14]
mov dword [esp + 0x3a4], 0
call fcn.0044ae30
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push esi
mov byte [esp + 0x3b8], 1
call fcn.004122d0
add esp, 0x14
test eax, eax
je 0x42d75e
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a4], 0
call fcn.0044af00
lea ecx, [esp + 0x18]
mov dword [esp + 0x3a4], 0xffffffff
call fcn.0044af00
jmp 0x42d6ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a4], 0
call fcn.0044af00
lea ecx, [esp + 0x18]
mov dword [esp + 0x3a4], 0xffffffff
call fcn.0044af00
mov edx, dword [esp + 0x3b0]
mov eax, dword [esp + 0x3b4]
mov ecx, dword [esp + 0x10]
push 0
mov dword [edx], ebp
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x39c]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x398
ret

Function at 0x42d900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b2305
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.004a2cae
mov edi, 1
push 0x4e2994
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], edi
call fcn.004a0c6c
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, dword [esp + 0x228]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00447770
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x220], 0
call fcn.004a2c3a
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x42d9f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b2320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
je 0x42db23
push edi
call fcn.004386b2
add esp, 4
test eax, eax
je 0x42db23
push edi
lea ecx, [esp + 0x24]
call fcn.004a2cae
push 3
push 0x5c
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.004a3119
push 2
push 0x4e299c
push edi
mov esi, eax
call fcn.00438f22
add esp, 0xc
test eax, eax
jne 0x42da68
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call fcn.004a3119
mov esi, eax
cmp esi, 0xffffffff
je 0x42daca
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.004a084b
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
call edi
cmp eax, 0xffffffff
jne 0x42daa5
mov edx, dword [esp + 0xc]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42db05
jmp 0x42daa9
test al, 0x10
je 0x42db05
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call fcn.004a3119
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x18], bl
call fcn.004a2c3a
cmp esi, 0xffffffff
jne 0x42da73
mov esi, dword [esp + 0x20]
call fcn.00476fe0
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004a2c3a
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.004a2c3a
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004a2c3a
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4475c0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x447619
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x447619
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x447620
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x4475fd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x44761b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x449370
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_FindResourceExW]
test eax, eax
je 0x4493c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4493c0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x4493c5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x4493ab
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x4493d2
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 0x44a920
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x44a959
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.004386b2
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
jne 0x44a959
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x44ad00
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x44ad50
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x44adf0
push 0
push 0
call fcn.0043a4ca
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x44ad50
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x44ad3f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x44ad60
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x44ad74
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44adc1
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x44b9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b367c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e29e0]
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 [0x4e29e0]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x4e29e0]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.004a1ebd
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x4bc7a8
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.004a2dd1
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x44ba63
push eax
mov ecx, ebp
call fcn.004a2dd1
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x44ba81
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.004a2dd1
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 0x44baa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b36bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e29e0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 8], eax
mov ecx, dword [0x4e29e0]
lea edi, [esi + 0x18]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [edi], ecx
mov edx, dword [0x4e29e0]
lea ebx, [esi + 0x20]
mov dword [ebx], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.004a1ebd
mov eax, dword [esp + 0x24]
mov cx, word [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
test eax, 0xffff0000
mov byte [esp + 0x1c], 3
mov dword [esi], 0x4bc7a8
mov dword [esi + 4], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x1c], ebp
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x44bb30
push eax
mov ecx, edi
call fcn.004a2dd1
mov edx, dword [edi]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x44bb4b
push eax
mov ecx, ebx
call fcn.004a2dd1
mov eax, dword [ebx]
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 0x44db10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b39cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4e29e0]
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 0x4e6cc4
push ecx
call fcn.004a0c59
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004a29a7
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004a2c3a
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44dcd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44dcdb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x44dddd
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4bc808]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bc808]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bc808]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bc808]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bc808]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4bc808]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4bc808]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4bc808]
xor eax, edx
inc ecx
dec edi
jne 0x44dcf6
test esi, esi
je 0x44ddff
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4bc808]
xor eax, edx
inc ecx
dec esi
jne 0x44dde1
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x44f450
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.004382c0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44f499
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x44f499
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x4e6420
call fcn.0048f1cb
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.0048f17b
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x44f5ab
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x44f5ab
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 0x44f5ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44f5ab
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x44f5ab
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.004382c0
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 0x44f5ab
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.00438b27
add esp, 8
test eax, eax
je 0x44f5ab
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 0x46f610
Capabilities:
Get session user name

Disassembly:
sub esp, 0x20c
xor eax, eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00488400
test eax, eax
je 0x46f6d6
push 0x41
push 0
push 1
push 0x4f08fc
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x46f66c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x46f770
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.004386b2
add esp, 4
cmp eax, ebx
jb 0x46f6b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00438893
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x46f746
lea edx, [esp + 0x14]
push edx
call fcn.004386b2
add esp, 4
cmp eax, ebx
jb 0x46f728
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00438893
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x46f758
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x4f4c50
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.004a2dd1
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.004a2dd1
mov ecx, ebx
call fcn.004a0d6a
mov ecx, ebx
call fcn.004a0cbc
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x470412
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.00489ac0
mov ecx, dword [esi + 4]
call fcn.00489c00
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.0048a1b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8