joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e79a970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
lea ebp, [esp + 0x44]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x78]
lea eax, [edx + 0x6c]
mov dword [esp], eax
call fcn.6e80f920
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], 0
call fcn.6e79be10
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.6e7d0a60
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
jne 0x6e79aa88
cmp dword [esp + 0x38], 0xffffffff
sete al
test edi, edi
je 0x6e79aa42
test al, al
jne 0x6e79aa60
cmp dl, al
jne 0x6e79aa50
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x6e79aa42
mov eax, dword [edi]
mov byte [esp + 0x38], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x38]
cmp eax, 0xffffffff
sete al
jmp 0x6e79aa42
mov ebp, eax
xor edx, edx
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jb 0x6e79aa32
mov eax, dword [esi]
mov byte [esp + 0x3c], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x3c]
cmp eax, 0xffffffff
mov eax, 0
cmove edx, ebp
cmove esi, eax
jmp 0x6e79aa32
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 [0x1002b100]
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
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 0x1002ce07
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [0x1002b100]
call edi
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, ebx
je 0x10001199
mov ecx, dword [ebp + 8]
movsx ax, byte [ecx]
mov word [esi], ax
cmp ax, bx
je 0x100010ac
mov edx, esi
inc ecx
movsx ax, byte [ecx]
inc edx
inc edx
mov word [edx], ax
cmp ax, bx
jne 0x1000109d
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov dword [ebp + 8], eax
cmp eax, ebx
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, 0x1002c8b8
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
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 [0x1002b100]
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
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]
mov dword [0x1002b100], eax
cmp eax, esi
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 [0x1002aee0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1002b220], eax
cmp eax, esi
je 0x100013c1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1002b210], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x47a
mov dword [0x1002b20c], eax
mov dword [0x1002b218], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1002b208], eax
cmp eax, esi
jne 0x100013bd
or dword [0x1002b208], 0xffffffff
xor eax, eax
jmp 0x100013c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x10001361
push edi
call fcn.1000f8c8
cmp eax, esi
jne 0x10001361
push esi
push 0x1002b21c
push esi
call fcn.10010606
neg eax
sbb eax, eax
neg eax
jne 0x10001361
push dword [0x1002b20c]
xor eax, eax
call fcn.1000fb81
test eax, eax
je 0x10001408
mov dword [0x1002b214], 1
test byte [0x1002b214], 1
je 0x10001416
call fcn.100218db
pop esi
jmp fcn.1000cc26

Function at 0x100015cf
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x1000168e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10001678
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 0x1002d8a4
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 0x10001678
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 0x1000165e
xor ebp, ebp
jmp 0x10001666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
jne 0x10001680
call fcn.10001596
jmp 0x1000167e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001696
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 0x10001780
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10001787
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 0x1002c150
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.1001068d
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001770
cmp dword [ebp + 0x10], ebx
je 0x10001770
lea eax, [ebp + 8]
push eax
push 0x1002c235
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001770
movsx ax, byte [0x1002c1de]
movzx eax, ax
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10001787
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10001791
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x208
push esi
xor ebx, ebx
push ebx
push dword [0x1002b100]
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10001891
push esi
push ebx
push dword [0x1002b100]
call edi
mov edi, eax
cmp edi, ebx
je 0x1000187c
lea eax, [ebp - 0x14]
push eax
push 0x1002c235
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1000186a
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10001861
cmp dword [ebp - 0x1c], 1
jne 0x10001842
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
push edi
mov word [edi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10001847
inc dword [ebp - 8]
jmp 0x100017f5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10001856
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10001861
mov dword [eax], edi
xor edi, edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1000187c
push edi
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], ebx
je 0x10001891
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100019cf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [0x1002b1d4]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
jne 0x10001a18
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.1000faf8
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 0x10001ac3
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 0x10001beb
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 0x10001beb
mov eax, esi
cdq
add dword [esi], eax
adc dword [esi + 4], edx
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001be2
mov eax, dword [0x1002b20c]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1002b208]
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.1001faee
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10001bf2
cmp dword [esi + 0x18], edi
je 0x10001bb8
push 0xd80
call fcn.1000ebd5
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, edi
je 0x10001bb8
push dword [esi + 0x10]
lea ebx, [esi + 0x20]
push dword [esi]
xor eax, eax
push ebx
call fcn.10001a1f
test eax, eax
jne 0x10001ba8
test byte [0x1002b214], 1
je 0x10001ba8
push dword [esi + 0x14]
mov ecx, dword [ebp - 8]
push dword [esi + 8]
lea eax, [ebp - 4]
push ebx
call fcn.10001a1f
cmp dword [ebp - 4], edi
je 0x10001ba8
push dword [ebp - 4]
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], edi
je 0x10001bf2
mov eax, dword [ebp - 0xc]
push edi
push 0x1002d1a1
call fcn.10010875
cmp eax, edi
je 0x10001bd9
push edi
push 0x1002ab1c
call eax
jmp 0x10001bf2
mov dword [ebp + 8], 0x7f
jmp 0x10001bf2
mov dword [ebp + 8], 0xb
jmp 0x10001bf2
mov dword [ebp + 8], 0x57
push 0x400
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
push 0x1002d1d4
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.1000b118
push esi
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001c44
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
mov dword [esp + 0x10], eax
test esi, esi
je 0x10001c6a
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 [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10001d09
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
test esi, esi
je 0x10001ca8
push esi
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100253dc
push edi
call ebx
jmp 0x10001cdc
xor eax, eax
mov word [esi], ax
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100253dc
push edi
call ebx
push 0x5c
pop eax
lea ebp, [esi + 2]
mov word [esi], ax
push 0x5c
push ebp
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
push ebp
push edi
test esi, esi
jne 0x10001cbb
call ebx
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10001d11
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, 0x1002c3f5
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 0x1002c7d8
mov esi, 0x1002c750
push esi
call fcn.1000e691
push 0x12
push edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1002c800
push esi
call fcn.1000e691
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 0x36]
push eax
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001dc0
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 0x1002c7a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002c838
push esi
call fcn.1000e691
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x20c
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001e18
push esi
push edi
push edi
push 0x21
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10001e0a
push 0x100253dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x11
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002c844
push esi
call fcn.1000e691
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], edi
je 0x10001ebb
push dword [0x1002b14c]
mov ebx, dword [ebp - 0x10]
call fcn.1000e428
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10001e3e
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 0x10001e6a
dec eax
je 0x10001e63
dec eax
jne 0x10001e6f
mov ecx, 0x1002c850
jmp 0x10001e6f
mov ecx, 0x1002c870
jmp 0x10001e6f
mov ecx, 0x1002c894
cmp dword [ebp - 4], edi
je 0x10001e83
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10001c44
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
cmp ebx, eax
jne 0x10001e3e
cmp dword [ebp - 4], edi
je 0x10001eb7
push dword [ebp - 4]
push edi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10001ebe
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100024ac
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
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x100024cb
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 9]
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1000253c
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp edi, ebx
je 0x10002500
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10002503
mov byte [esi + 8], bl
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x10002463
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x10002523
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002543
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10002543
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10003abc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002a5c0]
push ebx
push esi
push edi
mov edi, dword [0x1002b1c4]
push 0x28
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
mov dword [ebp - 4], esi
call fcn.1000395f
mov dword [ebp - 0xc], eax
mov ebx, 0x1002a5c0
mov edi, 0x1002c199
test eax, eax
jne 0x10003b5a
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]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10003b19
cmp dword [ebp - 4], esi
je 0x10003b26
mov esi, 0x1002a5c8
call fcn.1000d86c
push 0x28
pop esi
test dword [0x1002a5c4], 0x8000
jne 0x10003b51
push esi
push ebx
push 3
push 0
push edi
push dword [ebp - 8]
mov eax, 0x805c
or word [0x1002a5c4], ax
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 [0x1002a5c0], 0
jne 0x10003b8c
mov eax, dword [ebp - 0x10]
mov dword [0x1002a5c0], eax
test eax, eax
je 0x10003b82
push 3
push esi
push ebx
push edi
call fcn.10003a63
cmp dword [0x1002a5c0], 0
jne 0x10003b8c
mov dword [0x1002a5c0], 0x3e8
cmp dword [0x1002b1f0], 0
jne 0x10003bd7
push 0x27
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10003bd1
mov eax, dword [0x1002a5d4]
bswap eax
push eax
mov eax, dword [0x1002a5d0]
bswap eax
push eax
mov eax, dword [0x1002a5cc]
bswap eax
push eax
mov eax, dword [0x1002a5c8]
bswap eax
push eax
push 0x1002c36f
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [0x1002b1f0], esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.1000395f
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x100042b5
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, 0x105
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 4], 8
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x100042ab
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x18], esi
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000429b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp eax, 0xea
jne 0x1000422d
cmp dword [ebp - 0x14], esi
jbe 0x100041f1
inc dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x10004265
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jbe 0x1000428b
push dword [ebp - 0xc]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
push eax
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x100041ec
mov dword [ebp - 4], 8
jmp 0x1000428b
cmp eax, ebx
jne 0x1000427f
cmp dword [ebp + 0x10], ebx
je 0x10004248
mov edx, dword [ebp - 0xc]
push ebx
push dword [0x1002b224]
push dword [ebp - 8]
call fcn.10011b12
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1000427f
push ebx
push dword [0x1002b220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100041b2
jmp 0x1000428b
cmp dword [ebp - 4], 0x103
jne 0x1000428b
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc