joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4109c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 8
test al, 3
jne 0x429c0f
add esp, 8
ret
test al, 1
je 0x429c31
mov ecx, dword [esi + 4]
lea eax, [esp]
push eax
push ecx
call fcn.00415632
mov edx, dword [esp + 8]
add esp, 8
or edx, dword [esp + 4]
jne 0x4109cd
mov eax, dword [esi]
test al, 0x20
je 0x429c57
mov eax, dword [esi + 4]
push eax
push 2
push 1
push 0x480a0c
call fcn.00415802
mov dword [esi + 0xc], 1
add esp, 0x10
add esp, 8
ret
test al, 0x40
je 0x429c7b
mov ecx, dword [esi + 4]
push ecx
push 2
push 1
push 0x481d60
call fcn.00415802
mov dword [esi + 0xc], 2
add esp, 0x10
add esp, 8
ret
test al, al
jns 0x4109cd
mov edx, dword [esi + 4]
push edx
push 3
push 1
push str.rb
call fcn.00415802
mov dword [esi + 0xc], 4
add esp, 0x10
add esp, 8
ret

Function at 0x410a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
mov dword [ebp + 0xc], 0
mov byte [ebp + 8], 0
test al, 0x14
jne 0x410a96
test al, al
js 0x429b7b
test al, 0x20
jne 0x429b87
test al, 0x40
jne 0x429b93
mov eax, dword [esp + 0xc]
push 0x481d68
push eax
call fcn.0041550c
add esp, 8
test eax, eax
je 0x410a96
push esi
push edi
mov esi, eax
push esi
push 3
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00415c17
push esi
mov edi, eax
call fcn.004158fb
mov al, byte [esp + 0x24]
add esp, 0x14
cmp edi, 2
jb 0x410a8c
cmp al, 0xff
je 0x429b9f
cmp al, 0xfe
je 0x429bba
cmp al, 0xef
je 0x429bd5
pop edi
pop esi
pop ebp
ret 8
mov dword [ebp + 0xc], 4
jmp 0x410a3f
mov dword [ebp + 0xc], 1
jmp 0x410a3f
mov dword [ebp + 0xc], 2
jmp 0x410a3f
cmp byte [esp + 0x11], 0xfe
jne 0x410a8c
mov dword [ebp + 0xc], 1
mov byte [ebp + 8], 1
jmp 0x410a94
cmp byte [esp + 0x11], 0xff
jne 0x410a8c
mov dword [ebp + 0xc], 2
mov byte [ebp + 8], 1
jmp 0x410a94
cmp edi, 3
jb 0x410a94
cmp byte [esp + 0x11], 0xbb
jne 0x410a94
cmp byte [esp + 0x12], 0xbf
jne 0x410a94
mov dword [ebp + 0xc], 4
mov byte [ebp + 8], 1
jmp 0x410a94

Function at 0x411770
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x48e910]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push bind
push bind
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x48e910]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x48e908], eax
call esi
mov edx, dword [0x48e908]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x48e904], eax
call esi
mov eax, dword [0x48e908]
push 0
push eax
call esi
pop esi
ret
Function at 0x411c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
lea eax, [esp]
push eax
xor edx, edx
push 1
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov word [esi], dx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411cda
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x14], 0
je 0x411cd0
shr dword [esp + 0x14], 1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x422ead
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48bcf4]
jne 0x422eb7
repz ret
jmp fcn.004268dc

Function at 0x423308
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.0041832f
and dword [ebp - 4], 0
cmp dword [0x48e540], 0
mov ebx, eax
jne 0x4233b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42346a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x47eda4
push edi
call esi
test eax, eax
je 0x42346a
push eax
call fcn.004182bd
mov dword [esp], 0x47ed94
push edi
mov dword [0x48e540], eax
call esi
push eax
call fcn.004182bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48e544], eax
call esi
push eax
call fcn.004182bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48e548], eax
call esi
push eax
call fcn.004182bd
pop ecx
mov dword [0x48e550], eax
test eax, eax
je 0x4233b9
push 0x47ed4c
push edi
call esi
push eax
call fcn.004182bd
pop ecx
mov dword [0x48e54c], eax
mov eax, dword [0x48e54c]
cmp eax, ebx
je 0x423411
cmp dword [0x48e550], ebx
je 0x423411
push eax
call fcn.00418338
push dword [0x48e550]
mov esi, eax
call fcn.00418338
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423411
test edi, edi
je 0x423411
call esi
test eax, eax
je 0x423408
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423408
test byte [ebp - 0xc], 1
jne 0x423411
or dword [ebp + 0x10], 0x200000
jmp 0x42344a
mov eax, dword [0x48e544]
cmp eax, ebx
je 0x42344a
push eax
call fcn.00418338
pop ecx
test eax, eax
je 0x42344a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42344a
mov eax, dword [0x48e548]
cmp eax, ebx
je 0x42344a
push eax
call fcn.00418338
pop ecx
test eax, eax
je 0x42344a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48e540]
call fcn.00418338
pop ecx
test eax, eax
je 0x42346a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42346c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4364fc
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [esp + 0x210]
push ecx
push 0
push 0x482328
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
add esp, 0x20c
ret 4

Function at 0x4366a5
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4366bb
cmp eax, 0x10000
jne 0x4366df
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00415c17
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret 4

Function at 0x4366f9
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x436728
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00415802
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4

Function at 0x43672c
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x43677b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00415802
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x436824
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x43684a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00412960
add esp, 0xc
jmp 0x43685f
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00415c17
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.EA06
push ecx
mov byte [esp + 0x10], 0
call fcn.00415260
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

Function at 0x436907
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49e930], eax
mov edx, 1
mov eax, 0x49e930
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x49f2ec
jl 0x43691b
mov dword [0x48caac], 1
mov dword [0x49f300], 1
pop edi
ret

Function at 0x436e7d
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x30], 0
jne 0x436ea2
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x436e15
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x30], eax
pop esi
ret 4
Function at 0x437c1c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x437ccc
jne 0x437c3d
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x437cc5
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x437cc5
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x487230]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x437c62
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
add esp, 0x28
ret

Function at 0x438396
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4383ad
test al, 0x10
je 0x4383ad
mov al, 1
ret
xor al, al
ret

Function at 0x4383b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4383ef
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4383e4
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4389e7
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x438a49
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x43ae22
Capabilities:
Get token privileges

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push esi
push 0
push eax
push 3
push edi
call ebx
test eax, eax
jne 0x43ae73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x43ae7f
mov ecx, dword [esi]
push ecx
call fcn.0043ae0d
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x43ae7f
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x43ae7f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x43aec8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.0043ad95
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 0
mov esi, eax
push 0
push esi
call edi
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea edx, [esi + 8]
push edx
call edi
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push 0
push 0
push esi
push 0x43ae88
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x443af1
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebx
mov ebx, dword [esp + 0x25c]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [esp + 0x10]
push eax
push ebx
mov ebp, ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x443b82
jmp 0x443b21
lea ecx, [esp + 0x3c]
push 0x481e54
push ecx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443b72
lea edx, [esp + 0x3c]
push 0x484c38
push edx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443b72
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x26c]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004385f6
add esp, 0xc
test al, al
je 0x443c3c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x443b21
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [esp + 0x274], 0
je 0x443c2d
lea ecx, [esp + 0x10]
push ecx
push 0x484c30
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x443c26
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
nop
test byte [esp + 0x10], 0x10
je 0x443c16
lea edx, [esp + 0x3c]
push 0x481e54
push edx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443c16
lea eax, [esp + 0x3c]
push 0x484c38
push eax
call fcn.0041455e
add esp, 8
test eax, eax
je 0x443c16
lea ecx, [esp + 0x3c]
push ecx
call edi
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x26c]
push edx
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00443af1
test al, al
je 0x443c3c
push 0x484c38
call edi
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x443bb1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x254
ret 0x10

Function at 0x443eef
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x49f300], 0
push esi
push edi
mov esi, 0x49e930
jne 0x443f0f
push 0
call fcn.00416b32
push eax
call fcn.00436907
add esp, 8
mov dword [0x48caac], 0x270
mov dword [0x49e92c], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x443f24
mov edx, 0x18c
mov edi, edi
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x443f5f
mov ecx, dword [0x49e930]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret
Function at 0x444753
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x444765
push eax
call fcn.004443a2
mov eax, dword [esi + 0x24]
pop esi
test eax, eax
je 0x444776
mov dword [esp + 4], eax
jmp fcn.004443a2
ret 4

Function at 0x444801
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
push ecx
mov dword [esp + 0x18], edx
call fcn.00436ef0
test al, al
je 0x444853
test ebx, ebx
je 0x444853
test edi, edi
je 0x444853
push esi
push edx
lea eax, [esp + 0x1c]
push eax
lea esi, [ecx + 0x18]
mov ecx, dword [esi]
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x444849
push esi
call fcn.00436ed6
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
pop edi
mov eax, edx
pop ebx
ret 0xc

Function at 0x444ab1
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x444ace
push esi
call fcn.00437e30
add esp, 4
test al, al
jne 0x444ae7
push 1
jmp 0x444ad0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
ret

Function at 0x445668
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x44], 0
mov esi, eax
je 0x44574f
cmp edi, 0x14
je 0x44574f
cmp edi, 0x90
je 0x44574f
cmp edi, 0x91
je 0x44574f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp bl, 1
je 0x4456e0
push edi
call fcn.004393f9
cmp al, 1
jne 0x4456e6
or esi, 0x1000000
mov eax, dword [ebp + 0x40]
test al, 1
jne 0x4456f9
test eax, 0x100
jne 0x4456f9
cmp edi, 0x12
jne 0x445717
test al, 8
jne 0x445717
test eax, 0x800
jne 0x445717
mov ecx, dword [ebp + 0x44]
or esi, 0x20000000
push esi
push edi
push 0x105
push ecx
jmp 0x445722
mov edx, dword [ebp + 0x44]
push esi
push edi
push 0x101
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor byte [esp + edi + 0x10], 0x80
lea eax, [esp + edi + 0x10]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push ebp
call fcn.004397cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x445764
push edi
call fcn.004393f9
cmp al, 1
je 0x445764
push 0
push 2
jmp 0x445768
push 0
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.004397cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
Function at 0x445783
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebp + 0x44], 0
mov esi, eax
je 0x44587a
cmp edi, 0x14
je 0x44587a
cmp edi, 0x90
je 0x44587a
cmp edi, 0x91
je 0x44587a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [esp + edi + 0x10], 0x80
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp bl, 1
je 0x445808
push edi
call fcn.004393f9
cmp al, 1
jne 0x44580e
or esi, 0x1000000
mov eax, dword [ebp + 0x40]
test al, 1
jne 0x445821
test eax, 0x100
jne 0x445821
cmp edi, 0x12
jne 0x445856
test al, 8
jne 0x445856
test eax, 0x800
jne 0x445856
mov edx, dword [ebp + 0x44]
or esi, 0x20000000
push esi
push edi
push 0x104
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
mov eax, dword [ebp + 0x44]
push esi
push edi
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x44588f
push edi
call fcn.004393f9
cmp al, 1
je 0x44588f
push 0
push 0
jmp 0x445893
push 0
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push ebp
call fcn.004397b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
Function at 0x446894
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4468b0
mov eax, dword [esp + 0x10]
cmp byte [eax + 5], 1
jne 0x446908
push 0
push 0
push 0xe
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x4468c8
mov edi, 0x7fff
push ebp
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412288
add esp, 4
mov esi, eax
push esi
push ebp
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov word [esi + edi*2], cx
pop ebp
test eax, eax
jg 0x446913
push esi
call fcn.00412949
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xc], 0
jne 0x44692e
push esi
call fcn.004143ca
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.004148ec
add esp, 8
push esi
test eax, eax
je 0x446900
mov byte [edi + 0xb8], 1
call fcn.00412949
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x44b8e7
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
sub dword [0x48caac], 1
jne 0x44b8f6
call fcn.00443eef
mov ecx, dword [0x49e92c]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x49e92c], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
test edx, edx
jge 0x44b93f
fadd qword [0x487210]
fmul qword [0x487208]
pop ecx
ret
Function at 0x451fa5
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.00407c40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push bind
call ebp
test eax, eax
jne 0x4520ea
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4520df
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00401b10
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.0040df00
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push bind
call ebp
test eax, eax
jne 0x4520cd
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4520c2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00412485
add esp, 8
test eax, eax
jne 0x4520c2
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [sym.imp.ole32.dll_IIDFromString]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4520df
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x451fec
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040c430
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret