joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bad84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0xb2a33c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x5bae48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x5badbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x5bae5f
dec edx
je 0x5baea0
jmp 0x5baefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x5baefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5baf60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x5baf7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x5bb08f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x5bafb0
je 0x5baffc
sub ecx, 0x2b
je 0x5baff2
sub ecx, 4
je 0x5baff7
dec ecx
sub ecx, 0xa
jb 0x5bafe1
jmp 0x5bafff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x5bafc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x5bafd0
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x5bafff
mov byte [eax], 0x3e
jmp 0x5bafff
mov byte [eax], 0x3f
jmp 0x5bafff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x5baf8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x5bb04f
cmp byte [esp + 3], 0xff
jne 0x5bb04f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x5bb087
cmp dl, 0xff
je 0x5bb087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x5baf88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x5bb11c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0xb3b7a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x5bb138
shr eax, 1
xor eax, 0xedb88320
jmp 0x5bb13a
shr eax, 1
dec edx
jne 0x5bb12b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x5bb124
pop ebx
ret
Function at 0x5bb150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x5bb159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005b2a38
xor eax, eax
push ebp
push 0x5bb239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005bb11c
mov eax, dword [0xb3ae0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.005b0e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.005b1218
call fcn.005b0ba8
test eax, eax
jne 0x5bb216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.005b0fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x5bb210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0xb3b7a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x5bb1ec
cmp dword [ebp - 8], 0
jne 0x5bb1c3
lea eax, [ebp - 0x154]
call fcn.005b0fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb240
lea eax, [ebp - 4]
call fcn.005b2588
ret

Function at 0x5c6718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x5c6738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x5c6726
pop edi
pop esi
pop ebx
ret
Function at 0x5cefd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0xb3bcb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0xb30670]
mov eax, dword [esi*4 + 0xb306b0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.005cefac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0xb30680]
mov eax, dword [esi*4 + 0xb306c0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0xb30690]
mov eax, dword [esi*4 + 0xb306d0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0xb306a0]
mov eax, dword [esi*4 + 0xb306e0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x5cefe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5cf138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x5cf16d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x5cf193
inc ebx
cmp ebx, 0xf
jne 0x5cf17d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x5cf14f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d8ee0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], 0x100
mov esi, 0xb350f4
mov ebx, 0xb3fce4
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.005d7e30
mov dword [esp + 8], eax
mov eax, edi
call fcn.005d7e40
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.005d7e30
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.005d7e40
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, edi
mov edx, dword [esp + 0xc]
shl edx, 8
or eax, edx
mov edx, ebp
shl edx, 0x10
or eax, edx
mov edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x400], edx
mov edx, dword [esp + 0xc]
shl ebp, 8
or edx, ebp
shl edi, 0x10
or edx, edi
mov ecx, dword [esp + 0x14]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x800], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 8]
shl eax, 0x18
or edx, eax
mov dword [ebx + 0xc00], edx
add ebx, 4
inc esi
dec dword [esp + 0x18]
jne 0x5d8ef9
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4049a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x144], 0
test byte [section..data], 8
jne 0x404b40
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x404ad8
lea edi, [ebp - 0x140]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x140], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
jne 0x404a37
jmp 0x404b08
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x404b08
cmp esi, dword [ebp - 0x138]
jne 0x404a20
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
sub esp, 0xc
test eax, eax
je 0x404bb8
lea eax, [ebp - 0x144]
mov dword [esp + 0x10], 0x1cff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
sub esp, 0x14
test eax, eax
jne 0x404b70
lea esi, [esi]
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x404ac6
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x404aef
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x404c08
mov eax, dword [ebp - 0x144]
test eax, eax
jne 0x404aba
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 4
je 0x404ab0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unable_to_find_current_process_id__ld_when_listing_processes_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x404ab0
mov dword [esp + 0xc], str.Waiting_for_parent_process_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4049cc
test byte [section..data], 2
je 0x404ab0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_wait_for_parent_process__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404ab0
test byte [section..data], 4
je 0x404ac6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenProcess_failed_pid_ld__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], 0x40c000
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x404ab0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateToolhelp32Snapshot_failed__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x404ae5
Function at 0x405440
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
mov ebx, ecx
sub esp, 0x4c
mov dword [ebp - 0x30], edx
mov esi, dword [sym.imp.shlwapi.dll_AssocQueryStringW]
mov dword [esp + 8], edx
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
xor edx, edx
sub esp, 0x18
test eax, eax
js 0x4054c6
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
call sym._xmalloc
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
mov edx, dword [ebp - 0x34]
sub esp, 0x18
test eax, eax
js 0x4054d0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
sub esp, 0xc
jmp 0x4054c6

Function at 0x405e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathSkipRootW]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x405ebb
jmp 0x405ef0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x405ef0
cmp ax, 0x5c
jne 0x405eb8
xor eax, eax
mov word [ebx], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
mov word [ebx], dx
sub esp, 8
jmp 0x405eb8
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
jne 0x405f1e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405f30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
cmp word [eax], 0
je 0x406030
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405f48
sub eax, edi
sar eax, 1
lea eax, [eax*8 + 2]
call sym._xmalloc
movzx edx, word [edi]
mov esi, eax
test dx, dx
je 0x405fc4
add edi, 2
xor eax, eax
lea ebx, [eax + eax]
lea ecx, [esi + ebx]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + ebx + 2]
mov dword [ebp - 0x20], ecx
lea ecx, [edx - 9]
cmp cx, 0x75
ja case.0x405f8c.2
movzx ecx, cx
jmp dword [ecx*4 + 0x40d0f8]
mov ebx, dword [ebp - 0x1c]
mov ecx, 0x5c
add eax, 2
mov word [ebx], cx
mov ebx, dword [ebp - 0x20]
mov ecx, 0x5c
mov word [ebx], cx
mov word [esi + eax*2], dx
inc eax
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x405f70
lea eax, [esi + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, esi
call sym._wchars_to_utf8_chars
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov ecx, 0x5c
add eax, 4
mov word [edx], cx
lea edx, [esi + ebx + 2]
mov ecx, 0x5c
mov word [edx], cx
mov edx, 0x5c
mov ecx, 0x5c
mov word [esi + ebx + 4], dx
mov word [esi + ebx + 6], cx
jmp 0x405fb6
mov eax, 2
jmp 0x405f5c
Function at 0x407410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40746b
cmp byte [esi + ebx - 1], 0xa
je 0x40743f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c0f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4099e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x24]
push ebx
mov ebx, edx
sub esp, 0x4c
mov esi, dword [eax]
mov dword [ebp - 0x30], eax
mov dword [edx], 0
mov eax, dword [esi]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1e]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 6
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x409a24
cmp dword [ebp - 0x24], 6
je 0x409a80
test byte [section..data], 4
jne 0x409b18
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx], 0
mov eax, 0x80004005
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x1e], 0
jne 0x409a24
cmp word [ebp - 0x1c], 1
jne 0x409a24
movzx eax, word [ebp - 0x1a]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
shl eax, 4
call sym._xmalloc
movzx ecx, word [ebp - 0x1a]
mov dword [ebx], eax
mov edx, dword [esi]
shl ecx, 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
js 0x409a31
movzx edx, word [ebp - 0x1a]
shl edx, 4
cmp edx, dword [ebp - 0x24]
jne 0x409a31
mov edi, dword [ebp - 0x2c]
mov edx, dword [edi]
test edx, edx
jne 0x409a72
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx], 0
sub esp, 0xc
jmp 0x409a57
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_ico_file_format__hr0x_08lX__bytesRead_ld__n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.read_ico_direntries
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x409a31
Function at 0x40a610
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40a6ab
cmp ax, 9
je 0x40a698
cmp ax, 0x20
je 0x40a698
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x40a700
cmp ax, 0x22
je 0x40a710
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40a6ab
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40a650
test edi, 1
jne 0x40a650
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40a698
cmp ax, 0x20
je 0x40a698
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40a728
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x40a66b
and dword [ebp - 0x6c], 1
jne 0x40a664
xor edi, 1
jmp 0x40a66b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40a6c4

Function at 0x40a740
Capabilities:
Check if process is running under wine
Get process heap force flags
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40b6e0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40b712
leave
ret
test byte [section..data], 2
jne 0x40b728
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40b71b
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401c66
pop dword [ebp - 0x40]
mov eax, 0x401c66
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xd5a0b48c
sub dword [ebp - 0x50], 0x874e6f41
mov dword [ebp - 0x4c], 0x2e3b0be3
add dword [ebp - 0x4c], 0x3f84062
mov dword [ebp - 0x48], 0xae7157a4
add dword [ebp - 0x48], 0x9ddaec8a
mov dword [ebp - 0x44], 0xc68b8428
add dword [ebp - 0x44], 0x39747bd8
lea eax, [ebp - 0x50]
push eax
mov eax, 0x122fb48
add eax, 0xff1d350c
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xd01a43a8
add dword [ebp - 0x50], 0xa45825ae
mov dword [ebp - 0x4c], 0x93fb4fcd
add dword [ebp - 0x4c], 0xad7111a8
mov dword [ebp - 0x48], 0x48f322c9
add dword [ebp - 0x48], 0x1a7c49a3
mov dword [ebp - 0x44], 0xebac16cd
add dword [ebp - 0x44], 0x1453e933
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x85a1ce76
sub eax, 0x85619e4a
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x33f3a
push 0
call eax
mov ecx, 0x3a3ce83d
sub ecx, 0x3a3caa5b
xor edi, edi
add edi, eax
mov edx, 0xb23c389a
add edx, 0x4e043766
add edx, dword [ebp - 0x40]
mov esi, 0xaf24a3d7
sub dword [ebp - 0x3c], ecx
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0xb369070d
xor ebx, esi
add dword [ebp - 0xc], 0xe80e9e13
mov dword [edi], ebx
xor dword [ebp - 0x30], 0x3cf5b109
add edi, 4
add edx, 0x844b749d
add edx, 0x7bb48b67
loop 0x401d7f
add eax, 0xea5b
mov ebx, eax
add eax, 5
mov ecx, 0x6fe8b49a
add ecx, 0x90574b66
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret