joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406687
xor eax, eax
test eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40682e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x401e47
Capabilities:
Check mutex on windows

Disassembly:
push 0x38c
mov eax, 0x411c49
call fcn.004112a1
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x416e68
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x37c], esi
test esi, esi
je 0x401f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f48
mov dword [ebp - 4], ebx
call fcn.004013d4
push edi
mov ecx, eax
call fcn.00401430
push ecx
push edi
lea ecx, [ebp - 0x378]
call fcn.00404ada
lea eax, [ebp - 0x378]
push eax
movzx eax, word [ebp - 0x36c]
push 0x401d14
push dword [ebp - 0x368]
push eax
push dword [ebp - 0x370]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x374], eax
test eax, eax
je 0x401f21
push 7
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 1
push dword [ebp - 0x374]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x401f11
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x398]
push eax
call edi
test eax, eax
jne 0x401ef7
lea ecx, [ebp - 0x378]
call fcn.00404c01
jmp 0x401f3a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004111ee
ret 0x10
Function at 0x7a5080
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a508a
pushal
call 0x7a5090
pop ebp
sub ebp, 0x10
sub ebp, 0x3a5080
jmp 0x7a50a6
mov eax, 0x3a5080
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fb
mov edx, 0xda7031ad
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a50bd
jmp 0x7a50d0
pushal
and al, 0x91
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
sub al, 0x6c
push ebp
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
scasb al, byte es:[edi]
pushal
adc eax, 0xadadada9
pop ss
test dword [ebp + 0x4f5aadad], ebp
scasb al, byte es:[edi]
sub al, 0xa1
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
scasb al, byte es:[edi]
push 0x89c920fd
push ecx
and al, 0xa9
mov ebp, eax
mov ch, 0xd3
mov dword [0x7fcbc5ad], eax
xchg byte [ebp - 0x3a767e54], ch
invalid
Function at 0x40b99e
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40ba36
push edi
push 0x47b648
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x479448]
test edi, edi
je 0x40ba0a
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ba03
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x479448
call fcn.0041ed2f
pop ecx
pop ecx
jmp 0x40ba05
mov edi, dword [edi]
test edi, edi
jne 0x40b9da
pop ebx
mov eax, dword [0x468814]
mov esi, eax
inc eax
push 0x10
push 0x479448
mov dword [0x468814], eax
call fcn.0041ed6f
pop ecx
pop ecx
push 0x47b648
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

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

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c778
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x40c730
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.0040d26e
mov esi, eax
test esi, esi
je 0x40c770
push dword [esp + 0x18]
push dword [0x47949c]
call fcn.0041e5a1
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.0040d239
push eax
push esi
call fcn.0040d21f
push eax
call fcn.0040cf99
mov dword [ebp], eax
test eax, eax
je 0x40c728
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x40c770
push esi
call fcn.0040d212
jmp 0x40c770
push ebp
push esi
push dword [0x479288]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40c770
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.0040c2f5
push esi
push 0
push dword [0x479288]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x40c808
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x47949c]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0041e562
mov esi, eax
test esi, esi
je 0x40c99d
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x40c8b2
push ebx
call fcn.0040cebc
jmp 0x40c84a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x40c842
push dword [esi + 0x14]
call fcn.0040d261
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0040c793
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x40c9b7
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c88f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c8a0
push dword [esp + 0x20]
push ebx
call fcn.0040cd2a
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x40c952
test byte [esp + 0x1c], 1
je 0x40c8c1
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x40c95c
push esi
call fcn.0040c62f
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0041ed6f
pop ecx
pop ecx
mov ecx, dword [0x4794b4]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x40c99d
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c93d
push edi
push dword [esp + 0x24]
push ebx
call fcn.0040cc8a
jmp 0x40c94a
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x40c99d
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c97e
push dword [esp + 0x20]
push ebx
call fcn.0040cd2a
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40c99d
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x40e109
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40e15e
push dword [esp + 0x10]
push 0x40e088
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x479714]
test esi, esi
je 0x40e1b7
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40e156
cmp byte [esi + 0x10], 0
je 0x40e156
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 0x40e132
jmp 0x40e1b7
mov esi, dword [0x479714]
test esi, esi
je 0x40e1b7
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 0x40e1b0
cmp byte [esi + 0x11], 0
je 0x40e18c
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40e1a3
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 0x479714
call fcn.0041ed2f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40e16b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f590
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x479720], 0
jne 0x40f59e
call fcn.0040f510
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x479724]
call esi
test eax, eax
jne 0x40f5c1
call fcn.0040f510
push dword [0x479724]
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 0x40f5d0
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 0x40f630
mov ebx, 0x10
test edi, edi
jns 0x40f639
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40f602
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f650
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x479720], 0
jne 0x40f65e
call fcn.0040f510
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x479724]
call esi
mov edx, eax
test edx, edx
jne 0x40f685
call fcn.0040f510
push dword [0x479724]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x40f6b8
mov ebx, 0x10
test esi, esi
jns 0x40f6c1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40f6d0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40feff
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x47b9ec]
call fcn.0041e562
mov ebx, eax
test ebx, ebx
je 0x40ff63
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40ff28
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40ff63
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.0041f1a0
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.0041f240
pop edi
pop esi
pop ebx
ret 8
Function at 0x416886
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4168cb
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416947
cmp dword [0x47b4e0], 1
je 0x416947
push ebx
mov ebx, 0x47b4e8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x47b504]
and dword [0x47b50c], 0
mov dword [0x47b508], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x47b500]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x47b504]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41693f
push 0
push dword [0x47b4e4]
mov dword [0x47b4e0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x416c08
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x47b008], 0
jne 0x416cd9
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x47b9f4
mov dword [0x47b008], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x479288]
mov dword [0x47b4cc], eax
mov dword [0x47b00c], 0x1f4
call esi
mov dword [0x47b4dc], eax
mov eax, dword [0x47b00c]
add eax, eax
push eax
push 8
push dword [0x479288]
call esi
xor ebx, ebx
mov dword [0x47b4d8], eax
push 0x47b4e8
mov dword [0x47b4d0], ebx
mov dword [0x47b4d4], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x47b500], eax
call esi
mov dword [0x47b504], eax
cmp dword [0x47b500], ebx
je 0x416cd0
test eax, eax
je 0x416cd0
lea eax, [esp + 0xc]
mov dword [0x47b4e0], ebx
push eax
push ebx
push ebx
push 0x41668b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47b4e4], eax
jmp 0x416cd6
mov dword [0x47b4e0], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x416cdb
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416d80
cmp dword [esp + 0xc], 0
je 0x416d80
cmp dword [0x47b4e0], 1
je 0x416d80
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416d7f
push ebp
mov ebp, 0x47b4e8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x47b504]
mov dword [0x47b508], esi
mov dword [0x47b50c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x47b500]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x47b504]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416d77
push 0
push dword [0x47b4e4]
mov dword [0x47b4e0], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x417790
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 0x41780a
push 9
call esi
test al, al
jns 0x41780a
push 0x11
call esi
test al, al
js 0x41780a
push 0x10
call esi
test al, al
js 0x41780a
push 0x12
call esi
test al, al
js 0x41780a
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 0x41780a
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x41780a
xor eax, eax
jmp 0x41788b
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x417832
push 0x11
call esi
test al, al
js 0x41782a
push 0x10
call esi
test al, al
js 0x41782a
push 0x12
call esi
test al, al
jns 0x417832
push 1
push edi
call fcn.00417893
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x417848
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x417888
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x417888
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x417888
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x417888
lea eax, [esi - 1]
push eax
push dword [0x47ba14]
call fcn.0041e562
test eax, eax
je 0x417888
mov eax, dword [eax + 8]
jmp 0x41788a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418225
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 0x418360
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x41835f
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 0x418281
cmp ecx, 3
jne 0x4182bb
cmp word [esp + 0xe], 0x3a
jne 0x4182bb
cmp ecx, 2
jne 0x41829f
lea eax, [esp + 0xc]
push 0x45d284
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 0x41835f
push 0xfffffffffffffffe
pop edi
jmp 0x41835f
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x4182cc
cmp ecx, 0x2f
jne 0x4182d6
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x4182bf
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x418317
test byte [esp + 0x21c], 0x10
je 0x4182fc
push 0xfffffffffffffffe
pop edi
jmp 0x41830e
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 0x41835e
cmp word [esp + 0x10], bx
jne 0x418325
cmp word [esp + 0x12], bx
je 0x418336
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41835e
cmp word [esp + 0x12], ax
jne 0x41835e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41834b
test al, 0x10
je 0x41835e
jmp 0x41835b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41835e
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 0x41836f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4183e7
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4183c8
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4183c5
cmp ecx, 0x5c
je 0x4183c5
cmp ecx, 0x2f
jne 0x4183d2
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4183b2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4183e9
xor eax, eax
mov esp, ebp
pop ebp
ret 4