joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45afb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe0
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov edi, dword [esp + 0xf4]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edi
push accept
mov dword [esp + 0x34], eax
call esi
test eax, eax
jne 0x45b15f
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
mov ebp, 0xc8
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
call ebx
cmp dword [esp + 0x10], 0
jne 0x45b15f
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x30]
push edx
push accept
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x45b13f
jmp 0x45b070
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x57b270
push ecx
call esi
test eax, eax
je 0x45b116
test edi, edi
je 0x45b13f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push str.ScriptEngine
push eax
call esi
test eax, eax
jne 0x45b13f
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], eax
call ebx
cmp dword [esp + 0x10], 0
jne 0x45b13f
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
lea edx, [esp + 0x30]
push edx
push accept
mov dword [esp + 0x24], ebp
call esi
test eax, eax
je 0x45b070
jmp 0x45b13f
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
cmp dword [esp + 0x10], 0
jne 0x45b15f
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x45b164
mov eax, 0x80004005
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fa67
add esp, 0xe0
ret

Function at 0x45be20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
push edi
mov edi, dword [esp + 0x2c4]
jne 0x45be6a
mov eax, dword [esi + 8]
push 0x4001
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x2bc]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0x2b8
ret 4
Function at 0x45c810
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x68
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx esi, ax
push 0x32
lea eax, [esp + 0xc]
push eax
movzx ecx, si
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45c858
lea edx, [esp + 8]
push edx
call fcn.00540de3
add esp, 4
mov dword [0x5ed02c], eax
cmp esi, 0x412
jne 0x45c865
mov edi, 1
cmp edi, dword [0x5ed03c]
je 0x45c889
mov dword [0x5ed03c], edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0053fa67
add esp, 0x68
ret
mov ecx, dword [0x5ed04c]
call fcn.00458970
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0053fa67
add esp, 0x68
ret
Function at 0x45e890
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xe84
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xe80], eax
push esi
mov esi, dword [esp + 0xe8c]
push 0x25
push esi
call fcn.0054068a
add esp, 8
test eax, eax
je 0x45e8ed
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e8c0
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0xa7c]
push 0x208
push eax
call fcn.0044e210
add esp, 0x10
lea esi, [esp + 0xa74]
push esi
call fcn.00412280
add esp, 4
test eax, eax
je 0x45ea31
push esi
lea ecx, [esp + 0x258]
push 0x208
push ecx
call fcn.0054013c
lea eax, [esp + 0x260]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e920
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x45e958
cmp word [esp + esi*2 + 0x252], 0x5c
je 0x45e958
mov edx, 0x5c
mov word [esp + esi*2 + 0x254], dx
inc esi
xor eax, eax
mov word [esp + esi*2 + 0x254], ax
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x668]
push 0x208
push edx
call fcn.0054013c
mov eax, 0x208
push 0x575240
sub eax, esi
push eax
lea ecx, [esp + esi*2 + 0x678]
push ecx
call fcn.0054013c
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45ea94
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 8], 0x10
jne 0x45ea07
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x66c]
push 0x208
push edx
call fcn.0054013c
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x678]
push 0x208
push ecx
call fcn.005400bf
mov ecx, dword [0x5ba2a8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
add esp, 0x18
lea eax, [esp + 0x668]
push eax
call edx
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x45e9b4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.0053fa67
add esp, 0xe84
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ea36
sub eax, edx
sar eax, 1
test eax, eax
jle 0x45ea83
mov ecx, 0x2f
cmp cx, word [esi + eax*2 - 2]
jne 0x45ea83
mov ecx, dword [0x5ed04c]
push 0
push 1
push 1
push esi
add ecx, 0xc2c
call fcn.004dee60
pop esi
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.0053fa67
add esp, 0xe84
ret
mov ecx, dword [0x5ba2a8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
push esi
call eax
mov ecx, dword [esp + 0xe84]
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0xe84
ret
Function at 0x464ed0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, ecx
cmp eax, dword [edi + 0x1748]
jne 0x464eea
cmp dword [esp + 0xc], 0
je 0x465080
push ebx
push esi
mov dword [edi + 0x1748], eax
cmp eax, 1
jne 0x46500a
mov eax, dword [0x5ba2a8]
mov dword [0x5ed0a0], 0xffffffff
cmp dword [eax + 0xc4], 0x3b5
lea esi, [edi + 0xec]
mov ecx, esi
jne 0x464f51
cmp dword [0x5ed6bc], 0
je 0x464f3c
push 0xc
push 0x5b3f4c
call fcn.0051ad84
mov ecx, edi
call fcn.00458970
jmp 0x464f6f
push 0xb
push 0x5b3ef4
call fcn.0051ad84
mov ecx, edi
call fcn.00458970
jmp 0x464f6f
cmp dword [0x5ed6bc], 0
je 0x464f63
push 0xb
push 0x5b3f20
jmp 0x464f6a
push 0xa
push 0x5b3ecc
call fcn.0051ad84
cmp dword [0x5b46e8], 0
je 0x464fba
mov ecx, dword [0x5ed04c]
push 0xe704
add ecx, 0xec
call fcn.0051a432
mov ecx, dword [0x5ed04c]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051a48d
mov ecx, dword [0x5ed04c]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051ac93
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x465041
mov ecx, dword [0x5ed04c]
push 0xe701
add ecx, 0xec
call fcn.0051a432
mov ecx, dword [0x5ed04c]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051a48d
mov ecx, dword [0x5ed04c]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051ac93
jmp 0x465041
cmp eax, 2
jne 0x465017
push eax
push 0x5b3f7c
jmp 0x465034
cmp eax, 3
jne 0x465025
push 4
push 0x5b3f84
jmp 0x465034
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
lea esi, [edi + 0xec]
mov ecx, esi
call fcn.0051ad84
push 0
mov ecx, esi
call fcn.0051a48d
or eax, 0x8000100
push eax
push 0
mov ecx, esi
call fcn.0051ac93
mov edx, dword [edi + 0x10c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x10c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.00463b90
pop esi
pop ebx
pop edi
ret 8
Function at 0x465b30
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
sub esp, 0x428
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
mov ebp, dword [esp + 0x434]
mov ebx, ecx
cmp dword [ebx + 0x19cc], ebp
je 0x465cc1
mov eax, dword [ebx + 0x1770]
push edi
lea edi, [ebx + 0x1770]
test eax, eax
je 0x465b84
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
mov dword [ebx + 0x19cc], 0
test ebp, ebp
je 0x465cc0
lea eax, [esp + 0x10]
push eax
push str.JScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jge 0x465bd3
lea ecx, [esp + 0x10]
push ecx
push 0x57c1d8
call fcn.0045afb0
add esp, 8
test eax, eax
jge 0x465bd3
push 0xffffffffffffffff
push 0x10
push 0x552b
call fcn.0050bdf5
jmp 0x465cc0
push edi
push 0x5956ec
push 0x17
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x465ca3
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x5956fc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x465ca3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push eax
call edx
mov esi, eax
test esi, esi
jl 0x465c82
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x5b4008
push eax
call edx
mov esi, eax
test esi, esi
jl 0x465c82
mov eax, dword [edi]
mov edx, dword [0x5b4004]
mov ecx, dword [eax]
push 0x402
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
test esi, esi
jl 0x465c82
mov eax, str.emmet_epp.js
cmp ebp, 2
je 0x465c5e
mov eax, str.zen_coding_epp.js
push eax
lea ecx, [esp + 0x28]
push 0x208
push ecx
call fcn.004244d0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.00465970
add esp, 0x14
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
pop esi
jl 0x465ca3
mov edi, dword [edi]
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
push 2
push edi
call ecx
test eax, eax
jge 0x465cba
push 0xffffffffffffffff
push 0x10
push 0x5526
call fcn.0050bdf5
mov ecx, ebx
call fcn.0045aea0
jmp 0x465cc0
mov dword [ebx + 0x19cc], ebp
pop edi
mov ecx, dword [esp + 0x42c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fa67
add esp, 0x428
ret 4

Function at 0x466240
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x7d4
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x7d0], eax
mov eax, dword [esp + 0x7d8]
push esi
mov esi, dword [esp + 0x7e0]
push eax
push 0x3e8
lea eax, [esp + 0xc]
push eax
push 0x57bd68
push 0x571d4c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466290
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00401e70
mov ecx, dword [esp + 0x7d4]
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0x7d4
ret
Function at 0x469260
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x56233b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x430], eax
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov edi, dword [esp + 0x450]
lea eax, [esp + 0x2c]
push eax
call fcn.004f5840
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov dword [0x5ed030], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4692db
push 2
lea edx, [esp + 0x30]
push edx
push edi
call fcn.00468b80
add esp, 0xc
jmp 0x469367
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4692f5
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x5f7e
mov dword [esp + 0x44c], 0
call fcn.00508284
test eax, eax
je 0x469331
push 0x5f7e
push eax
lea ecx, [esp + 0x14]
call fcn.00401da0
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + 4]
push esi
push 0
push 1
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [esi - 0x10]
mov dword [esp + 0x448], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469367
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x5b3fe4]
mov ecx, dword [0x5ed030]
cmp ecx, eax
jge 0x469384
sub eax, ecx
push eax
push ecx
mov ecx, 0x5b3fdc
call fcn.00463750
mov edx, dword [edi + 4]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], eax
push edx
mov dword [esp + 0x18], 0x1c
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.USER32.dll_GetMenuInfo]
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
and eax, 0x7bffffff
push ecx
or eax, 0x4000000
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0053fa67
add esp, 0x440
ret
Function at 0x46a1f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x562448
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00540610
add esp, 0xc
mov dword [esp + 0x24], 0x44
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46a249
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], 0
test edx, edx
jne 0x46a26d
xor eax, eax
jmp 0x46a281
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a272
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401e70
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x46a2bd
cmp word [esi], 0
je 0x46a2bd
push 0x57c46c
lea ecx, [esp + 0x14]
call fcn.004022a0
push esi
lea ecx, [esp + 0x14]
call fcn.004022a0
push 0x22
lea ecx, [esp + 0x14]
call fcn.00405b30
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x46a2fa
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46a31e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x46a710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x430]
mov dword [esp + 0xc], 0x208
cmp dword [0x5ecedc], esi
je 0x46a7a4
lea eax, [esp + 8]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.htmlUserChoice
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a7a4
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.Progid
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46a795
lea esi, [eax + 1]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46a7c2
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push str..html
push accept
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x46a7f1
mov eax, dword [esp + 0x434]
push 0
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0046a340
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0053fa67
add esp, 0x424
ret
mov ecx, dword [esp + 0x428]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0053fa67
add esp, 0x424
ret
Function at 0x46c600
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov ecx, dword [0x5ed04c]
push 0
call fcn.0050bf67
test eax, eax
jne 0x46c7d9
mov ecx, dword [0x5ed04c]
cmp dword [ecx + 0x1748], 0
lea eax, [ecx + 0x1748]
push edi
mov edi, ecx
je 0x46c7d0
mov dword [eax], 0
mov eax, dword [eax]
push ebx
push esi
cmp eax, 1
jne 0x46c754
mov eax, dword [0x5ba2a8]
mov dword [0x5ed0a0], 0xffffffff
cmp dword [eax + 0xc4], 0x3b5
lea esi, [edi + 0xec]
mov ecx, esi
jne 0x46c69b
cmp dword [0x5ed6bc], 0
je 0x46c686
push 0xc
push 0x5b3f4c
call fcn.0051ad84
mov ecx, edi
call fcn.00458970
jmp 0x46c6b9
push 0xb
push 0x5b3ef4
call fcn.0051ad84
mov ecx, edi
call fcn.00458970
jmp 0x46c6b9
cmp dword [0x5ed6bc], 0
je 0x46c6ad
push 0xb
push 0x5b3f20
jmp 0x46c6b4
push 0xa
push 0x5b3ecc
call fcn.0051ad84
cmp dword [0x5b46e8], 0
je 0x46c704
mov ecx, dword [0x5ed04c]
push 0xe704
add ecx, 0xec
call fcn.0051a432
mov ecx, dword [0x5ed04c]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051a48d
mov ecx, dword [0x5ed04c]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051ac93
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x46c78b
mov ecx, dword [0x5ed04c]
push 0xe701
add ecx, 0xec
call fcn.0051a432
mov ecx, dword [0x5ed04c]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051a48d
mov ecx, dword [0x5ed04c]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051ac93
jmp 0x46c78b
cmp eax, 2
jne 0x46c761
push eax
push 0x5b3f7c
jmp 0x46c77e
cmp eax, 3
jne 0x46c76f
push 4
push 0x5b3f84
jmp 0x46c77e
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
lea esi, [edi + 0xec]
mov ecx, esi
call fcn.0051ad84
push 0
mov ecx, esi
call fcn.0051a48d
or eax, 0x8000100
push eax
push 0
mov ecx, esi
call fcn.0051ac93
mov edx, dword [edi + 0x10c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x10c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.00463b90
mov ecx, dword [0x5ed04c]
pop esi
pop ebx
pop edi
add esp, 4
jmp fcn.0046c440
pop ecx
ret
Function at 0x46e110
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
movzx eax, word [esi]
push edi
xor edi, edi
test ax, ax
je 0x46e17e
cmp ax, 0x5c
je 0x46e150
add esi, 2
mov word [esp + edi*2 + 8], ax
movzx eax, word [esi]
inc edi
test ax, ax
jne 0x46e137
jmp 0x46e17e
movzx eax, word [esi]
test ax, ax
je 0x46e17e
jmp 0x46e160
mov ecx, 0x5c
cmp cx, ax
jne 0x46e17e
movzx eax, word [esi + 2]
add esi, 2
mov edx, ecx
mov word [esp + edi*2 + 8], dx
inc edi
test ax, ax
jne 0x46e160
mov eax, 0x5c
cmp ax, word [esi]
jne 0x46e193
mov ecx, eax
mov word [esp + edi*2 + 8], cx
inc edi
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x46e1e6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x5c
je 0x46e1b9
add esi, 2
mov word [esp + edi*2 + 0xc], ax
movzx eax, word [esi]
inc edi
test ax, ax
jne 0x46e1a2
xor edx, edx
push edx
lea eax, [esp + 0x10]
push eax
mov word [esp + edi*2 + 0x14], dx
call ebx
mov ecx, 0x5c
cmp cx, word [esi]
jne 0x46e1dd
mov edx, ecx
mov word [esp + edi*2 + 0xc], dx
inc edi
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x46e1a2
pop ebx
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0x414
ret

Function at 0x46e510
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e56d
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.00540610
mov ecx, dword [0x5ed04c]
add esp, 0xc
mov dword [esp + 4], 0x3c
mov edx, dword [ecx + 0x20]
lea eax, [esp + 4]
push eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], str.properties
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 0xc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
add esp, 0x3c
ret
push 0xffffffffffffffff
push 0
push 0x5ba3
call fcn.0050bdf5
pop esi
add esp, 0x3c
ret

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xb0], 0
jne 0x46ea9b
cmp dword [0x5ed780], 0
jne 0x46ea2c
cmp dword [esp + 0xc], 0
jne 0x46ea9b
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ea9b
test al, 1
je 0x46ea74
cmp dword [esi + 0x64], 0
jne 0x46ea9b
push 1
mov ecx, esi
call fcn.0046e020
mov dword [esi + 0x64], 1
mov dword [esi + 0x60], 1
cmp dword [0x5ed798], 0
je 0x46ea9b
mov dword [esi + 0x94], 1
pop esi
ret 8
cmp dword [esi + 0x64], 0
je 0x46ea9b
push 0
mov ecx, esi
call fcn.0046e020
mov dword [esi + 0x64], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x60], 0
pop esi
ret 8
Function at 0x472100
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x824
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x820], eax
mov ecx, dword [esp + 0x82c]
push edi
mov edi, dword [esp + 0x82c]
test ecx, ecx
jl 0x472266
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [eax*4 + 0x5b8fa8]
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x1ef8
mov ecx, dword [ecx + eax + 0x9c]
test ecx, ecx
je 0x472266
xor edx, edx
cmp dx, word [ecx]
je 0x472266
xor eax, eax
mov word [esp + 4], ax
mov eax, ecx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x472180
push 0x208
sub eax, esi
lea edx, [esp + 0xc]
push edx
sar eax, 1
push eax
push ecx
call fcn.0046e0b0
mov edx, dword [esp + 0x848]
movzx ecx, word [edx]
add esp, 0x10
cmp cx, 0x2f
je 0x4721be
mov esi, 0x5c
mov word [esp + eax*2 + 8], si
inc eax
test cx, cx
je 0x4721e6
movzx ecx, cx
mov esi, 0x2f
add edx, 2
cmp si, cx
jne 0x4721d8
mov ecx, 0x5c
mov word [esp + eax*2 + 8], cx
movzx ecx, word [edx]
inc eax
test cx, cx
jne 0x4721c3
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0xc], cx
lea eax, [esp + 0x41c]
push 0x208
push eax
call fcn.0054013c
lea ecx, [esp + 0x424]
push 0x5c
push ecx
call fcn.00540fb2
add esp, 0x14
pop esi
test eax, eax
je 0x472220
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x472242
lea ecx, [esp + 0x414]
push ecx
call fcn.0046e110
add esp, 4
push 0
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0053fa67
add esp, 0x824
ret
mov ecx, dword [esp + 0x824]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0053fa67
add esp, 0x824
ret