joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416e3f
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x416e94
push dword [esp + 0x10]
push 0x416dbe
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5848c0]
test esi, esi
je 0x416eed
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x416e8c
cmp byte [esi + 0x10], 0
je 0x416e8c
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x416e68
jmp 0x416eed
mov esi, dword [0x5848c0]
test esi, esi
je 0x416eed
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x416ee6
cmp byte [esi + 0x11], 0
je 0x416ec2
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x416ed9
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5848c0
call fcn.00451f28
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x416ea1
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41f740
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x1b0
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1bc]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c4]
push ebp
mov ebp, dword [esp + 0x1cc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1d0]
push esi
mov dword [esp + 0x38], eax
lea esi, [esp + 0x24]
mov eax, dword [esp + 0x1d8]
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], eax

Function at 0x430f1d
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x585c98]
call fcn.004515fb
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x43101d
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x430f73
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x430f6b
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x430fb3
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x430ff5
push 0x22
pop edx
cmp cx, dx
je 0x430fa5
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x430f95
xor ecx, ecx
cmp word [eax], cx
je 0x430ff5
mov ecx, eax
add eax, 2
jmp 0x430ff7
test dx, dx
je 0x430ffd
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x430fa5
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x430feb
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x430ff5
cmp cx, dx
je 0x430fe8
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x430fd8
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x430fbd
jmp 0x430fa5
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x430fff
xor edx, edx
cmp dword [ebp], ebx
jne 0x431008
test edi, edi
jne 0x431025
test edx, edx
je 0x43100d
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x430f61
test edi, edi
jne 0x431036
mov eax, ebx
jmp 0x43103a
test esi, esi
je 0x431036
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x43103a
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x43180b
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x4318ba
cmp dword [esp + 0x24], 2
je 0x4318ba
push 0x2000
push edi
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
jmp 0x43188d
cmp dword [esp + 0x18], 2
jne 0x4318a5
test ebx, ebx
jne 0x431876
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4318a5
cmp ax, 0xd
je 0x43188d
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x43184d
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00486ec0
jmp 0x431940
push eax
push 0
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
jmp 0x43190c
cmp dword [esp + 0x18], 1
jne 0x431924
test ebx, ebx
jne 0x4318fb
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x431924
cmp al, 0xd
je 0x43190c
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x4318d3
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x43193b
call fcn.00486f10
jmp 0x431940
call fcn.00486e60
push esi
push 0
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x432703
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x5848dc], 0
jne 0x43272f
push 0x432652
push 0x10
push 0x2c
mov dword [0x5848dc], edi
call fcn.0045183f
mov dword [0x5848d8], eax
cmp word [0x5848d0], 0
jne 0x4327cb
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x43275a
mov word [0x5848d0], di
jmp 0x432762
xor eax, eax
mov word [0x5848d0], ax
push str.ws2_32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x5848ec], eax
test eax, eax
je 0x4327cb
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x5848ec]
mov dword [0x5848e0], eax
call esi
push str.getnameinfo
push dword [0x5848ec]
mov dword [0x5848e4], eax
call esi
cmp dword [0x5848e0], 0
mov dword [0x5848e8], eax
pop esi
je 0x4327cb
cmp dword [0x5848e4], 0
je 0x4327cb
test eax, eax
je 0x4327cb
mov dword [0x5848d4], edi
movsx eax, word [0x5848d0]
pop edi
add esp, 0x190
ret
Function at 0x433180
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5848f4], 0
jne 0x43318e
call fcn.00433120
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
push dword [0x5848f8]
call esi
test eax, eax
jne 0x4331b1
call fcn.00433120
push dword [0x5848f8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x4331c0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x433220
mov ebx, 0x10
test edi, edi
jns 0x433229
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4331f2
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x434d13
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x434d2d
inc esi
push 2
call edi
test bx, ax
je 0x434d39
or esi, 2
push 4
call edi
test bx, ax
je 0x434d45
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x435271
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4352a9
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x43538e
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x43538e
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4353bc
test ebp, ebp
jle 0x4353bc
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4353bc
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x435385
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x43532f
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x435344
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x4353bc
cmp dword [edi + 0x10], ebx
je 0x4353a8
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x4353bc
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x4353cc
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4353d4
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.0043afbd
push eax
call fcn.0043c20e
push dword [0x584964]
mov dword [esp + 0x24], eax
call fcn.004519a3
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x435448
inc ebx
push 0x12
call esi
test di, ax
je 0x435454
or ebx, 2
push 0x11
call esi
test di, ax
je 0x435460
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00434d13
push 0x4354b8
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0043f83a
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x438013
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x585cdc]
call fcn.004515fb
xor ebx, ebx
mov ebp, eax
cmp dword [0x584f30], ebx
jne 0x4380a7
mov esi, 0xa4
push esi
push ebx
push 0x584f38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x584f3c], esi
mov esi, dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [0x584f38], 0xa
mov dword [0x584f40], 0x437ba8
push 0x7f89
push ebx
mov dword [0x584fb0], 0x43b1cc
mov dword [0x584fb4], 0x43b1a6
mov dword [0x584f44], 0x437bc7
mov dword [0x584fc8], 0x437be7
call esi
mov dword [0x584f30], eax
test eax, eax
jne 0x4380a7
push 0x7f00
push ebx
call esi
mov dword [0x584f30], eax
push ebx
push dword [0x5840f8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x438153
push edi
push dword [esp + 0x14]
push dword [0x585cf8]
call fcn.004517ab
mov edi, eax
push 0x14
push 0
or dword [edi + 0x10], 0xffffffff
and dword [edi + 0x14], 0
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x584f38
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0043afec
push 0x437ccd
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x43a767
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x585cdc]
call fcn.004515fb
xor ebp, ebp
mov esi, eax
cmp dword [0x5851f8], ebp
jne 0x43a843
xor ebx, ebx
inc ebx
mov dword [0x5851f8], ebx
call fcn.0043b227
mov edi, 0xa4
push edi
push ebp
push 0x585200
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x585200], 0x13
lea eax, [esp + 0x10]
mov dword [0x585204], edi
mov dword [0x585210], 0x43a6b2
mov dword [0x585214], 0x43a9d8
push eax
mov dword [0x585268], 0x43a68d
mov dword [0x58526c], 0x43a923
mov dword [0x58520c], 0x43a668
mov dword [0x585290], 0x43a6cd
mov dword [0x5852a4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x43a843
cmp dword [esp + 0x20], ebx
je 0x43a82b
cmp dword [esp + 0x20], 2
jne 0x43a843
cmp dword [esp + 0x14], 5
jae 0x43a833
mov dword [0x5852a4], ebp
jmp 0x43a843
jne 0x43a843
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x5852a4], eax
mov eax, dword [esp + 0x140]
push ebp
push dword [0x5840f8]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x43a8f4
push dword [esp + 0x128]
push dword [0x585cf8]
call fcn.004517ab
mov ebx, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], ebx
test ebx, ebx
je 0x43a8c3
push ebx
call fcn.0044c175
test eax, eax
je 0x43a8c3
push ebp
push ebp
push ebx
call fcn.0044bdbf
mov dword [esi + 0x18], eax
jmp 0x43a8c6
mov dword [esi + 0x18], ebp
push 0x43a3a8
push 0xfffffffffffffffc
push edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x585200
push edi
push esi
push dword [esp + 0x134]
mov dword [0x5851fc], eax
call fcn.0043afec
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x43aa70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x585cf8]
call fcn.0045176c
mov ebx, eax
test ebx, ebx
je 0x43aad4
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x43aa99
push dword [esp + 0xc]
push ebx
call eax
jmp 0x43aad4
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00452790
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00452860
pop edi
pop esi
pop ebx
ret 8
Function at 0x43bf0e
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x43c066
mov eax, dword [esp + 0x20]
dec eax
je 0x43c049
dec eax
jne 0x43c066
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0043bec7
pop ecx
test eax, eax
je 0x43bf7a
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x43bfa7
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x43bfac
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x43bfac
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x43c045
dec ebx
je 0x43c041
dec ebx
je 0x43c020
dec ebx
je 0x43bfda
sub ebx, 4
jne 0x43c066
test edi, edi
jne 0x43c066
push 0x6e
jmp 0x43c065
sub edi, 0
je 0x43c012
dec edi
je 0x43c004
dec edi
je 0x43bff6
dec edi
jne 0x43c066
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x43c066
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x43c066
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x43c066
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x43c066
sub edi, 0
je 0x43c03d
dec edi
je 0x43c039
dec edi
jne 0x43c066
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x43c066
push 0x3c
jmp 0x43c065
push 0x32
jmp 0x43c065
push 0x14
jmp 0x43c065
push 5
jmp 0x43c065
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43c063
cmp eax, 0xa
je 0x43c05f
cmp eax, 0x5a
jne 0x43c066
push 0x28
jmp 0x43c065
push 0x1e
jmp 0x43c065
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x43d5d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x43d652
push 9
call esi
test al, al
jns 0x43d652
push 0x11
call esi
test al, al
js 0x43d652
push 0x10
call esi
test al, al
js 0x43d652
push 0x12
call esi
test al, al
js 0x43d652
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x43d652
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x43d652
xor eax, eax
jmp 0x43d6d3
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x43d67a
push 0x11
call esi
test al, al
js 0x43d672
push 0x10
call esi
test al, al
js 0x43d672
push 0x12
call esi
test al, al
jns 0x43d67a
push 1
push edi
call fcn.0043d6db
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x43d690
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x43d6d0
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x43d6d0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x43d6d0
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x43d6d0
lea eax, [esi - 1]
push eax
push dword [0x585d08]
call fcn.0045176c
test eax, eax
je 0x43d6d0
mov eax, dword [eax + 8]
jmp 0x43d6d2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d83a
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x43d975
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x43d974
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x43d896
cmp ecx, 3
jne 0x43d8d0
cmp word [esp + 0xe], 0x3a
jne 0x43d8d0
cmp ecx, 2
jne 0x43d8b4
lea eax, [esp + 0xc]
push 0x49be70
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43d974
push 0xfffffffffffffffe
pop edi
jmp 0x43d974
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x43d8e1
cmp ecx, 0x2f
jne 0x43d8eb
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x43d8d4
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, esi
je 0x43d92c
test byte [esp + 0x21c], 0x10
je 0x43d911
push 0xfffffffffffffffe
pop edi
jmp 0x43d923
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x43d973
cmp word [esp + 0x10], bx
jne 0x43d93a
cmp word [esp + 0x12], bx
je 0x43d94b
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x43d973
cmp word [esp + 0x12], ax
jne 0x43d973
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, esi
je 0x43d960
test al, 0x10
je 0x43d973
jmp 0x43d970
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43d973
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x43dad2
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x43dafb
test byte [esp + 8], 2
je 0x43daef
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x43dafd
xor eax, eax
ret 8
Function at 0x43db90
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x5852f8]
push esi
test eax, eax
jne 0x43dbb5
push fcn.0043dcbd
push 0x10
push 0x258
call fcn.0045183f
mov dword [0x5852f8], eax
push dword [esp + 0xc]
push eax
call fcn.004517ab
mov esi, eax
test esi, esi
je 0x43dcb6
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x43dbd7
mov edi, 0x48b0cc
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43dbe7
xor eax, eax
cmp word [ebx], ax
jne 0x43dbec
mov ebx, 0x49be74
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43dc9d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x43dc4d
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x43dc51
push 0x49be70
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x43dc51
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43dc75
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x43dc8b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x43dc89
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapFree]
test ebp, ebp
jne 0x43dcb4
cmp dword [esp + 0x14], 0xffffffff
je 0x43dca8
mov esi, dword [esp + 0x14]
push esi
push dword [0x5852f8]
call fcn.0045171d
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc