joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3b00
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x51a468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004a58f0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.004a45c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.004a59a0
mov edx, dword [esi + 4]
mov ecx, 0x550bcc
cmp edx, dword [ecx]
je 0x4a3bec
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a5970
xor al, al
jmp 0x4a3c84
mov ecx, edi
call fcn.004a4a80
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004a59d0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test bp, bp
je 0x4a3c3a
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004a59d0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x4a3c61
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004a59d0
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, edi
call fcn.004a4a80
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.004a5970
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4a4060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51a4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.004a58f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x550bd0]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.004a54f0
lea ecx, [ebx + 0x2c]
call fcn.004a59a0
mov ecx, esi
call fcn.004a4a80
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.004a5800
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a5970
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4a4bc0
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51a688
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x20
test al, al
push ebx
push ebp
push esi
mov esi, ecx
jne 0x4a4d2f
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x48]
add edx, eax
test eax, eax
mov dword [esi + 0x48], edx
je 0x4a4c0c
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x40]
push eax
push edx
mov ebx, dword [ecx]
call dword [ebx + 0x38]
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x24]
or ebp, 0xffffffff
cmp eax, 1
jne 0x4a4c95
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004a26d0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.004ff4af
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebp
call fcn.004ff4af
test bl, bl
je 0x4a4c7c
xor eax, eax
jmp 0x4a4c92
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
imul eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x24]
mov ebx, 2
cmp eax, ebx
jne 0x4a4d20
mov al, byte [esi + 0x4c]
test al, al
je 0x4a4d20
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 0
lea eax, [esp + 0x40]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.004a4d70
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x34], bl
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x3c]
push eax
call fcn.004a1860
add esp, 4
test eax, eax
je 0x4a4cf4
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00501380
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.0050135e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.004ff4af
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], ebp
call fcn.004ff4af
jmp 0x4a4d3f
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 4], ebp
je 0x4a4d3f
mov edx, dword [ecx]
call dword [edx + 0x4c]
jmp 0x4a4d3f
mov ecx, dword [esi + 0x1c]
or ebp, 0xffffffff
cmp dword [ecx + 4], ebp
je 0x4a4d3f
mov eax, dword [ecx]
call dword [eax + 0x4c]
lea ecx, [esi + 0x3c]
call fcn.004a59a0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x50], ebp
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x4a4d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51a6fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x4a4db6
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.004ff523
test bl, 1
mov dword [esp + 0x28], 3
je 0x4a4ddd
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.004ff4af
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004a11f0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.004a1310
add esp, 0x10
mov ecx, dword [0x549454]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x4a4e2a
push 0x550be4
lea ecx, [esp + 0x3c]
call fcn.004ff646
jmp 0x4a4e40
mov edx, dword [esi + 0x50]
lea eax, [esp + 0x38]
push edx
push 0x550bd8
push eax
call fcn.004fd165
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004ff6ee
push 0x548688
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.004ff754
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.004ff6ee
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.004ff4af
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.004ff4af
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.004ff4af
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004ff4af
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004ff4af
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004ff4af
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4a5330
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x51a7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.004a26d0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.004ff4af
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ff4af
test bl, bl
pop ebx
je 0x4a53c0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4a82b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x521d48]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x4a82c7
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x4a8308
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x521df0]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x4a833c
mov cl, byte [esp + edx + 0x50]
jmp 0x4a8340
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x4a8331
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x4a835e
mov cl, byte [esp + edx + 0x50]
jmp 0x4a8362
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x4a8353
xor edx, edx
mov eax, 0x521d58
xor ecx, ecx
mov cl, byte [edx + 0x521e00]
cmp byte [esp + ecx + 0x18], 0
je 0x4a838d
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x521e18]
cmp byte [esp + ecx + 0x18], 0
je 0x4a83a4
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x4a8374
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a82fb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.004a83f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x4ad8c0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51abd0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00440e50
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00440e50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x565a74]
test eax, eax
je 0x4ad978
cmp ebp, eax
jne 0x4ad978
mov eax, dword [0x565a78]
test eax, eax
je 0x4ad978
cmp ebx, eax
jb 0x4ad978
add eax, 0x493e0
cmp eax, ebx
jb 0x4ad978
mov ebp, dword [0x565a7c]
push 1
inc ebp
push 0x565990
lea ecx, [esp + 0x18]
mov dword [0x565a7c], ebp
call fcn.004acb40
push 0x5659c0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.004410a0
push 0x5659b0
mov ecx, edi
call fcn.004410a0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x4ad9ee
push edi
push esi
mov dword [0x565a7c], 0
call fcn.004adcf0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x565990
call fcn.004acb40
push 0xffffffffffffffff
push 0
mov ecx, 0x5659c0
mov dword [esp + 0x38], 1
mov dword [0x565a74], ebp
mov dword [0x565a78], ebx
call fcn.00440e50
push esi
mov ecx, 0x5659c0
call fcn.004410a0
push 0xffffffffffffffff
push 0
mov ecx, 0x5659b0
call fcn.00440e50
push edi
mov ecx, 0x5659b0
call fcn.004410a0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004acba0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4ada10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x51abf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004fe577
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004fe577
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x4adb49
mov edx, dword [0x552418]
mov cx, word [0x55241c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.004ff523
mov eax, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.004fe7b9
mov edx, dword [0x549454]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.004ff646
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004fe7b9
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.004ff4af
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.004ff4af
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x4ada6b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x4adb80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x51ac16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0043f180
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0043f180
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x4adcba
mov cl, byte [0x552422]
mov dx, word [0x552420]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.00433f30
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.0043f800
mov edx, dword [0x520068]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.00434ba0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0043f800
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004348e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004348e0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x4adbdb
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x4adcf0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x51ac36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00440e50
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00440e50
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x4ade29
mov edx, dword [0x552418]
mov cx, word [0x55241c]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.00439800
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.004414e0
mov edx, dword [0x52006c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.0043a350
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004414e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0043a070
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0043a070
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x4add4b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x4ae860
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4ae8ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4ae8ab
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.004ff0e6
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.004ff0e6
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x4ae8f0
test esi, esi
je 0x4ae901
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x4ae8fd
push esi
call fcn.004ff10f
add esp, 4
test ebx, ebx
jne 0x4ae910
mov edi, dword [edi]
test edi, edi
je 0x4ae910
push edi
call fcn.004ff10f
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4b4350
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.00421590
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4b4399
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4b4399
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x54a4d0
call fcn.004fb150
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.004b24db
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4b44ab
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4b44ab
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 0x4b44ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b44ab
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x4b44ab
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.00421590
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 0x4b44ab
mov ecx, dword [ebp - 4]
push 0x522790
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.0042318b
add esp, 8
test eax, eax
je 0x4b44ab
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