joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8ae
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4146f0
call fcn.0041440c
sub esp, 0x214
mov eax, dword [0x4188a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040ac82
cmp eax, esi
jne 0x40b94d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40b907
lea eax, [ebp - 0x210]
push eax
call fcn.0040b8ae
cmp eax, esi
jne 0x40b94c
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x40b8f7
call fcn.0040ac1d
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040ac1d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041408d
leave
ret 4
Function at 0x40d847
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41481c
call fcn.0041440c
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.0040c564
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40d8a3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40d88e
call esi
mov esi, eax
jmp 0x40d9bc
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40d9bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40d8c4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40d8ec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40d8d7
call esi
jmp 0x40d9b1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40d9b3
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x40d95a
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40d927
push edi
call fcn.0040ab3b
test al, al
je 0x40d927
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004144f0
mov dword [ebp + 8], esp
jmp 0x40d933
push edi
lea ecx, [ebp - 0x10]
call fcn.0040c541
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40d941
mov esi, 0x8007000e
jmp 0x40d9b3
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x40d962
xor eax, eax
jmp 0x40d9a5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40d992
push ebx
call fcn.0040ab3b
test al, al
je 0x40d992
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004144f0
mov eax, esp
jmp 0x40d99b
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040c541
push 0
push esi
push edi
push eax
call fcn.0040ab96
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040d182
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040b713
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4121d3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4
Function at 0x412261
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4122ac
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.00411ce3
test eax, eax
je 0x4122ac
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00411cb9
jmp 0x4122ae
xor eax, eax
pop esi
leave
ret 8

Function at 0x412bcb
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414a97
call fcn.0041440c
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x412bfe
mov ecx, eax
call fcn.00411bf6
mov ebx, eax
jmp 0x412c00
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x412c10
or esi, 0xffffffff
jmp 0x412c6d
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004128c8
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x412c8c
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414aa9
call fcn.0041440c
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412dcc
test ebx, ebx
je 0x412dcc
cmp dword [ebp - 0x14], 0
je 0x412dcc
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00412a8c
test eax, eax
je 0x412db4
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x412d3b
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x412d4e
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x412d61
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x412d74
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x412d84
push 0x1f4
jmp 0x412d89
push 0x1f5
call fcn.00408b20
test eax, eax
je 0x412dcc
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x412dcc
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x412dcc
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x412dcc
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00408194
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413458
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x41353a
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4134d5
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413525
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413544
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413525
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413440
test eax, eax
je 0x413544
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413544
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x413485
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x41353d
Function at 0x41408d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4188a4]
jne 0x414096
ret
jmp 0x41409b
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4188a4]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a44]
test eax, eax
je 0x4140bf
call eax
cmp dword [0x418a48], 0
je 0x414106
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a48]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0041408d
add ebp, 0x2a8
leave
ret
Function at 0x10001000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
mov dword [ebp - 4], 0
push 0x80000000
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000109b
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 8]
add esp, 0xc
test edi, edi
je 0x1000107d
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000108e
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x10001062
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
push str.Error_loading_file__s.
call fcn.10001130
push esi
push str.Error_opening_file__s.
call fcn.10001130
int3

Function at 0x100010b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 0
mov esi, ecx
mov edi, edx
push 2
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001116
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001109
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x100010e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
push str.Error_writing_to_file__s.
call fcn.10001130
push esi
push str.Error_creating_file__s.
call fcn.10001130
int3
Function at 0x100011c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x1000
push 0
call esi
push 0x80
push 0
mov edi, eax
call esi
mov ecx, dword [section..data]
mov esi, edi
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10001206
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [edi], 0
je 0x10001206
nop
inc esi
cmp byte [esi], 0
jne 0x10001200
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.T:_d_
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x10001236
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x10001230
mov eax, esi
sub eax, edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [ebp - 4], eax
push 0
push 0x80
push 4
push 0
push 3
push 4
push str.gglog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x40
mov edi, ecx
mov dword [ebp - 4], edx
push ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp eax, 0x10004738
je 0x10001cee
nop dword [eax + eax]
push ebx
push eax
push edi
call sub.msvcrt.dll_memcpy
inc esi
add esp, 0xc
cmp esi, 5
je 0x10001cee
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
jmp 0x10001cd0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [ebp + 0xc]
push str.Patch___Code_:__s___d__r_n
call fcn.100011c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002780
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.decimal.ini
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, str.decimal.ini
cmp eax, 0xffffffff
je 0x100027b7
call section..text
push 0x100049c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100028e0
jmp 0x100027c6
push 1
mov edx, 0x100049c8
call fcn.100010b0
add esp, 4
mov esi, dword [0x5310b5]
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push 0x5310b5
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xd35d0468
je 0x10002813
mov esi, 1
mov dword [0x5310b5], 0xd35d0468
push esi
call ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push 0x5310b5
call edi
jmp 0x10002846
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push 0x5310b5
call edi
mov eax, 0x100049cc
cmp eax, str.9A7
je 0x10002859
cmp eax, str.992
je 0x10002859
cmp eax, str.9A0
je 0x10002859
xor esi, esi
cmp eax, 0x1000479c
je 0x10002859
push esi
push 0x100049cc
push str.Patch__Code_:__s___d__r_n
call fcn.100011c0
add esp, 0xc
mov esi, dword [0x5310df]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x5310df
call edi
cmp esi, 0xd35d0468
je 0x1000289a
mov esi, 1
mov dword [0x5310df], 0xd35d0468
push esi
call ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push 0x5310df
call edi
jmp 0x100028cd
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push 0x5310df
call edi
mov eax, 0x100049d0
cmp eax, str.9A7
je 0x100028e0
cmp eax, str.992
je 0x100028e0
cmp eax, str.9A0
je 0x100028e0
xor esi, esi
cmp eax, 0x1000479c
je 0x100028e0
push esi
push 0x100049d0
push str.Patch__Code_:__s___d__r_n
call fcn.100011c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002c20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov ebx, ecx
xor edi, edi
lea ecx, [edi + ebx]
call fcn.10003a10
add edi, eax
cmp edi, 6
jb 0x10002c30
lea esi, [edi + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, ebx
sub ecx, eax
sub ecx, 5
mov dword [eax + edi + 1], ecx
lea ecx, [ebp - 4]
push ecx
push 0x40
push esi
mov byte [eax + edi], 0xe9
mov byte [eax + edi + 5], 0xc3
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
call edi
lea eax, [ebp - 4]
mov byte [ebp - 0x14], 0xe9
push eax
push 0x40
push 6
push ebx
mov byte [ebp - 0xf], 0xc3
call edi
test eax, eax
je 0x10002ce8
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub eax, ebx
sub eax, 5
push 0
mov dword [ebp - 0x13], eax
lea eax, [ebp - 0x14]
push 6
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10002cf9
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 6
push ebx
call edi
test eax, eax
je 0x10002d0a
push 6
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x10002d1b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_WriteProcessMemory_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_FlushInstructionCache_failed.___08x_
call fcn.10001130
int3
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430030]
jne 0x401116
repz ret
jmp fcn.00401b11

Function at 0x408edc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004047d5
and dword [ebp - 4], 0
cmp dword [0x43278c], 0
mov ebx, eax
jne 0x408f8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40903e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40903e
push eax
call fcn.00404763
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43278c], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432790], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432794], eax
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x43279c], eax
test eax, eax
je 0x408f8d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x432798], eax
mov eax, dword [0x432798]
cmp eax, ebx
je 0x408fe5
cmp dword [0x43279c], ebx
je 0x408fe5
push eax
call fcn.004047de
push dword [0x43279c]
mov esi, eax
call fcn.004047de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408fe5
test edi, edi
je 0x408fe5
call esi
test eax, eax
je 0x408fdc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fdc
test byte [ebp - 0xc], 1
jne 0x408fe5
or dword [ebp + 0x10], 0x200000
jmp 0x40901e
mov eax, dword [0x432790]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40901e
mov eax, dword [0x432794]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43278c]
call fcn.004047de
pop ecx
test eax, eax
je 0x40903e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409040
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b2d0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x430030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2aeb1cc]
push ebx
mov ebx, dword [0x2aeaeec]
push esi
mov esi, dword [0x430f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b311
push 0x42e918
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2aeb1cc]
mov dword [0x2aeaee8], esi
cmp eax, 0x114e
jne 0x40b336
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2aeb1cc]
cmp eax, 0x2f
jne 0x40b364
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push edi
push ebx
call fcn.0040b170
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret