joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f800
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x4024
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x4020], 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 0x40fa58
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
je 0x40fa50
mov al, byte [ebx]
movzx ecx, byte [ebx + 2]
mov byte [esp + 0xb], al
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
cmp ecx, 0x1c
jne 0x40fa49
push esi
push edi
lea esi, [ebx + 3]
mov ecx, 7
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x1f]
test edi, edi
je 0x40fa47
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x400
jae 0x40fa47
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x838]
push eax
call fcn.0051f6b0
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x102e], ax
add edi, esi
je 0x40fa47
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x400
jae 0x40fa47
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0051f6b0
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x82e], ax
add edi, esi
je 0x40fa47
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x40fa47
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x1038]
push eax
call fcn.0051f6b0
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x202e], ax
add edi, esi
je 0x40fa47
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x40fa47
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x3038]
push eax
call fcn.0051f6b0
xor eax, eax
add edi, 2
add esp, 0xc
mov word [esp + 0x402e], ax
add edi, esi
je 0x40fa47
movzx esi, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
add esi, eax
cmp esi, 0x800
jae 0x40fa47
add esi, esi
lea eax, [edi + 2]
push esi
push eax
lea eax, [esp + 0x2038]
push eax
call fcn.0051f6b0
xor eax, eax
add esp, 0xc
mov word [esp + 0x302e], ax
lea eax, [edi + 2]
add eax, esi
je 0x40fa47
mov al, byte [esp + 0x13]
cmp al, 1
je 0x40f9ff
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0044cf30
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x834]
push eax
call fcn.0040ff60
mov al, byte [esp + 0x13]
cmp word [esp + 0x1030], 0
jne 0x40fa0e
cmp al, 1
jne 0x40fa47
push 0
lea eax, [esp + 0x2034]
push eax
lea eax, [esp + 0x3038]
push eax
lea eax, [esp + 0x103c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044c0c0
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x40fa47
lea eax, [esp + 0x1030]
push eax
call fcn.0040da00
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x4024]
pop ebp
xor ecx, esp
call fcn.0051dca8
add esp, 0x4024
ret
Function at 0x410570
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41057b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x410576
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x410560
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x410568
cmp edx, ebx
jne 0x4106b6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
enter 0x4d39, 8
enter 0x4d39, 8
jb 0x410537
add eax, dword [eax + 4]
jmp 0x410524
mov dword [ebp + 0xc], ebx
jmp 0x410586
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41059e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4105bc
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41061a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x410601
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41060a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x410614
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4105f6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x410580
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x410667
dec eax
je 0x41065e
sub eax, 3
je 0x410655
mov dword [ebp - 4], 0x40
jmp 0x410684
mov dword [ebp - 4], 4
jmp 0x41066a
mov dword [ebp - 4], 0x20
jmp 0x41066a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4106b6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x410636
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040fec7
and eax, 0xff6306d2
jne 0x4106c1
push 1
push esi
call edi
mov eax, esi
jmp 0x4106c2
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410ac0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040fe8c
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040fec7
push 0x1a
shr esp, 1
invalid
movsd dword es:[edi], dword [esi]

Function at 0x410d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec esp
push esi
scasd eax, dword es:[edi]
call 0xfe11b309
invalid
Function at 0x412e10
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x3008
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x3004], eax
push esi
mov esi, dword [esp + 0x3010]
call fcn.004881b0
cmp eax, 0x600
jb 0x412ffb
push esi
call fcn.004ec770
test al, al
jne 0x412ffb
push 0x800
lea eax, [esp + 0xc]
mov ecx, 0x5a84b0
push eax
push esi
call fcn.00452e10
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00494910
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x412ffb
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 0x412ec6
mov eax, dword [esp + 4]
and eax, 0x80008
cmp eax, 8
jne 0x412ffb
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412ef5
test al, 0x10
jne 0x412ef5
lea eax, [esp + 8]
push eax
call fcn.00412c60
and eax, 6
cmp al, 6
jne 0x412f66
lea eax, [esp + 8]
push eax
call fcn.004958c0
push ebx
lea eax, [esp + 0xc]
xor bl, bl
push eax
call fcn.004837b0
test al, al
jne 0x412f9b
mov bl, 1
lea esp, [esp]
push 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2014]
push eax
call fcn.004b0360
lea eax, [esp + 0xc]
push eax
call fcn.004958c0
lea eax, [esp + 0x200c]
lea ecx, [esp + 0xc]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412f80
test dx, dx
je 0x412f62
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412f80
add ecx, 4
add eax, 4
test dx, dx
jne 0x412f40
xor eax, eax
jmp 0x412f85
mov al, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.0051dca8
add esp, 0x3008
ret 8
sbb eax, eax
or eax, 1
test eax, eax
je 0x412f9b
lea eax, [esp + 0xc]
push eax
call fcn.004837b0
test al, al
je 0x412f10
lea eax, [esp + 0xc]
push eax
call fcn.00412c60
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x412fe0
test bl, bl
je 0x412fc1
cmp byte [esp + 0x3018], 0
je 0x412fc5
test cl, cl
je 0x412fe0
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.0051dca8
add esp, 0x3008
ret 8
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.0051dca8
add esp, 0x3008
ret 8
mov ecx, dword [esp + 0x3008]
xor al, al
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x3008
ret 8
Function at 0x414410
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov eax, 0x2050
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x204c], eax
push edi
push 0
mov edi, ecx
push 9
push 0x110a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x414534
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x113e
push dword [edi]
mov dword [esp + 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x414534
mov eax, dword [esp + 0x48]
test eax, eax
je 0x414534
lea ecx, [esp + 0x4c]
push ecx
push dword [eax + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x414534
push esi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx esi, ax
lea eax, [esp + 0x50]
push 0x800
push eax
lea eax, [esp + 0x1058]
shr esi, 0xf
push eax
call fcn.004b0360
lea ecx, [esp + 0x1050]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4144c0
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1002
jae 0x41454a
xor eax, eax
mov dword [esp + 0xc], 3
mov word [esp + ecx + 0x1050], ax
not esi
mov dword [esp + 8], eax
and esi, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
lea eax, [esp + 0x1050]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
shl esi, 6
push eax
mov word [esp + 0x1c], si
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx eax, byte [edi + 8]
mov ecx, edi
push eax
call fcn.004164d0
pop esi
mov ecx, dword [esp + 0x2050]
pop edi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2050
ret
call fcn.0051dbcd
int3
Function at 0x414f60
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov esi, dword [esp + 0x2c0]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x2c8]
push 0x4009
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
push 0x400b
push 0x2b4
mov dword [edi + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2bc]
mov dword [edi + 0x1c], eax
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2b8
ret 8
Function at 0x4160b0
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x12b8
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x12b4], eax
mov eax, dword [esp + 0x12bc]
push esi
mov esi, ecx
push 0x4001
push 0x2b4
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x542b18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x416126
push eax
push 0x800
lea eax, [esp + 0x2c0]
push eax
call fcn.004ec500
push 0x4001
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x1109
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x12b8]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x12b8
ret 4

Function at 0x417ba0
Capabilities:
Get file size

Disassembly:
push ecx
cmp byte [ecx + 0x10], 0
push esi
je 0x417bf3
mov esi, dword [esp + 0xc]
push ebx
xor ebx, ebx
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [ecx + 0x18], ebx
jbe 0x417beb
push ebp
push edi
xor edx, edx
xor ebp, ebp
xor edi, edi
lea esp, [esp]
mov eax, dword [ecx + 0x14]
add edx, dword [eax + edi + 8]
adc ebp, dword [eax + edi + 0xc]
inc ebx
mov dword [esi], edx
lea edi, [edi + 0x10]
mov dword [esi + 4], ebp
cmp ebx, dword [ecx + 0x18]
jb 0x417bd0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
pop ecx
ret 4
lea eax, [esp + 4]
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417c19
xor al, al
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop ecx
ret 4
Function at 0x419643
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x419724
mov ecx, dword [esi + 0x18]
push ebx
push ebp
push edi
xor edi, edi
test ecx, ecx
je 0x41966e
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x14]
cmp edx, dword [eax]
je 0x41967a
inc edi
add eax, 0x10
cmp edi, ecx
jb 0x419662
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 0x18
ret 0xc
cmp edi, ecx
jae 0x41966e
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov ebx, dword [esp + 0x30]
mov ebp, edi
mov dword [esp + 0x14], ecx
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
jmp 0x4196a0
test ebx, ebx
je 0x41970e
mov eax, dword [esi + 0x14]
mov eax, dword [ecx + eax]
mov dword [esi + 8], eax
mov byte [esi + 0x10], 0
cmp ebp, edi
jbe 0x4196cb
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0
push 0
push 0
call fcn.00419aa0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
push edx
mov ecx, esi
call fcn.00419640
mov byte [esi + 0x10], 1
test al, al
je 0x41966e
mov eax, dword [esp + 0x18]
inc ebp
mov edx, dword [esp + 0x10]
sub ebx, eax
mov ecx, dword [esp + 0x1c]
add edx, eax
add dword [esp + 0x14], eax
add ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esi + 0x18]
jb 0x4196a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
mov dword [eax], ecx
mov al, 1
pop esi
add esp, 0x18
ret 0xc
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop esi
setne al
add esp, 0x18
ret 0xc

Function at 0x41f7f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00495850
push edi
push dword [esp + 0x1c]
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004b0300
push esi
call fcn.004837b0
test al, al
je 0x41f831
pop edi
mov al, 1
pop esi
add esp, 0xc
ret 0xc
xor eax, eax
mov word [esi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f87d
lea eax, [edi + edi]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00495850
push edi
push dword [esp + 0x1c]
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004b0300
push esi
call fcn.004837b0
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x4200d0
Capabilities:
Check if file exists

Disassembly:
mov dword [ecx + 0x1040], 0
mov dword [ecx + 0x103c], 0
jmp fcn.00481d40
Function at 0x4282c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x428304
push esi
mov esi, dword [esp + 0x10]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor eax, esi
shrd esi, edx, 8
movzx ecx, al
shr edx, 8
xor esi, dword [ecx*8 + 0x5788a8]
xor edx, dword [ecx*8 + 0x5788ac]
sub edi, 1
jne 0x4282d7
mov eax, esi
pop esi
pop edi
pop ebx
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop ebx
ret 0x10
Function at 0x436280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a07d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x572844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov byte [ebp - 0x1c], 0
push 0x800
mov dword [ebp - 0x28], esi
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x800
call fcn.00525bbb
mov edx, eax
add esp, 8
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x4362ed
mov ecx, 0x5b68fc
call fcn.0047b030
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0x800
mov dword [ebp - 4], 0
xor eax, eax
mov edi, dword [ebp + 0x10]
mov word [ebx + 0x8550], ax
test edi, edi
jle 0x4363df
mov ecx, 0x800
cmp edi, 0x800
ja 0x436322
movzx ecx, di
mov eax, dword [ebp + 8]
movzx ebx, cx
push ebx
push edx
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
mov ecx, dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x4363c3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x541740]
mov ecx, dword [ebp + 0xc]
call esi
mov esi, dword [ebp - 0x10]
test al, al
je 0x43636a
mov ecx, dword [ebp + 0xc]
push ebx
push esi
call fcn.004827f0
cmp dword [ebp + 0x14], 0
je 0x4363a9
mov edx, ebx
test edx, edx
je 0x4363a9
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x14]
movzx eax, word [eax + 0x8550]
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr ax, 8
movzx ecx, cl
xor ax, word [edi + ecx*2 + 8]
movzx eax, ax
mov word [edi + 0x8550], ax
sub edx, 1
jne 0x436383
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x18]
sub edi, ebx
mov edx, dword [ebp - 0x10]
add esi, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x10], edi
test edi, edi
jg 0x436312
jmp 0x4363df
mov eax, dword [ebp - 0x14]
mov ecx, 0x5b68fc
mov eax, dword [eax + 4]
add eax, 0xe55a
push eax
call fcn.0047a9d0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x4363f3
push edx
call fcn.00525b95
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43dbb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x43dbc8
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0xfffffff0
cmp esi, eax
jb 0x43dbd9
mov esi, eax
mov edi, dword [edi + 4]
xor edx, edx
add edi, 0x10
test esi, esi
je 0x43dc04
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, cl
xor edx, dword [ebx + eax*4 + 0x1aa8]
sub esi, 1
jne 0x43dbe5
pop edi
movzx eax, dx
cmp eax, dword [ebp + 0x10]
pop esi
pop ebp
sete al
pop ebx
ret 8
Function at 0x448c80
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebp
push 0x54599c
push eax
call fcn.00484ad0
mov ebp, eax
test ebp, ebp
jne 0x448ccc
lea eax, [ebp + 0x32]
pop ebp
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 8
push esi
mov esi, dword [esp + 0x1014]
xor eax, eax
cmp esi, 0x8000
jbe 0x448de0
push ebx
push edi
push eax
mov eax, esi
shr eax, 3
add eax, 0x1000
push eax
push ebp
call fcn.0052a1cb
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00529db5
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00448a20
mov ecx, esi
mov ebx, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0052a1cb
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00529db5
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00448a20
lea ecx, [esi + esi]
mov edi, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0052a1cb
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00529db5
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00448a20
mov esi, eax
mov eax, dword [esp + 0x101c]
push 0
lea ecx, [eax + eax*2]
shr ecx, 2
add ecx, 0x1000
push ecx
push ebp
call fcn.0052a1cb
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00529db5
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00448a20
add eax, esi
add eax, edi
add eax, ebx
cdq
and edx, 3
push ebp
lea esi, [edx + eax]
sar esi, 2
call fcn.00526918
add esp, 4
mov eax, esi
pop edi
pop ebx
jmp 0x448e21
cmp esi, 0x1000
jbe 0x448df0
lea eax, [esi - 0x1000]
shr eax, 1
push 0
push eax
push ebp
call fcn.0052a1cb
push ebp
push 0x1000
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00529db5
push ebp
mov esi, eax
call fcn.00526918
add esp, 0x20
lea eax, [esp + 8]
push esi
push eax
call fcn.00448a20
mov ecx, dword [esp + 0x1008]
pop esi
pop ebp
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 8
Function at 0x44c540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b15b
mov eax, dword fs:[0]
push eax
mov eax, 0x61a0
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44c6fa
push esi
call fcn.004839c0
test al, al
je 0x44c6fa
push esi
call fcn.00483c90
test al, al
jne 0x44c6fa
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44c5a7
sub esi, ecx
push edi
sar esi, 1
call fcn.00495850
cmp word [eax], 0
je 0x44c6fa
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x5428ac
push edi
call fcn.00495090
lea ecx, [ebp - 0x1070]
call fcn.004b03b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1070]
call fcn.004b0450
push 2
push 0
push 2
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x61ac]
call fcn.004ac1d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x61ac]
mov dword [ebp - 0x10a8], 0
mov dword [ebp - 0x10a4], 0
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x109c], 0
mov dword [ebp - 0x1098], 0
mov dword [ebp - 0x1094], 0
call fcn.004acee0
test eax, eax
jne 0x44c6d3
nop
push esi
lea eax, [ebp - 0x20b8]
push edi
push eax
call fcn.00526778
add esp, 0xc
test eax, eax
jne 0x44c6d3
lea eax, [ebp - 0x20b8]
push eax
call fcn.00484040
cmp byte [ebp - 0x10ac], 0
je 0x44c6b1
test byte [ebp - 0x1078], 1
je 0x44c6bd
lea eax, [ebp - 0x20b8]
push eax
call fcn.00483130
jmp 0x44c6bd
lea eax, [ebp - 0x20b8]
push eax
call fcn.004831b0
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x61ac]
call fcn.004acee0
test eax, eax
je 0x44c670
push edi
call fcn.00483130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x61ac]
call fcn.004ac2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1070]
call fcn.00405620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret 4

Function at 0x44c720
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0x104
jb 0x44c745
push dword [esp + 4]
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x44c745
mov al, 1
ret 8
push ebx
push dword [esp + 0xc]
xor bl, bl
push str.unknown_folder
push dword [esp + 0x10]
call fcn.004b0360
mov al, bl
pop ebx
ret 8