joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fa50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x20
push eax
call fcn.10019df0
add esp, 8
test eax, eax
je 0x1001fab8
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x1001fab8
mov al, byte [esp + ecx + 8]
cmp al, 0x30
jl 0x1001faae
cmp al, 0x39
jle 0x1001fab3
dec ecx
jns 0x1001faa2
jmp 0x1001fab8
mov byte [esp + ecx + 9], 0
xor edi, edi
mov esi, 0x10004fe8
lea ecx, [esp + 8]
push esi
push ecx
call fcn.10019d40
add esp, 8
test eax, eax
jne 0x1001faeb
add esi, 0x30
inc edi
cmp esi, 0x10005918
jb 0x1001fabf
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
lea edi, [edi + edi*2]
or ecx, 0xffffffff
shl edi, 4
add edi, 0x10004ff8
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x104
ret

Function at 0x1001fb30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
mov dword [0x10036a88], eax
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x110]
mov dword [0x10036a6c], esi
mov dword [0x10036a84], ecx
mov dl, byte [eax + 0x100059d0]
xor dl, 0x88
mov byte [eax + 0x10036a70], dl
inc eax
cmp eax, 0x14
jb 0x1001fb57
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.10019e20
inc eax
push 0x10036a70
push eax
call fcn.10019d40
add esp, 0x10
test eax, eax
je 0x1001fc23
lea edx, [esp + 4]
push edx
call fcn.1001b1f0
mov eax, dword [0x10037034]
add esp, 4
test eax, eax
je 0x1001fbc6
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, esi
mov dword [0x10037034], eax
call fcn.10020140
test eax, eax
je 0x1001fc23
mov eax, dword [0x100059e4]
test eax, eax
je 0x1001fc14
push 0x28c
push 0
push 0x100367e0
mov dword [0x100059e4], 0
mov dword [0x10036fec], 0
call fcn.10019ed0
add esp, 0xc
mov ecx, esi
call fcn.1001fff0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
xor eax, eax
pop esi
add esp, 0x104
ret 0xc
Function at 0x10020790
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x224
push ebp
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1400
stosb byte es:[edi], al
call fcn.10019ce0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100207de
pop edi
pop ebp
add esp, 0x224
ret
push esi
lea eax, [esp + 0x30]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x30]
push 0x5c
push ecx
call fcn.10019e20
mov byte [eax], 0
mov edi, 0x10005a68
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, edx
push 3
push eax
and ecx, 3
push 3
lea eax, [esp + 0x44]
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002093b
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x1400
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10005a5c
push ebp
call fcn.10019f00
add esp, 8
test eax, eax
je 0x100208d0
push 0x22
push eax
call fcn.10019df0
mov edi, eax
add esp, 8
test edi, edi
je 0x100208d0
lea esi, [edi + 1]
push 0x2e
push esi
call fcn.10019df0
add esp, 8
test eax, eax
je 0x100208d0
mov ecx, eax
lea eax, [esp + 0x10]
sub ecx, edi
lea edi, [esp + 0x10]
dec ecx
push 0x100367e0
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1001a420
add esp, 8
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
push 0x10005a50
rep stosd dword es:[edi], eax
push ebp
call fcn.10019f00
add esp, 8
test eax, eax
je 0x1002093b
push 0x22
push eax
call fcn.10019df0
mov edi, eax
add esp, 8
test edi, edi
je 0x1002093b
lea esi, [edi + 1]
push 0x22
push esi
call fcn.10019df0
add esp, 8
test eax, eax
je 0x1002093b
mov ecx, eax
lea eax, [esp + 0x10]
sub ecx, edi
lea edi, [esp + 0x10]
dec ecx
push 0x10036800
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1001a420
add esp, 8
push ebp
call fcn.10019d00
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebp
add esp, 0x224
ret
Function at 0x10020a50
Capabilities:
Create thread

Disassembly:
sub esp, 0x40
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4c]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
call edi
test eax, eax
jne 0x10020b89
mov eax, dword [esi + 4]
push 0x40
push eax
call edi
test eax, eax
jne 0x10020b89
cmp dword [esi + 0x10], 0xf
jne 0x10020b89
mov esi, dword [esi + 0xc]
push 0x40
push esi
call edi
test eax, eax
jne 0x10020b89
push 0x10005a8c
push esi
call fcn.10022d30
add esp, 8
cmp eax, esi
jne 0x10020b89
mov edi, 0x10005a8c
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
add ecx, esi
push ecx
push eax
call fcn.10023330
lea ecx, [esp + 0x14]
push ecx
call fcn.10019d20
add esp, 0x10
test eax, eax
je 0x10020b89
xor edx, edx
test eax, eax
jle 0x10020b11
mov cl, byte [esp + edx + 8]
cmp cl, 0x30
jl 0x10020b89
cmp cl, 0x39
jg 0x10020b89
inc edx
cmp edx, eax
jl 0x10020afa
push ebx
lea esi, [esp + 0xc]
mov eax, 0x100374a8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10020b43
test cl, cl
je 0x10020b3f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10020b43
add eax, 2
add esi, 2
test cl, cl
jne 0x10020b1b
xor eax, eax
jmp 0x10020b48
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x10020b89
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, 0x100374a8
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10020c20
and ecx, 3
push 0x400
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
add esp, 0x40
ret 4
Function at 0x10025d45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10005f58
cmp edx, dword [eax]
je 0x10025d67
add eax, 8
inc ecx
cmp eax, 0x10005fe8
jl 0x10025d58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10005f58]
jne 0x10025e95
mov eax, dword [0x10037a5c]
cmp eax, 1
je 0x10025e6f
test eax, eax
jne 0x10025d98
cmp dword [0x10037a60], 1
je 0x10025e6f
cmp edx, 0xfc
je 0x10025e95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10025dcf
lea eax, [ebp - 0x1a4]
push 0x10008c48
push eax
call fcn.100284c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10027a90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10025e12
lea eax, [ebp - 0x1a4]
push eax
call fcn.10027a90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10008c44
push edi
call fcn.10023330
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x10008c28
push eax
call fcn.100284c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100284d0
lea eax, [ebp - 0xa0]
push 0x10008c24
push eax
call fcn.100284d0
push dword [esi + 0x10005f5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100284d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x10008bfc
push eax
call fcn.10028990
add esp, 0x2c
pop edi
jmp 0x10025e95
lea eax, [ebp + 8]
lea esi, [esi + 0x10005f5c]
push 0
push eax
push dword [esi]
call fcn.10027a90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401b40
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x401c71
push esi
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
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 0x401be8
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 dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5e4c48]
push dword [esp + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
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.00401c90
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x401c10
push eax
push eax
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00401560
test al, al
jne 0x401c69
push ebp
push edi
call fcn.004d6c70
mov esi, 1
xor edi, edi
mov ebp, eax
rol esi, 0
test ebp, esi
je 0x401c5f
lea eax, [edi + 0x41]
push eax
push str._c:_
lea eax, [esp + 0x2d4]
push 0xa
push eax
call fcn.00402930
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.00401c90
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x401c23
pop edi
pop ebp
mov ecx, ebx
call fcn.00402090
pop esi
mov ecx, dword [esp + 0x2d4]
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2d4
ret
Function at 0x401c90
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2ec]
push esi
push edi
mov edi, dword [esp + 0x304]
push 0x1008
mov dword [esp + 0x14], ecx
call fcn.005074d2
mov ecx, dword [esp + 0x300]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x2f8]
push 0x800
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call fcn.0049d880
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.0049dc20
cmp byte [esp + 0x310], 0
mov esi, dword [esp + 0x300]
jne 0x401d44
cmp esi, 0xffffffff
je 0x401d0b
test edi, edi
jne 0x401d44
xor eax, eax
cmp dword [esp + 0x2f8], 2
sete al
lea eax, [eax*2 + 0x4201]
push eax
push 0x2b4
lea eax, [esp + 0x40]
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp esi, 0xffffffff
jne 0x401d3c
mov esi, dword [esp + 0x3c]
test edi, edi
jne 0x401d44
lea edi, [esp + 0x44]
xor eax, eax
mov dword [esp + 0x14], 0x37
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 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 + 0x1c], edi
test edi, edi
jne 0x401d7e
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x30c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x308]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x40b
mov dword [esp + 0x40], ebx
push dword [eax]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2e0
ret 0x20
Function at 0x401e20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x5755c4]
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 0x401f35
mov eax, dword [esi + 8]
cmp eax, 0xfffffcd9
je 0x401e91
cmp eax, 0xfffffcda
jne 0x401e77
cmp dword [esi + 0x21c], 2
jne 0x401e77
mov ecx, 0x5a8f3c
call fcn.00401f60
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.00507712
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 0x401ea9
mov edi, dword [eax + 4]
jmp 0x401eac
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 0x401eea
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 0x401ee6
lea eax, [esp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc]
test al, 6
je 0x401f12
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.00507712
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.00507712
add esp, 0x2bc
ret 0x10
Function at 0x401f60
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
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.0044e9f0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 0x158
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x402008
push 0
push eax
push 0x14e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00401910
cmp byte [0x57dfb4], 0
mov ecx, esi
je 0x401fed
call fcn.004026e0
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret
call fcn.00402890
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret
cmp byte [0x57dfb4], 0
je 0x40201f
lea eax, [esp + 4]
push eax
call fcn.00485b40
test al, al
je 0x402062
lea eax, [esp + 4]
push eax
call fcn.0049d980
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402062
test al, 0x10
jne 0x402062
lea eax, [esp + 4]
mov ecx, 0x5a9378
push eax
call fcn.00448a00
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret
push 1
lea eax, [esp + 8]
mov ecx, 0x5a9378
push eax
call fcn.004455c0
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret
Function at 0x40caa0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x5755c4]
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.0049d3c0
mov ebx, eax
test ebx, ebx
je 0x40cb35
test esi, esi
jne 0x40caec
mov esi, 1
jmp 0x40cb17
movzx eax, word [esp + 0xc]
mov ecx, 0x58b998
push eax
call fcn.004671e0
test al, al
jne 0x40cb17
cmp esi, 1
jne 0x40cb16
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.0049d3c0
mov ebx, eax
test ebx, ebx
jne 0x40cae1
cmp esi, 2
jne 0x40cb35
mov word [edi], ax
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x804
ret 4
Function at 0x40f1e0
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x3020
call fcn.00507730
mov eax, dword [0x5755c4]
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 0x40f32f
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 0x40f249
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
mov ecx, dword [esp + 0x301c]
xor ecx, esp
call fcn.00507712
add esp, 0x3020
ret
cmp byte [ebx], 0x49
push esi
mov esi, ebx
jne 0x40f2c1
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
cmp ecx, 0x1a
jne 0x40f2c1
push edi
lea esi, [ebx + 3]
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 + 0x1d]
movsw word es:[edi], word [esi]
push eax
call fcn.0040f350
push 0x400
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0040f350
mov esi, eax
pop edi
test esi, esi
je 0x40f2c1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call fcn.00441e40
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x102c]
push eax
call fcn.0040f8b0
cmp byte [esi], 0x54
jne 0x40f31f
push 0x800
lea eax, [esp + 0x202c]
push eax
lea eax, [esi + 1]
push eax
call fcn.0040f350
push 0x800
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.0040f350
push 0x800
lea ecx, [esp + 0x102c]
push ecx
push eax
call fcn.0040f350
test eax, eax
je 0x40f31f
push 0
lea eax, [esp + 0x102c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2034]
push eax
call fcn.00441110
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.00507712
add esp, 0x3020
ret
Function at 0x411650
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5377d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x57cf80], 0
jne 0x411812
push str.WinRAR_DragDrop
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4116c8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5b9
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 4
jmp 0x411812
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push 8
mov byte [0x57731a], al
call fcn.005074d2
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x411703
mov dword [edi], 0x542ba8
mov dword [edi + 4], 1
jmp 0x411705
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push 0xf750
call fcn.005074d2
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41173a
push 0
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.00410940
mov esi, eax
jmp 0x41173c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push 3
push edi
push esi
mov dword [0x57731c], esi
mov byte [0x577319], 0
mov byte [0x577318], 1
mov byte [0x57731b], 0
call dword [sym.imp.ole32.dll_DoDragDrop]
mov byte [0x577318], 0
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x14], eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov ecx, dword [edi]
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
cmp byte [0x57731a], 0
je 0x4117c0
cmp byte [0x57dfb4], 0
je 0x4117c0
cmp dword [ebp - 0x14], 0x40100
jne 0x4117c0
call fcn.004e4ef0
mov ecx, 0x5a9378
call fcn.0044bdc0
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 0x40100
je 0x411812
cmp eax, 0x40101
je 0x411812
cmp byte [0x57731b], 0
jne 0x411812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x411812
push 0x53c
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 4
mov ecx, 0x5b77e4
call fcn.0046e910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507712
mov esp, ebp
pop ebp
ret 8
Function at 0x412530
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x3008
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x3004], eax
push esi
mov esi, dword [esp + 0x3010]
call fcn.00478e40
cmp eax, 0x600
jb 0x41271e
push esi
call fcn.004d6dc0
test al, al
jne 0x41271e
push 0x800
lea eax, [esp + 0xc]
mov ecx, 0x5a9378
push eax
push esi
call fcn.00448100
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00485630
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41271e
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 0x4125e6
mov eax, dword [esp + 4]
and eax, 0x80008
cmp eax, 8
jne 0x41271e
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412615
test al, 0x10
jne 0x412615
lea eax, [esp + 8]
push eax
call fcn.00412380
and eax, 6
cmp al, 6
jne 0x412686
lea eax, [esp + 8]
push eax
call fcn.00486280
push ebx
lea eax, [esp + 0xc]
xor bl, bl
push eax
call fcn.004750c0
test al, al
jne 0x4126bb
mov bl, 1
lea esp, [esp]
push 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2014]
push eax
call fcn.0049dc20
lea eax, [esp + 0xc]
push eax
call fcn.00486280
lea eax, [esp + 0x200c]
lea ecx, [esp + 0xc]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4126a0
test dx, dx
je 0x412682
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4126a0
add ecx, 4
add eax, 4
test dx, dx
jne 0x412660
xor eax, eax
jmp 0x4126a5
mov al, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.00507712
add esp, 0x3008
ret 8
sbb eax, eax
or eax, 1
test eax, eax
je 0x4126bb
lea eax, [esp + 0xc]
push eax
call fcn.004750c0
test al, al
je 0x412630
lea eax, [esp + 0xc]
push eax
call fcn.00412380
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x412700
test bl, bl
je 0x4126e1
cmp byte [esp + 0x3018], 0
je 0x4126e5
test cl, cl
je 0x412700
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.00507712
add esp, 0x3008
ret 8
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.00507712
add esp, 0x3008
ret 8
mov ecx, dword [esp + 0x3008]
xor al, al
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x3008
ret 8