joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b7a
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 0x10001ba0
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 [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10001c3f
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 0x10001bde
push esi
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x1002740c
push edi
call ebx
jmp 0x10001c12
xor eax, eax
mov word [esi], ax
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x1002740c
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 0x10001bf1
call ebx
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10001c47
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, 0x1002e472
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 0x1002e798
mov esi, 0x1002e710
push esi
call fcn.100101da
push 0x12
push edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1002e7c4
push esi
call fcn.100101da
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 0x36]
push eax
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001cf6
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 0x1002e764
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002e7fc
push esi
call fcn.100101da
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x20c
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001d4e
push esi
push edi
push edi
push 0x21
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10001d40
push 0x1002740c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x11
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002e808
push esi
call fcn.100101da
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], edi
je 0x10001df1
push dword [0x1002d170]
mov ebx, dword [ebp - 0x10]
call fcn.1000ff71
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10001d74
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 0x10001da0
dec eax
je 0x10001d99
dec eax
jne 0x10001da5
mov ecx, 0x1002e814
jmp 0x10001da5
mov ecx, 0x1002e834
jmp 0x10001da5
mov ecx, 0x1002e860
cmp dword [ebp - 4], edi
je 0x10001db9
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10001b7a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
cmp ebx, eax
jne 0x10001d74
cmp dword [ebp - 4], edi
je 0x10001ded
push dword [ebp - 4]
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10001df4
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100023f9
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 0x10002418
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 9]
push eax
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10002489
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp edi, ebx
je 0x1000244d
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10002450
mov byte [esi + 8], bl
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x100023b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x10002470
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002490
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push dword [0x1002d128]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10002490
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10002962
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x1002e2b8
xor esi, esi
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
cmp ebx, esi
jne 0x10002a1c
push edi
push esi
lea eax, [ebp - 4]
push eax
push dword [0x1002d460]
push dword [ebp - 8]
call fcn.100130e6
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, eax
cmp ebx, esi
jne 0x100029bc
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002a01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x1002d460]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x10002a01
mov eax, dword [0x1002d508]
cmp eax, esi
je 0x100029f9
push eax
push esi
push dword [0x1002d128]
call edi
mov eax, dword [ebp + 8]
mov dword [0x1002d508], eax
cmp dword [ebp - 4], esi
je 0x10002a12
push dword [ebp - 4]
push esi
push dword [0x1002d128]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10002a24
Capabilities:
Access pe header
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1000
mov eax, dword [0x1002d240]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
jbe 0x10002bbd
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10002bbd
push 8
pop ebx
push 0x10000
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10002bc0
push 0x1002e45d
call fcn.1000ff71
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10002bac
push dword [0x1002d468]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov eax, 0x2000
mov dword [ebp - 4], 0x1002f904
test word [ecx + 0x16], ax
jne 0x10002ac7
mov dword [ebp - 4], 0x1002f8f8
mov eax, dword [0x1002d138]
test eax, eax
je 0x10002ade
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1002d138], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002d464]
call fcn.100028e9
mov ebx, eax
test ebx, ebx
je 0x10002b32
lea eax, [ebp - 0x10]
push eax
push 0x1002d464
call fcn.10012bb0
test eax, eax
je 0x10002b2e
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002d464]
call fcn.100028e9
mov ebx, eax
test ebx, ebx
jne 0x10002b9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [0x1002d138], eax
mov eax, 0x2000
test word [ecx + 0x16], ax
je 0x10002b78
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push 1
call fcn.1001365c
test eax, eax
je 0x10002b70
push dword [ebp + 8]
push esi
call fcn.10012bf7
mov edi, eax
test edi, edi
jne 0x10002b7a
push 8
pop ebx
jmp 0x10002b7a
mov edi, dword [ebp + 8]
push 0x7f
pop ebx
jmp 0x10002b7a
mov edi, esi
test ebx, ebx
jne 0x10002b9b
push 1
push edi
call fcn.10002962
mov ebx, eax
cmp edi, esi
je 0x10002b9b
push edi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x14]
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10002bc0
push 0xb
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10003a39
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.1001306e
cmp eax, 0x57
jne 0x10003a58
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
push 0x1002e2b8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003b14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [0x1002d460]
push dword [ebp - 0xc]
call fcn.100130e6
test eax, eax
jne 0x10003b0b
push dword [ebp - 8]
call fcn.10001747
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, eax
cmp edi, ebx
je 0x10003ae2
cmp dword [ebp - 4], ebx
jne 0x10003ad1
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10003aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10003ad8
mov dword [0x1002d138], eax
jmp 0x10003ad8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
push dword [0x1002d128]
call esi
cmp dword [ebp - 4], ebx
je 0x10003b03
push dword [ebp - 8]
push ebx
push dword [0x1002d128]
call esi
push dword [0x1002d460]
push dword [ebp - 0xc]
call fcn.10013220
jmp 0x10003b0b
mov eax, dword [ebp - 8]
mov dword [0x1002d508], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002c4ec]
push ebx
push esi
push edi
mov edi, dword [0x1002d1e8]
push 0x28
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
mov dword [ebp - 4], esi
call fcn.10003c61
mov dword [ebp - 0xc], eax
mov ebx, 0x1002c4ec
mov edi, 0x1002e1b6
test eax, eax
jne 0x10003f6f
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 0x10003f2e
cmp dword [ebp - 4], esi
je 0x10003f3b
mov esi, 0x1002c4f4
call fcn.10015ecf
push 0x28
pop esi
test dword [0x1002c4f0], 0x8000
jne 0x10003f66
push esi
push ebx
push 3
push 0
push edi
push dword [ebp - 8]
mov eax, 0x801c
or word [0x1002c4f0], 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 [0x1002c4ec], 0
jne 0x10003fa1
mov eax, dword [ebp - 0x10]
mov dword [0x1002c4ec], eax
test eax, eax
je 0x10003f97
push 3
push esi
push ebx
push edi
call fcn.10003d65
cmp dword [0x1002c4ec], 0
jne 0x10003fa1
mov dword [0x1002c4ec], 0x3e8
cmp dword [0x1002d2d8], 0
jne 0x10003fec
push 0x27
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10003fe6
mov eax, dword [0x1002c500]
bswap eax
push eax
mov eax, dword [0x1002c4fc]
bswap eax
push eax
mov eax, dword [0x1002c4f8]
bswap eax
push eax
mov eax, dword [0x1002c4f4]
bswap eax
push eax
push 0x1002e3dc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [0x1002d2d8], esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000437c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
push dword [0x1002d1f4]
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000441a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1002f1ce
push edi
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x1000440f
push dword [ebp - 4]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000440f
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100043ff
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.100141e2
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret
Function at 0x1000476a
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.10003c61
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x100048d7
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, 0x105
push esi
push ebx
push dword [0x1002d128]
mov dword [ebp - 4], 8
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x100048cd
push esi
push ebx
push dword [0x1002d128]
mov dword [ebp - 0x18], esi
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100048bd
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 0x1000484f
cmp dword [ebp - 0x14], esi
jbe 0x10004813
inc dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x10004887
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jbe 0x100048ad
push dword [ebp - 0xc]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
push eax
push ebx
push dword [0x1002d128]
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1000480e
mov dword [ebp - 4], 8
jmp 0x100048ad
cmp eax, ebx
jne 0x100048a1
cmp dword [ebp + 0x10], ebx
je 0x1000486a
mov edx, dword [ebp - 0xc]
push ebx
push dword [0x1002d240]
push dword [ebp - 8]
call fcn.1001418f
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 0x100048a1
push ebx
push dword [0x1002d23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100047d4
jmp 0x100048ad
cmp dword [ebp - 4], 0x103
jne 0x100048ad
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1002d128]
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
Function at 0x100060f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x1002d19c]
mov ebx, 0x10025e6d
mov eax, 0x10025e8e
sub eax, ebx
imul esi, eax
add esi, dword [0x1002d198]
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 0x10006187
mov ecx, dword [0x1002cf18]
mov eax, esi
sub eax, ebx
mov dword [eax + 0x10025e7b], esi
mov dword [eax + 0x10025e8a], edi
movzx ebx, byte [ecx + 2]
mov ebx, dword [edi + ebx*4]
lea edx, [eax + 0x10025e86]
sub ebx, edx
sub ebx, 4
mov dword [edx], ebx
lea eax, [eax + 0x10025e80]
mov edx, 0x1000600a
sub edx, eax
sub edx, 4
mov dword [eax], edx
movzx eax, byte [ecx + 2]
mov dword [edi + eax*4], esi
inc dword [0x1002d19c]
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 0x1000633b
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 0x10006369
mov dword [ebp - 4], 0xb
jmp 0x10006460
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.10012279
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x1000639c
push dword [ebp - 0xc]
call fcn.10007cb7
push dword [ebp - 0xc]
mov ebx, eax
push 0
push dword [0x1002d128]
shr ebx, 0x10
call edi
push 5
xor ecx, ecx
mov eax, 0x1002ca24
pop edx
cmp bl, byte [eax]
jb 0x100063ac
mov ecx, eax
add eax, 5
dec edx
jne 0x100063a6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [0x1002cf18], ecx
call fcn.10003cc6
test eax, eax
jne 0x10006404
cmp dword [ebp - 0x14], 8
jne 0x10006404
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x10]
cmp ecx, dword [ebx + 0x58]
jne 0x100063f3
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100063f3
cmp ecx, dword [ebx + 0x50]
jae 0x100063f3
mov esi, ecx
add esi, dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
push 0
push dword [0x1002d128]
call edi
test esi, esi
jne 0x10006452
jmp 0x10006407
mov ebx, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1002d198], eax
test eax, eax
je 0x1000645f
mov eax, dword [ebp + 0xc]
mov dword [0x1002cf14], eax
mov eax, dword [ebx + 0x58]
mov dword [0x1002cf0c], eax
mov eax, dword [ebp + 8]
mov dword [0x1002cf10], eax
push eax
lea eax, [ebp - 8]
call fcn.1000618c
test eax, eax
je 0x1000644f
and dword [ebp - 4], 0
jmp 0x1000645f
mov esi, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, esi
call fcn.10005f63
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x1000716f
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 0x1002e86c
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 [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10007258
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 0x10007243
push ebx
push dword [0x1002d23c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10007248
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10007238
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
cmp eax, 0x10
jae 0x10007238
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.100101da
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 0x100071eb
push dword [ebp - 4]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100073bb
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, 0x1002d284
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 0x10007489
push 1
push 0x1002e44b
lea eax, [ebp - 0xc]
call fcn.1001168f
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10007477
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 0x1000745c
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 0x10007465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000747e
mov dword [ebp - 4], 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007492
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 0x1000749c
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.1000ff71
mov edi, eax
cmp edi, esi
je 0x10007513
push edi
call fcn.1001237a
mov ebx, eax
cmp ebx, esi
je 0x10007502
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 0x10007503
push edi
call fcn.100012ff
cmp dword [ebp - 8], esi
je 0x10007513
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 0x10007581
mov eax, dword [0x1002d23c]
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 0x10007562
mov dword [ebp - 0xc], 0x102
jmp 0x1000756f
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 0x1000758a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
je 0x10007597
push dword [ebp - 8]
call fcn.100012ff
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4