joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bbd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bc03
push esi
call fcn.0044ece0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44bbfc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44bc89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44bc72
mov eax, dword [esi + 8]
test eax, eax
je 0x44bc27
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bc6e
cmp eax, 2
je 0x44bc72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bc1a
cmp eax, 3
je 0x44bc4d
cmp eax, 1
jne 0x44bc1a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bc1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bc1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bcb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bc98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bcb0
add esp, 4
pop esi
ret

Function at 0x46a733
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a76b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004687ea
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004687c2
jmp 0x46a777
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46be26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46be68
call fcn.004718e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46be68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46be5f
xor eax, eax
jmp 0x46be70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046be76
pop edi
pop esi
pop ebx
ret 4

Function at 0x471e12
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471e40
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471e5e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471d78
jmp 0x471e5e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471e5e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471d78
test edi, edi
mov eax, edi
jne 0x471e48
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x46ac40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5f000]
push edi
or ebp, 0xffffffff
jmp 0x46ac62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46ac69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ac58
mov eax, 1
add ebx, ebx
jne 0x46ac7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46ac70
jne 0x46ac8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46ac70
xor ecx, ecx
sub eax, 3
jb 0x46aca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46ad12
mov ebp, eax
add ebx, ebx
jne 0x46acab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46acb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46acdc
inc ecx
add ebx, ebx
jne 0x46acc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46acbd
jne 0x46acd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46acbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46acfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46aced
jmp 0x46ac5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46acfc
add edi, ecx
jmp 0x46ac5e
pop esi
mov edi, esi
mov ecx, 0x7eb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46ad1a
cmp byte [edi], 6
jne 0x46ad1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46ad1f
lea edi, [esi + 0x68000]
mov eax, dword [edi]
or eax, eax
je 0x46ad8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4084]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb40e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46ad4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb40ec]
or eax, eax
je 0x46ad88
mov dword [ebx], eax
add ebx, 4
jmp 0x46ad69
call dword [esi + 0xb40f4]
mov ebp, dword [esi + 0xb40f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46adc2
sub esp, 0xffffff80
jmp 0x412294
Function at 0x4ee3c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa3000]
push edi
or ebp, 0xffffffff
jmp 0x4ee3e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ee3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee3d8
mov eax, 1
add ebx, ebx
jne 0x4ee3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ee40c
jne 0x4ee41c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee41c
dec eax
add ebx, ebx
jne 0x4ee418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ee3f0
xor ecx, ecx
sub eax, 3
jb 0x4ee434
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ee4a6
sar eax, 1
mov ebp, eax
jmp 0x4ee43f
add ebx, ebx
jne 0x4ee43f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4ee44c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4ee470
inc ecx
add ebx, ebx
jne 0x4ee45c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ee451
jne 0x4ee46d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ee451
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ee490
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ee481
jmp 0x4ee3de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ee490
add edi, ecx
jmp 0x4ee3de
pop esi
mov edi, esi
mov ecx, 0x64
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ee4ae
cmp byte [edi], 3
jne 0x4ee4ae
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4ee4b3
lea edi, [esi + 0xec000]
mov eax, dword [edi]
or eax, eax
je 0x4ee522
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xee0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xee140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ee4e0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xee144]
or eax, eax
je 0x4ee51c
mov dword [ebx], eax
add ebx, 4
jmp 0x4ee4fd
call dword [esi + 0xee148]
popal
jmp 0x401186
Function at 0x407ce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407d02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407d09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407cf8
mov eax, 1
add ebx, ebx
jne 0x407d1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407d10
jne 0x407d2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407d10
xor ecx, ecx
sub eax, 3
jb 0x407d40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407db2
mov ebp, eax
add ebx, ebx
jne 0x407d4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407d58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407d7c
inc ecx
add ebx, ebx
jne 0x407d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407d5d
jne 0x407d79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407d5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407d9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407d8d
jmp 0x407cfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407d9c
add edi, ecx
jmp 0x407cfe
pop esi
mov edi, esi
mov ecx, 0x64
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407dba
cmp byte [edi], 0
jne 0x407dba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x407dbf
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407e2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407dec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7068]
or eax, eax
je 0x407e28
mov dword [ebx], eax
add ebx, 4
jmp 0x407e09
call dword [esi + 0x7078]
mov ebp, dword [esi + 0x706c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x407e62
sub esp, 0xffffff80
jmp 0x4036d0
Function at 0x409a74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409a90
mov dword [esp], 1
jmp 0x409aa0
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x409ad2
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409ac2
mov dword [esp], 1
jmp 0x409ad2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x409b04
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409af4
mov dword [esp], 1
jmp 0x409b04
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x409b33
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409b26
mov dword [esp], 1
jmp 0x409b33
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x409b59
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409b59
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x409b7f
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409b7f
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x409ba5
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, ebx
je 0x409ba5
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x409bb2
xor edx, edx
mov eax, 1
jmp 0x409bb2
add esp, 4
pop ebx
ret 0x10

Function at 0x40c98c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40ca70
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ca26
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040d4d5
mov ebx, eax
cmp ebx, edi
je 0x40ca65
push dword [ebp + 8]
push dword [0x4975f8]
call fcn.00413ad3
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040d478
push eax
push ebx
call fcn.0040d45e
push eax
call fcn.0040d0b9
cmp eax, edi
mov dword [esi], eax
je 0x40ca1e
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40ca65
push ebx
call fcn.0040d485
jmp 0x40ca65
push ebx
push edi
push dword [0x496e6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40ca65
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040d0a3
push esi
push edi
push dword [0x496e6c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40cbad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x4975f8]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.00413b6a
mov esi, eax
cmp esi, ebx
je 0x40cd28
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40cc5d
push dword [ebp + 8]
call fcn.0040d1d6
jmp 0x40cbf0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40cbe8
push dword [esi + 0x14]
call fcn.0040d4ae
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040ca8a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40caff
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40cc32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cc43
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d26c
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40cd28
test byte [ebp + 0xc], 1
je 0x40cc66
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40ccf0
push esi
call fcn.0040cd42
lea eax, [esi + 4]
push 0xc
push eax
call fcn.00414170
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x49760c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40cd28
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40ccd6
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d206
jmp 0x40cce2
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x40cd28
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cd11
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d26c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40cd28
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d64e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40d666
push dword [esp + 4]
push 0x40d5e7
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x40d6a3
push esi
mov esi, dword [0x497638]
test esi, esi
je 0x40d6a2
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40d69a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x497638
call fcn.0041419d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x40d673
pop edi
pop ebx
pop esi
ret 4
Function at 0x40dd41
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x497648], 0
jne 0x40dd53
call fcn.0040dc92
push esi
push edi
push dword [0x497644]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40dd78
call fcn.0040dc92
push dword [0x497644]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40dd81
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040dc49
dec edi
pop ecx
pop ecx
jne 0x40ddb2
pop edi
pop esi
leave
ret 4
Function at 0x411110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.DLL_GetPropA]
mov dword [ebp - 4], eax
je 0x41119b
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 9
call esi
test al, al
jns 0x41118d
push 0x11
call esi
test al, al
js 0x41118d
push 0x10
call esi
test al, al
js 0x41118d
push 0x12
call esi
test al, al
js 0x41118d
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41118d
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageA]
test ax, 0x800
je 0x4111bb
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4111bb
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x4111bb
dec eax
push eax
push dword [0x497be0]
call fcn.00413b6a
mov eax, dword [eax + 8]
jmp 0x4111bd
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x411547
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x411658
cmp byte [eax], 0
je 0x411658
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x4115a1
cmp eax, 3
jne 0x4115de
cmp byte [ebp - 0x107], 0x3a
jne 0x4115de
cmp eax, 2
jne 0x4115c2
lea eax, [ebp - 0x108]
push 0x448288
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x411658
jmp 0x411652
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x4115da
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41162a
test byte [ebp - 0x248], 0x10
je 0x41160d
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x411621
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411658
cmp byte [ebp - 0x108], 0x5c
jne 0x411658
cmp byte [ebp - 0x107], 0x5c
jne 0x411658
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411658
test al, 0x10
je 0x411658
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x411670
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4116a5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4118c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x411919
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x411918
mov eax, dword [esp + 0x10]
mov ecx, dword [0x497bf8]
push eax
push ecx
call fcn.00413b6a
test eax, eax
je 0x411914
cmp dword [eax + 4], 0
je 0x411902
push esi
push edi
push eax
call fcn.00411c80
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x411920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00414640
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x497bf8]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00413b6a
mov ebx, eax
test ebx, ebx
je 0x411a3e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41197e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411d80
mov dword [esp + 0x14], eax
jmp 0x411995
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x4119a7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x4119d1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00414640
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x411a3d
cmp dword [esp + 0x14], 0
je 0x4119e8
cmp al, 0xd
je 0x4119e8
cmp al, 0xa
jne 0x411960
sub ebp, 1
cmp al, 0xd
jne 0x411a3d
cmp dword [ebx + 4], 0
je 0x411a04
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00411d80
jmp 0x411a1b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x411a3d
cmp dword [ebx + 4], 0
je 0x411a2e
add dword [ebx + 0xc], 1
jmp 0x411a3d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.004146e0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8