joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x428014]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 8], edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x409938
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x409a2c
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 2
push eax
push 0xfffffffffffffff0
push esi
mov dword [esp + 0x20], 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
call edi
cmp eax, 0xffffffff
je 0x409911
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409911
cmp dword [esp + 0xc], 0x10
jne 0x409a27
cmp dword [esp + 0x20], 0x84692426
jne 0x409a27
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jne 0x409a27
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x409a27
mov ecx, 0xfffffff0
mov eax, 0xffffffff
sub ecx, dword [esp + 0x24]
push 2
sbb eax, 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4099e2
call edi
test eax, eax
jne 0x409919
push 0
lea eax, [esp + 0x10]
push eax
push 0x80
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409a04
call edi
jmp 0x409917
xor eax, eax
mov ecx, 0x80004005
cmp dword [esp + 0xc], 0x80
cmovne eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
Function at 0x409a40
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x428014]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x409a7d
call esi
test eax, eax
jne 0x409b06
push 2
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push 0
push edi
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409aa1
call esi
test eax, eax
jne 0x409b06
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x10
push 0
adc eax, 0
mov dword [esp + 0x1c], 0x84692426
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x80
push eax
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409b02
cmp dword [esp + 0xc], 0x10
jne 0x409b02
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
jle 0x409b10
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
Function at 0x40a090
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x428014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a203
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a203
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x28], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004096e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x40a12d
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x2e
jmp 0x40a13f
push 0x2e
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a830
mov esi, 8
call fcn.0040ad54
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
movzx ecx, al
or ecx, 0x400
cmp edx, edi
jae 0x40a179
lea eax, [edx + 1]
cmp edi, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x40a18a
push ecx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a830
sub esi, 1
jne 0x40a144
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40a1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40a1c9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call esi
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40a1ff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a1f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a220
push edx
push ecx
call fcn.0040b069
add esp, 8
mov eax, esi
jmp 0x40a205
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b05b
mov esp, ebp
pop ebp
ret
call fcn.0040e6bc
int3
Function at 0x100092a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x1f
jmp 0x100092c2
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x1000948d
mov dword [ebp - 0x18], 0x54b
cmp dword [ebp - 0x18], 0x1d13
jle 0x100093a3
wait
sbb bh, byte [ebp + 0x3183309d]
dec ebp
js 0x100092ae
stc
sub ch, bl
ljmp 0x784a
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 8]
je 0x100093b6
mov byte [ebp - 1], 1
jmp 0x100093ba
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
mov dword [ebp - 0x1c], 0x135a
cmp dword [ebp - 0x1c], 0x187f
jle 0x10009434
xchg byte [ebx + 0x154b3d4a], ah
mov edi, 0x9ec61a0c
in al, dx
push ds
salc
cmp byte [edx], bl
lcall 0xfa1a, 0xc0d9d23d
aad 0x10
mov es, word [esi]
les edi, [ebx + 0x55d1d922]
or ch, byte [ebp + esi*4 - 0x71db47e2]
sub dword [ecx], eax
mov al, byte [eax + 0x5ca532d]
mov eax, 0xeea8d2c2
sti
xor dword [esi + ebx*8 - 0x7ed95d63], ebp
xchg ecx, eax
sbb al, 0x48
lodsd eax, dword [esi]
jmp 0xaaa9916c
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 0xc]
je 0x10009447
mov byte [ebp - 2], 1
jmp 0x1000944b
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
and eax, ecx
je 0x10009463
and dword [ebp - 0x14], 0
jmp 0x10009470
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
or eax, ecx
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 5]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x100092bb
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x1001486a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100148d9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.10013e57
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.10015ebb
lea ecx, [ebp - 0x3c]
call fcn.10015ee0
jmp 0x100148f4
push 0x2669
push 0
push 0xb77
push 0x1df2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret

Function at 0x10014962
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100149b4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.1001629e
mov ecx, eax
call fcn.10015eea
jmp 0x100149ca
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100149ca
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1001af64
Capabilities:
Compare security identifiers
Get common file path

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001af7b
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1001af88
push 0x1af4
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
pop ebp
ret

Function at 0x1001afff
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001b01c
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1001b0f3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0xa318
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jle 0x1001b069
mov dword [ebp - 8], 1
jmp 0x1001b06d
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0x5637
je 0x1001b07f
mov dword [ebp - 0x1c], 1
jmp 0x1001b083
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1001b0a0
mov dword [ebp - 0xc], 1
jmp 0x1001b0a4
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xa67f8b4d
je 0x1001b0b6
mov dword [ebp - 0x10], 1
jmp 0x1001b0ba
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
add ecx, 0x3416d1c1
mov edx, dword [ebp - 4]
imul ecx, dword [edx]
sub eax, ecx
jne 0x1001b0e1
mov dword [ebp - 0x14], 1
jmp 0x1001b0e5
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x100258f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002592e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10025929
push 0x1af4
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x10025aae
mov dword [ebp - 0x10], 0x65e0
mov dword [ebp - 0x14], 0x5b2906c9
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x55b6
mov dword [ebp - 4], 0
jmp 0x10025961
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x10025974
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 8], 1
jmp 0x1002595a
mov dword [ebp - 4], 0
jmp 0x10025984
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x10025997
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xc], 9
jmp 0x1002597d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x20], 0
je 0x100259b8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100259b8
mov dword [ebp - 0x1c], 1
jmp 0x100259bc
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], eax
jge 0x100259cd
mov dword [ebp - 0x24], 1
jmp 0x100259d1
and dword [ebp - 0x24], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
cmp dword [ebp - 0x20], eax
jl 0x100259e9
mov dword [ebp - 0x28], 1
jmp 0x100259ed
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jle 0x100259fe
mov dword [ebp - 0x40], 1
jmp 0x10025a02
and dword [ebp - 0x40], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc]
mov dword [ebp - 0x50], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xc], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xc], 0
je 0x10025a47
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 0
je 0x10025a47
mov dword [ebp - 0x44], 1
jmp 0x10025a4b
and dword [ebp - 0x44], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0x48], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 8], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 1
jne 0x10025a81
mov dword [ebp - 0x2c], 1
jmp 0x10025a85
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x14]
cmp eax, 0x36d0
je 0x10025aa4
mov dword [ebp - 0x34], 1
jmp 0x10025aa8
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov esp, ebp
pop ebp
ret
Function at 0x100288ab
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10028933
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x12
jmp 0x100288db
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
je 0x10028931
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], 0x2c58
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10028907
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 8], 0
jmp 0x10028917
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffe3
je 0x1002892f
cmp dword [ebp - 8], 0
je 0x10028925
jmp 0x1002892f
cmp dword [ebp - 0x14], 0
je 0x1002892d
jmp 0x10028910
jmp 0x10028910
jmp 0x100288d0
jmp 0x10028948
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x7e55059b
mov esp, ebp
pop ebp
ret
Function at 0x1002a661
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002a6a3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.10064d3c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x1002a6ad
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esp, ebp
pop ebp
ret

Function at 0x1002bee5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002bf09
xor eax, eax
jmp 0x1002c066
lea eax, [ebp + 8]
push eax
push 0
push 0x4ffa
push 0x6b07
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5e0c
call fcn.1002bd93
add esp, 0x1c
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002bf40
xor eax, eax
jmp 0x1002c066
push 1
push 0x871
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002ad7b
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1002bf64
xor eax, eax
jmp 0x1002c066
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1002bd0b
add esp, 0x18
push 0x19e3
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x49bc
push 0x65d5
lea eax, [ebp - 8]
push eax
call fcn.1002bd93
add esp, 0x1c
push 0x7956
push 1
lea eax, [ebp - 8]
push eax
push 0x1ce
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002be1a
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x1002bfe4
push 0x23f3
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002be8c
add esp, 0x10
push dword [ebp - 4]
call fcn.1002a6b1
pop ecx
test eax, eax
jne 0x1002bff5
xor eax, eax
jmp 0x1002c066
push 0
push dword [ebp - 4]
push 0x68c0
push 0x6552
call fcn.1002ad7b
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002c04e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002c02b
xor eax, eax
jmp 0x1002c066
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002c044
xor eax, eax
jmp 0x1002c066
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002c05f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002c063
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003fa98
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003fb83
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
imul eax, dword [eax], 0xa318
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jle 0x1003faf7
mov dword [ebp - 0xc], 1
jmp 0x1003fafb
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x5637
je 0x1003fb0d
mov dword [ebp - 0x20], 1
jmp 0x1003fb11
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1003fb2e
mov dword [ebp - 0x10], 1
jmp 0x1003fb32
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0xa67f8b4d
je 0x1003fb44
mov dword [ebp - 0x14], 1
jmp 0x1003fb48
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
add ecx, 0x3416d1c1
mov edx, dword [ebp - 8]
imul ecx, dword [edx]
sub eax, ecx
jne 0x1003fb6f
mov dword [ebp - 0x18], 1
jmp 0x1003fb73
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
imul eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1003fb99
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003fb99
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esp, ebp
pop ebp
ret

Function at 0x1003fe18
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003fe32
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1003fe6d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003fe54
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jg 0x1003fe6d
mov dword [ebp - 0xc], 0xa956
cmp dword [ebp - 0xc], 0
je 0x1003fe6b
jmp 0x1003fe6d
jmp 0x1003fe49
mov esp, ebp
pop ebp
ret
Function at 0x1003ffc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004000b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003fff0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jg 0x10040009
mov dword [ebp - 0xc], 0xa956
cmp dword [ebp - 0xc], 0
je 0x10040007
jmp 0x10040009
jmp 0x1003ffe5
jmp 0x10040029
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10040029
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esp, ebp
pop ebp
ret