joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d240
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4983f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00489679
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048edef
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00490347
test eax, eax
je 0x44d35c
mov ecx, dword [esp + 0x3c]
call fcn.0048ee1c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d320
push edi
mov ecx, esi
call fcn.0048c3db
mov ecx, esi
call fcn.0044d4c0
cmp dword [esp + 0x38], 1
jne 0x44d355
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048c545
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44fd80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44fdb3
push esi
call fcn.00452e70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44fdac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44fe39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44fe22
mov eax, dword [esi + 8]
test eax, eax
je 0x44fdd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44fe1e
cmp eax, 2
je 0x44fe22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44fdca
cmp eax, 3
je 0x44fdfd
cmp eax, 1
jne 0x44fdca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44fdca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44fdca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044fe60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44fe48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044fe60
add esp, 4
pop esi
ret

Function at 0x45bea0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45bf43
test eax, eax
jbe 0x45bf43
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45bf43
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45beee
xor esi, esi
jmp 0x45bef4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45bf1f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045f840
add esi, eax
push esi
mov ebx, esi
call fcn.0045f840
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45bf00
pop ebp
test edi, edi
pop edi
jne 0x45bf43
test ebx, ebx
je 0x45bf43
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00477500
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45c085
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45c19d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c19d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00489acb
mov esi, eax
test esi, esi
je 0x45c19d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45c19d
mov ecx, esi
call fcn.0045bff0
cmp edi, eax
jge 0x45c19d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45c123
mov dword [esp + 0x34], 1
jmp 0x45c17e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c19d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045b590
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45feb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x45fefc
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x45fefc
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x45ff0f
cmp dword [esp + 0xc], 5
jb 0x45ff0f
mov esi, 1
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x461150
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.004773e0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.00478411
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4612fd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x4612fd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.00461310
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00461310
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.00461310
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.00461310
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x4612fd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x462f10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x462f5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x462f89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x462fcb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x467c60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x467ca9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x468120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x498fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00467cd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00467d50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00467d50
lea ecx, [esi + 0xc]
call fcn.00488007
lea ecx, [esi + 0x10]
call fcn.00488007
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004692e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004692e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004692e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048807c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048807c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4694d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x469536
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x469536
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x469517
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48a46f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48a4a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488523
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004884fb
jmp 0x48a4b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48bb61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48bba3
call fcn.00491903
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48bba3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48bb9a
xor eax, eax
jmp 0x48bbab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048bbb1
pop edi
pop esi
pop ebx
ret 4

Function at 0x491e33
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491e61
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491e7f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491d99
jmp 0x491e7f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491e7f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491d99
test edi, edi
mov eax, edi
jne 0x491e69
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4043f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
mov esi, 0x4970f0
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
call fcn.0046ef86
mov eax, dword [eax + 4]
push 4
lea ecx, [esp + 0x18]
push 0x498740
push ecx
mov ecx, eax
call fcn.0046eb31
push eax
call fcn.00437800
add esp, 4
mov ebp, eax
mov dword [ebx + 0xb8], 1
call fcn.0045d35f
xor edi, edi
cmp eax, edi
je 0x40445d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40445f
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x88]
lea esi, [ebx + 0xa0]
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], edi
mov dword [esi], ecx
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0xbc], edi
mov eax, dword [edx + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebx + 0xc4]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x88]
lea ecx, [ebx + 0x1c8]
mov eax, dword [edx + 0x1c]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x88]
lea ecx, [ebx + 0x2cc]
mov eax, dword [edx + 0x20]
push eax
push ecx
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x10]
mov dword [ebx + 0xac], eax
push edx
push 4
push esi
push 0x402060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [ebx + 0xb0]
push 0
push eax
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40452f
push eax
push 0x498738
push 0x49871c
mov ecx, ebx
call fcn.0045a962
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x404560
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
mov esi, 0x4970f0
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
call fcn.0046ef86
mov eax, dword [eax + 4]
push 4
lea ecx, [esp + 0x18]
push 0x498740
push ecx
mov ecx, eax
call fcn.0046eb31
push eax
call fcn.00437800
add esp, 4
mov ebp, eax
call fcn.0045d35f
test eax, eax
je 0x4045c1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4045c3
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x88]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebx + 0xa0]
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], 0
mov dword [esi], ecx
mov eax, dword [edx + 0x24]
lea ecx, [ebx + 0xc4]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x88]
lea ecx, [ebx + 0x1c8]
mov eax, dword [edx + 0x1c]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x88]
lea ecx, [ebx + 0x2cc]
mov eax, dword [edx + 0x20]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push 4
push esi
push 0x4021f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [ebx + 0xb0]
push 0
push eax
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x404677
push eax
push 0x498738
push 0x49871c
mov ecx, ebx
call fcn.0045a962
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4046a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, ecx
sar eax, 4
test cl, 0xf
je 0x4046b2
or eax, 0xffffffff
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
sub ecx, edi
test cl, 3
jne 0x404744
mov edx, ebx
sub edx, edi
test dl, 3
jne 0x404744
mov ecx, eax
dec eax
test ecx, ecx
je 0x404835
lea ebp, [eax + 1]
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [edi + 4]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
xor edx, ecx
mov dword [esi + 8], edx
mov edx, dword [edi + 0xc]
xor eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
push eax
push esi
push esi
call fcn.00404a40
mov ecx, esi
mov edx, ebx
add esp, 0xc
add edi, 0x10
mov eax, dword [ecx]
add ebx, 0x10
mov dword [edx], eax
dec ebp
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
jne 0x4046e2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, eax
dec eax
test edx, edx
je 0x404835
lea ebp, [eax + 1]
mov al, byte [edi]
mov cl, byte [esi]
mov dl, byte [esi + 1]
xor cl, al
mov al, byte [esi + 2]
mov byte [esi], cl
mov cl, byte [edi + 1]
xor dl, cl
mov cl, byte [esi + 3]
mov byte [esi + 1], dl
mov dl, byte [edi + 2]
xor al, dl
mov dl, byte [esi + 4]
mov byte [esi + 2], al
mov al, byte [edi + 3]
xor cl, al
mov al, byte [esi + 5]
mov byte [esi + 3], cl
mov cl, byte [edi + 4]
xor dl, cl
mov cl, byte [esi + 6]
mov byte [esi + 4], dl
mov dl, byte [edi + 5]
xor al, dl
mov dl, byte [esi + 7]
mov byte [esi + 5], al
mov al, byte [edi + 6]
xor cl, al
mov al, byte [esi + 8]
mov byte [esi + 6], cl
mov cl, byte [edi + 7]
xor dl, cl
mov cl, byte [esi + 9]
mov byte [esi + 7], dl
mov dl, byte [edi + 8]
xor al, dl
mov dl, byte [esi + 0xa]
mov byte [esi + 8], al
mov al, byte [edi + 9]
xor cl, al
mov al, byte [esi + 0xb]
mov byte [esi + 9], cl
mov cl, byte [edi + 0xa]
xor dl, cl
mov cl, byte [esi + 0xc]
mov byte [esi + 0xa], dl
mov dl, byte [edi + 0xb]
xor al, dl
mov dl, byte [esi + 0xd]
mov byte [esi + 0xb], al
mov al, byte [edi + 0xc]
xor cl, al
mov al, byte [esi + 0xe]
mov byte [esi + 0xc], cl
mov cl, byte [edi + 0xd]
xor dl, cl
mov cl, byte [esi + 0xf]
mov byte [esi + 0xd], dl
mov dl, byte [edi + 0xe]
xor al, dl
mov byte [esi + 0xe], al
mov al, byte [edi + 0xf]
xor cl, al
mov byte [esi + 0xf], cl
mov ecx, dword [esp + 0x24]
push ecx
push esi
push esi
call fcn.00404a40
mov edx, esi
mov eax, ebx
add esp, 0xc
add edi, 0x10
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
add ebx, 0x10
dec ebp
jne 0x404752
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x409850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x4098d5
cmp eax, 0x40
jbe 0x40987c
lea eax, [esi + 0x40]
push eax
push esi
call fcn.0040b350
add esp, 8
mov dword [esi + 0x9c], 0x14
mov edx, dword [esi + 0x9c]
mov ecx, pe_nt_image_headers32
push edi
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x4098a4
lea edi, [esi + 0x40]
push edi
call fcn.0040b240
push edi
push pe_nt_image_headers32
push esi
call fcn.0040b280
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4098ef
add esi, 0x40
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b280
add esp, 0xc
pop esi
ret

Function at 0x409900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9c], 0xffffffff
je 0x40991f
push edi
push 0
push 0
call fcn.00409850
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push esi
push eax
call fcn.0040b350
add esp, 8
mov eax, edi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x409937
push esi
call fcn.0040b240
push esi
push pe_nt_image_headers32
push edi
call fcn.0040b280
push esi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.0040b280
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0040b350
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x409990
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret

Function at 0x40b240
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret