joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b26ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4b271a
call fcn.004b80d9
mov dword [eax], esi
call fcn.004b80c6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b41e3
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4b26f6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b2749
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b80ec
pop ecx
call fcn.004b80c6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4b2770
test al, 1
je 0x4b2770
test byte [esp + 0xc], 2
je 0x4b2770
call fcn.004b80d9
mov dword [eax], 5
call fcn.004b80c6
mov dword [eax], 0xd
jmp 0x4b2740
xor eax, eax
pop esi
ret

Function at 0x4b8e81
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x522018]
je 0x4b8e9c
inc edi
cmp edi, 0x17
jb 0x4b8e8d
cmp edi, 0x17
jae 0x4b901c
push ebp
push 3
call fcn.004cba21
cmp eax, 1
pop ecx
je 0x4b8fe8
push 3
call fcn.004cba21
test eax, eax
pop ecx
jne 0x4b8ed0
cmp dword [0x521e08], 1
je 0x4b8fe8
cmp ebx, 0xfc
je 0x4b901b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5288d8
push ebp
call fcn.004c46e9
add esp, 0xc
test eax, eax
je 0x4b8f06
push esi
push esi
push esi
push esi
push esi
call fcn.004b40af
add esp, 0x14
push 0x104
mov esi, 0x5288f1
push esi
push 0
mov byte [0x5289f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b8f4a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004c46e9
add esp, 0xc
test eax, eax
je 0x4b8f4a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b40af
add esp, 0x14
push esi
call fcn.004ae430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b8f8f
push esi
call fcn.004ae430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x528bec
push 0x50663c
sub ecx, eax
push ecx
push eax
call fcn.004c4636
add esp, 0x14
test eax, eax
je 0x4b8f8f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b40af
add esp, 0x14
jmp 0x4b8f91
xor esi, esi
push 0x506638
push ebx
push ebp
call fcn.004c457f
add esp, 0xc
test eax, eax
je 0x4b8fb1
push esi
push esi
push esi
push esi
push esi
call fcn.004b40af
add esp, 0x14
push dword [edi*8 + 0x52201c]
push ebx
push ebp
call fcn.004c457f
add esp, 0xc
test eax, eax
je 0x4b8fd3
push esi
push esi
push esi
push esi
push esi
call fcn.004b40af
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004cb864
add esp, 0xc
jmp 0x4b901b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b901b
cmp ebp, 0xffffffff
je 0x4b901b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x52201c]
push dword [esi]
call fcn.004ae430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4cb864
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b9af5
xor ebx, ebx
cmp dword [0x5293dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4cb93a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4cba1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x507a54
push edi
call esi
cmp eax, ebx
je 0x4cba1a
push eax
call fcn.004b9a87
mov dword [esp], 0x507a44
push edi
mov dword [0x5293dc], eax
call esi
push eax
call fcn.004b9a87
mov dword [esp], 0x507a30
push edi
mov dword [0x5293e0], eax
call esi
push eax
call fcn.004b9a87
mov dword [0x5293e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b862d
test eax, eax
pop ecx
pop ecx
je 0x4cb908
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b40af
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4cb93a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b9a87
cmp eax, ebx
pop ecx
mov dword [0x5293ec], eax
je 0x4cb93a
push 0x5079fc
push edi
call esi
push eax
call fcn.004b9a87
pop ecx
mov dword [0x5293e8], eax
mov eax, dword [0x5293e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4cb9bf
cmp dword [0x5293ec], ecx
je 0x4cb9bf
push eax
call fcn.004b9afe
push dword [0x5293ec]
mov esi, eax
call fcn.004b9afe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4cb9bf
cmp edi, ebx
je 0x4cb9bf
call esi
cmp eax, ebx
je 0x4cb98c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cb98c
test byte [ebp - 0x18], 1
jne 0x4cb9bf
lea eax, [ebp - 0x10]
push eax
call fcn.004b86dc
test eax, eax
pop ecx
je 0x4cb9a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b40af
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4cb9b6
or dword [ebp + 0x10], 0x200000
jmp 0x4cb9fa
or dword [ebp + 0x10], 0x40000
jmp 0x4cb9fa
mov eax, dword [0x5293e0]
cmp eax, dword [ebp - 8]
je 0x4cb9fa
push eax
call fcn.004b9afe
cmp eax, ebx
pop ecx
je 0x4cb9fa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4cb9fa
mov eax, dword [0x5293e4]
cmp eax, dword [ebp - 8]
je 0x4cb9fa
push eax
call fcn.004b9afe
cmp eax, ebx
pop ecx
je 0x4cb9fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5293dc]
call fcn.004b9afe
cmp eax, ebx
pop ecx
je 0x4cba1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cba1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e06bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4e06ea
call fcn.004b80d9
mov dword [eax], esi
call fcn.004b80c6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b41e3
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4e06c6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e0719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b80ec
pop ecx
call fcn.004b80c6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4e0740
test al, 1
je 0x4e0740
test byte [esp + 0xc], 2
je 0x4e0740
call fcn.004b80d9
mov dword [eax], 5
call fcn.004b80c6
mov dword [eax], 0xd
jmp 0x4e0710
xor eax, eax
pop esi
ret
Function at 0x40212b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40216a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40216a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40216a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40216a
cmp dword [ecx + 0x74], 0xe
jbe 0x40216a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b9d2
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 0x40ba6a
push edi
push 0x478cf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x476af0]
test edi, edi
je 0x40ba3e
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ba37
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x476af0
call fcn.0041f2ff
pop ecx
pop ecx
jmp 0x40ba39
mov edi, dword [edi]
test edi, edi
jne 0x40ba0e
pop ebx
mov eax, dword [0x474818]
mov esi, eax
inc eax
push 0x10
push 0x476af0
mov dword [0x474818], eax
call fcn.0041f33f
pop ecx
pop ecx
push 0x478cf0
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 0x40c6cd
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 0x40c7ad
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x40c765
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.0040d2a3
mov esi, eax
test esi, esi
je 0x40c7a5
push dword [esp + 0x18]
push dword [0x476b44]
call fcn.0041eb71
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.0040d26e
push eax
push esi
call fcn.0040d254
push eax
call fcn.0040cfce
mov dword [ebp], eax
test eax, eax
je 0x40c75d
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x40c7a5
push esi
call fcn.0040d247
jmp 0x40c7a5
push ebp
push esi
push dword [0x476928]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40c7a5
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.0040c335
push esi
push 0
push dword [0x476928]
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 0x40c83d
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x476b44]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0041eb32
mov esi, eax
test esi, esi
je 0x40c9d2
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x40c8e7
push ebx
call fcn.0040cef1
jmp 0x40c87f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x40c877
push dword [esi + 0x14]
call fcn.0040d296
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0040c7c8
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x40c9ec
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c8c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c8d5
push dword [esp + 0x20]
push ebx
call fcn.0040cd5f
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x40c987
test byte [esp + 0x1c], 1
je 0x40c8f6
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x40c991
push esi
call fcn.0040c664
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0041f33f
pop ecx
pop ecx
mov ecx, dword [0x476b5c]
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 0x40c9d2
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 0x40c972
push edi
push dword [esp + 0x24]
push ebx
call fcn.0040ccbf
jmp 0x40c97f
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 0x40c9d2
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 0x40c9b3
push dword [esp + 0x20]
push ebx
call fcn.0040cd5f
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 0x40c9d2
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 0x40ded2
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40df27
push dword [esp + 0x10]
push 0x40de51
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x476dbc]
test esi, esi
je 0x40df80
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40df1f
cmp byte [esi + 0x10], 0
je 0x40df1f
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 0x40defb
jmp 0x40df80
mov esi, dword [0x476dbc]
test esi, esi
je 0x40df80
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 0x40df79
cmp byte [esi + 0x11], 0
je 0x40df55
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40df6c
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 0x476dbc
call fcn.0041f2ff
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40df34
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f360
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x476dc8], 0
jne 0x40f36e
call fcn.0040f2e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x476dcc]
call esi
test eax, eax
jne 0x40f391
call fcn.0040f2e0
push dword [0x476dcc]
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 0x40f3a0
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 0x40f400
mov ebx, 0x10
test edi, edi
jns 0x40f409
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40f3d2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f420
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x476dc8], 0
jne 0x40f42e
call fcn.0040f2e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x476dcc]
call esi
mov edx, eax
test edx, edx
jne 0x40f455
call fcn.0040f2e0
push dword [0x476dcc]
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 0x40f488
mov ebx, 0x10
test esi, esi
jns 0x40f491
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40f4a0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40fcea
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x479090]
call fcn.0041eb32
mov ebx, eax
test ebx, ebx
je 0x40fd4e
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40fd13
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40fd4e
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.0041f770
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.0041f850
pop edi
pop esi
pop ebx
ret 8
Function at 0x416857
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 0x41689c
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416918
cmp dword [0x478b88], 1
je 0x416918
push ebx
mov ebx, 0x478b90
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x478bac]
and dword [0x478bb4], 0
mov dword [0x478bb0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x478ba8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x478bac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416910
push 0
push dword [0x478b8c]
mov dword [0x478b88], 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 0x416bd9
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x4786b0], 0
jne 0x416caa
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x479098
mov dword [0x4786b0], 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 [0x476928]
mov dword [0x478b74], eax
mov dword [0x4786b4], 0x1f4
call esi
mov dword [0x478b84], eax
mov eax, dword [0x4786b4]
add eax, eax
push eax
push 8
push dword [0x476928]
call esi
xor ebx, ebx
mov dword [0x478b80], eax
push 0x478b90
mov dword [0x478b78], ebx
mov dword [0x478b7c], 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 [0x478ba8], eax
call esi
mov dword [0x478bac], eax
cmp dword [0x478ba8], ebx
je 0x416ca1
test eax, eax
je 0x416ca1
lea eax, [esp + 0xc]
mov dword [0x478b88], ebx
push eax
push ebx
push ebx
push 0x41665c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x478b8c], eax
jmp 0x416ca7
mov dword [0x478b88], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x416cac
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416d51
cmp dword [esp + 0xc], 0
je 0x416d51
cmp dword [0x478b88], 1
je 0x416d51
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416d50
push ebp
mov ebp, 0x478b90
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x478bac]
mov dword [0x478bb0], esi
mov dword [0x478bb4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x478ba8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x478bac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416d48
push 0
push dword [0x478b8c]
mov dword [0x478b88], 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 0x417713
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 0x41778d
push 9
call esi
test al, al
jns 0x41778d
push 0x11
call esi
test al, al
js 0x41778d
push 0x10
call esi
test al, al
js 0x41778d
push 0x12
call esi
test al, al
js 0x41778d
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 0x41778d
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x41778d
xor eax, eax
jmp 0x41780e
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4177b5
push 0x11
call esi
test al, al
js 0x4177ad
push 0x10
call esi
test al, al
js 0x4177ad
push 0x12
call esi
test al, al
jns 0x4177b5
push 1
push edi
call fcn.00417816
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4177cb
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x41780b
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x41780b
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41780b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x41780b
lea eax, [esi - 1]
push eax
push dword [0x4790b8]
call fcn.0041eb32
test eax, eax
je 0x41780b
mov eax, dword [eax + 8]
jmp 0x41780d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4181b8
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 0x418300
xor ecx, ecx
cmp word [eax], cx
je 0x418300
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x418211
cmp eax, 3
jne 0x41824b
cmp word [esp + 0xa], 0x3a
jne 0x41824b
cmp eax, 2
jne 0x41822f
lea eax, [esp + 8]
push 0x458284
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x418300
push 0xfffffffffffffffe
pop edi
jmp 0x418300
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x418260
cmp ax, bx
jne 0x41826a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x418253
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4182a9
test byte [esp + 0x21c], 0x10
je 0x418290
push 0xfffffffffffffffe
pop edi
jmp 0x4182a0
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4182fe
cmp word [esp + 0x10], bp
jne 0x4182b7
cmp word [esp + 0x12], bp
je 0x4182d6
cmp word [esp + 0x10], bx
jne 0x4182c5
cmp word [esp + 0x12], bx
je 0x4182d6
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4182fe
cmp word [esp + 0x12], ax
jne 0x4182fe
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4182eb
test al, 0x10
je 0x4182fe
jmp 0x4182fb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4182fe
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x41830f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x418387
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 0x418368
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x418365
cmp ecx, 0x5c
je 0x418365
cmp ecx, 0x2f
jne 0x418372
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x418352
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x418389
xor eax, eax
mov esp, ebp
pop ebp
ret 4