joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458034
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x487bdc]
cmp dword [eax + 0x30], 0
je 0x4580de
cmp dword [ebx + 0x94], 0
jne 0x4580d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457fc4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4580d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45809e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4580d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414674
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4580ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458c40
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458c75
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404098
jmp 0x458c82
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ffc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459d8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459dcd
mov eax, esi
call fcn.0043fe98
test al, al
je 0x459dcd
mov eax, dword [ebx + 0x84]
call fcn.0043fb94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459dcd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fb94
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x460838
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4608f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004046b4
mov eax, dword [0x486170]
cmp byte [eax], 0
je 0x4608a7
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404a14
mov eax, dword [ebx]
call fcn.00404840
push eax
mov eax, dword [ebx]
call fcn.00404830
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404840
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404a14
jmp 0x4608d9
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408b80
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4608f9
lea eax, [ebp - 0x3f0]
call fcn.00403fa8
ret
Function at 0x463920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x46397a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00463984
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463981
ret

Function at 0x46910c
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x469142
jmp 0x4691e8
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x469186
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x160], 0
je 0x469186
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x160]
mov eax, dword [eax + 0x14]
jmp 0x469196
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x15c]
test edx, edx
je 0x469196
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4691af
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00465b4c
jmp 0x4691e8
mov dl, 1
mov eax, dword [0x41be74]
call fcn.0041ddb8
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0041e770
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xb4]
mov eax, dword [esi + 0x10]
call fcn.0041d968
mov edx, esp
mov eax, esi
call fcn.0041e4bc
mov eax, esi
call fcn.00403258
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x46b608
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0043fb94
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.004392cc
pop ebx
ret
Function at 0x4706d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47078a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004046b4
mov eax, dword [0x486170]
cmp byte [eax], 0
je 0x47073f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404a14
mov eax, dword [ebx]
call fcn.00404840
push eax
mov eax, dword [ebx]
call fcn.00404830
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404840
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404a14
jmp 0x470771
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408b80
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470791
lea eax, [ebp - 0x3f0]
call fcn.00403fa8
ret

Function at 0x47092c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov ebp, edx
mov esi, eax
mov edx, ebp
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
cmp dword [ebp + 0xc], 0
jne 0x4709ed
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00450324
mov ebx, eax
mov dx, word [ebp + 4]
mov eax, esi
call fcn.00470500
mov edi, eax
test edi, edi
je 0x47098b
mov al, byte [0x4709f8]
cmp al, bl
jne 0x47098b
mov edx, edi
mov eax, esi
call fcn.00470438
mov dword [ebp + 0xc], 1
mov byte [esi + 0x31], 1
jmp 0x4709ed
cmp byte [esi + 0x161], 2
jne 0x4709b6
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp + 4]
mov eax, dword [0x486470]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.0043a560
test eax, eax
jne 0x4709ed
jmp 0x4709e0
mov eax, dword [0x486394]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp eax, dword [esi + 0x128]
je 0x4709e0
mov edx, dword [ebp + 8]
push edx
movzx ecx, word [ebp + 4]
mov edx, dword [0x486394]
mov edx, 0xb006
call fcn.0043a560
xor eax, eax
mov dword [ebp + 0xc], eax
mov edx, ebp
mov eax, dword [esi + 0x3c]
call dword [esi + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x476930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x476964
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4769a0
jmp 0x476968
pop edx
pop eax
jge 0x4769a0
mov eax, dword [0x486470]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004717ec
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4769c5
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4769c5
cmp dword [ebx + 0x11c], 0
je 0x4769c5
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042a5b8
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x480e64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480fd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x94], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x480fba
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408b80
mov dl, 1
mov eax, dword [0x45af80]
call fcn.0045afd8
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov dl, 1
mov eax, dword [0x412a18]
call fcn.00403228
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x90]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.0045b054
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x480fb7
mov dl, 1
mov eax, dword [0x45c0f8]
call fcn.0045c160
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, 0x480fec
call fcn.0045b3a0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004042b4
xor eax, eax
push ebp
push 0x480fb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0045c460
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00480ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480fb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.00403258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403258
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480fdc
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403fcc
ret
Function at 0x482368
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x482422
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004046b4
mov eax, dword [0x486170]
cmp byte [eax], 0
je 0x4823d7
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404a14
mov eax, dword [ebx]
call fcn.00404840
push eax
mov eax, dword [ebx]
call fcn.00404830
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404840
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404a14
jmp 0x482409
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00408b80
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482429
lea eax, [ebp - 0x3f0]
call fcn.00403fa8
ret

Function at 0x482430
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408b80
add esp, 0x3ec
pop ebx
ret
Function at 0x50a7f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ah, dl
push ebp
neg ebp
sal ah, 5
add bp, dx
push esi
pushfd
bt eax, eax
cmc
bt si, 9
mov dword [esp], edi
daa
shr bp, 2
aaa
movzx ebp, cl
push ebx
btc ax, ax
rol bp, cl
push edx
add eax, edx
push edx
xor ah, 0x4e
jg 0x5909a2
mov ebp, 0xe92c9a6c
stc
lea ebp, [esp + 0x1c]
daa
mov eax, dword [ebp]
jmp 0x58e616
mov al, al
bt cx, 0xc
cmp dh, dh
rcl al, 7
lea ebp, [esp + 0x1c]
xor al, 0x9f
das
shrd eax, esp, cl
add ax, bx
mov eax, dword [ebp]
pushal
test eax, eax
call fcn.00586b33

Function at 0x50d51f
Capabilities:
Check for vm using instruction vpcext
Encrypt data using rc4 prga

Disassembly:
repne scasb al, byte es:[edi]
push 0x51885db
lea esp, [esp + 8]
jne 0x59635e
setno al
jmp 0x58f304
pushfd
mov esp, esi
push 0xd57b4f50
pushfd
lea esp, [esp + 8]
jmp 0x50ae11

Function at 0x54a1cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [esp + 0x14], cl
push edx
lea esp, [esp + 0x28]
jne 0x59635e
pushal
not ah
jmp 0x58e600
repne scasb al, byte es:[edi]
jmp 0x54544f
lea esp, [esp + 4]
je 0x50ae11
mov cl, dh
sbb cx, cx
and cx, 0xa464
add edx, eax
and ch, ch
shld cx, cx, 2
mov ecx, dword [esi + 0x7c]
call fcn.00594f12
cli
cmp esp, ebx
cmp esi, dword [ebx + 0x5b]
ret
jmp 0x50b06e
and al, 0x68
pushfd
sub ebx, edi
rcr al, 7
add esp, 8
add ebx, esp
adc di, 0xf639
setg al
bswap edi
mov edi, ebx
dec al
sbb al, 0x78
mov al, 0x2e
pushal
push 0x5ec11f07
clc
jmp 0x50b986
mov byte [edi - 1], 0
pushal
lahf
pushfd
mov dword [esp + 0x40], ebx
bswap ax
sets al
call fcn.0058fa2e
test eax, eax
pushal
push 0x593e05f2
lea esp, [esp + 0x24]
je 0x50ae11
sal dl, cl
mov esi, dword [eax + 0x3c]
pushfd
add esi, eax
and dh, 0x71
mov byte [esp], cl
mov edx, dword [esi + 0x78]
mov dword [esp], edi
test edx, edx
jmp 0x544576

Function at 0x586b33
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 8]
jbe 0x50ac42
shl edi, 5
mov edi, dword [edx + 0x24]
pushfd
neg esi
adc si, bx
add si, 0x8203
add edi, eax
push dword [esp]
test cx, 0x3cf3
mov esi, dword [edx + 0x20]
cmp ch, bh
add esi, eax
test ecx, esp
mov byte [esp + 4], 0xa2
bt di, bp
bt di, 1
xor ecx, ecx
stc
push 0xd754fbd1
pushfd
push edx
cmp ecx, dword [edx + 0x18]
call fcn.00544230
push 0x3ff9b4e6
call fcn.00598003
push esi
lea esp, [esp + 0x24]
je 0x50ae11
jmp 0x590460
shld dx, cx, cl
test dl, 0x14
bsr dx, cx
mov esi, dword [eax + 0x3c]
bts edx, 1
or edx, ecx
add esi, eax
or dh, ch
bt si, bx
mov edx, dword [esi + 0x78]
cmc
pushfd
pushfd
test edx, edx
push dword [esp]
lea esp, [esp + 0xc]
je 0x50ae11
bt esp, ebp
cmc
test di, 0x5d4d
adc ecx, 0x5428411e
add edx, eax
neg ch
push edx
mov ecx, dword [esi + 0x7c]
push esi
cmp al, 0x7e
cmc
add ecx, edx
cmp bh, al
mov byte [esp + 4], bl
mov dword [esp + 8], ecx
pop ecx
rol ecx, 8
neg ch
mov ecx, dword [ebp + 4]
test bl, al
push 0x5fee26e
cmp ecx, 0xffff
jmp 0x5453df

Function at 0x5965dc
Capabilities:
Encode data using xor

Disassembly:
push dword [esp]
lea esp, [esp + 8]
jne 0x54873a
Function at 0x406887
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406895
call 0x85667b7
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44ee30], eax
sub eax, eax
je 0x4068ba
jmp 0xa8d650d8
call 0x401154
call 0x40664a
pop edi
xor eax, eax
pop esi
ret

Function at 0x407505
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407544
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407544
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407544
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407544
cmp dword [ecx + 0x74], 0xe
jbe 0x407544
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d60f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d615
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d659
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d690
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10004af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db592
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
test edi, edi
jns 0x10004b72
mov edx, dword [section..data]
xor eax, eax
mov ecx, edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004b55
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10007210
jmp 0x10004c0b
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x10004bde
mov edx, dword [section..data]
xor eax, eax
mov ecx, edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004bc4
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10007210
jmp 0x10004c0b
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, esi
test eax, eax
jne 0x10004bff
push dword [section..data]
jmp 0x10004c06
lea eax, [ebp - 0x218]
push eax
call fcn.10003810
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, esi
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.100d02f2
mov esp, ebp
pop ebp
ret 8
Function at 0x10006c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006c79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006c79
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10006c6a
cmp esi, edx
jae 0x10006c79
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006c58
cmp esi, edx
jae 0x10006c79
cmp word [esi], 0
je 0x10006c79
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10007c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.1000ed10
test eax, eax
je 0x10007c5e
mov eax, dword [0x10268ab4]
test eax, eax
jne 0x10007c58
push str.Wow64DisableWow64FsRedirection
push 0x1020054c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10268ab4], eax
test eax, eax
je 0x10007c5e
lea ecx, [ebp - 4]
push ecx
call eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10007c78
test al, 0x10
je 0x10007c78
mov esi, 1
jmp 0x10007c7a
xor esi, esi
call fcn.1000ed10
test eax, eax
je 0x10007cb7
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x10268ab8]
test eax, eax
jne 0x10007cb2
push str.Wow64RevertWow64FsRedirection
push 0x1020054c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10268ab8], eax
test eax, eax
je 0x10007cb7
push dword [ebp - 8]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10007cfa
shr eax, 4
not eax
and eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10007d3c
cmp esi, 3
je 0x10007d3c
cmp esi, 0x7b
je 0x10007d3c
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10007d3c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
shr eax, 4
not eax
and eax, 1
jne 0x10007d56
cmp esi, 0x80310017
je 0x10007d56
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x10008530
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x1fe
push 0
push eax
call fcn.101a08b0
push 0x1fe
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.101a08b0
push 0x1fe
lea eax, [ebp - 0x604]
push 0
push eax
call fcn.101a08b0
add esp, 0x24
mov dword [ebp - 0x60c], 0xff
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x614], 0xff
mov dword [ebp - 0x610], 0xff
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10008630
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10008630
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10008630
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x204]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10008630
push dword [ebp - 0x608]
mov ecx, esi
call fcn.10007a40
push dword [ebp - 0x608]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret

Function at 0x10009280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000931e
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1000931d
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, 0x400
jne 0x10009318
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000931d
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x100092e3
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov edi, 1
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100d02f2
mov esp, ebp
pop ebp
ret