joyce8/EMBER2024-capa huggingface dataset:
Function at 0x642c7980
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x642c79be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x642c79b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x642c79c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x642c79a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x642c7a90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x642c7ac1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x642c7ac1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x642c7ac1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
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
Function at 0x10001000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov dword [ebp - 8], ebx
call edi
push dword [ebp + 8]
mov esi, eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
lea eax, [eax + esi + 6]
push eax
push ebx
push dword [0x1003e140]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100011a9
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
lea eax, [ecx + esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
mov byte [eax], 0x5c
mov byte [eax + 1], bl
call esi
push 0x1003fe7f
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [0x1003e140]
call edi
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0xc], esi
je 0x10001199
mov ecx, dword [ebp + 8]
movsx ax, byte [ecx]
cmp ax, bx
mov word [esi], ax
je 0x100010ac
mov edx, esi
inc ecx
movsx ax, byte [ecx]
inc edx
inc edx
cmp ax, bx
mov word [edx], ax
jne 0x1000109d
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1000118b
mov edi, dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
push ebx
push eax
xor esi, esi
call edi
cmp eax, ebx
je 0x1000117e
push eax
push dword [ebp + 8]
inc esi
call edi
cmp eax, ebx
jne 0x100010d3
cmp esi, ebx
je 0x1000117e
push 4
xor eax, eax
push ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov esi, 0x1003f8c4
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x1000117e
push dword [ebp - 0x14]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1000117e
push 4
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x1000116e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000116e
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov esi, dword [ebp + 0xc]
push esi
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001345
Capabilities:
Check os version

Disassembly:
push esi
xor esi, esi
push esi
push 0x400000
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
cmp eax, esi
mov dword [0x1003e140], eax
jne 0x10001365
push 8
pop eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
push 1
push esi
mov dword [0x1003e020], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x1003e270], eax
je 0x100013c1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1003e260], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x47a
mov dword [0x1003e25c], eax
mov dword [0x1003e268], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [0x1003e258], eax
jne 0x100013bd
or dword [0x1003e258], 0xffffffff
xor eax, eax
jmp 0x100013c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x10001361
push edi
call fcn.10012cfc
cmp eax, esi
jne 0x10001361
push esi
push 0x1003e26c
push esi
call fcn.1001296a
neg eax
sbb eax, eax
neg eax
jne 0x10001361
push dword [0x1003e25c]
xor eax, eax
call fcn.10011ee5
test eax, eax
je 0x10001408
mov dword [0x1003e264], 1
pop esi
jmp fcn.1000e938

Function at 0x100015c1
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 8
pop ebp
mov esi, 0x104
push esi
xor ebx, ebx
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10001680
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000166a
push 0x3a
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
mov byte [esi + 1], bl
push edi
inc esi
inc esi
push 0x100408d6
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000166a
push ebx
lea eax, [esp + 0x14]
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001650
xor ebp, ebp
jmp 0x10001658
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
jne 0x10001672
call fcn.10001588
jmp 0x10001670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001688
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 8
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x1000176f
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
push esi
push esi
call edi
mov ebx, eax
lea eax, [ebx + 0x11]
push eax
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10001776
push esi
inc ebx
push ebx
call edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esi + edi]
push 0x1003f163
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.100129f1
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000175f
cmp dword [ebp + 0x10], ebx
je 0x1000175f
lea eax, [ebp + 8]
push eax
push 0x1003f257
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000175f
movsx ax, byte [0x1003f200]
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov edi, eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10001776
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10001780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
push esi
push 8
pop ebx
push 0x410
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000184a
push edi
lea eax, [ebp - 0xc]
push eax
push 0x1003f257
push SysReAllocString
lea edi, [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jne 0x1000183a
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x104
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x1000182d
cmp dword [ebp - 0x14], 1
jne 0x1000181a
mov eax, dword [ebp - 8]
push dword [ebp + 8]
shr eax, 1
and word [edi + eax*2], bx
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1000181f
inc dword [ebp - 4]
jmp 0x100017cd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000182d
mov dword [eax], edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10001849
push esi
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x10001986
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [0x1003e230]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
jne 0x100019cf
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call esi
push dword [ebp + 8]
mov edi, eax
call fcn.10011e5c
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x10001a78
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x20
mov esi, eax
mov dword [ebp - 4], edi
jb 0x10001ba0
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx + 0x20]
cmp dword [ebp + 8], eax
jne 0x10001ba0
mov eax, esi
cdq
add dword [esi], eax
adc dword [esi + 4], edx
add dword [esi + 8], eax
push dword [esi]
adc dword [esi + 0xc], edx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001b97
mov eax, dword [0x1003e25c]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1003e258]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.1001a103
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x10001ba7
cmp dword [esi + 0x18], edi
je 0x10001b6d
push 0xd80
call fcn.100111bd
mov ecx, eax
cmp ecx, edi
mov dword [ebp - 8], ecx
je 0x10001b6d
push dword [esi + 0x10]
lea ebx, [esi + 0x20]
push dword [esi]
xor eax, eax
push ebx
call fcn.100019d6
test eax, eax
jne 0x10001b5d
test byte [0x1003e264], 1
je 0x10001b5d
push dword [esi + 0x14]
mov ecx, dword [ebp - 8]
push dword [esi + 8]
lea eax, [ebp - 4]
push ebx
call fcn.100019d6
cmp dword [ebp - 4], edi
je 0x10001b5d
push dword [ebp - 4]
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], edi
je 0x10001ba7
mov eax, dword [ebp - 0xc]
push edi
push 0x10040219
call fcn.10012b9a
cmp eax, edi
je 0x10001b8e
push edi
push 0x1003dc6c
call eax
jmp 0x10001ba7
mov dword [ebp + 8], 0x7f
jmp 0x10001ba7
mov dword [ebp + 8], 0xb
jmp 0x10001ba7
mov dword [ebp + 8], 0x57
push 0x400
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
push 0x1004024c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0x10d
call fcn.1000cf33
push esi
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001bf9
Capabilities:
Copy file
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [ecx + eax*2]
push ebp
xor ebx, ebx
call edi
test esi, esi
mov dword [esp + 0x10], eax
je 0x10001c1f
push esi
call edi
mov ebx, eax
push dword [esp + 0x18]
call edi
add eax, dword [esp + 0x10]
add eax, ebx
lea eax, [eax + eax + 6]
push eax
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10001cbc
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x10001c5d
push esi
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100384cc
push edi
call ebx
jmp 0x10001c8f
and word [esi], 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100384cc
push edi
call ebx
lea ebp, [esi + 2]
mov word [esi], 0x5c
push 0x5c
push ebp
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
push ebp
push edi
jne 0x10001c70
call ebx
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10001cc4
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov ebx, 0x1003f417
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x12
xor edi, edi
push edi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x1003f7d8
mov esi, 0x1003f750
push esi
call fcn.10010c47
push 0x12
push edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1003f804
push esi
call fcn.10010c47
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 0x36]
push eax
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001d73
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 0x1003f7a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1003f83c
push esi
call fcn.10010c47
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x20c
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001dcb
push esi
push edi
push edi
push 0x21
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10001dbd
push 0x100384cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x11
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1003f848
push esi
call fcn.10010c47
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], edi
je 0x10001e6e
push dword [0x1003e190]
mov ebx, dword [ebp - 0x10]
call fcn.100109df
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10001df1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, ebx
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], eax
mov dword [eax + 4], edx
mov eax, dword [esi + 0xc]
xor ecx, ecx
sub eax, 0x10
je 0x10001e1d
dec eax
je 0x10001e16
dec eax
jne 0x10001e22
mov ecx, 0x1003f854
jmp 0x10001e22
mov ecx, 0x1003f874
jmp 0x10001e22
mov ecx, 0x1003f8a0
cmp dword [ebp - 4], edi
je 0x10001e36
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10001bf9
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
cmp ebx, eax
jne 0x10001df1
cmp dword [ebp - 4], edi
je 0x10001e6a
push dword [ebp - 4]
push edi
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10001e71
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100023d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
je 0x100023f6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 9]
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10002467
cmp edi, ebx
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
je 0x1000242b
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000242e
mov byte [esi + 8], bl
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1000238e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1000244e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000246e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push dword [0x1003e140]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000246e
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10002730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.10005d67
test eax, eax
jne 0x1000277b
push esi
lea eax, [ebp - 4]
push eax
push dword [0x1003e22c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x10002778
push eax
push eax
push 3
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x10003e3b
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003e218]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.10012e01
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003eb4
add eax, eax
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10003eb4
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x10003ea4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
push eax
xor eax, eax
call fcn.10014918
not eax
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003f10
add eax, eax
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10003f10
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10003f02
mov eax, dword [ebp - 4]
add eax, eax
push eax
mov edx, edi
xor eax, eax
call fcn.10014918
not eax
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor eax, dword [ebp - 0xc]
pop edi
xor eax, dword [ebp - 0x10]
pop ebx
xor eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
leave
ret
Function at 0x10003f36
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003dc20]
push ebx
push esi
push edi
mov edi, dword [0x1003e220]
push 0x28
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
mov dword [ebp - 4], esi
call fcn.10003b3d
test eax, eax
mov dword [ebp - 0xc], eax
mov ebx, 0x1003dc20
mov edi, 0x1003f1ac
jne 0x10003fd0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x10003f93
cmp dword [ebp - 4], esi
je 0x10003fa0
mov esi, 0x1003dc28
call fcn.10003e3b
push 0x28
pop esi
test word [0x1003dc24], 0x8000
jne 0x10003fc7
or word [0x1003dc24], 0x800c
push esi
push ebx
push 3
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1003dc20], 0
jne 0x10004002
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [0x1003dc20], eax
je 0x10003ff8
push 3
push esi
push ebx
push edi
call fcn.10003c41
cmp dword [0x1003dc20], 0
jne 0x10004002
mov dword [0x1003dc20], 0x3e8
cmp dword [0x1003e170], 0
pop edi
pop esi
pop ebx
jne 0x1000405a
push 0x27
push 0
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x1003e170], eax
je 0x1000405a
mov ecx, dword [0x1003dc34]
bswap ecx
push ecx
mov ecx, dword [0x1003dc30]
bswap ecx
push ecx
mov ecx, dword [0x1003dc2c]
bswap ecx
push ecx
mov ecx, dword [0x1003dc28]
bswap ecx
push ecx
push 0x1003f391
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, dword [ebp - 0xc]
leave
ret