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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10234a50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102ec100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.101231a2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1010a9ef
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10055660
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

Function at 0x10058850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100588c9
mov eax, dword [ebp - 4]
test eax, eax
je 0x100588c9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x1005ffe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 0x10]
mov eax, SysReAllocString
sub eax, edx
push ebx
cmp eax, 0x16
jb 0x100600c7
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x10060012
mov eax, dword [ecx]
push 0x16
push str._test_write_access.tmp
push edx
push eax
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.10057000
cmp dword [esp + 0x20], 7
lea eax, [esp + 0xc]
push 0
cmova eax, dword [esp + 0x10]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1006005f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x1006007d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 7
lea eax, [esp + 0xc]
cmova eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov ecx, dword [esp + 0x20]
cmp ecx, 7
jbe 0x100600b5
mov edx, dword [esp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100600ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100600cc
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
xor ecx, esp
call fcn.10123194
mov esp, ebp
pop ebp
ret
call fcn.1004cdb0
call fcn.10154fbf
int3
Function at 0x100603c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102ec100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x410
lea eax, [ebp - 0x414]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.1014aba0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10060435
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10060447
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x10060435
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123194
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x414]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10060450
sub edx, esi
lea eax, [ebp - 0x414]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10058740
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1006047f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10123194
mov esp, ebp
pop ebp
ret
Function at 0x10068f80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
push 0x40
mov dword [esp + 0x18], esi
call fcn.101239b7
lea edi, [esi + 0x6c]
mov dword [edi], eax
push 0x40
call fcn.101239b7
push 0x40
push 0
push dword [edi]
lea ebx, [esi + 0x70]
mov dword [ebx], eax
call fcn.1014aba0
push 0x40
push 0
push dword [ebx]
call fcn.1014aba0
mov ebp, dword [esp + 0x40]
add esp, 0x20
cmp ebp, 0x40
jbe 0x10069021
mov eax, dword [esi + 4]
add esi, 4
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push ebp
push dword [esp + 0x14]
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [edi]
mov edx, 0x40
mov ebp, dword [ebx]
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1006903a
mov eax, edx
dec edx
test eax, eax
jle 0x1006903a
movzx eax, byte [ecx]
mov byte [esi], al
inc esi
movzx eax, byte [ecx]
inc ecx
mov byte [ebp], al
inc ebp
mov eax, dword [esp + 0x10]
cmp ecx, dword [eax + 4]
jne 0x10069001
jmp 0x1006903a
mov esi, dword [esp + 0x10]
push ebp
push esi
push dword [edi]
call fcn.1014a620
push ebp
push esi
push dword [ebx]
call fcn.1014a620
add esp, 0x18
mov eax, dword [edi]
xor ecx, ecx
mov edx, dword [ebx]
lea ebp, [eax + 0x3f]
lea esi, [edx + 0x3f]
cmp edx, ebp
ja 0x1006904e
cmp esi, eax
jae 0x10069070
cmp edx, edi
ja 0x10069056
cmp esi, edi
jae 0x10069070
cmp edx, ebx
ja 0x1006905e
cmp esi, ebx
jae 0x10069070
cmp eax, edi
ja 0x10069066
cmp ebp, edi
jae 0x10069070
cmp eax, ebx
ja 0x10069095
cmp ebp, ebx
jb 0x10069095
nop
mov eax, dword [edi]
xor byte [eax + ecx], 0x36
mov eax, dword [ebx]
xor byte [eax + ecx], 0x5c
inc ecx
cmp ecx, 0x40
jl 0x10069070
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
movups xmm0, xmmword [eax]
mov ecx, dword [esp + 0x14]
movaps xmm2, xmmword [0x102d1ff0]
movaps xmm3, xmmword [0x102d2010]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax], xmm1
movups xmm0, xmmword [edx]
movaps xmm1, xmm2
xorps xmm0, xmm3
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
xorps xmm1, xmm0
movups xmmword [eax + 0x10], xmm1
movups xmm0, xmmword [edx + 0x10]
movaps xmm1, xmm3
xorps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
movups xmm0, xmmword [eax + 0x20]
xorps xmm0, xmm2
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [edx + 0x20]
xorps xmm0, xmm3
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
xorps xmm2, xmm0
movups xmmword [eax + 0x30], xmm2
movups xmm0, xmmword [edx + 0x30]
xorps xmm3, xmm0
movups xmmword [edx + 0x30], xmm3
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x1006cfd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10237cad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x102ec100]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1006d00b
xor al, al
jmp 0x1006d0e9
xorps xmm0, xmm0
add edi, 0x20
movlpd qword [ebp - 0x18], xmm0
push edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
call fcn.1010b19b
add esp, 4
test eax, eax
jne 0x1006d133
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x1006d13a
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1006d0d5
lea ebx, [esi + 4]
mov eax, 1
lock xadd dword [ebx], eax
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1006cc70
push 0
push 0
call fcn.1016786b
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1006d105
or eax, 0xffffffff
lock xadd dword [ebx], eax
sub eax, 1
jne 0x1006d09d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x1006d0b8
push eax
call ebx
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x1006d0ca
push eax
call ebx
mov dword [esi + 0x14], 0xffffffff
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.1010b1ac
add esp, 4
mov al, bl
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.10123194
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1006d11a
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1006d08a
mov bl, 1
jmp 0x1006d0d7
push 5
call fcn.1010b14a
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.1010b14a
int3

Function at 0x1006d160
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x1006d1c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x1006d1c8
push ebx
push esi
push 0
push 0x100001
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1006d1c3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
jne 0x1006d19e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x1006d1bc
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret
Function at 0x1006d750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
lea eax, [esp + 4]
push 0x208
push 0
push eax
call fcn.1014aba0
add esp, 0xc
lea eax, [esp + 4]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1006d7ad
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10123194
add esp, 0x20c
ret
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006d7b4
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
call fcn.10058740
mov ecx, dword [esp + 0x20c]
mov al, 1
pop esi
xor ecx, esp
call fcn.10123194
add esp, 0x20c
ret
Function at 0x1006f590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1006f5c2
jl 0x1006f5b5
test ecx, ecx
jne 0x1006f5c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1006f682
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10054f40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1006f62e
jg 0x1006f5ed
test esi, esi
je 0x1006f62e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1006f605
mov eax, dword [esp + 0x10]
jl 0x1006f5ff
cmp eax, esi
jae 0x1006f605
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1014a620
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1006f64f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1006f66b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1006f5d4
jl 0x1006f66b
test ecx, ecx
jne 0x1006f5d4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1006f6c6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1006f6c6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1014a620
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1006f737
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1006f6ec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1006f722
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1015a2da
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1006f737
cmp edi, eax
ja 0x1006f700
test edi, edi
je 0x1006f737
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1015a2da
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100701a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10238280
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x102ec100]
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 edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
lea ebx, [edx + 4]
cmp dword [ebp + 0xc], 1
lea esi, [edx + 8]
mov dword [ebp - 0x14], eax
lea edi, [edx + 0x14]
sete al
mov dword [edx + 0xc], ebx
mov byte [edx + 0x48], al
lea ecx, [edx + 0x18]
mov eax, dword [ebp - 0x20]
mov byte [edx + 0x3d], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x20], ecx
add edx, 0x24
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
test ebx, ebx
je 0x10070289
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push ebx
call fcn.10162c18
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
jmp 0x1007028c
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x4c], ebx
mov eax, dword [0x102f8824]
mov ecx, dword [0x102f8828]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
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.10123194
mov esp, ebp
pop ebp
ret 8
Function at 0x10070f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102ec100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.1014aba0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x10070f8d
xor al, al
jmp 0x10070fe6
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10070fbf
cmp dword [ebp - 0x418], 0
je 0x10070fbb
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x10070fe6
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10058710
cmp dword [ebp - 0x418], 0
je 0x10070fe4
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123194
mov esp, ebp
pop ebp
ret
Function at 0x10071230
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2220
call fcn.10123c70
mov eax, dword [0x102ec100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2210], 0
mov dword [ebp - 0x2220], 0x1000
push 0x2000
push 0
lea eax, [ebp - 0x220c]
push eax
call fcn.1014aba0
add esp, 0xc
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x22
mov word [ebp + edx - 0x220c], ax
cmp dword [ebp + 8], 0
je 0x100712ac
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x100712ac
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jl 0x100712b7
mov eax, dword [ebp - 0x2210]
jmp 0x100713cb
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x220c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x102d1f0c
lea edx, [ebp - 0x220c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
push 0
push 0
lea eax, [ebp - 0x220c]
push eax
push 0x10243cc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x10071303
mov dword [ebp - 0x2210], 0x10
cmp dword [ebp - 0x2210], 0
jne 0x100713c5
mov dword [ebp - 0x221c], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [ebp - 0x2218], str._programfiles_Internet_Exploreriexplore.exe
mov dword [ebp - 0x2214], 0
jmp 0x1007133f
mov ecx, dword [ebp - 0x2214]
add ecx, 1
mov dword [ebp - 0x2214], ecx
cmp dword [ebp - 0x2214], 2
jae 0x100713c5
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.1014aba0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x2214]
mov edx, dword [ebp + ecx*4 - 0x221c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100713c0
push 1
push 0
lea ecx, [ebp - 0x220c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x10243cc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x100713c0
mov dword [ebp - 0x2210], 0x11
jmp 0x100713c5
jmp 0x10071330
mov eax, dword [ebp - 0x2210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123194
mov esp, ebp
pop ebp
ret
Function at 0x100713e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.1014aba0
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 0x20], 0
je 0x10071411
mov edx, dword [ebp + 0x20]
mov dword [ebp - 4], edx
jmp 0x1007141a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10071470
cmp dword [ebp - 0x24], 0x20
jbe 0x10071462
mov dword [ebp - 8], 1
jmp 0x10071469
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
jmp 0x10071483
cmp dword [ebp + 0x18], 0
je 0x10071481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10079d10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x400
lea eax, [esp + 4]
push 0
push eax
call fcn.1014aba0
add esp, 0xc
lea eax, [esp + 0x40c]
push eax
push 0
push dword [esp + 0x410]
lea eax, [esp + 0xc]
push 0x200
push eax
call fcn.1005fdb0
push dword [eax + 4]
push dword [eax]
call fcn.10159ede
add esp, 0x1c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.10123194
add esp, 0x404
ret

Function at 0x10079f80
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x102ec010], 0
jne 0x10079feb
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1014aba0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, section..data
mov word [esp + 0x20e], ax
lea eax, [esp + 8]
push eax
call fcn.10058710
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10123194
add esp, 0x214
ret
Function at 0x1007a590
Capabilities:
Get session user name

Disassembly:
sub esp, 0x218
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x102f2190]
push edi
mov edi, ecx
test eax, eax
jle 0x1007a5ce
inc eax
mov dword [0x102f2190], eax
mov al, 1
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10123194
add esp, 0x218
ret
push ebx
push esi
lea eax, [esp + 0x10]
mov byte [esp + 0xf], 0
push eax
mov dword [esp + 0x14], 0
call fcn.1007a0a0
test al, al
je 0x1007a68c
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1007a68c
push str.ImpersonateLoggedOnUser
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x10]
push esi
call eax
test eax, eax
je 0x1007a683
inc dword [0x102f2190]
mov eax, dword [edi]
test eax, eax
je 0x1007a62e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
xor esi, esi
mov byte [esp + 0xf], 1
cmp dword [0x102ec028], esi
jne 0x1007a683
push 0x20a
lea eax, [esp + 0x18]
push esi
push eax
call fcn.1014aba0
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x102ec018
mov word [esp + 0x21a], ax
lea eax, [esp + 0x14]
push eax
call fcn.10058710
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007a690
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1007a69b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x220]
mov al, byte [esp + 0xf]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.10123194
add esp, 0x218
ret
Function at 0x1007eef0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x1007ef11
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x1007ef29
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x1007ef41
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x1007ef57
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x1007ef6f
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret