joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514063
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x577680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi], 0x532820
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
push dword [ebp + 8]
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 1
call fcn.004026b0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x464820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x57c164]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4649ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4649ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4649ae
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x464999
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x46490e
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.004657b0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x464986
push eax
call fcn.004f1802
add esp, 4
jmp 0x464986
cmp dx, ax
jne 0x46498b
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004657b0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x464960
push eax
call fcn.004f1802
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x464886
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret 4
Function at 0x466170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push 0xcf
mov dword [ebp - 0x18], ebx
call fcn.00464820
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0
mov dword [eax], 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push 0x4681c0
push 0
push 0
call fcn.004f6ec8
add esp, 0x18
mov dword [ebx + 0x30], eax
call fcn.00468610
test al, al
jne 0x46626b
push esi
mov esi, dword [0x578ad4]
mov eax, esi
cdq
sub eax, edx
xor ecx, ecx
mov ebx, eax
sar ebx, 1
push edi
mov edi, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ebx
lea esp, [esp]
test ebx, ebx
jle 0x46625a
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
xor ecx, ecx
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
lea ebx, [ebx]
xor edx, edx
xor esi, esi
xor ebx, ebx
cmp eax, 2
jl 0x466231
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffffe
shr ecx, 1
inc ecx
lea ebx, [ecx + ecx]
lea esp, [esp]
dec esi
add edx, eax
add esi, eax
sub eax, 2
dec ecx
jne 0x466220
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp ebx, eax
jge 0x46623b
mov eax, ecx
sub eax, ebx
add edi, eax
add ecx, dword [ebp - 4]
lea eax, [esi + edx]
add edi, eax
dec dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
jne 0x466200
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov esi, dword [0x578ad4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, edi
jl 0x4661e0
mov ebx, dword [ebp - 0x18]
pop edi
pop esi
push 0
push 0x3e8
push 0x5df
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46bbb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51490b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x37c], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
shr eax, 8
movzx eax, al
movzx esi, bl
mov dword [ebp - 0x378], esi
mov dword [ebp - 0x374], eax
call fcn.0046ca40
test al, al
jne 0x46bc19
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp ebx, 0x80000000
jae 0x46bc26
shr ebx, 0x10
jmp 0x46bc28
xor ebx, ebx
cmp esi, 6
jb 0x46bc44
cmp dword [ebp - 0x374], 2
jb 0x46bc44
push edi
call fcn.0046bd90
add esp, 4
jmp 0x46bd69
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x370], eax
mov esi, dword [0x578ad4]
mov ecx, 0xd
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
mov dword [ebp - 4], 0
cmp edx, 0xb
jne 0x46bcbc
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebp + ecx*4 - 0x35c]
add eax, dword [ebp + ecx*4 - 0x360]
add ecx, 5
add eax, dword [ebp + ecx*4 - 0x378]
add eax, dword [ebp + ecx*4 - 0x37c]
add eax, dword [ebp + ecx*4 - 0x380]
imul eax, eax, 0xc4
add esi, eax
cmp ecx, 0x35c
jb 0x46bc80
mov dword [0x578ad4], esi
push ebx
push dword [ebp - 0x374]
lea eax, [ebp - 0x370]
push dword [ebp - 0x378]
push 0x532fdc
push eax
call fcn.004059e0
mov esi, dword [ebp - 0x370]
add esi, 0xfffffff0
add esp, 0x14
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x46bd09
cmp ecx, dword [esi]
jne 0x46bd09
mov ebx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46bd46
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x46bd1d
call fcn.0040cb60
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004f18c0
add esp, 0x10
lea eax, [ebx + 0x10]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bd69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x477df0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
push 0
push dword [eax + 0x20]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0x404
mov dword [ebp - 0xc], esi
call fcn.004ef820
mov edi, eax
mov eax, 4
add esp, 4
xor ebx, ebx
cmp esi, eax
jbe 0x477ebd
mov edx, 0x404
test ebx, ebx
jne 0x477ebd
add eax, 0x400
cmp eax, esi
mov ecx, eax
cmova ecx, esi
push ebx
mov eax, esi
sub eax, ecx
push ebx
sub esi, eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp esi, 0x404
push dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
cmova esi, edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push esi
push edi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 3]
test eax, eax
jle 0x477eaa
dec eax
cmp byte [eax + edi], 0x50
jne 0x477e9f
cmp byte [eax + edi + 1], 0x4b
jne 0x477e9f
cmp byte [eax + edi + 2], 5
jne 0x477e9f
cmp byte [eax + edi + 3], 6
je 0x477ea5
test eax, eax
jg 0x477e83
jmp 0x477eaa
mov ebx, dword [ebp - 8]
add ebx, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x404
cmp eax, esi
jb 0x477e31
push edi
call fcn.004f0683
add esp, 4
test ebx, ebx
je 0x477ed3
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0xffffffffffffff99
call fcn.00476ee0
int3
Function at 0x4951e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00468bf0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4952b8
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x49523e
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x4952a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4952a5
push dword [ebp - 4]
push eax
call fcn.004974e0
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edi, eax
test edi, edi
je 0x495284
cmp edi, 0xffffffff
jne 0x49528c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x4952ad
test ebx, ebx
je 0x4952ad
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4952ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4952b8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4968f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5191e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x577680]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x49699c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x49699c
call fcn.00462ff0
mov esi, eax
jmp 0x496a8c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4969bf
call fcn.00462ff0
jmp 0x496a7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x4969dd
call fcn.00462ff0
jmp 0x496a7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4969fe
mov esi, 0x8007000e
jmp 0x496a81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00495c60
jmp 0x496a28
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x496a3f
mov esi, 0x8007000e
jmp 0x496a81
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x496a5f
call fcn.00462ff0
jmp 0x496a7f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00496790
mov esi, eax
test edi, edi
je 0x496a8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x496ab0
lea ecx, [ebp - 0x418]
call fcn.00496070
jmp 0x496ab0
mov eax, esi
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.004f0cd4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4973c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4973d9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4973e5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4973e0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x498250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
xor al, al
test edi, edi
je 0x49828d
push esi
mov esi, dword [ebp + 8]
mov byte [edi], al
test esi, esi
je 0x49828c
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
test ebx, ebx
jle 0x498285
movzx ecx, byte [edx + esi]
movzx eax, al
xor ecx, eax
inc edx
mov al, byte [ecx + 0x536308]
cmp edx, ebx
jl 0x498271
xor al, 0x55
mov byte [edi], al
mov al, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x498490
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1d0], eax
cmp esi, 0x40
jbe 0x498507
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049a450
push esi
lea eax, [ebp - 0x1cc]
push edi
push eax
call fcn.00498780
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049a9f0
xorps xmm0, xmm0
add esp, 0x20
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
jmp 0x498532
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004f1130
add esp, 0xc
cmp esi, 0x40
jae 0x498532
mov eax, 0x40
sub eax, esi
push eax
lea eax, [ebp - 0x44]
add eax, esi
push 0
push eax
call fcn.004f2250
add esp, 0xc
xor ecx, ecx
jmp 0x498540
mov al, byte [ebp + ecx - 0x44]
xor al, 0x36
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x498540
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049a450
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049ab30
push dword [ebp + 0x14]
lea eax, [ebp - 0x1cc]
push ebx
push eax
call fcn.00498780
push 0x20
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049a9f0
add esp, 0x2c
xor ecx, ecx
pop edi
pop esi
pop ebx
mov al, byte [ebp + ecx - 0x44]
xor al, 0x5c
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x4985a0
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049a450
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049ab30
push 0x20
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0049ab30
push dword [ebp + 0x1c]
lea eax, [ebp - 0x1cc]
push 0
push dword [ebp - 0x1d0]
push eax
call fcn.0049a9f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x2c
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x4995b0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x100
call fcn.004ef820
mov ebx, dword [ebp + 0x10]
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x49966c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49966c
cmp dword [ebp - 8], ebx
jbe 0x49961c
test esi, esi
je 0x499613
push esi
call fcn.004f0683
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, 0x80
jbe 0x49964f
test esi, esi
je 0x499636
push esi
call fcn.004f0683
mov eax, dword [ebp - 4]
add esp, 4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ef820
add esp, 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test esi, esi
je 0x499679
push esi
call fcn.004f0683
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499690
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x84]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0x84], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x499764
push 0x43
lea eax, [ebp - 0x67]
push 0
push eax
mov byte [ebp - 0x68], 0
call fcn.004f2250
push 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004995b0
add esp, 0x18
test al, al
je 0x499764
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00499500
mov ebx, eax
add esp, 8
cmp esi, ebx
je 0x499752
cmp dword [esi + 0x14], 8
jb 0x499737
push dword [esi]
call fcn.004f03fe
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.0041eb50
cmp dword [ebp - 0x6c], 8
pop ebx
jb 0x499764
push dword [ebp - 0x80]
call fcn.004f03fe
add esp, 4
push edi
mov dword [edi], 0
call fcn.00499790
add esp, 4
test al, al
mov al, 1
jne 0x49977f
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x499790
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4997bc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4997ab
lea eax, [ebp - 0x210]
push 0x533664
push eax
call fcn.004f7689
add esp, 8
test eax, eax
je 0x4997f6
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4997ab
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x49e270
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004f2220
mov eax, dword [0x577680]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x49e2d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x49e2d5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004f59bd
add eax, 0x40
push eax
call fcn.004f7b1e
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f0cd4
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004f7a59
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x49e364
call fcn.0049e130
test eax, eax
jle 0x49e364
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f0cd4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f0cd4
add esp, 0x108
ret