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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
push edi
je 0x4084b2
mov eax, dword [esi + 0x248]
test eax, eax
je 0x408424
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408424
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x4082e8
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x408306
mov eax, dword [esi + 0x254]
or byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
or byte [eax], cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 4
je 0x408318
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x408327
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x408336
or byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, 0x100
je 0x40836b
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 0x10], 0
je 0x40838e
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x254]
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 0x14], 0
je 0x4083ad
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 8], 0
je 0x4083cc
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x248]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x4084a9
cmp dword [ebp - 8], eax
jne 0x4083fd
test word [ebp + 8], 0x800
jne 0x4083fd
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x408417
cmp dword [ebp - 0xc], eax
je 0x4084a9
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x248]
call edi
jmp 0x4084a9
test bl, 0x10
je 0x40843c
movzx eax, byte [esi + 0x251]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 2
je 0x40845b
movzx eax, byte [esi + 0x24f]
push eax
movzx eax, byte [esi + 0x254]
push eax
xor ebx, ebx
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 4
je 0x408477
movzx eax, byte [esi + 0x250]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 8
je 0x408490
movzx eax, byte [esi + 0x24c]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 1
je 0x4084a9
movzx eax, byte [esi + 0x24d]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.00407bc9
mov edi, dword [esi + 4]
push esi
call fcn.00408db0
pop edi
pop ebx
leave
ret 4
Function at 0x4084b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x4086d1
mov eax, dword [esi + 0x248]
test eax, eax
je 0x40864b
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40864b
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x408534
test byte [ebp + 8], 8
jne 0x408534
test word [ebp + 8], 0x800
jne 0x408534
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40854b
test eax, eax
je 0x408553
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408579
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x4085a3
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x254]
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x4085c9
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x4085ef
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x248]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x4085fe
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408618
mov eax, dword [esi + 0x254]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x408626
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x408631
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x40863c
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4086c9
test byte [ebp + 8], 1
push 2
pop ebx
je 0x408665
movzx eax, byte [esi + 0x24d]
push eax
push 0x12
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 8
je 0x40867c
movzx eax, byte [esi + 0x24c]
push eax
push 0x11
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], bl
je 0x408698
movzx eax, byte [esi + 0x24f]
push eax
movzx eax, byte [esi + 0x254]
push eax
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 4
je 0x4086b2
movzx eax, byte [esi + 0x250]
push eax
push 0xa1
mov eax, esi
call fcn.00407bc9
test byte [ebp + 8], 0x10
je 0x4086c9
movzx eax, byte [esi + 0x251]
push eax
push 0x5b
mov eax, esi
call fcn.00407bc9
mov edi, dword [esi]
push esi
call fcn.00408db0
pop edi
pop ebx
leave
ret 4
Function at 0x4086fc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x248], 0
mov esi, eax
je 0x4087d2
cmp ebx, 0x14
je 0x4087d2
cmp ebx, 0x90
je 0x4087d2
cmp ebx, 0x91
je 0x4087d2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
xor edx, edx
shl esi, 0x10
inc edx
or esi, edx
cmp byte [ebp + 8], dl
je 0x408788
cmp ebx, 0x2d
je 0x408782
mov eax, ebx
call fcn.00408180
jmp 0x408784
mov al, dl
cmp al, dl
jne 0x40878e
or esi, 0x1000000
mov ecx, dword [edi + 0x244]
test dl, cl
mov eax, 0x100
jne 0x4087a6
test eax, ecx
jne 0x4087a6
cmp ebx, 0x12
jne 0x4087c1
test cl, 8
jne 0x4087c1
test cx, 0x800
jne 0x4087c1
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x4087c4
push esi
push ebx
push eax
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4087ff
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x4087f4
cmp ebx, 0x2d
je 0x4087e8
mov eax, ebx
call fcn.00408180
jmp 0x4087ea
mov al, dl
cmp al, dl
je 0x4087f4
push esi
push ebx
xor ebx, ebx
jmp 0x4087f8
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.00407bc9
push edi
mov edi, dword [edi + 4]
call fcn.00408db0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40880f
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x248], 0
mov esi, eax
je 0x4088e8
cmp ebx, 0x14
je 0x4088e8
cmp ebx, 0x90
je 0x4088e8
cmp ebx, 0x91
je 0x4088e8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x408888
cmp ebx, 0x2d
je 0x408882
mov eax, ebx
call fcn.00408180
jmp 0x408884
mov al, 1
cmp al, 1
jne 0x40888e
or esi, 0x1000000
mov eax, dword [edi + 0x244]
test al, 1
jne 0x4088a3
test ax, 0x100
jne 0x4088a3
cmp ebx, 0x12
jne 0x4088bc
test al, 8
jne 0x4088bc
test ax, 0x800
jne 0x4088bc
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4088c3
push esi
push ebx
push 0x101
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408914
cmp byte [ebp + 8], 1
je 0x408908
cmp ebx, 0x2d
je 0x4088fc
mov eax, ebx
call fcn.00408180
jmp 0x4088fe
mov al, 1
cmp al, 1
je 0x408908
push esi
push ebx
push 2
jmp 0x40890c
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.00407bc9
push edi
mov edi, dword [edi]
call fcn.00408db0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408db0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x408e44
jne 0x408dc8
push 0
jmp 0x408e3e
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x219]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x408e3d
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x408e3d
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46e168]
call fcn.00462ac6
cmp eax, edi
jb 0x408dfb
jmp 0x408e44
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408e4b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x408e6a
xor al, al
jmp 0x408f87
push eax
or eax, 0xffffffff
call fcn.0040d472
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.0044d7f0
inc eax
push eax
call fcn.0044b6ac
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x408eb1
cmp al, 0x5e
je 0x408ead
cmp al, 0x21
je 0x408ead
cmp al, 0x23
jne 0x408ed5
cmp al, 0x2b
jne 0x408eb6
mov eax, dword [ebp + 0xc]
jmp 0x408ec6
cmp al, 0x5e
jne 0x408ebf
mov byte [esi], 1
jmp 0x408ed2
cmp al, 0x21
jne 0x408ecb
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408ed2
cmp al, 0x23
jne 0x408ed2
mov byte [edi], 1
inc ebx
jmp 0x408e97
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x408f37
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00408d73
test eax, eax
jne 0x408f23
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x473ab0]
call fcn.004601c1
test eax, eax
pop ecx
pop ecx
je 0x408f15
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x408ef6
cmp esi, 0x62
je 0x408f23
cmp byte [esi + 0x473c38], 0
je 0x408f29
mov byte [ebp - 1], 0
jmp 0x408f69
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x408f69
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x408f51
mov byte [esi], 1
test ax, 0x400
je 0x408f5d
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x408f69
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044b716
push dword [ebp - 8]
call fcn.0044b716
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409026
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x409042
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40905a
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x40912c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x409112
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x409200
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40921d
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409210
cmp edi, 0x10
jne 0x409229
xor eax, eax
jmp 0x4092c9
cmp byte [esi + 0x18], 1
jne 0x4092a0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40927c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40927c
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x409288
mov eax, 0x42741a
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x4092c7
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aaae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40ab2e
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40aad7
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.0044e6db
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40ab2d
mov eax, dword [esi]
test al, 0x20
je 0x40aaf2
push dword [esi + 4]
push 2
push ebx
push 0x468d0c
call fcn.0044e8a5
mov dword [esi + 0xc], ebx
jmp 0x40ab2a
test al, 0x40
je 0x40ab0f
push dword [esi + 4]
push 2
push ebx
push 0x468d10
call fcn.0044e8a5
mov dword [esi + 0xc], 2
jmp 0x40ab2a
test al, al
jns 0x40ab2d
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.0044e8a5
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40ab62
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x468d18
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.0044e5bc
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40abed
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.0044ecb1
push edi
mov ebx, eax
call fcn.0044e999
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40abca
cmp byte [ebp + 8], 0xff
jne 0x40abb9
cmp byte [ebp + 9], 0xfe
jne 0x40abca
mov dword [esi + 0xc], 1
jmp 0x40abe8
cmp byte [ebp + 8], 0xfe
jne 0x40abca
cmp byte [ebp + 9], 0xff
jne 0x40abca
mov dword [esi + 0xc], eax
jmp 0x40abe8
cmp ebx, 3
jb 0x40abec
cmp byte [ebp + 8], 0xef
jne 0x40abec
cmp byte [ebp + 9], 0xbb
jne 0x40abec
cmp byte [ebp + 0xa], 0xbf
jne 0x40abec
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40acad
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40acdd
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ad03
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40ad05
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044ecb1
mov dword [edi], eax
push dword [esi + 4]
call fcn.0044ecfb
add esp, 0x14
test eax, eax
je 0x40ad03
and dword [edi], 0
jmp 0x40acd9
mov al, 1
pop ebx
ret 4

Function at 0x40b01e
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b09d
cmp edi, 4
jle 0x40b02f
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0044ef20
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044dc10
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.0044ecb1
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b09d
push dword [esi + 4]
call fcn.0044eccc
test eax, eax
pop ecx
jne 0x40b098
push dword [esi + 4]
call fcn.0044ecfb
test eax, eax
pop ecx
jne 0x40b098
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40b1b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b203
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40b1fa
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40b206
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40b266
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40b66f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x474cda], bl
je 0x40b6b5
mov byte [0x474cdb], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40b6f6
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.0044f37f
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40b6e1
push 0xffffffffffffffff
push esi
mov byte [0x474cdb], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x474cda], 1
jne 0x40b6ef
or eax, 0xffffffff
jmp 0x40b6f1
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40b879
test al, 0x10
je 0x40b879
cmp byte [0x486ecd], bl
je 0x40b879
mov al, 1
jmp 0x40b8cb
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b89e
xor al, al
jmp 0x40b8ca
cmp dword [ebp + 0x10], ebx
jne 0x40b8a9
push dword [ebp + 0xc]
push ebx
jmp 0x40b8b9
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40b8b6
push ebx
push dword [ebp + 0xc]
jmp 0x40b8ba
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret