joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a9400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
movups xmm1, xmmword [ebp - 0x30]
push 0
push 0
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movups xmmword [ebp - 0x20], xmm1
push 0x130b
sub ecx, dword [esi + 0x28]
push dword [esi + 0x4c]
sub ecx, eax
mov eax, dword [esi + 0x2c]
add eax, dword [ebp - 0x1c]
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x100a951f
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 8
push ecx
push eax
push 0x133c
push dword [esi + 0x4c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
movq qword [ebp - 0x60], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x5c]
push dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
movzx eax, byte [esi + 0x5c]
mov byte [ebp - 0xc], al
movzx eax, byte [esi + 0x5d]
mov byte [ebp - 0xb], al
call dword [sym.imp.USER32.dll_IsZoomed]
push 0x2001f
push dword [0x1014e928]
lea ecx, [ebp - 0x58]
mov dword [ebp - 8], eax
push SysReAllocString
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.10013210
test eax, eax
je 0x100a94fb
sub esp, 8
lea ecx, [ebp - 0x58]
push 0x2001f
sub esp, 8
push dword [0x1014e928]
push SysReAllocString
call fcn.100380f0
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x20]
push 0x1c
push eax
push 3
push 0
push str.CSettingsDlg
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x100a951f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x100aa060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov cl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
mov byte [esp + 0x14], cl
cmp dword [esi + 0x50], eax
jne 0x100aa097
test cl, cl
je 0x100aa172
lea ecx, [esp + 0x18]
mov dword [esi + 0x50], eax
push ecx
push eax
push 0x133c
push dword [esi + 0x4c]
xorps xmm0, xmm0
mov dword [esp + 0x28], 8
movups xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x100aa0f3
mov eax, dword [esi + 0x54]
test eax, eax
je 0x100aa0d8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0x30]
mov edi, dword [ebx + 0x2c]
test edi, edi
jne 0x100aa10c
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x60]
call fcn.100be0d0
mov edi, eax
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x34]
push eax
push 0
push 0x1328
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push ecx
push ebx
mov ecx, edi
call dword [eax + 4]
mov edi, eax
mov eax, dword [esi + 0x54]
cmp edi, eax
je 0x100aa172
test eax, eax
je 0x100aa168
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov dword [esi + 0x54], edi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100aa190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fef48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x100aa29c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
push ecx
push dword [ebp + 8]
lea eax, [esi + 4]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.1009be70
mov edi, dword [ebp - 0x10]
push str.href_
push edi
call fcn.100d62b4
mov esi, eax
add esp, 8
or ebx, 0xffffffff
test esi, esi
je 0x100aa26a
add esi, 0xc
push 0x22
push esi
call fcn.100d61ed
add esp, 8
test eax, eax
je 0x100aa26a
sub eax, esi
lea ecx, [ebp - 0x10]
sar eax, 1
sub esi, edi
push eax
sar esi, 1
lea eax, [ebp + 8]
push esi
push eax
call fcn.10082910
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push 1
push 0
push 0
push esi
push 0
push dword [eax]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100aa26a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 4
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100aa286
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10013970
int3
Function at 0x100aa5f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [0x10148a7c]
push esi
mov esi, ecx
push edi
test eax, eax
je 0x100aa7a7
mov ecx, dword [esi]
cmp ecx, eax
je 0x100aa62b
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100aa7a7
mov eax, dword [esi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x100aa7a7
push 0x2c
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x30
push 0
push eax
call fcn.100d6eb0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test byte [esp + 0x10], 6
jne 0x100aa7a7
cmp dword [esi + 4], 0x100
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x100aa784
cmp dword [esi + 8], 9
jne 0x100aa6bd
push 0x11
call edi
test ax, ax
jns 0x100aa6bd
push dword [esi + 0xc]
push 9
push 0x100
push dword [0x10148a7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0x100
jne 0x100aa784
cmp dword [esi + 8], 0xd
jne 0x100aa701
push 0x11
call edi
test ax, ax
jns 0x100aa701
push 0
push 1
push 0x111
push dword [0x10148a7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0x100
jne 0x100aa784
cmp dword [esi + 8], 0x70
jne 0x100aa730
push 0x11
call edi
test ax, ax
js 0x100aa730
push 0x10
call edi
test ax, ax
js 0x100aa730
push 0x12
call edi
test ax, ax
js 0x100aa730
call fcn.100aac50
cmp dword [esi + 4], 0x100
jne 0x100aa784
mov eax, dword [esi + 8]
cmp eax, 0x72
je 0x100aa74f
cmp eax, 0x46
jne 0x100aa784
push 0x11
call edi
test ax, ax
jns 0x100aa784
push 0x401
push dword [0x10148a7c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
push 0x28
push dword [0x10148a7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
push esi
push dword [0x10148a7c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x100ae700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x100ae71f
cmp dword [edi], 2
jae 0x100ae71f
pop edi
mov eax, 0x7a
pop esi
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ae787
cmp dword [ebp + 0x10], 7
jne 0x100ae782
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x100ae776
test cl, 1
jne 0x100ae782
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x100ae782
cmp word [esi + eax*2 - 2], 0
jne 0x100ae782
cmp eax, 1
jbe 0x100ae776
cmp word [esi + eax*2 - 4], 0
jne 0x100ae782
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0xd
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100b0590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1014ad7c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10159324]
cmp eax, dword [ecx + 4]
jle 0x100b0641
push 0x10159324
call fcn.100d4fed
add esp, 4
cmp dword [0x10159324], 0xffffffff
jne 0x100b0641
push esi
push 0x1010b1a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100b062c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100b062c
mov cx, word [eax + 0x38]
mov esi, 0xff
movzx edx, word [eax + 0x3c]
and cx, si
mov ax, word [eax + 0x3a]
shl ax, 8
or cx, ax
movzx eax, cx
mov ecx, 0x603
cmp ax, cx
jne 0x100b062c
mov eax, 0x4268
cmp dx, ax
jbe 0x100b062c
mov al, 1
jmp 0x100b062e
xor al, al
push 0x10159324
mov byte [0x10159328], al
call fcn.100d4fa3
add esp, 4
pop esi
mov al, byte [0x10159328]
ret

Function at 0x100b0650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1014ad7c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1015932c]
cmp eax, dword [ecx + 4]
jle 0x100b06f0
push 0x1015932c
call fcn.100d4fed
add esp, 4
cmp dword [0x1015932c], 0xffffffff
jne 0x100b06f0
push esi
push 0x1010b1a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100b06a7
xor ecx, ecx
jmp 0x100b06d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x100b06a3
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
cmp ecx, 0xa0036b0
push 0x1015932c
seta byte [0x10159330]
call fcn.100d4fa3
add esp, 4
pop esi
mov al, byte [0x10159330]
ret
Function at 0x100b0ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x10159158], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jne 0x100b0d42
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
mov byte [0x10159158], 1
nop word [eax + eax]
push 0x104
lea eax, [esi + 0x1013dfac]
push eax
push dword [esi + 0x1013dfa8]
call edi
cmp eax, 0x104
jg 0x100b0d31
mov dword [esi + 0x1013e1b4], eax
add esi, 0x210
cmp esi, 0x840
jb 0x100b0d10
mov ecx, dword [ebp - 4]
xor ebx, ebx
mov esi, 0x1013dfac
xor edi, edi
nop dword [eax + eax]
mov eax, dword [esi + 0x208]
push eax
push esi
push ecx
mov dword [ebp - 0xc], eax
call fcn.100de265
add esp, 0xc
test eax, eax
je 0x100b0da5
mov ecx, dword [ebp - 4]
add edi, 0x210
inc ebx
add esi, 0x210
cmp edi, 0x840
jb 0x100b0d50
mov edi, ecx
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100b0d87
sub esi, ecx
sar esi, 1
cmp esi, 0x103
jle 0x100b0e16
mov esi, 0x103
jmp 0x100b0e1a
mov edi, dword [ebp - 4]
mov edx, edi
imul eax, ebx, 0x210
lea ecx, [edx + 2]
mov ebx, dword [eax + 0x1013dfa8]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100b0dc0
sub edx, ecx
mov ecx, ebx
sar edx, 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b0dd4
sub ecx, esi
lea eax, [edx + 3]
mov esi, dword [ebp - 0xc]
sar ecx, 1
sub ecx, esi
add eax, ecx
cmp eax, 0x104
jg 0x100b0d82
lea eax, [edi + esi*2]
mov edi, dword [ebp - 8]
push eax
push ebx
push str.___s___s
push 0x104
push edi
call fcn.100a4830
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x100b0e33
movzx eax, word [edi + esi*2]
mov ecx, 0xdc00
cmp ax, cx
jb 0x100b0e33
mov ecx, 0xdfff
cmp ax, cx
ja 0x100b0e33
dec esi
add esi, esi
push esi
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.100d7080
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b1c30
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10158f4c], 0xcc
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
jge 0x100b1cf4
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 4], esi
cmp dword [esi], 0x4550
jne 0x100b1cf4
mov esi, dword [esi + 0x80]
add esi, edi
cmp dword [esi], 0
je 0x100b1c8b
nop dword [eax]
mov eax, dword [esi + 0xc]
add eax, edi
push ebx
push eax
call fcn.100def63
add esp, 8
test eax, eax
je 0x100b1cc1
add esi, 0x14
cmp dword [esi], 0
jne 0x100b1c70
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0xe0]
add esi, edi
mov eax, dword [esi + 4]
test eax, eax
je 0x100b1cf4
nop dword [eax]
add eax, edi
push ebx
push eax
call fcn.100def63
add esp, 8
test eax, eax
je 0x100b1ce6
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
jne 0x100b1ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
test edx, edx
je 0x100b1c8b
mov eax, dword [esi]
test eax, eax
je 0x100b1c8b
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
push eax
call fcn.100b1b30
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xc]
test edx, edx
je 0x100b1cf4
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x100b1cce
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b1d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ff5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x10122164
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call fcn.100de5a6
add esp, 0xc
test eax, eax
je 0x100b1dbf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100b1da9
push 2
push 0
push eax
call fcn.100e30a5
push dword [ebp - 0x10]
call fcn.100e36c0
push 0
push 0
push dword [ebp - 0x10]
mov edi, eax
call fcn.100e30a5
add esp, 0x18
lea ecx, [ebp - 0x1c]
push edi
call fcn.10061fd0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
cmp edi, 4
jl 0x100b1e2c
push dword [ebp - 0x10]
push edi
push 1
push esi
call fcn.100e39bb
add esp, 0x10
cmp eax, edi
jne 0x100b1e2c
push dword [ebp - 0x10]
call fcn.100de929
add esp, 4
mov ecx, ebx
push edi
push esi
call fcn.100b1ee0
mov bl, 1
jmp 0x100b1e39
push dword [ebp - 0x10]
call fcn.100de929
add esp, 4
xor bl, bl
test esi, esi
je 0x100b1e66
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x100b1e5c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b1e7c
push ecx
push esi
call fcn.100d4917
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.100dca69
int3
Function at 0x100b3760
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edx, edx
jle 0x100b3787
push edi
mov edi, dword [ebp + 8]
nop
movzx eax, byte [esi + ecx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, edx
jl 0x100b3770
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x100b3790
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100b37a0
sub edx, ecx
xor ecx, ecx
sar edx, 1
add edx, edx
test edx, edx
jle 0x100b37c8
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jl 0x100b37b7
pop edi
mov eax, esi
pop esi
ret
Function at 0x100b37d0
Capabilities:
Create directory
Create shortcut via ishelllink
Persist via lnk shortcut
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ff7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1013c014]
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, edx
mov edi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100b3994
push esi
push str._s_target.lnk
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x1010fedc
push 0x17
push 0
push 0x10103e70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x21c]
js 0x100b3983
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
test eax, eax
je 0x100b38b6
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x1011152c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x220]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x21c]
cmovs ecx, edx
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x100b396f
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 1
push edx
push ecx
call dword [eax + 0x18]
test eax, eax
js 0x100b3963
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100b38ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x100b3904
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push str._sdesktop.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 6
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100b3994
push 0
lea eax, [ebp - 0x224]
push eax
push 0x4b
push str._.ShellClassInfo__r_nCLSID20AFACED1_E828_11D1_9187_B532F1E9575D_r_nFlags2_r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x100b3996
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x100b3983
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 7
test eax, eax
je 0x100b3994
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
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.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x100b39c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push str._s_target.lnk
push 0x104
push esi
call fcn.100a4830
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x100b3a3a
push edi
push str._sdesktop.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x100b3a3a
test al, 4
je 0x100b3a3a
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.100d4906
mov esp, ebp
pop ebp
ret

Function at 0x100b3b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [ecx + 0x14]
cmp dword [eax - 0xc], 0
je 0x100b3b95
mov edx, 0x811c9dc5
mov ecx, eax
jmp fcn.100b3790
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x100b3bec
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x100b3bec
push esi
mov ecx, 0x811c9dc5
inc edx
mov esi, 4
nop
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor eax, ecx
imul ecx, eax, 0x1000193
movzx eax, byte [edx - 4]
xor ecx, eax
movzx eax, byte [edx - 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx - 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
sub esi, 1
jne 0x100b3bb0
mov eax, ecx
pop esi
ret
mov ecx, dword [ecx + 8]
cmp dword [ecx - 0xc], 0
je 0x100b3bff
mov edx, 0x811c9dc5
jmp fcn.100b3790
xor eax, eax
ret
Function at 0x100b4a70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 0x31
mov dword [ebp - 0x300], esi
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esi + 0x3c], 0
mov edi, eax
jne 0x100b4abb
push 0x10
push 1
push 0x2021
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi + 0x3c], eax
push ebx
mov ecx, esi
call fcn.10079ed0
push dword [esi + 0x3c]
push 0
push 0x1109
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x28
movups xmmword [ebp - 0x3c], xmm0
push 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x38], edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x200001
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0x40]
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 0x2fc], eax
call edi
mov esi, eax
lea eax, [ebp - 0x14]
push 6
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp - 0x300]
mov esi, dword [ebp - 0x2fc]
push eax
push esi
push dword [ebx + 0x3c]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x111
push 0x2b4
lea eax, [ebp - 0x2f8]
push eax
push 0x80
push str.file
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x100b4bbb
push dword [ebp - 0x2f8]
push 0xffffffffffffffff
push dword [ebx + 0x3c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x2f8]
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x10122304
mov dword [ebx + 0x48], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100b4c20
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push 0x40
push 0
push 0
push 2
push 1
push edi
call esi
push 0x40
push 0
push 0
push 2
push 2
push edi
mov dword [ebx + 0x4c], eax
call esi
push 0x40
push 0
push 0
push 2
push 3
push edi
mov dword [ebx + 0x50], eax
call esi
push 0x40
push 0
push 0
push 2
push 5
push edi
mov dword [ebx + 0x54], eax
call esi
push edi
mov dword [ebx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d4906
mov esp, ebp
pop ebp
ret 8