joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422eb8
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x45cb1d
call fcn.0044d930
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
push 0x3a
push edi
call fcn.0044fb20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422f0a
lea eax, [esi + 1]
push eax
call fcn.0043a850
movzx ebx, ax
test bx, bx
je 0x422f0a
sub esi, edi
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0042c825
mov edi, dword [ebp - 0x20]
jmp 0x422f0f
mov ebx, 0x1ff1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x422f27
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x422f35
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x422f59
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042b5df
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop esi
mov dword [ebp - 0x2c], eax
mov eax, esi
push ebx
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [ebp - 0x2e], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x422f3c
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push edi
call fcn.00422e0e
add esp, 0x10
test al, al
je 0x422f3c
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x422fed
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422c8b
add esp, 0xc
test al, al
jne 0x422fc4
push 2
pop esi
jmp 0x422f3c
cmp dword [ebp - 0x1c], ebx
je 0x422fd8
push dword [ebp - 0x20]
call fcn.0043a850
mov esi, eax
jmp 0x422f3c
push 1
push ebx
push esi
push edi
call fcn.00422e0e
add esp, 0x10
test al, al
jne 0x422fed
push 6
jmp 0x422fbe
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00422c8b
add esp, 0xc
test al, al
je 0x422fbc
cmp dword [ebp - 0x1c], ebx
jne 0x422fc9
cmp dword [ebp + 0x18], ebx
je 0x42302b
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push edi
call fcn.00422c8b
add esp, 0xc
test al, al
jne 0x423021
push 7
jmp 0x422fbe
test byte [ebp + 0x1c], 0x80
je 0x42302b
push 8
jmp 0x422fbe
xor esi, esi
jmp 0x422f3c

Function at 0x425a10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
mov esi, dword [esp + 0x10]
inc dword [esi + 0x10]
xor ebp, ebp
cmp byte [esi + 0xa], 0
je 0x425a2c
call ebx
mov ebp, eax
push dword [esi + 4]
call dword [esi]
pop ecx
cmp al, byte [esi + 8]
je 0x425a3b
mov al, 1
jmp 0x425a6b
cmp byte [esi + 0xa], 0
je 0x425a69
push edi
mov edi, dword [esi + 0x10]
call ebx
movzx edx, word [esi + 0x14]
lea ecx, [edi - 1]
imul ecx, edx
sub ecx, ebp
add eax, ecx
xor edx, edx
div edi
mov ecx, 0x1388
pop edi
cmp eax, ecx
jb 0x425a65
mov eax, ecx
mov word [esi + 0x14], ax
xor al, al
pop esi
pop ebp
pop ebx
ret
Function at 0x42615c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
and eax, 1
push esi
mov dword [esp + 4], eax
je 0x426172
call fcn.0042e642
jmp 0x426178
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4261e6
push ebx
push ebp
push edi
call fcn.0042d3f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [eax + 0x4c]
call ebx
mov ebp, eax
xor esi, esi
cmp edi, esi
je 0x4261b3
test byte [esp + 0x1c], 2
push esi
pop eax
setne al
mov ecx, edi
lea eax, [eax + eax - 1]
push eax
push 0xa
call fcn.00426065
jmp 0x4261c0
push esi
push esi
push esi
push 0xa
call fcn.00431a68
add esp, 0x10
cmp dword [esp + 0x10], esi
je 0x4261cd
call fcn.0042e642
jmp 0x4261d3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4261e3
call ebx
sub eax, ebp
cmp eax, dword [esp + 0x18]
jb 0x426193
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
pop ecx
ret

Function at 0x426246
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], ecx
call edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.00425a7b
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp ebx, esi
jne 0x4262ca
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, bl
push ebx
call esi
mov byte [ebp + 0x13], al
jmp 0x4262af
push ebx
call esi
cmp al, byte [ebp + 0x13]
je 0x426292
test al, al
jns 0x4262c2
mov byte [ebp + 0x13], al
cmp dword [ebp + 8], 0xffffffff
je 0x4262af
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jb 0x4262af
mov ecx, dword [ebp - 8]
push 0x21c
call fcn.004052ff
mov ecx, dword [ebp - 8]
push 5
call fcn.004052e9
test al, al
jne 0x426283
jmp 0x42638d
mov eax, dword [ebp + 0xc]
jmp 0x426393
cmp dword [ebp + 0xc], esi
push 5
pop edi
mov dword [ebp - 4], edi
jg 0x4262eb
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov byte [ebp + ebx - 0x10c], al
inc ebx
cmp ebx, esi
jle 0x4262d5
push edi
jmp 0x42637d
call fcn.0043ab2e
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov edi, edx
jmp 0x426320
cmp ebx, 3
je 0x42631f
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [ebp + ebx - 0x10c]
cmp al, byte [ecx]
je 0x42631f
test al, al
jns 0x426391
mov byte [ecx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jle 0x4262ff
call fcn.0043ab2e
push 0
push dword [ebp - 4]
sub eax, esi
sbb edx, edi
push edx
push eax
call fcn.004502b0
test edx, edx
jl 0x426350
jg 0x426345
cmp eax, 0xa
jbe 0x426350
cmp dword [ebp - 4], 0x32
jae 0x426359
inc dword [ebp - 4]
jmp 0x426359
cmp dword [ebp - 4], 5
jbe 0x426359
dec dword [ebp - 4]
cmp dword [ebp + 8], 0xffffffff
je 0x42637a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jb 0x42637a
mov ecx, dword [ebp - 8]
push 0x21c
call fcn.004052ff
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004052e9
test al, al
jne 0x4262f1
xor eax, eax
jmp 0x426393
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42a968
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x45d4d7
call fcn.0044d930
sub esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], esi
call fcn.00404792
mov dword [ebp - 4], esi
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call fcn.0043c8d4
mov dword [ebp - 0x10], esi
cmp ebx, esi
jne 0x42a9d4
cmp dword [ebp - 0x14], 4
je 0x42a9cd
push 0xd
pop ebx
jmp 0x42a9d4
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x42a9dd
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42d2b5
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x42d2f6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0xc], eax
pop ebx
push esi
push dword [0x472ff0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.0042e0ef
test byte [esi + 4], 2
jne 0x42d316
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or byte [esi + 5], 1
pop edi
pop esi
ret

Function at 0x42d328
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.0042ced1
test byte [esi + 4], 2
jne 0x42d33f
call dword [sym.imp.ole32.dll_OleUninitialize]
test byte [esi + 4], 1
je 0x42d351
mov eax, dword [esi]
mov byte [esi + 6], 1
mov ecx, esi
pop esi
jmp dword [eax + 4]
push 0
push dword [0x472ff0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
pop esi
ret

Function at 0x42d36a
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.0042ced1
mov ecx, esi
call fcn.0042cf07
test al, al
je 0x42d39a
test byte [esi + 4], 2
jne 0x42d38c
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0
push dword [0x472ff0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x42d3a7
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
pop esi
ret

Function at 0x42d3a9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x472ff0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d3c0
mov ecx, eax
jmp fcn.0042d328
ret

Function at 0x42d3c1
Capabilities:
Terminate thread

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or byte [esi + 5], 2
pop esi
ret 4

Function at 0x42d450
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x472f98]
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 4]
mov esi, eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push 0x10004
push esi
and eax, 8
push 0x42d42d
shl eax, 0xf
push eax
push 0
call fcn.00450fde
mov edi, eax
add esp, 0x18
test edi, edi
je 0x42d4ad
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042d28b
test byte [ebp + 0x10], 4
jne 0x42d4a9
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
jmp 0x42d4bc
test esi, esi
je 0x42d4ba
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x42e74b
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x431783
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45d22e
call fcn.0044d930
sub esp, 0x20
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040197f
xor edi, edi
mov dword [ebp - 4], edi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00435a5f
test eax, eax
jne 0x4317c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004019a9
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x8000
mov dword [ebp - 0x14], edi
call fcn.00432a26
pop ecx
xor ecx, ecx
cmp edx, ecx
ja 0x4317ed
jb 0x4317e9
cmp eax, dword [ebp - 0x10]
jae 0x4317ed
inc eax
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004041a5
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x431858
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x43187b
cmp byte [ebp + 0x10], 0
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
je 0x431836
push ebx
call dword [0x472fdc]
jmp 0x431844
push dword [ebp - 0x14]
call sym.qmmacro.exe___Crc
add esp, 0xc
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x43181c
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042b5df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004019a9
pop esi
mov al, bl
pop ebx
jmp 0x4317bc
cmp byte [ebp + 0x10], 0
jne 0x431886
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov bl, 1
jmp 0x43185a

Function at 0x431a68
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x431a8e
cmp dword [ebp + 0x14], edi
jne 0x431a8e
push dword [ebp + 0xc]
call fcn.004319e9
pop ecx
test al, al
je 0x431aff
mov eax, 0x102
jmp 0x431b02
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffa41
add esi, 0x5ff
push dword [ebp + 0xc]
call fcn.004319e9
pop ecx
test al, al
je 0x431aff
cmp edi, 0xffffffff
je 0x431ae0
mov eax, 0xfff6d83f
cmp edi, eax
jb 0x431ace
mov edi, eax
call ebx
sub eax, dword [ebp + 8]
cmp eax, edi
jae 0x431ade
sub edi, eax
add dword [ebp + 8], eax
jmp 0x431ae0
xor edi, edi
mov eax, dword [ebp + 0xc]
push esi
push edi
shr eax, 2
and eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, dword [ebp + 0x14]
je 0x431ab1
jmp 0x431b02
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x431d56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x45d26c
call fcn.0044d930
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, eax
je 0x431d74
mov dword [ecx], eax
cmp dword [ebp + 0x10], eax
jne 0x431d80
mov dword [ebp + 0x10], 0xfc
cmp dword [ebp + 0x14], eax
jne 0x431d8e
mov ecx, dword [0x473118]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x18]
mov edi, 0x10000
and ebx, 1
je 0x431dd4
cmp ecx, edi
jb 0x431dc4
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040611e
mov dword [ebp - 0x20], eax
cmp esi, edi
jb 0x431dd4
push esi
lea ecx, [ebp - 0x14]
call fcn.0040611e
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x431e57
test ebx, ebx
je 0x431e19
cmp dword [ebp - 0x20], edi
jae 0x431dfa
cmp dword [ebp - 0x24], edi
jb 0x431e19
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0x14]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x431e57
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.0043c8d4
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043c8d4
and dword [ebp - 0x18], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
jne 0x431e88
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043c8d4
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043c8d4
mov dword [ebp - 0x18], ebx
jmp 0x431e39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x431eb8
xor esi, esi
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043c8d4
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043c8d4
mov dword [ebp - 0x18], ebx
mov eax, esi
jmp 0x431e3b
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x431ecd
push dword [ebp - 0x1c]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
mov esi, edi
jmp 0x431e97
Function at 0x432590
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45cd5e
call fcn.0044d930
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4326d8
cmp byte [esi], bl
je 0x4326d8
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
test byte [ebp + 0xc], 4
je 0x4325d3
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.00437800
mov esi, eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
cmp edi, ebx
jne 0x4325e3
lea edi, [ebp - 0x14]
cmp byte [esi], 0x5c
jne 0x43264b
lea eax, [esi + 1]
cmp byte [eax], 0x5c
jne 0x43261b
cmp byte [esi + 2], 0x3f
jne 0x43261b
cmp byte [esi + 3], 0x5c
jne 0x43261b
push 8
pop ebx
push 4
add esi, 4
push str.UNC_
push esi
call sym.qmmacro.exe_q_strnicmp
add esp, 0xc
test eax, eax
jne 0x43264b
add esi, 3
jmp 0x432622
mov esi, eax
cmp byte [esi], 0x5c
jne 0x432646
push 0
push 0
push edi
push 0x40
push 0x46344c
push esi
call fcn.0044525f
add esp, 0x18
test eax, eax
jl 0x4326cc
add esi, dword [edi]
or ebx, 2
jmp 0x432671
push 0x11
pop ebx
jmp 0x432671
cmp byte [esi + 1], 0x3a
jne 0x4326cc
movzx eax, byte [esi]
mov ecx, 0x103
test word [eax*2 + 0x474460], cx
je 0x4326cc
mov dword [ebp + 8], esi
inc esi
inc esi
cmp byte [esi], 0x5c
jne 0x43266e
inc esi
or ebx, 1
mov eax, esi
sub eax, dword [ebp - 0x10]
mov dword [edi], eax
cmp byte [esi], 0
je 0x432686
test byte [ebp + 0xc], 1
jne 0x4326cc
or ebx, 4
test byte [ebp + 0xc], 2
je 0x4326bc
mov eax, ebx
and al, 0x11
cmp al, 1
jne 0x4326bc
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [ebp + 9], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 8], cl
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4326bc
or ebx, 2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042b5df
mov eax, ebx
jmp 0x4326da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042b5df
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x433fca
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45d3f4
call fcn.0044d930
push ecx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [ebp - 4], ecx
xor eax, eax
lea edi, [esi + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ecx
mov byte [ebp - 4], 2
xor eax, eax
lea edi, [esi + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 3
xor eax, eax
lea edi, [esi + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00433ef1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x434656
Capabilities:
Get disk size

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x45d445
call fcn.0044d930
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x4c]
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x434729
cmp byte [ebx], 0
je 0x434729
xor eax, eax
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
push esi
push ebx
lea ecx, [ebp + 0x34]
call fcn.004376b1
push 0x5c
lea ecx, [ebp + 0x34]
call fcn.00431c9c
push esi
push 3
push ebx
call fcn.00432590
add esp, 0xc
cmp eax, esi
je 0x434740
test al, 2
jne 0x434757
push 0x5c
lea ecx, [ebp + 0x34]
call fcn.0042b946
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 5
call ebx
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 1
push esi
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x434714
mov esi, dword [ebp + 0x24]
sub esi, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x28]
sbb edi, dword [ebp + 0x30]
mov byte [ebp - 4], 0
push dword [ebp + 0x4c]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0042b5df
mov eax, esi
mov edx, edi
jmp 0x43472e
mov byte [ebp - 4], 0
push dword [ebp + 0x4c]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0042b5df
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x44
leave
ret
lea eax, [ebp]
push eax
push esi
push dword [ebp + 0x34]
call fcn.004365b9
test eax, eax
je 0x43471d
test byte [ebp], 0x10
je 0x434797
push 0x20000024
push dword [ebp + 0x34]
lea ecx, [ebp - 0x54]
xor edi, edi
call fcn.00433fca
mov byte [ebp - 4], 2
jmp 0x43477b
lea ecx, [ebp - 0x54]
call fcn.00432c1c
add esi, eax
adc edi, edx
lea ecx, [ebp - 0x54]
call fcn.00434287
test eax, eax
jne 0x43476f
mov byte [ebp - 4], al
lea ecx, [ebp - 0x54]
call fcn.004049f3
jmp 0x434702
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x30], esi
xor ecx, ecx
xor esi, esi
or ecx, edx
or eax, esi
mov esi, ecx
mov edi, eax
jmp 0x434702
Function at 0x434865
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
movzx eax, bl
test byte [eax + 0x472e98], 8
je 0x43487f
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x4348a2
cmp ebx, 1
je 0x434889
cmp ebx, 2
jne 0x434898
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x434898
xor ebx, 3
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov al, cl
pop ebx
ret 4

Function at 0x4348b0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor edi, edi
call esi
test ax, ax
jge 0x4348c4
inc edi
push 0x11
call esi
test ax, ax
jge 0x4348d0
or edi, 2
push 0x12
call esi
test ax, ax
jge 0x4348dc
or edi, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x434bb6
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x45d457
call fcn.0044d930
push ebx
mov bl, byte [ebp + 0xc]
test bl, 2
je 0x434bd6
mov ecx, dword [ebp + 0x10]
push str.Ctrl
call fcn.00401c34
test bl, 1
je 0x434be8
mov ecx, dword [ebp + 0x10]
push str.Shift
call fcn.00401c34
test bl, 4
je 0x434bfa
mov ecx, dword [ebp + 0x10]
push str.Alt
call fcn.00401c34
test bl, 8
je 0x434c0c
mov ecx, dword [ebp + 0x10]
push str.Win
call fcn.00401c34
cmp byte [ebp + 8], 0
je 0x434d4a
cmp byte [ebp + 8], 0x5b
je 0x434d3d
push esi
push edi
push 0
push dword [ebp + 8]
call fcn.004348e1
movzx edi, byte [ebp + 8]
mov bl, byte [edi + 0x472e98]
movzx esi, al
shr bl, 1
pop ecx
shl esi, 0x10
and bl, 1
pop ecx
je 0x434c4b
or esi, 0x1000000
push 0x64
lea ecx, [ebp + 0xc]
or esi, 0x2000000
call fcn.0043252b
and dword [ebp - 4], 0
push 0x64
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x434cc0
mov eax, dword [ebp + 0xc]
test bl, bl
je 0x434c8c
cmp word [eax + 2], 0
jne 0x434c8c
movzx ecx, word [eax]
cmp cx, 0x41
jb 0x434c8c
cmp cx, 0x5a
jbe 0x434cc0
mov cl, byte [ebp + 8]
add cl, 0x60
cmp cl, 5
ja 0x434cb3
test byte [ebp + 8], 1
mov eax, str.Right
jne 0x434ca7
mov eax, str.Left
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00401c34
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.00434b3a
jmp 0x434d29
mov al, byte [ebp + 8]
mov cl, al
add cl, 0x5a
cmp cl, 0x11
ja 0x434cf1
add al, 0x5a
movzx eax, al
mov eax, dword [eax*4 + 0x463600]
lea ecx, [eax + 1]
movsx eax, byte [eax]
push ecx
push dword [eax*4 + 0x4635ec]
mov ecx, dword [ebp + 0x10]
call fcn.0042c6bf
jmp 0x434d29
mov ecx, dword [ebp + 0x10]
sub al, 0x7c
cmp al, 0xb
ja 0x434d0f
push 0x46
call fcn.0042b946
mov ecx, dword [ebp + 0x10]
add edi, 0xffffff91
push edi
call fcn.0043251e
jmp 0x434d29
push 0x28
call fcn.0042b946
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0043251e
mov ecx, dword [ebp + 0x10]
push 0x29
call fcn.0042b946
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
call fcn.0043c8d4
and dword [ebp + 0xc], 0
pop edi
pop esi
jmp 0x434d4a
mov ecx, dword [ebp + 0x10]
push 0x4635e8
call fcn.00401c34
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret