joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x100193e4]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x100193e8]
je 0x10005d3e
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x10005d0f
test al, al
jne 0x10005c95
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10005da0
test al, al
je 0x10005d3e
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10005d0c
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10005d0c
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005d0c
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10005d53
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10005d0c
sub ecx, 4
add eax, 4
jmp 0x10005cf8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x100193e8]
jne 0x10005c63
test al, al
je 0x10005d3e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 4
Function at 0x10005da0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005df3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10005e06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x10005e3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10005e7b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005e74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005e74
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10005e9b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 8

Function at 0x10005fe0
Capabilities:
Create thread

Disassembly:
cmp dword [0x1001e9f0], 0
je 0x10006026
mov eax, dword [0x1001e984]
push 0x10023a9c
mov dword [0x10019440], eax
xor eax, eax
push eax
push 0x1001943c
push 0x10006180
push eax
push eax
mov dword [0x10019448], eax
mov dword [0x1001944c], eax
mov dword [0x10019450], eax
mov dword [0x10019454], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10019444], eax
ret
Function at 0x10006030
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x10015018]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1001ea00], 0
push esi
push edi
mov esi, ecx
je 0x1000606b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x1001ea00]
cmp eax, dword [ecx]
jne 0x10006164
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi*4 + 0x10019448]
cmp eax, 0x1388
jb 0x10006095
call edi
mov dword [esi*4 + 0x10019448], eax
mov dword [esi*4 + 0x10019450], 0
inc dword [esi*4 + 0x10019450]
cmp dword [esi*4 + 0x10019450], 0x19
jbe 0x10006164
cmp dword [0x1001e9fc], 0
jne 0x10006164
call edi
mov esi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x1001e9fc], eax
mov word [esp + 8], 0x5c1
call esi
and eax, 0x800000ff
jns 0x100060db
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x10015284], 0xffffffff
mov byte [esp + 0xa], al
mov word [esp + 0xb], 0x9d2
je 0x100060f8
cmp byte [0x100192b8], 0
jne 0x10006115
lea eax, [esp + 8]
call fcn.10002d40
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov word [esp + 0x10], 0x85c1
call esi
and eax, 0x800000ff
jns 0x1000612c
dec eax
or eax, 0xffffff00
inc eax
push 0x40
lea edx, [esp + 0x19]
push 0
push edx
mov byte [esp + 0x1e], al
mov word [esp + 0x1f], 0x9d2
call sub.MSVCR100.dll_memset
push 0x40
lea eax, [esp + 0x65]
push 0
push eax
call sub.MSVCR100.dll_memset
movzx ecx, byte [esp + 0x29]
add esp, 0x18
lea edx, [esp + 0x10]
call fcn.10001730
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret

Function at 0x10006330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100063a3
lea ecx, [ebp - 8]
push ecx
push 0x1001eb1c
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.LangSelection
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006399
push 0x10012664
push 0x10
push 0x1001eb1c
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x100066c0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100067ea
push 0x104
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100067e3
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x418]
call fcn.1000b7b0
add esp, 4
test al, al
je 0x100067e3
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x458]
call fcn.10005c20
test al, al
jne 0x10006766
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
lea eax, [ebp - 0x458]
push eax
push 1
call fcn.10003940
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x458]
call fcn.10005ef0
test al, al
jne 0x100067a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
lea edx, [ebp - 0x458]
push edx
push 2
call fcn.10003940
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
call fcn.10004810
test al, al
jne 0x100067e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
lea eax, [ebp - 0x458]
push eax
push 5
call fcn.10003940
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret

Function at 0x10006b80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000d840
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea ecx, [ebp - 0x1008]
xor ebx, ebx
push ecx
mov dword [ebp - 0x100c], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x10006bd2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x100c]
shr eax, 2
mov dword [ebp - 0x1010], eax
cmp eax, ebx
jle 0x10006c43
mov esi, dword [ebp + ebx*4 - 0x1008]
test esi, esi
je 0x10006c3e
lea edi, [ebp - 0x1018]
call fcn.10006f50
test al, al
jne 0x10006c38
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
mov dword [ebp - 0x1014], eax
call fcn.10006fd0
mov ecx, dword [ebp + ebx*4 - 0x1008]
call fcn.10006c60
test al, al
je 0x10006bbf
mov edi, dword [ebp + ebx*4 - 0x1008]
call fcn.100066c0
test al, al
je 0x10006bbf
mov eax, dword [ebp - 0x1010]
inc ebx
cmp ebx, eax
jl 0x10006be5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x10006d30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.1000d840
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x10006d81
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x10006de6
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x10006de1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006dd8
test dl, dl
je 0x10006dd4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006dd8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006db8
xor eax, eax
jmp 0x10006ddd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006dfa
inc esi
cmp esi, edi
jl 0x10006d90
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret 4

Function at 0x10006e10
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
push 0x1000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10006e4c
mov eax, dword [ebp + 8]
push 0
push ebx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10006e53
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop esi
pop ebp
ret 4
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006e3e
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10006e3e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10006e46
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10008a60
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
lea eax, [ebp - 0x408]
push eax
lea esi, [ebx + 0x4de8]
mov eax, str.Protect.sse
call fcn.10001140
test al, al
je 0x10008ad3
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push str.Protect.sse
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008ad3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4de4
je 0x10008ae5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x4de4
lea esi, [ebx + 4]
push esi
push edi
mov dword [ebp - 0x40c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008acc
xor eax, eax
mov edi, edi
mov ecx, eax
shr ecx, 8
mov dl, cl
xor dl, 0xe1
xor cl, 0x5d
sub dl, cl
add dl, byte [esi + eax]
xor dl, al
xor dl, 0xfd
mov byte [esi + eax], dl
inc eax
cmp eax, 0x4de4
jb 0x10008b10
call fcn.10006330
lea eax, [ebx + 0x90]
call fcn.100063b0
lea eax, [ebx + 0x1a58]
call fcn.10006410
lea eax, [ebx + 0x3420]
call fcn.10006470
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x10009050
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000fb8b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x10015018]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
push edi
mov eax, dword [0x10015018]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword fs:[0x30]
movzx ecx, byte ds:[eax + 2]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x18], edi
je 0x10009163
cmp dword [0x1001e9fc], edi
jne 0x1000915f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x1001e9fc], eax
mov word [esp + 0x10], 0x5c1
call esi
and eax, 0x800000ff
jns 0x100090e2
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x10015284], 0xffffffff
mov byte [esp + 0x12], al
mov word [esp + 0x13], 0xad2
je 0x100090ff
cmp byte [0x100192b8], 0
jne 0x1000910f
lea eax, [esp + 0x10]
call fcn.10002d40
xor al, al
jmp 0x100091cf
mov word [esp + 0x2c], 0x85c1
call esi
and eax, 0x800000ff
jns 0x10009126
dec eax
or eax, 0xffffff00
inc eax
push 0x40
mov byte [esp + 0x32], al
lea eax, [esp + 0x35]
push edi
push eax
mov word [esp + 0x3b], 0xad2
call sub.MSVCR100.dll_memset
push 0x40
lea ecx, [esp + 0x81]
push edi
push ecx
call sub.MSVCR100.dll_memset
movzx ecx, byte [esp + 0x45]
add esp, 0x18
lea edx, [esp + 0x2c]
call fcn.10001730
xor al, al
jmp 0x100091cf
mov dword [esp + 0x1c], vtable.CProcessQuery.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push 2
push 0x23
lea esi, [esp + 0x24]
mov dword [esp + 0xd0], edi
call fcn.10008990
test al, al
mov eax, dword [esp + 0x20]
je 0x100091ba
cmp eax, edi
je 0x100091cd
cmp byte [eax], 0
je 0x100091ba
cmp byte [eax + 1], 0
jne 0x100091ba
push edi
push edi
push edi
push 0xa
call fcn.10003940
add esp, 0x10
mov ecx, esi
call fcn.10008950
xor al, al
jmp 0x100091cf
cmp eax, edi
je 0x100091cd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x10009290
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x10015018]
xor eax, esp
mov dword [esp + 0x2a0], eax
cmp dword [0x1001e9e8], 0
push ebx
push esi
push edi
je 0x10009464
test byte [0x1001e9ec], 2
je 0x10009464
mov eax, dword [0x1001e9a4]
xor ebx, ebx
cmp dword [eax + 0xc08], ebx
jbe 0x10009464
xor edi, edi
lea esp, [esp]
mov ecx, dword [edi + eax + 0xc10]
lea esi, [edi + eax + 0xc10]
cmp ecx, dword [0x1001e9a0]
jb 0x10009311
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi + 4], eax
je 0x1000930c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi + 8], eax
je 0x10009334
mov eax, dword [0x1001e9a4]
inc ebx
add edi, 0xc
cmp ebx, dword [eax + 0xc08]
jb 0x100092e0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
cmp dword [0x1001e9fc], 0
mov esi, dword [esi + 4]
jne 0x10009464
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x1001e9fc], eax
mov word [esp + 0x10], 0x5c1
call edi
and eax, 0x800000ff
jns 0x1000936c
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x10015284], 0xffffffff
mov byte [esp + 0x12], al
mov bl, 7
mov word [esp + 0x13], 0x7d2
je 0x1000938b
cmp byte [0x100192b8], 0
jne 0x100093ab
lea eax, [esp + 0x10]
call fcn.10002d40
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov word [esp + 0x18], 0x85c1
call edi
and eax, 0x800000ff
jns 0x100093c2
dec eax
or eax, 0xffffff00
inc eax
push 0x40
lea edx, [esp + 0x21]
push 0
push edx
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0xd2
mov byte [esp + 0x28], bl
call sub.MSVCR100.dll_memset
push 0x40
lea eax, [esp + 0x6d]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
test esi, esi
je 0x10009456
push 0x40
lea ecx, [esp + 0x61]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10009456
push 0x104
lea edx, [esp + 0xa4]
push edx
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000944f
lea esi, [esp + 0xa0]
call fcn.1000ba50
push eax
lea eax, [esp + 0x61]
push 0x10012510
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [esp + 0x19]
lea edx, [esp + 0x18]
call fcn.10001730
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
Function at 0x100098a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.LdrLoadDll
xor ebx, ebx
push str.Ntdll.dll
mov dword [ebp - 0xc], 0x25ff
mov word [ebp - 8], bx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
jne 0x100098da
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push 0x1001e990
call edi
mov ecx, dword [esi]
mov dword [0x1001e990], ecx
mov ecx, dword [ebp - 4]
mov dx, word [esi + 4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push 0x1001e990
mov word [0x1001e994], dx
call edi
lea edx, [ebp - 4]
push edx
push 0x40
push 6
push esi
call edi
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 6
push esi
mov word [esi + 4], cx
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.LdrLoadDll
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10009979
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push esi
call edi
mov ecx, dword [0x1001e990]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x1001e994]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push esi
mov word [esi + 4], dx
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100099c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x10015018]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
lea esi, [esp + 0x28]
call section..text
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0xc
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
jne 0x10009a2c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x3c]
xor ecx, ecx
cmp cx, word [eax + edx + 6]
jae 0x10009aa1
mov ecx, dword [eax + edx + 0x104]
add ecx, edx
mov edx, dword [eax + edx + 0x100]
or eax, 0xffffffff
mov dword [esp + 0x10], edx
mov esi, ecx
test edx, edx
je 0x10009a7c
lea esp, [esp]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esp + edi*4 + 0x28]
inc esi
dec edx
jne 0x10009a60
mov edx, dword [esp + 0x10]
not eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.1000af50
push eax
lea edi, [esp + 0x10]
call fcn.1000a7b0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.1000ce99
mov esp, ebp
pop ebp
ret

Function at 0x10009ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
mov edi, dword [0x10023a64]
mov edx, dword [edi]
cmp edx, edi
je 0x10009b6c
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x10009b21
lea ecx, [ecx]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ebp + edi*4 - 0x408]
inc esi
dec ecx
jne 0x10009b00
mov edi, dword [0x10023a64]
not eax
cmp dword [edx + 0x18], eax
jne 0x10009b7f
cmp byte [edx + 0x1d], 0
jne 0x10009b68
mov eax, dword [edx + 8]
cmp byte [eax + 0x1d], 0
jne 0x10009b4d
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
jne 0x10009b68
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
je 0x10009b41
jmp 0x10009b68
mov eax, dword [edx + 4]
cmp byte [eax + 0x1d], 0
jne 0x10009b66
cmp edx, dword [eax + 8]
jne 0x10009b66
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x10009b56
mov edx, eax
cmp edx, edi
jne 0x10009af0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce99
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000ce99
mov esp, ebp
pop ebp
ret