joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c64b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
movzx ecx, byte [edi + 0x11]
push ebx
push ebp
push esi
mov esi, eax
mov eax, 1
shl eax, cl
add ecx, 1
push edx
mov edx, dword [esp + 0x144]
mov dword [esp + 0x20], ecx
lea ecx, [eax + 1]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x148]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004cb6a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5c6521
mov esi, dword [esp + 0x13c]
mov dword [esi], eax
jmp 0x5c664f
mov eax, dword [edi + 0x12]
or eax, dword [edi + 0x16]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x5c658f
lea ecx, [edi + 4]
push ecx
call fcn.005ca120
mov eax, dword [edi + 0xd]
cmp eax, ebx
je 0x5c6545
push esi
call fcn.005c62a0
mov dl, byte [edi + 0x11]
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x10]
push ecx
push edx
call ebp
cmp dword [esp + 0x18], 1
je 0x5c6581
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
mov dword [esi], 2
push eax
jmp 0x5c6654
push ebx
call fcn.0048b230
mov dword [edi + 0x12], eax
mov dword [edi + 0x16], edx
xor ebx, ebx
mov ecx, dword [edi + 0x1a]
cmp ecx, dword [esp + 0x14]
jae 0x5c65ff
mov ebx, dword [esp + 0x14]
sub ebx, dword [edi + 0x1a]
cmp ebx, 0xff
jbe 0x5c65ac
mov ebx, 0xff
mov ecx, dword [esi + 0x10]
push 0
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x20], bl
call ebp
mov eax, dword [edi + 0x1a]
add eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
push ecx
call ebp
cmp dword [esp + 0x18], ebx
jne 0x5c662a
mov ecx, dword [esp + 0x140]
add dword [edi + 0x1a], ebx
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
test al, al
jne 0x5c6639
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x1a], ecx
jb 0x5c6598
xor ebx, ebx
push esi
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], 0
call fcn.005ca0b0
test al, al
mov esi, dword [esp + 0x13c]
jne 0x5c664d
mov ecx, dword [esp + 0x10]
mov dword [esi], 2
push ecx
jmp 0x5c6654
mov esi, dword [esp + 0x13c]
mov dword [esi], 2
jmp 0x5c664f
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
mov dword [esi], 1
push eax
jmp 0x5c6654
mov dword [esi], ebx
mov edx, dword [esp + 0x10]
push edx
call fcn.0069c8fa
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 0xc
Function at 0x5ca040
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov al, byte [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x10]
mov byte [esp + 0x10], al
mov eax, dword [edi + 0x10]
push edx
push eax
call ebx
cmp dword [esp + 8], 1
je 0x5ca073
xor al, al
pop ebx
add esp, 8
ret
cmp byte [esi + 4], 0x21
jne 0x5ca06c
mov cl, byte [esi + 5]
push 0
lea edx, [esp + 0xc]
push edx
push 1
lea eax, [esp + 0x10]
mov byte [esp + 0x10], cl
mov ecx, dword [edi + 0x10]
push eax
push ecx
call ebx
xor eax, eax
cmp dword [esp + 8], 1
pop ebx
sete al
add esp, 8
ret

Function at 0x5ca0b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
mov edi, eax
mov al, byte [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x20]
mov byte [esp + 0x20], al
mov eax, dword [ebx + 0x10]
push edx
push eax
call ebp
cmp dword [esp + 0xc], 1
je 0x5ca0eb
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
mov edx, dword [ebx + 0x10]
push esi
movzx esi, byte [edi + 4]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
add edi, 5
push edi
push edx
call ebp
xor eax, eax
cmp dword [esp + 0x18], esi
pop esi
pop edi
pop ebp
sete al
pop ebx
pop ecx
ret 4

Function at 0x5ca120
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esi + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x24], 0x2c
call edi
movzx eax, word [ebx]
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
push edx
push eax
call edi
movzx ecx, word [ebx + 2]
push 0
lea edx, [esp + 0xc]
push edx
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call edi
movzx edx, word [ebx + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x10]
push ecx
push edx
call edi
movzx eax, word [ebx + 6]
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
push edx
push eax
call edi
mov edx, dword [esi + 0x10]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
add ebx, 8
push ebx
push edx
call edi
xor eax, eax
cmp dword [esp + 0x10], 1
pop edi
sete al
pop ebx
pop ecx
ret 4
Function at 0x5ca1e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x18]
push 0
lea eax, [esp + 0x1c]
push eax
push 4
push ebp
push edx
call ebx
cmp dword [esp + 0x18], 4
je 0x5ca218
pop ebp
mov dword [edi], 2
mov eax, edi
pop ebx
add esp, 0xc
ret 4
mov ax, word [ebp + 4]
mov ch, al
push 0
mov cl, ah
lea eax, [esp + 0xc]
push eax
push 2
movzx edx, cx
mov dword [esp + 0x24], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
call ebx
cmp dword [esp + 8], 2
jne 0x5ca208
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 6
lea edx, [esp + 0x18]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov ecx, dword [eax + 0x10]
push edx
push ecx
call ebx
cmp dword [esp + 0x18], 6
jne 0x5ca208
movzx edx, word [ebp + 0xc]
mov eax, dword [esi]
push edx
push eax
call fcn.005c2570
test al, al
je 0x5ca208
mov ecx, dword [ebp + 0xe]
mov edx, dword [esi]
push ecx
call fcn.005c25b0
test al, al
je 0x5ca208
mov edx, dword [ebp + 0x12]
push edx
mov edx, dword [esi]
call fcn.005c25b0
test al, al
je 0x5ca208
movzx eax, word [ebp + 0x16]
mov ecx, dword [esi]
push eax
push ecx
call fcn.005c2570
test al, al
je 0x5ca208
movzx edx, word [ebp + 0x18]
mov eax, dword [esi]
push edx
push eax
call fcn.005c2570
test al, al
je 0x5ca208
pop ebp
mov dword [edi], 0
mov eax, edi
pop ebx
add esp, 0xc
ret 4
Function at 0x5d4790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x20c]
push ecx
lea edx, [esp + 4]
push edx
call fcn.004ac1f0
add esp, 0x208
ret 4

Function at 0x5d47e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push 3
push 1
push SysReAllocStringLen
push eax
mov eax, 0x64
call fcn.004abf70
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x404
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x404
sete bl
cmp esi, 0xffffffff
je 0x5d4827
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x5d4bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dx, 0x200
push ebx
mov ebx, dword [ebp + 8]
jg 0x5d4c31
cmp word [ebp + 0xc], 0x5a0
jge 0x5d4c31
movsx eax, word [ecx]
push esi
movsx esi, dx
cmp esi, eax
mov dword [ebp - 4], esi
jl 0x5d4be7
mov esi, eax
sub eax, esi
lea eax, [eax + ecx + 4]
push esi
push eax
lea ecx, [ebx + 4]
push ecx
call fcn.0069e350
movsx eax, word [ebp + 0xc]
add esp, 0xc
push 0
lea edx, [ebp + 8]
push edx
mov edx, dword [edi]
push eax
lea ecx, [esi + ebx + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
sub dword [edi + 8], eax
mov ecx, dword [ebp + 0xc]
cmp esi, dword [ebp - 4]
lea edx, [esi + ecx]
pop esi
mov word [ebx], dx
setge al
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5d5950
Capabilities:
Get common file path

Disassembly:
mov edx, edi
sub esp, 0x310
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x5d5960
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x104
lea esi, [edi + 0x208]
mov word [esi], cx
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esp + 4], 1
jne 0x5d59ce
lea edx, [esp + 0x10c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x318]
push eax
lea ecx, [esp + 0x110]
push ecx
call fcn.004ac1f0
mov eax, edi
pop esi
add esp, 0x310
ret 4
Function at 0x5d59e0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x518
push ebx
mov ebx, dword [esp + 0x520]
push esi
mov esi, ebx
push edi
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x5d59f4
lea edx, [ebx + 0x208]
sub edx, eax
jmp 0x5d5a10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x5d5a10
push ebp
xor esi, esi
lea eax, [esp + 0x10]
push eax
push esi
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push ebx
push esi
lea ebp, [ebx + 0x410]
push esi
mov word [ebp], si
mov word [ebx + 0x618], si
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5d5a5c
cmp dword [esp + 0x10], esi
je 0x5d5a99
mov esi, ebx
lea edi, [esp + 0x118]
call fcn.004ad1c0
lea edx, [esp + 0x320]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
push eax
lea ecx, [esp + 0x324]
push ecx
mov esi, ebp
call fcn.004ac1f0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x10]
push edx
push 0
push 0x104
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
lea esi, [ebx + 0x208]
push esi
push 0
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
pop ebp
je 0x5d5ad1
cmp dword [esp + 0xc], 0
je 0x5d5b06
lea edi, [esp + 0x31c]
call fcn.004ad1c0
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, edi
push edx
lea eax, [esp + 0x118]
push eax
lea esi, [ebx + 0x618]
call fcn.004ac1f0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x518
ret 4
Function at 0x5d5fd0
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x10]
movzx ecx, ax
lea ebx, [ecx + edx + 0x26]
add ecx, 0x12
mov dword [esp + 0x3c], ecx
movzx ecx, word [esi]
mov word [esp + 0x18], cx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
movzx ecx, word [esi + 0xc]
mov dword [esp + 0x14], edx
movzx edx, word [esi + 2]
mov word [esp + 0x24], cx
xor ecx, ecx
push ecx
push ecx
mov word [esp + 0x22], dx
mov edx, dword [esi + 8]
mov word [esp + 0x30], ax
xor eax, eax
push ecx
mov dword [esp + 0x2c], edx
movzx edx, word [esi + 0xe]
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x40], 0x46464952
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x45564157
mov dword [esp + 0x4c], 0x20746d66
mov dword [esp + 0x24], 0x61746164
mov word [esp + 0x3a], dx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x14
lea edx, [esp + 0x38]
push edx
push eax
call ebx
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x12
lea edx, [esp + 0x24]
push edx
push eax
call ebx
movzx eax, word [esi + 0x10]
test ax, ax
jbe 0x5d60a7
push 0
movzx edx, ax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edx
add esi, 0x12
push esi
push eax
call ebx
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push eax
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d70b0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x1044
call fcn.006ab750
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
mov ebx, dword [esp + 0x104c]
push ebp
push edi
push 0
mov edi, ecx
push str.Converting_to_Apple_Lossless.__Please_Wait...
mov ecx, esi
call edx
lea eax, [esp + 0x830]
push eax
mov eax, str.alacconvert
call fcn.004a6a60
test al, al
jne 0x5d7119
lea ecx, [esp + 0x830]
push ecx
push 0
push str.alacconvert
push esi
call fcn.004a6bc0
test al, al
jne 0x5d7119
mov dword [edi], 2
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x1044
ret 4
lea edx, [esp + 0x830]
push edx
push 0x6ca7d0
lea edx, [esp + 0xa40]
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebx + 0x208]
mov ecx, ebx
call fcn.005d59e0
cmp word [esp + 0x628], 0
lea ebp, [esp + 0x628]
jne 0x5d7160
lea ebp, [esp + 0x218]
cmp word [esp + 0x420], 0
lea ebx, [esp + 0x420]
jne 0x5d7176
lea ebx, [esp + 0x10]
lea eax, [esp + 0xa38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d7180
sub eax, edx
push ebp
sar eax, 1
push ebx
push str.___s____s_
lea edx, [esp + eax*2 + 0xa44]
call fcn.00401000
add esp, 0xc
push 0x57e40
push esi
lea ecx, [esp + 0xa40]
call fcn.004bfa80
cmp word [esp + 0x420], 0
je 0x5d71d0
lea edx, [esp + 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esp + 0x628], 0
je 0x5d71f3
push 3
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x1044
ret 4
Function at 0x5d7a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
cmp byte [ebp + 8], 0
mov dword [esp + 8], 0x646e732e
mov dword [esp + 0xc], 0x18000000
mov dword [esp + 0x10], 0xffffffff
je 0x5d7ab4
mov ecx, dword [eax + 0x14]
imul ecx, dword [eax + 4]
bswap ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 0xc]
mov eax, dword [eax + 0x18]
bswap ecx
push 0
mov dword [esp + 0x1c], ecx
bswap edx
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x24], edx
push 0x18
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x18
mov esp, ebp
pop ebp
ret 4

Function at 0x5d8e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
call ebx
mov eax, dword [esp + 4]
push 0
lea ecx, [esp + 0xc]
push ecx
bswap eax
push 2
lea edx, [esp + 0x10]
mov dword [esi], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x18], 0
call ebx
movzx ecx, word [esp + 4]
movzx edx, cx
mov ah, dl
mov word [esi + 4], cx
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
mov dword [esp + 0x10], 0
mov al, dh
lea edx, [esp + 0x10]
push edx
mov word [esi + 4], ax
mov eax, dword [edi]
push eax
call ebx
movzx ecx, word [esp + 4]
movzx edx, cx
mov ah, dl
mov word [esi + 6], cx
pop ebx
mov al, dh
mov word [esi + 6], ax
add esp, 8
ret

Function at 0x5d8ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esp + 8]
bswap eax
mov dword [esi], eax
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push edx
push eax
call ebx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, ecx
mov ecx, edx
bswap eax
bswap ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d8f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
bswap eax
lea edx, [esp + 0xc]
push edx
bswap ecx
mov dword [esi + 4], eax
push 4
lea eax, [esp + 0x10]
mov dword [esi], ecx
mov ecx, dword [edi]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebx
mov edx, dword [esp + 4]
push 0
mov eax, edx
lea ecx, [esp + 0xc]
push ecx
bswap eax
push 4
lea edx, [esp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x18], 0
call ebx
mov ecx, dword [esp + 4]
push 0
mov edx, ecx
lea eax, [esp + 0xc]
push eax
bswap edx
push 4
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [edi]
push ecx
push edx
mov dword [esp + 0x18], 0
call ebx
mov eax, dword [esp + 4]
push 0
mov ecx, eax
lea edx, [esp + 0xc]
push edx
bswap ecx
push 4
lea eax, [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [edi]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebx
mov edx, dword [esp + 4]
push 0
mov eax, edx
lea ecx, [esp + 0xc]
bswap eax
push ecx
mov dword [esi + 0x14], eax
mov dword [esp + 0xc], 0
push 4
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
push eax
call ebx
mov ecx, dword [esp + 4]
push 0
mov edx, ecx
lea eax, [esp + 0xc]
push eax
bswap edx
push 4
lea ecx, [esp + 0x10]
mov dword [esi + 0x18], edx
mov edx, dword [edi]
push ecx
push edx
mov dword [esp + 0x18], 0
call ebx
mov eax, dword [esp + 4]
mov ecx, eax
bswap ecx
mov dword [esi + 0x1c], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d9040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
bswap eax
mov dword [esi + 4], eax
xor eax, eax
push eax
lea edx, [esp + 8]
push edx
bswap ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 8
lea eax, [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [edi]
push eax
push ecx
call ebx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, edx
push 0
mov edx, eax
bswap ecx
lea eax, [esp + 0xc]
push eax
bswap edx
mov dword [esi + 0xc], ecx
push 4
lea ecx, [esp + 0x10]
mov dword [esi + 8], edx
mov edx, dword [edi]
push ecx
push edx
mov dword [esp + 0x18], 0
call ebx
mov eax, dword [esp + 4]
push 0
mov ecx, eax
lea edx, [esp + 0xc]
push edx
bswap ecx
push 4
lea eax, [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [edi]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebx
mov edx, dword [esp + 4]
mov eax, edx
bswap eax
mov dword [esi + 0x14], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d9480
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
push esi
mov esi, edx
jbe 0x5d94ba
push ebx
lea ebx, [ebx]
movzx ebx, byte [esi]
mov edx, eax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
sub ecx, 1
add esi, 1
xor bx, word [edx*2 + 0x6bf568]
test ecx, ecx
movzx eax, bx
ja 0x5d9490
pop ebx
pop esi
ret

Function at 0x5d9ea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
mov eax, ebx
call fcn.00638030
lea eax, [ebx + 0x208]
mov ecx, 0x6ff500
call fcn.00638030
mov eax, dword [esp + 0x224]
mov dword [ebx + 0x410], eax
movzx eax, word [ebx]
test ax, ax
mov ecx, ebx
je 0x5d9ef3
movzx eax, ax
cmp ax, 0x80
jae 0x5d9f5f
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x5d9ee1
xor al, al
mov byte [ebx + 0x414], al
lea esi, [ebx + 0x415]
mov word [esi], 0
cmp byte [ebx + 0x414], 0
mov eax, ebx
je 0x5d9f53
lea edi, [esp + 0x10]
mov word [esp + 0x10], 0
call fcn.004ad090
mov ax, word [esp + 0x10]
test ax, ax
mov ecx, edi
je 0x5d9f42
movzx eax, ax
cmp ax, 0x80
jae 0x5d9f63
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x5d9f30
push str..tmp
lea eax, [esp + 0x14]
push eax
call fcn.004ac1f0
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x210
ret 8
mov al, 1
jmp 0x5d9ef5
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..tmp
lea edx, [esp + 0x14]
push edx
call fcn.004ac1f0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x210
ret 8

Function at 0x5da0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov dword [esi], 0x7145c0
call fcn.005da160
mov ecx, dword [esi + 0x631]
test ecx, ecx
je 0x5da0ee
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp byte [esi + 0x428], 0
push edi
lea edi, [esi + 0x14]
je 0x5da116
push ebx
lea ebx, [edi + 0x415]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5da115
push edi
push ebx
call fcn.004ac0b0
pop ebx
mov dword [esi], 0x6dc414
pop edi
ret

Function at 0x5da160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x631]
test esi, esi
je 0x5da1e7
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x5da197
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x14]
push ecx
call edi
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
cmp byte [ebx + 0x428], 0
lea esi, [ebx + 0x14]
je 0x5da1ca
lea edi, [esi + 0x415]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5da1ca
push esi
push edi
call fcn.004ac0b0
mov ecx, dword [ebx + 0x631]
test ecx, ecx
pop edi
je 0x5da1dd
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebx + 0x631], 0
pop esi
pop ebx
ret 4
Function at 0x5da790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x528
push esi
lea esi, [esp + 0x118]
call fcn.004011d0
mov eax, esi
push eax
lea esi, [esp + 0x324]
call fcn.004a5640
mov eax, dword [eax]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5da7b7
mov ecx, dword [esp + 0x524]
sub eax, edx
push ecx
mov esi, eax
call fcn.0069c8fa
add esp, 4
cmp esi, 0xff
jbe 0x5da845
lea esp, [esp]
lea eax, [esp + 0x118]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5da7f0
sub eax, edx
lea edx, [esp + 0x118]
sar eax, 1
push edx
lea esi, [esp + 0x324]
mov word [esp + eax*2 + 0x11a], cx
call fcn.004a5640
mov eax, dword [eax]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5da820
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x524]
push eax
call fcn.0069c8fa
add esp, 4
cmp esi, 0xff
ja 0x5da7e0
push 0
push 0
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x12c]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x10]
mov byte [esp + 0x113], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5da880
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
mov edx, dword [edi]
push 0
mov byte [esp + 0xf], al
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x17]
push ecx
push edx
call esi
cmp dword [esp + 0xc], 1
je 0x5da8b9
xor al, al
pop esi
add esp, 0x528
ret
mov al, byte [esp + 0xb]
test al, al
jbe 0x5da8e1
push 0
movzx edx, al
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
movzx edx, byte [esp + 0xb]
cmp dword [esp + 0xc], edx
jne 0x5da8af
mov al, 1
pop esi
add esp, 0x528
ret