joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0xcc], 0
push ebx
push esi
je 0x10008854
lea esi, [ebp - 0x408]
call section..text
mov eax, esi
lea ebx, [edi + 0x86]
push eax
lea esi, [ebp - 0x40c]
mov eax, ebx
call fcn.10001140
test al, al
jne 0x10008803
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x10014a80]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x100087d0
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov edx, dword [edi + 0xcc]
cmp edx, dword [ebp - 0x40c]
je 0x10008830
mov eax, 0x26
call fcn.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x10008842
mov eax, 0x27
jmp 0x10008816
push 0x10015ad8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10008854
call eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f292
mov esp, ebp
pop ebp
ret

Function at 0x10008870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0xd0], 0
push esi
je 0x10008930
lea esi, [ebp - 0x408]
call section..text
mov ecx, esi
lea eax, [edi + 0xa6]
push ecx
lea esi, [ebp - 0x40c]
call fcn.10001140
test al, al
jne 0x10008903
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov dl, byte [eax + 0x10014d80]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10124638], dl
inc eax
cmp eax, 0x100
jb 0x100088d0
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov eax, dword [edi + 0xd0]
cmp eax, dword [ebp - 0x40c]
je 0x10008930
mov eax, 0x29
call fcn.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10008940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x130]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100089d3
push 0x100
push eax
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + 0x10014680]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10124638], dl
inc eax
cmp eax, 0x100
jb 0x100089a0
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
lea eax, [ebp - 0x130]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100089e0
sub eax, edx
test eax, eax
jle 0x10008a1b
mov cl, 0x5c
nop
cmp byte [ebp + eax - 0x130], cl
je 0x10008a00
dec eax
test eax, eax
jg 0x100089f0
jmp 0x10008a1b
lea eax, [ebp + eax - 0x12f]
push eax
push 0x104
push 0x10124328
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x1011f078
push 0x10124328
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x10008a83
push 0x100
push 0
push 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10008a50
mov cl, byte [eax + 0x10014780]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x10008a50
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov ecx, 0x10015ae4
mov eax, 0x1011f058
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008ab0
test dl, dl
je 0x10008aac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008ab0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008a90
xor eax, eax
jmp 0x10008ab5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10008b28
mov eax, 0x1011f078
call fcn.10001cc0
push eax
lea edx, [ebp - 0x24]
push 0x100158a8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x24]
mov eax, 0x1011f058
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008b00
test dl, dl
je 0x10008afc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008b00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008ae0
xor eax, eax
jmp 0x10008b05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10008b28
mov eax, 0x23
call fcn.1000c610
push eax
push 0
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
call fcn.1000bfd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x10008ef0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10019018]
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 [0x1011e28c]
cmp eax, 0x927c0
jb 0x10008f33
call esi
mov dword [0x1011e28c], eax
xor esi, esi
cmp dword [0x1011e274], esi
je 0x10008fba
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 [0x1011e278]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.10008c60
mov edi, dword [ebp - 0x20]
test al, al
je 0x10008f8f
cmp edi, dword [ebp - 0x1c]
je 0x10008f8f
lea ecx, [ebp - 0x20]
push ecx
call fcn.10008fd0
jmp 0x10008fa2
push str.SOMETHING_WENT_WRONG._Terrible_sorry...
push esi
mov ecx, 0x10119200
call fcn.10005510
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x10008fba
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 0x100096b0
Capabilities:
Encode data using xor
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.____________________________________________________________________________________________________
push 0
mov ecx, 0x10119200
call fcn.10005510
push 0x94
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x14
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 0x10124638
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10012580]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x10009730
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 0x100157e0
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x100097b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100168f8
push 0x1000f756
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10019018]
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 0x10009962
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 0x10009894
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009962
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.1000f280
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 0x100098f3
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 0x10009962
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100098e0
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 0x10009964
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.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x1000a220
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 0x1000a25a
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 0x1011f184
call edi
mov ecx, dword [esi]
mov dword [0x1011f184], ecx
mov ecx, dword [ebp - 4]
mov dx, word [esi + 4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push 0x1011f184
mov word [0x1011f188], 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 0x1000a2d0
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 0x1000a2f9
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 [0x1011f184]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x1011f188]
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 0x1000a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x10019018]
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 0x1000a3ac
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.1000f292
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 0x1000a421
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 0x1000a3fc
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 0x1000a3e0
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.1000b8d0
push eax
lea edi, [esp + 0x10]
call fcn.1000b130
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.1000f292
mov esp, ebp
pop ebp
ret

Function at 0x1000a440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
mov edi, dword [0x101242c0]
mov edx, dword [edi]
cmp edx, edi
je 0x1000a4ec
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x1000a4a1
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 0x1000a480
mov edi, dword [0x101242c0]
not eax
cmp dword [edx + 0x18], eax
jne 0x1000a4ff
cmp byte [edx + 0x1d], 0
jne 0x1000a4e8
mov eax, dword [edx + 8]
cmp byte [eax + 0x1d], 0
jne 0x1000a4cd
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
jne 0x1000a4e8
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
je 0x1000a4c1
jmp 0x1000a4e8
mov eax, dword [edx + 4]
cmp byte [eax + 0x1d], 0
jne 0x1000a4e6
cmp edx, dword [eax + 8]
jne 0x1000a4e6
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x1000a4d6
mov edx, eax
cmp edx, edi
jne 0x1000a470
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
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.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x1000bf50
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x101242d4], 0
push esi
je 0x1000bfbe
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101242d8]
cmp eax, 0x1388
jbe 0x1000bfbe
push 0x10124308
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x1000bfbe
call esi
mov dword [0x101242d8], eax
test eax, eax
je 0x1000bfb3
call fcn.1000bea0
test al, al
jne 0x1000bfb3
push 0x1388
xor ecx, ecx
call fcn.10005c90
push eax
push 2
mov eax, 0x1011e4e0
call fcn.1000c3b0
add esp, 0xc
call fcn.1000bfd0
push 0x10124308
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
ret

Function at 0x1000c030
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 0x1000c062
jmp 0x1000c050
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebx
jb 0x1000c050
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x1000c070
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010046
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x10015e44]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10015e40]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000c298
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x1000c0f0
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000c1a6
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000c133
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.1000cff0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000c160
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.1000c880
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000c1c5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x1000c1a6
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x1000c1a6
cmp word [ebx], di
je 0x1000c298
mov esi, dword [ebp - 0x660]
jmp 0x1000c0f0
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000c1e7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.1000cff0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000c211
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.1000c6f0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x1000c252
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x1000c266
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x1000c294
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1000c29a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
Function at 0x1000c3b0
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push 0
push 0x10124638
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10014f80]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10124638], cl
inc eax
cmp eax, 0x100
jb 0x1000c3d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x10124638
push 0
mov ecx, 0x10119200
call fcn.10005510
mov eax, dword [0x1011e294]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x1000c440
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x1011f178]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1011e294], 0
call ebx
mov eax, dword [0x1011e3bc]
test eax, eax
je 0x1000c46b
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1011f178]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1011e3bc], 0
call ebx
mov eax, dword [0x1011e4e4]
test eax, eax
je 0x1000c496
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1011f178]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1011e4e4], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1000c4bc
dec eax
je 0x1000c4b0
dec eax
jne 0x1000c4c8
mov eax, 0x6a
mov ecx, 0x2b2bb9
jmp 0x1000c4ce
mov eax, 0x69
mov ecx, 0x116896
jmp 0x1000c4ce
mov eax, 0x67
mov ecx, 0x9ca476
jmp 0x1000c4ce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.1000bb30
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x1000c310
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1000c54a
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x1000c54a
mov eax, dword [esi + 4]
test eax, eax
je 0x1000c54a
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1011f178]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esi + 4], 0
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000c610
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10124638
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x10012580]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10124638], dl
inc eax
cmp eax, 0x100
jb 0x1000c633
mov eax, 0x10124638
ret
Function at 0x1000c650
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10019018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000c687
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000c677
mov edx, dword [ebp - 0x20]
push 0
push 0
xor eax, eax
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1000f292
mov esp, ebp
pop ebp
ret

Function at 0x1000d130
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x101191d4]
push edi
cmp esi, dword [0x101191d8]
je 0x1000d1fe
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1000d16e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x1000d183
add esi, 0x105
cmp esi, dword [0x101191d8]
jne 0x1000d150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x101191d8]
mov esi, dword [0x101191d4]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000d1e6
xor edi, edi
cmp byte [edi + esi], 2
jne 0x1000d1c2
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x101191d4]
mov ecx, dword [0x101191d8]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x1000d1a6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.10003480
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret