joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4425f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
add ecx, 2
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x210]
mov ax, word [edx]
mov word [ebp - 0x212], ax
add dword [ebp - 0x210], 2
cmp word [ebp - 0x212], 0
jne 0x44261b
mov ecx, dword [ebp - 0x210]
sub ecx, dword [ebp - 0x218]
sar ecx, 1
mov dword [ebp - 0x21c], ecx
je 0x4426ac
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.0049d060
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4426ac
mov al, 1
jmp 0x4426ae
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4426c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc4da
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x26d], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
add ecx, 2
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x274]
mov ax, word [edx]
mov word [ebp - 0x27a], ax
add dword [ebp - 0x274], 2
cmp word [ebp - 0x27a], 0
jne 0x44270a
mov ecx, dword [ebp - 0x274]
sub ecx, dword [ebp - 0x280]
sar ecx, 1
mov dword [ebp - 0x284], ecx
cmp dword [ebp - 0x284], 4
jbe 0x4428f4
mov dword [ebp - 0x26c], 0
push 0x228
push 0
lea edx, [ebp - 0x268]
push edx
call fcn.0049d060
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x4428f4
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4428e7
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00402160
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00402250
add esp, 8
mov byte [ebp - 4], 1
push 0x4b1093
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x40]
call fcn.004033a0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00403370
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004033a0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.004471b0
add esp, 0x14
push 0x4b1093
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004033a0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403370
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea ecx, [ebp - 0x28]
call fcn.004033a0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.004471b0
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.00403340
push eax
lea ecx, [ebp - 0x28]
call fcn.00403340
push eax
call fcn.0049f640
add esp, 8
test eax, eax
je 0x4428b1
mov byte [ebp - 0x26d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404f10
jmp 0x4428e7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404f10
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x278]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4427ad
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x26d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x442ad0
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004046f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
jmp 0x442b01
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x442b36
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004046f0
push eax
mov ecx, dword [ebp + 8]
call fcn.004046f0
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x442b34
mov byte [ebp - 1], 1
jmp 0x442b36
jmp 0x442af8
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x442b59
movzx edx, byte [ebp - 1]
test edx, edx
je 0x442ba9
mov eax, dword [ebp + 8]
push eax
call fcn.00443160
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x442ba9
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.00449db0
movzx edx, al
test edx, edx
jne 0x442ba9
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.004046f0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004430b0
add esp, 8
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004046f0
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.004046f0
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004046f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442bc8
mov byte [ebp - 2], 1
jmp 0x442bcc
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x4430b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0049d060
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x228]
call fcn.00403160
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.00413f40
lea ecx, [ebp - 0x228]
call fcn.00404b60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4436b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc67d
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x439], 0
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.004046f0
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00402250
add esp, 8
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
add ecx, 0xc0
call fcn.004046f0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0
lea ecx, [ebp - 0x438]
call fcn.00403340
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00414780
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x44c], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x44c]
mov cx, word [eax]
mov word [ebp - 0x43c], cx
mov edx, dword [ebp - 0x440]
mov ax, word [ebp - 0x43c]
mov word [edx], ax
mov ecx, dword [ebp - 0x44c]
add ecx, 2
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x440]
add edx, 2
mov dword [ebp - 0x440], edx
cmp word [ebp - 0x43c], 0
jne 0x4437c2
mov ecx, dword [ebp + 8]
add ecx, 0xc0
call fcn.004046f0
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x444]
mov ax, word [edx + 2]
mov word [ebp - 0x446], ax
add dword [ebp - 0x444], 2
cmp word [ebp - 0x446], 0
jne 0x443835
mov edi, dword [ebp - 0x444]
mov ecx, dword [str..dll]
mov dword [edi], ecx
mov edx, dword [0x504140]
mov dword [edi + 4], edx
mov ax, word [0x504144]
mov word [edi + 8], ax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4438df
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x4438d2
push str.Install_7z
mov eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
je 0x4438d2
call dword [ebp - 0x454]
mov byte [ebp - 0x439], al
mov ecx, dword [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dl, byte [ebp - 0x439]
mov byte [ebp - 0x43a], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00404f10
mov al, byte [ebp - 0x43a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x443b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x260], 0
push 0x40
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x21c], 0
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x260], 0x44
xor edx, edx
mov word [ebp - 0x230], dx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0049d060
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__s___s
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00428370
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x443c66
push 0xffffffffffffffff
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x443c79
cmp dword [ebp + 0x10], 0
je 0x443c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x443c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc6f2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x443ccd
xor al, al
jmp 0x443d5e
mov ecx, dword [ebp + 0xc]
push ecx
push str._image
lea edx, [ebp - 0x28]
push edx
call fcn.00444af0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.00449db0
movzx eax, al
test eax, eax
jne 0x443d32
mov ecx, dword [ebp + 0x10]
push ecx
push str.__args
lea edx, [ebp - 0x40]
push edx
call fcn.00444af0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00412200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404b60
push 0
lea ecx, [ebp - 0x28]
call fcn.004046f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00443b70
add esp, 0xc
mov byte [ebp - 0x41], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404b60
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4482b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4482ce
mov ecx, dword [ebp - 8]
call fcn.00449650
jmp 0x4482e1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4482e1
mov ecx, dword [ebp - 8]
call fcn.004494d0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4494d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x4494eb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x449557
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x44952f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x449536
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4494e2
jmp 0x449562
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jge 0x4495ce
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x4495a6
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x4495ad
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x449559
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x44960c
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x449613
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x449650
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x44966b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x4496d7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4496af
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4496b6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x449662
mov esp, ebp
pop ebp
ret

Function at 0x450a05
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x450a28
or esi, 1
push 1
call edi
test ax, ax
jns 0x450a34
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x450a40
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x450a4c
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x453554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x298]
call fcn.00482828
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4535aa
push ebx
lea ecx, [esi + 0x298]
mov byte [ebp + 0xb], 0
call fcn.0044dfed
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x45360a
lea ecx, [esi + 0x298]
inc ebx
call fcn.00482828
cmp ebx, eax
jl 0x453573
sub edi, 0x100
je 0x453670
sub edi, 4
je 0x45360e
dec edi
sub edi, 1
jne 0x453665
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.004a6569
pop ecx
mov ecx, dword [esi + 0x1e4]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x454e81
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x453665
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x453667
cmp dword [esi + 0x1e8], 0
je 0x453665
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x1f8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1fc]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00450a05
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x453665
mov ecx, dword [esi + 0x1e8]
test ecx, ecx
je 0x4536c9
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4536c9
mov ecx, dword [esi + 0x1e8]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4536c9
mov ecx, dword [esi + 0x1e8]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0049c852
pop ecx
pop ecx
test eax, eax
je 0x4536c9
mov ecx, dword [esi + 0x1e8]
call fcn.00472e09
test al, al
jne 0x453665
mov ecx, dword [esi + 0x1e8]
test ecx, ecx
je 0x453711
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x453711
mov ecx, dword [esi + 0x1e8]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x453711
mov ecx, dword [esi + 0x1e8]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0049c852
pop ecx
pop ecx
test eax, eax
jne 0x453665
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004547a1
jmp 0x45360a
Function at 0x45449c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4544c8
cmp esi, dword [ebx + 0x1e8]
je 0x4544c8
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x1e8]
cmp esi, eax
je 0x45459f
push edi
test eax, eax
je 0x454527
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x1e8]
call fcn.0045404f
mov dword [ebx + 0x1e8], edi
test esi, esi
je 0x45459e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x45459e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x45459e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x45459e
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x1e8], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x1e8]
call fcn.0045404f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45bf87
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bfb9
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8