joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483cb0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c0c10
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x483e57
mov ecx, dword [0x5e9a04]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x483dac
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004829d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004ae681
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004ae548
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5e386c
call fcn.004ae5b6
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00482d90
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004ae681
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004ae548
lea ecx, [esp + 0xc]
call fcn.004aea5c
mov ecx, dword [esp + 0xc]
push 0x5e42ac
push ecx
call fcn.0049cf64
add esp, 8
test eax, eax
je 0x483dd4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x483d0d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004ae548
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ae548
jmp 0x483e5b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00483a50
test eax, eax
push 0
je 0x483e3f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004820f0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x483e25
cmp eax, 0x64
jg 0x483e13
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x483db0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x483db0
cmp eax, 0x64
jge 0x483dac
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x483db0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004820f0
mov esi, eax
jmp 0x483db0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x483e65
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48ca6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov edi, dword [ebp + 8]
mov edx, dword [0x622320]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [0x622324]
dec edi
xor eax, eax
add bl, byte [edx + 0x622221]
mov al, byte [edx + 0x622221]
mov ch, byte [ebx + 0x622220]
mov byte [ebx + 0x622220], al
mov byte [edx + 0x622221], ch
add al, ch
inc edi
mov al, byte [eax + 0x622220]
inc dl
xor byte [edi], al
dec cl
jne 0x48ca87
mov dword [0x622320], edx
mov dword [0x622324], ebx
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x4b099f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b09d7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae9ef
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ae9c7
jmp 0x4b09e3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b2094
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b20d6
call fcn.004b824c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b20d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b20cd
xor eax, eax
jmp 0x4b20de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b20e4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b877c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b87aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b87c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b86e2
jmp 0x4b87c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b87c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b86e2
test edi, edi
mov eax, edi
jne 0x4b87b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4c4640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x635020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c46d8
push reloc.WS2_32.dll_bind
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4c46b8
xor eax, eax
push ebp
push 0x4c46b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4c46f4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c46b8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x635020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x635020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4c5404
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x646044], 0
je 0x4c5465
cmp word [0x646218], 0xd7b2
jne 0x4c542d
cmp dword [0x646220], 0
jbe 0x4c542d
mov eax, 0x646214
call dword [0x646230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x635090
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4c548c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x635030], 0
jne 0x4c5481
push 0
push 0x635088
push 0x635090
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4c7304
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4c736a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004c57f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004c4234
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4c7354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7371
lea eax, [ebp - 0x10]
call fcn.004c5588
ret

Function at 0x4cb790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4cb7c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004c5678
jmp 0x4cb7d2
mov eax, ebx
mov edx, esi
call fcn.004c55dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cb7dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4cb7fd
mov al, byte [esp]
jmp 0x4cb7ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4ccc58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4cccbc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004c57f8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.004c8c20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cccc3
lea eax, [ebp - 0xc]
call fcn.004c5588
ret
Function at 0x4cdd84
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, 0x63533c
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 0x4cde48
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 0x4cddbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4cde5f
dec edx
je 0x4cdea0
jmp 0x4cdefd
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 0x4cdefd
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 0x4cdf60
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 0x4cdf7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4ce08f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4cdfb0
je 0x4cdffc
sub ecx, 0x2b
je 0x4cdff2
sub ecx, 4
je 0x4cdff7
dec ecx
sub ecx, 0xa
jb 0x4cdfe1
jmp 0x4cdfff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4cdfc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4cdfd0
jmp 0x4cdfff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4cdfff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4cdfff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4cdfff
mov byte [eax], 0x3e
jmp 0x4cdfff
mov byte [eax], 0x3f
jmp 0x4cdfff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4cdf8f
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 0x4ce04f
cmp byte [esp + 3], 0xff
jne 0x4ce04f
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 0x4ce087
cmp dl, 0xff
je 0x4ce087
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 0x4cdf88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x4ce11c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x6467a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x4ce138
shr eax, 1
xor eax, 0xedb88320
jmp 0x4ce13a
shr eax, 1
dec edx
jne 0x4ce12b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4ce124
pop ebx
ret
Function at 0x4ce150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4ce159
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.004c5a38
xor eax, eax
push ebp
push 0x4ce239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ce11c
mov eax, dword [0x645e0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004c3e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.004c4218
call fcn.004c3ba8
test eax, eax
jne 0x4ce216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004c3fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4ce210
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 + 0x6467a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4ce1ec
cmp dword [ebp - 8], 0
jne 0x4ce1c3
lea eax, [ebp - 0x154]
call fcn.004c3fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce240
lea eax, [ebp - 4]
call fcn.004c5588
ret

Function at 0x4d9718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4d9738
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 0x4d9726
pop edi
pop esi
pop ebx
ret
Function at 0x4e1fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x646cb4
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 + 0x63b670]
mov eax, dword [esi*4 + 0x63b6b0]
xor eax, dword [esp]
call fcn.004e1f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.004e1fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x63b680]
mov eax, dword [esi*4 + 0x63b6c0]
xor eax, dword [esp]
call fcn.004e1f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.004e1fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x63b690]
mov eax, dword [esi*4 + 0x63b6d0]
xor eax, dword [esp]
call fcn.004e1f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.004e1fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x63b6a0]
mov eax, dword [esi*4 + 0x63b6e0]
xor eax, dword [esp]
call fcn.004e1f70
mov edi, eax
mov eax, edi
call fcn.004e1fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x4e1fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e2138
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 0x4e216d
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 0x4e2193
inc ebx
cmp ebx, 0xf
jne 0x4e217d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x4e214f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ebee0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], 0x100
mov esi, 0x6400f4
mov ebx, 0x64ace4
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.004eae30
mov dword [esp + 8], eax
mov eax, edi
call fcn.004eae40
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.004eae30
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.004eae40
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 0x4ebef9
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403540
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a320
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
call fcn.004033a0
mov eax, dword [0x462ab4]
mov esi, 0x10
cmp dword [0x462ac8], esi
jae 0x403596
mov eax, 0x462ab4
push 0x451c20
push eax
call fcn.0042dd56
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
je 0x4036d9
mov eax, dword [0x462ab4]
cmp dword [0x462ac8], esi
jae 0x4035c2
mov eax, 0x462ab4
push ebx
push ebx
push ebx
push ebx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x6c], ebx
call fcn.0042e30b
lea edx, [esp + 0x20]
add esp, 4
push edx
call fcn.0042e614
mov ebp, dword [eax]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
add esp, 4
push ebp
mov ebp, dword [eax + 4]
push ebp
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ebp
add ecx, 0x76c
push ecx
inc edx
push eax
push edx
push str.__02d__02d__04d__02d:_02d:_02d_
lea edx, [esp + 0x5c]
call fcn.00402410
mov ebp, 0xf
add esp, 0x1c
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x68], 1
mov ecx, dword [0x462ad0]
cmp dword [0x462ae4], esi
jae 0x403657
mov ecx, 0x462ad0
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x403665
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x18]
push edx
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
push eax
push str._s__d___s___s_r_n
lea edx, [esp + 0x38]
call fcn.00402410
mov eax, dword [esp + 0x3c]
add esp, 0x14
cmp dword [esp + 0x3c], esi
jae 0x403690
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
push edi
push 1
push edx
push eax
call fcn.0042decf
push edi
call fcn.0042dfc8
add esp, 0x14
cmp dword [esp + 0x3c], esi
jb 0x4036ba
mov eax, dword [esp + 0x28]
push eax
call fcn.0040e8c6
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x58], esi
jb 0x4036d9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0040e8c6
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042d9c5
add esp, 0x58
ret
Function at 0x403980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
xor bl, bl
call fcn.0042e715
add esp, 8
test eax, eax
jne 0x4039f1
push 0x451c34
push esi
call fcn.0042dd56
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4039f1
mov ecx, dword [esp + 0x24]
inc ecx
push ecx
mov bl, 1
call fcn.0040e8bb
mov esi, eax
add esp, 4
test esi, esi
je 0x4039e8
mov edx, dword [esp + 0x24]
push ebp
push edx
push 1
push esi
call fcn.0042edf4
mov ecx, esi
mov byte [eax + esi], 0
call fcn.00402f20
push esi
call fcn.0040e8c6
add esp, 0x14
push ebp
call fcn.0042dfc8
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x38
ret

Function at 0x403a00
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push 0x451c38
push eax
mov edi, ecx
call fcn.0042dd56
mov esi, eax
add esp, 8
test esi, esi
je 0x403a3c
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
jb 0x403a26
mov edi, dword [edi + 4]
jmp 0x403a29
add edi, 4
push esi
push 1
push eax
push edi
call fcn.0042decf
push esi
call fcn.0042dfc8
add esp, 0x14
pop edi
pop esi
ret

Function at 0x406530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406549
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406584
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406580
lea ebx, [ebx]
cmp esi, eax
jae 0x406584
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406570
cmp esi, eax
jb 0x40658a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret