joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fc55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001f4df
xor ebx, ebx
cmp dword [0x10042204], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000fd2a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000fc95
xor eax, eax
jmp 0x1000fdee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002eadc
push edi
call esi
cmp eax, ebx
je 0x1000fc8e
push eax
call fcn.100031f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10042204], eax
call esi
push eax
call fcn.100031f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10042208], eax
call esi
push eax
call fcn.100031f1
mov dword [0x1004220c], eax
lea eax, [ebp - 8]
push eax
call fcn.1001f5f4
test eax, eax
pop ecx
pop ecx
je 0x1000fcf8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c006
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000fd2a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100031f1
cmp eax, ebx
pop ecx
mov dword [0x10042214], eax
je 0x1000fd2a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100031f1
pop ecx
mov dword [0x10042210], eax
mov eax, dword [0x10042210]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1000fda3
cmp dword [0x10042214], esi
je 0x1000fda3
push eax
call fcn.1001a438
pop ecx
call eax
cmp eax, ebx
je 0x1000fd70
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10042214]
call fcn.1001a438
pop ecx
call eax
test eax, eax
je 0x1000fd70
test byte [ebp - 0x18], 1
jne 0x1000fda3
lea eax, [ebp - 0xc]
push eax
call fcn.10012dbb
test eax, eax
pop ecx
je 0x1000fd8b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c006
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000fd9a
or dword [ebp + 0x10], 0x200000
jmp 0x1000fdd4
or dword [ebp + 0x10], 0x40000
jmp 0x1000fdd4
mov eax, dword [0x10042208]
cmp eax, esi
je 0x1000fdd4
push eax
call fcn.1001a438
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000fdd4
mov eax, dword [0x1004220c]
cmp eax, esi
je 0x1000fdd4
push dword [ebp - 4]
push eax
call fcn.1001a438
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10042204]
call fcn.1001a438
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001156b
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov bl, byte [esp + 8]
push ebp
test bl, bl
push esi
sete al
push edi
mov esi, ecx
push eax
push 0x1003fdf4
push 0x6090b5cb
call fcn.1000f13a
push eax
mov ecx, esi
call fcn.1000195a
lea edi, [esi + 0x1d]
mov ecx, edi
mov dword [esi], vtable.CDistrDownloader.0
mov byte [esi + 0x1c], bl
call fcn.100059b5
push 0x1003fde0
xor ebp, ebp
push 0x3abbcaa7
mov dword [esi + 0x18], ebp
call fcn.1000f13a
push eax
mov ebx, 0x7962
push ebx
push ebp
push 4
push ebp
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebp
mov dword [esi + 0x10], eax
je 0x100115e2
push ebp
push ebp
push ebp
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x18], eax
mov byte [edi], 0
inc edi
dec ebx
jne 0x100115e2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100121df
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
mov edi, ecx
push eax
mov dword [ebp - 0x10], edi
xor bl, bl
mov dword [ebp - 0xc], esi
call fcn.10003347
test al, al
je 0x100122ea
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
add edi, 6
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x100122ea
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1001761b
mov ebx, edi
mov esi, eax
shr ebx, 1
lea eax, [ebx + 1]
push eax
call fcn.1001761b
pop ecx
pop ecx
push 0
mov byte [esi + edi], 0
mov dword [ebp - 4], eax
mov byte [ebx + eax], 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea edi, [ebx - 1]
mov al, byte [esi + edx*2]
mov cl, byte [esi + edx*2 + 1]
cmp al, 0x41
setl bl
dec bl
and bl, 7
add bl, 0x30
sub al, bl
shl al, 4
cmp cl, 0x41
setl bl
dec bl
and bl, 7
add bl, 0x30
sub cl, bl
and cl, 0xf
or al, cl
mov ecx, dword [ebp - 4]
xor al, dl
mov byte [edx + ecx], al
inc edx
cmp edx, edi
jbe 0x10012286
mov edi, dword [ebp - 0x10]
add edi, 0x210
push ecx
mov ecx, edi
call fcn.10007871
push dword [ebp - 4]
call fcn.1000e77a
push esi
call fcn.1000e77a
pop ecx
pop ecx
push edi
call fcn.10013a2c
mov bl, 1
push dword [ebp - 0xc]
call fcn.10014a05
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10012341
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
call fcn.10018718
and word [ebp - 0x208], 0
mov esi, eax
test esi, esi
je 0x100123ae
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
xor eax, eax
test ecx, ecx
jbe 0x10012391
xor byte [ebp + eax - 0x208], al
inc eax
cmp eax, ecx
jb 0x10012385
push ecx
lea eax, [ebp - 0x208]
push eax
push 3
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 8

Function at 0x10013867
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10013989
cmp dword [ebp + 0xc], esi
je 0x10013989
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10013989
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10013980
mov eax, dword [ebp + 0xc]
push ebx
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001761b
push dword [ebp - 8]
mov ebx, eax
call fcn.1001761b
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x1001396f
cmp eax, esi
je 0x1001396f
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x18], esi
push esi
jmp 0x10013962
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0xc]
inc dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x1001392b
pop edi
push ebx
call fcn.1000e77a
push dword [ebp - 0x1c]
call fcn.1000e77a
pop ecx
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 8
Function at 0x100147b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
mov byte [ebp - 1], 0
je 0x10014821
push edi
mov edi, dword [ebx]
call fcn.10018718
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x10014820
lea ecx, [ebp + 0x10]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [ebp + 0x10], edi
call esi
test eax, eax
jne 0x10014817
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [ebx], eax
ja 0x10014817
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x1001520c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10015268
push ebx
push ebx
push ebx
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x1001543a
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi]
test al, al
jne 0x100155f2
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov word [ebp - 0x18], 0x73
mov word [ebp - 0x16], 0x61
mov word [ebp - 0x14], 0x76
mov word [ebp - 0x12], 0x65
mov word [ebp - 0x10], 0x6f
mov word [ebp - 0xe], 0x6c
mov word [ebp - 0xc], 0x64
mov word [ebp - 0xa], si
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.10018718
cmp eax, esi
mov dword [ebp - 4], eax
mov word [ebp - 0x224], si
je 0x100155f0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x10015530
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
xor eax, eax
cmp ecx, esi
jbe 0x10015508
xor byte [ebp + eax - 0x224], al
inc eax
cmp eax, ecx
jb 0x100154fc
test bl, bl
je 0x10015514
mov byte [edi], 1
jmp 0x100155e7
push ecx
lea eax, [ebp - 0x224]
push eax
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100155e7
cmp eax, esi
jne 0x100155e7
xor eax, eax
cmp dword [ebp - 8], esi
jbe 0x1001554c
xor byte [ebp + eax - 0x224], al
inc eax
cmp eax, dword [ebp - 8]
jb 0x1001553f
cmp byte [ebp + 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x100155c5
test bl, bl
jne 0x100155c5
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100155c5
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [ebp - 0x224]
push eax
call edi
lea eax, [eax + eax + 2]
xor ecx, ecx
test eax, eax
jbe 0x100155a1
xor byte [ebp + ecx - 0x224], cl
inc ecx
cmp ecx, eax
jb 0x10015595
push eax
lea eax, [ebp - 0x224]
push eax
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call esi
lea eax, [ebp - 0x224]
push eax
call edi
cmp eax, 0x104
jge 0x100155e1
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp + 8]
mov byte [eax], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
leave
ret 0x10
Function at 0x10016b5f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
push edi
call fcn.1000b36d
push eax
push dword [0x1003fe58]
call fcn.10003437
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x624]
push eax
push dword [0x1003fe58]
xor edi, edi
mov word [ebp - 0x624], di
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.rundll32.exe__
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
push 0x1002ec7c
lea eax, [ebp - 0x214]
push eax
call esi
push 0x1002f37c
lea eax, [ebp - 0x214]
push eax
call esi
push 0x1c
call fcn.1001db04
mov esi, eax
cmp esi, edi
pop ecx
je 0x10016c21
push 1
lea eax, [ebp - 0x214]
push eax
call fcn.10019587
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
mov ecx, esi
call fcn.10002b0c
mov esi, eax
jmp 0x10016c23
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x2001b
push edi
mov word [ebp - 4], 0x30
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016c76
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [esi + 0x10]
push 1
push edi
push dword [esi + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10016c6b
mov word [ebp - 4], 0x32
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10016c7c
mov word [ebp - 4], 0x31
mov ecx, esi
mov word [ebp - 2], di
call fcn.1001288d
push esi
call fcn.1001aed3
pop ecx
push edi
call fcn.1000d4bb
push ebx
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.10025c20
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call fcn.10001d05
mov esi, 0x1002f23c
push esi
call fcn.1000d4bb
lea eax, [ebp - 0x41c]
push eax
call fcn.1000d4bb
push esi
call fcn.1000d4bb
lea eax, [ebp - 4]
push eax
call fcn.1000d4bb
push esi
call fcn.1000d4bb
push 0x10030574
call fcn.1000d4bb
call fcn.10023cc5
test al, al
jne 0x10016d89
push edi
push dword [0x1003fe58]
push 0x10019d34
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push edi
push edi
push 0x400
push 0xffff
mov dword [ebp - 0xc], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call ebx
call fcn.10005798
test al, al
jne 0x10016d79
lea eax, [ebp - 0x82c]
push 0x1002e5ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x82c]
push eax
call fcn.1000bca4
push edi
push edi
push 0x400
push 0xffff
call esi
push 0xbb8
call ebx
call fcn.10005798
test al, al
jne 0x10016d79
call fcn.10020630
cmp dword [ebp - 0xc], edi
je 0x10016d8e
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x10016d8e
call fcn.10020630
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10017685
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x10]
call fcn.1000e5dd
xor edi, edi
push edi
push 0x10040620
push 0x4abce035
call fcn.1000f13a
push eax
mov ecx, esi
call fcn.1000195a
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi], vtable.CMemMappedMap.0
mov dword [esi + 0x20], edi
call fcn.100171b4
push 0x10040634
push 0x2ed6197f
call fcn.1000f13a
push eax
push 0xf4240
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
push edi
push edi
push 6
push eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x10019599
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x14]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
lea eax, [esi + 2]
push eax
call fcn.1001761b
mov edi, eax
test edi, edi
pop ecx
je 0x100195f1
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ecx, ecx
test esi, esi
jbe 0x100195db
mov al, byte [ecx + edi]
xor al, cl
nop
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x100195cd
push 3
push esi
push edi
push dword [esp + 0x1c]
call fcn.10005dbb
push edi
mov bl, al
call fcn.1000e77a
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret 8

Function at 0x10019d4b
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.1000cbb6
lea eax, [esi + 0x10]
push eax
xor eax, eax
push eax
push esi
push 0x10006cb3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10019d6b
pop esi
ret
Function at 0x1001a18a
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], edi
je 0x1001a2b4
push esi
push ebx
call fcn.1001761b
pop ecx
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a2ac
lea eax, [ebx + 1]
push eax
call fcn.1001761b
mov edi, eax
test edi, edi
pop ecx
je 0x1001a272
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.10025c20
and dword [ebp + 8], 0
add esp, 0xc
test ebx, ebx
jbe 0x1001a223
mov eax, dword [ebp + 8]
movzx eax, byte [eax + esi]
push eax
call fcn.10019b00
test eax, eax
pop ecx
je 0x1001a263
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jb 0x1001a209
mov dword [ebp + 8], ebx
xor edx, edx
shr dword [ebp + 8], 1
je 0x1001a263
mov al, byte [esi + edx*2]
mov cl, byte [esi + edx*2 + 1]
cmp al, 0x41
sbb bl, bl
and bl, 0xf9
add bl, 0x37
sub al, bl
shl al, 4
cmp cl, 0x41
sbb bl, bl
and bl, 0xf9
add bl, 0x37
sub cl, bl
and cl, 0xf
or al, cl
nop
mov cl, dl
xor cl, al
mov byte [edx + edi], cl
inc edx
cmp edx, dword [ebp + 8]
jb 0x1001a22d
push edi
call fcn.1000475a
neg al
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 8], eax
jbe 0x1001a282
xor byte [eax + esi], al
inc eax
cmp eax, dword [ebp - 8]
jb 0x1001a279
push esi
call fcn.10013495
neg al
sbb eax, eax
and eax, 2
or dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 2
cmp al, 2
jne 0x1001a2ac
push esi
call fcn.1001e212
neg al
sbb eax, eax
and eax, 4
or dword [ebp - 4], eax
push esi
call fcn.1000e77a
pop ecx
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4

Function at 0x1001a49b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push eax
push 0x1c
push eax
mov word [edi], ax
mov word [ebp - 0x208], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [ebp + 0xc]
mov esi, 0x7fffffff
cmp ebx, esi
ja 0x1001a4f2
lea eax, [ebp - 0x208]
push eax
push ebx
push edi
call fcn.10007472
cmp ebx, esi
ja 0x1001a4f2
push 0x10030218
push ebx
push edi
call fcn.10019b44
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001a73a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.100247dc
test al, al
je 0x1001a84d
and word [ebp - 0x660], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0x660]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..
lea eax, [ebp - 0x660]
push eax
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1001a844
and word [ebp - 0x208], 0
push ebx
lea eax, [ebp - 0x208]
push eax
call edi
push 0x10030218
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push eax
call esi
mov eax, dword [ebp - 0x458]
and eax, 0x10
cmp al, 0x10
jne 0x1001a816
push 0x1002e688
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1001a808
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x1001a823
lea eax, [ebp - 0x208]
push eax
call fcn.1001a73a
jmp 0x1001a823
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x458]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001a7a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
push ebx
call fcn.100247dc
dec al
neg al
pop ebx
sbb eax, eax
inc eax
leave
ret 4

Function at 0x1001aae7
Capabilities:
Set global application hook

Disassembly:
call fcn.10001dab
call fcn.1001da07
push 0
push dword [0x1003fe58]
push 0x10019d34
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push 0
push 0x400
push 0xffff
mov dword [0x1003fe54], eax
call dword [sym.imp.USER32.dll_PostMessageW]
ret