joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4751f8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x475210
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x4752b8
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x475805
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x475822
cmp dword [ebp + 0xc], edi
je 0x475917
push 1
push ebx
call fcn.00475256
test eax, eax
jne 0x475917
push esi
push edi
push ebx
call fcn.00475256
mov esi, eax
cmp esi, edi
jne 0x47586e
call fcn.0047214b
mov ecx, dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.00464ab2
mov esi, eax
cmp esi, edi
je 0x475916
push edi
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.00475725
push edi
push esi
push dword [esi + 4]
call fcn.0047565e
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x4758c7
dec eax
je 0x4758bd
dec eax
dec eax
je 0x4758b3
sub eax, 4
je 0x4758a9
sub eax, 8
je 0x47589f
sub eax, 0x10
jne 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x475916
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x475904
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x47590e
cmp ebx, edi
je 0x475916
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x401b70
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x401c92
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call esi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x401c0c
push 0x4209
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x402
push dword [ebx]
call esi
mov eax, dword [0x595554]
push dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
push dword [esp + 0x24]
push 0
push 1
push eax
call fcn.00401cb0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x401c34
push eax
push eax
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00401620
test al, al
jne 0x401c8a
push ebp
push edi
call fcn.004c3b10
mov ebp, eax
xor edi, edi
mov esi, 1
test ebp, esi
je 0x401c80
lea eax, [edi + 0x41]
push eax
push str._c:_
lea eax, [esp + 0x2d4]
push 0xa
push eax
call fcn.004028e0
add esp, 0x10
lea eax, [esp + 0x2cc]
mov ecx, ebx
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
call fcn.00401cb0
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x401c44
pop edi
pop ebp
mov ecx, ebx
call fcn.004020b0
pop esi
mov ecx, dword [esp + 0x2d4]
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2d4
ret
Function at 0x401cb0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e4
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2f4]
push edi
mov edi, dword [esp + 0x308]
push 0x1008
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call fcn.004eb998
mov ecx, dword [esp + 0x304]
add esp, 4
mov ebp, dword [esp + 0x2fc]
mov ebx, eax
push esi
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
call fcn.0048e370
lea edx, [ebx + 8]
sub edx, eax
jmp 0x401d10
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x401d10
mov esi, dword [esp + 0x304]
cmp byte [esp + 0x314], cl
jne 0x401d70
cmp esi, 0xffffffff
je 0x401d39
test edi, edi
jne 0x401d70
mov eax, 0x4201
cmp ebp, 2
jne 0x401d48
mov eax, 0x4203
push eax
push 0x2b4
lea eax, [esp + 0x44]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp esi, 0xffffffff
jne 0x401d68
mov esi, dword [esp + 0x40]
test edi, edi
jne 0x401d70
lea edi, [esp + 0x48]
xor eax, eax
mov dword [esp + 0x18], 0x37
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x401daa
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x310]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x40b
mov dword [esp + 0x44], ebx
push dword [eax]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2e4
ret 0x20
Function at 0x401e40
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c0]
push esi
mov esi, dword [esp + 0x2d0]
cmp eax, 0x4e
jne 0x401f55
mov eax, dword [esi + 8]
cmp eax, 0xfffffcd9
je 0x401eb1
cmp eax, 0xfffffcda
jne 0x401e97
cmp dword [esi + 0x21c], 2
jne 0x401e97
mov ecx, 0x55d09c
call fcn.00401f80
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2bc
ret 0x10
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x2c]
push ebx
push edi
mov ecx, dword [eax]
cmp ecx, 4
jne 0x401ec9
mov edi, dword [eax + 4]
jmp 0x401ecc
lea edi, [eax + 8]
mov eax, dword [esp + 0xc]
xor ebx, ebx
cmp ecx, 4
setne bl
dec ebx
and ebx, 8
test al, 1
je 0x401f0a
mov eax, ebx
or eax, 0x200
push eax
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x401f06
lea eax, [esp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc]
test al, 6
je 0x401f32
or ebx, 0x4001
lea eax, [esp + 0x10]
push ebx
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
or dword [esi + 0xc], 0x10000000
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2bc
ret 0x10
push esi
push dword [esp + 0x2d0]
push eax
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2bc
ret 0x10
Function at 0x401f80
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, ecx
lea eax, [esp + 4]
push 0x800
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 4]
push eax
call fcn.004458f0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 0x158
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x402028
push 0
push eax
push 0x14e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00401960
cmp byte [0x53898c], 0
mov ecx, esi
je 0x40200d
call fcn.00402660
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret
call fcn.00402840
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret
cmp byte [0x53898c], 0
je 0x40203f
lea eax, [esp + 4]
push eax
call fcn.00478870
test al, al
je 0x402082
lea eax, [esp + 4]
push eax
call fcn.0048e460
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402082
test al, 0x10
jne 0x402082
lea eax, [esp + 4]
mov ecx, 0x55d4d8
push eax
call fcn.004408e0
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret
push 1
lea eax, [esp + 8]
mov ecx, 0x55d4d8
push eax
call fcn.0043df70
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret
Function at 0x4090c0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x100c], eax
cmp dword [0x5502b0], 0
je 0x4092b5
push 0
push 1
push 0x54f29a
mov ecx, 0x55a850
call fcn.004059c0
cmp eax, 1
jne 0x4092b5
cmp dword [0x547ea0], 3
mov ecx, 0x55a850
push eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
push eax
jne 0x409139
lea eax, [esp + 0x10]
push eax
call fcn.00405030
jmp 0x409143
lea eax, [esp + 0xc]
push eax
call fcn.00404f50
cmp dword [esp], 0
je 0x4092b5
push 0x800
lea eax, [esp + 0x10]
mov ecx, 0x55029c
push eax
call fcn.0048e8f0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4091c5
push 0
push 0
push SysReAllocString
push SysReAllocString
push 0x800
lea eax, [esp + 0x20]
push eax
push 0x543e88
call fcn.004911a0
cmp eax, 6
je 0x4091a2
cmp eax, 1
je 0x4091a2
cmp eax, 3
jne 0x4091c5
push dword [esp + 4]
call fcn.004ebd28
add esp, 4
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1010
ret 4
push esi
push 0x50bd80
lea eax, [esp + 0x14]
push eax
call fcn.0046a5a0
mov esi, eax
test esi, esi
jne 0x409219
lea eax, [esp + 0x10]
push eax
push 0x1f6
call fcn.00488530
push eax
push 0x54f29a
call fcn.004d2c60
push dword [esp + 0x14]
call fcn.004ebd28
add esp, 0x10
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1010
ret 4
mov eax, dword [0x547ea0]
push edi
cmp eax, 3
jne 0x409270
push esi
push 0xff
call fcn.004f2ac0
push esi
push 0xfe
call fcn.004f2ac0
xor edi, edi
add esp, 0x10
cmp dword [esp + 8], edi
jbe 0x409298
mov eax, dword [esp + 0x10]
push esi
movzx eax, word [eax + edi*2]
push eax
call fcn.004f2ac0
mov eax, dword [esp + 0x18]
push esi
movzx eax, byte [eax + edi*2 + 1]
push eax
call fcn.004f2ac0
inc edi
add esp, 0x10
cmp edi, dword [esp + 8]
jb 0x409245
jmp 0x409298
cmp eax, 2
jne 0x409285
push dword [esp + 8]
mov eax, dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
push esi
push dword [esp + 0xc]
push 1
push dword [esp + 0x18]
call fcn.004f2dfc
add esp, 0x10
push esi
call fcn.004f2a17
push dword [esp + 0x10]
call fcn.004ebd28
push dword [esp + 0x18]
call fcn.004ebd28
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1010
ret 4
Function at 0x409e20
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x814]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x400
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push eax
call fcn.0048dfd0
mov ebx, eax
test ebx, ebx
je 0x409eb5
test esi, esi
jne 0x409e6c
mov esi, 1
jmp 0x409e97
movzx eax, word [esp + 0xc]
mov ecx, 0x543e88
push eax
call fcn.0045c490
test al, al
jne 0x409e97
cmp esi, 1
jne 0x409e96
movzx eax, word [esp + 0xc]
mov word [edi], ax
movzx eax, word [esp + 0xe]
mov word [edi + 2], ax
inc esi
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0048dfd0
mov ebx, eax
test ebx, ebx
jne 0x409e61
cmp esi, 2
jne 0x409eb5
mov word [edi], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x804
ret 4
Function at 0x40bde0
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x3020
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x301c], eax
push ebp
push str.winrar_config_integration
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x40bf21
push ebx
push 0x10000
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x40be49
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
mov ecx, dword [esp + 0x301c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3020
ret
cmp byte [ebx], 0x49
push esi
mov esi, ebx
jne 0x40beb3
cmp byte [ebx + 1], 0x1a
jne 0x40beb3
push edi
lea esi, [ebx + 2]
mov ecx, 6
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x400
lea eax, [esp + 0x1030]
push eax
lea eax, [ebx + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.0040bf40
push 0x400
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0040bf40
mov esi, eax
pop edi
test esi, esi
je 0x40beb3
push 0
lea eax, [esp + 0x10]
push eax
call fcn.0043b270
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x102c]
push eax
call fcn.0040c470
cmp byte [esi], 0x54
jne 0x40bf11
push 0x800
lea eax, [esp + 0x202c]
push eax
lea eax, [esi + 1]
push eax
call fcn.0040bf40
push 0x800
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.0040bf40
push 0x800
lea ecx, [esp + 0x102c]
push ecx
push eax
call fcn.0040bf40
test eax, eax
je 0x40bf11
push 0
lea eax, [esp + 0x102c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2034]
push eax
call fcn.0043a680
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov ecx, dword [esp + 0x3020]
pop ebp
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3020
ret
Function at 0x40cfb0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x98
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x529538], 0
je 0x40cfed
xor eax, eax
cmp dword [0x52952c], eax
setne al
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x98
ret
push esi
push edi
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004ee100
add esp, 0xc
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [esp + 0x18], 2
push str.USER32
sete al
mov dword [0x52953c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x40d0ce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50c5ec
push esi
call edi
mov dword [0x52951c], eax
test eax, eax
je 0x40d0ce
push str.MonitorFromWindow
push esi
call edi
mov dword [0x529520], eax
test eax, eax
je 0x40d0ce
push str.MonitorFromRect
push esi
call edi
mov dword [0x529524], eax
test eax, eax
je 0x40d0ce
push str.MonitorFromPoint
push esi
call edi
mov dword [0x529528], eax
test eax, eax
je 0x40d0ce
push str.EnumDisplayMonitors
push esi
call edi
mov dword [0x529530], eax
test eax, eax
je 0x40d0ce
push str.EnumDisplayDevicesW
push esi
call edi
mov dword [0x529534], eax
test eax, eax
je 0x40d0ce
cmp dword [0x52953c], 0
je 0x40d0b6
push str.GetMonitorInfoW
jmp 0x40d0bb
push str.GetMonitorInfoA
push esi
call edi
mov dword [0x52952c], eax
test eax, eax
je 0x40d0ce
mov eax, 1
jmp 0x40d116
mov dword [0x52951c], 0
xor eax, eax
mov dword [0x529520], 0
mov dword [0x529524], 0
mov dword [0x529528], 0
mov dword [0x52952c], 0
mov dword [0x529530], 0
mov dword [0x529534], 0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
mov dword [0x529538], 1
call fcn.004ebbd8
add esp, 0x98
ret
Function at 0x40df10
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503a51
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x528af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x539a60], 0
jne 0x40e0ee
push str.WinRAR_DragDrop
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40df94
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b9
call fcn.00488530
push eax
call fcn.004cf640
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [0x529542], al
jne 0x40dfb5
cmp byte [0x53898c], 0
jne 0x40dfb5
xor bl, bl
jmp 0x40dfb7
mov bl, 1
push 8
mov byte [ebp - 0x10], bl
call fcn.004eb998
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40dfe3
mov dword [esi], 0x50c6b8
mov dword [esi + 4], 1
jmp 0x40dfe5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push 0xd5f8
call fcn.004eb998
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40e020
push 0
push dword [ebp - 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d270
mov ecx, eax
mov dword [ebp + 0xc], eax
jmp 0x40e025
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov byte [0x529541], 0
test bl, bl
mov byte [0x529540], 1
mov byte [0x529543], 0
setne al
lea eax, [eax*2 + 1]
push eax
push esi
push ecx
call dword [sym.imp.ole32.dll_DoDragDrop]
mov ebx, eax
mov byte [0x529540], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
cmp byte [0x529542], 0
je 0x40e09d
cmp byte [0x53898c], 0
je 0x40e09d
cmp ebx, 0x40100
jne 0x40e09d
call fcn.004ce680
mov ecx, 0x55d4d8
call fcn.004437b0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x40100
je 0x40e0ee
cmp ebx, 0x40101
je 0x40e0ee
cmp byte [0x529543], 0
jne 0x40e0ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x40e0ee
push 0x53c
call fcn.00488530
push eax
call fcn.004cf640
add esp, 4
mov ecx, 0x56df60
call fcn.00463320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f0f0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x3008
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x3004], eax
push esi
mov esi, dword [esp + 0x3010]
call fcn.0046bee0
cmp eax, 0x600
jb 0x40f2de
push esi
call fcn.004c3c60
test al, al
jne 0x40f2de
push 0x800
lea eax, [esp + 0xc]
mov ecx, 0x55d4d8
push eax
push esi
call fcn.00440000
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00478310
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40f2de
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40f1a6
mov eax, dword [esp + 4]
and eax, 0x80008
cmp eax, 8
jne 0x40f2de
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1d5
test al, 0x10
jne 0x40f1d5
lea eax, [esp + 8]
push eax
call fcn.0040ef40
and eax, 6
cmp al, 6
jne 0x40f246
lea eax, [esp + 8]
push eax
call fcn.00478f10
push ebx
lea eax, [esp + 0xc]
xor bl, bl
push eax
call fcn.00469360
test al, al
jne 0x40f27b
mov bl, 1
lea esp, [esp]
push 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2014]
push eax
call fcn.0048e710
lea eax, [esp + 0xc]
push eax
call fcn.00478f10
lea eax, [esp + 0x200c]
lea ecx, [esp + 0xc]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40f260
test dx, dx
je 0x40f242
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40f260
add ecx, 4
add eax, 4
test dx, dx
jne 0x40f220
xor eax, eax
jmp 0x40f265
mov al, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3008
ret 8
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f27b
lea eax, [esp + 0xc]
push eax
call fcn.00469360
test al, al
je 0x40f1f0
lea eax, [esp + 0xc]
push eax
call fcn.0040ef40
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x40f2c0
test bl, bl
je 0x40f2a1
cmp byte [esp + 0x3018], 0
je 0x40f2a5
test cl, cl
je 0x40f2c0
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3008
ret 8
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3008
ret 8
mov ecx, dword [esp + 0x3008]
xor al, al
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x3008
ret 8

Function at 0x40f300
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
test eax, eax
je 0x40f36e
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x14
ret
Function at 0x410410
Capabilities:
Delete file
Log keystrokes via polling

Disassembly:
mov eax, 0x2050
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x204c], eax
push esi
push 0
mov esi, ecx
push 9
push 0x110a
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41053e
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x113e
push dword [esi]
mov dword [esp + 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41053e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41053e
lea ecx, [esp + 0x4c]
push ecx
push dword [eax + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41053e
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [esp + 0x50]
push 0x800
shr ebx, 0xf
push eax
lea eax, [esp + 0x1058]
not bl
push eax
and bl, 1
call fcn.0048e710
lea ecx, [esp + 0x1050]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4104c3
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1002
jae 0x410554
xor eax, eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x18], eax
mov word [esp + ecx + 0x1050], ax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
movzx eax, bl
neg eax
sbb eax, eax
and eax, 0x40
mov word [esp + 0x18], ax
lea eax, [esp + 0x1050]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx eax, byte [esi + 8]
mov ecx, esi
push eax
call fcn.00411fa0
pop ebx
mov ecx, dword [esp + 0x2050]
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2050
ret
call fcn.004ebafc
int3
Function at 0x410ce0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2b4], eax
push ebx
mov ebx, dword [esp + 0x2c4]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x2c4]
push 0x4009
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
push 0x400b
push 0x2b4
mov dword [ebx + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2bc]
pop edi
mov dword [ebx + 0x1c], eax
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2b8
ret 8