joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da8b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4da9cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4da9cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0052d995
mov esi, eax
test esi, esi
je 0x4da9cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4da9cd
mov ecx, esi
call fcn.004da750
cmp edi, eax
jge 0x4da9cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4da953
mov dword [esp + 0x34], 1
jmp 0x4da9ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4da9cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004d8a60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4dd7d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4dd836
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4dd836
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4dd817
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ddbc0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4ddbf8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4de880
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4de8c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4ded40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53d660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004de8f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004de970
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004de970
lea ecx, [esi + 0xc]
call fcn.0052be06
lea ecx, [esi + 0x10]
call fcn.0052be06
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004dff00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004dff00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004dff00
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0052be7b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0052be7b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e39c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x8d76bc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4e39d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4e3a14
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x8d7764]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4e3a46
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e3a4a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4e3a3b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4e3a68
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e3a6c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4e3a5d
xor ecx, ecx
mov eax, 0x8d76cc
xor ebx, ebx
mov bl, byte [ecx + 0x8d7774]
cmp byte [esp + ebx + 0x14], 0
je 0x4e3a97
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x8d778c]
cmp byte [esp + ebx + 0x14], 0
je 0x4e3aae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4e3a7e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4e3a07
lea edx, [esp + 0x84]
push edx
call fcn.004e3af0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4eb540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x935280]
xor edx, edx
cmp eax, edx
jne 0x4eb566
xor eax, eax
mov byte [eax + 0x935180], al
inc eax
cmp eax, 0x100
jl 0x4eb54e
mov dword [0x935280], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x935180
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4eb5f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4eb5ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4eb598
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4eb600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4eb653
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4eb63a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f2000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53dd5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f2920
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8adabc
call fcn.0052bbbc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f2093
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052bbbc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f208c
push 0
mov ecx, eax
call fcn.004e9170
mov dword [esi + 0xc], eax
jmp 0x4f2095
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f2095
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5026ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x50280d
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x5027f1
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x502743
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x502721
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x503255
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5032ac
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x5032ac
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x5032ac
xor eax, eax
inc eax
jmp 0x5032ae
xor eax, eax
leave
ret 0x10
Function at 0x5032d7
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x503345
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x8b195c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50333c
cmp dword [ebp - 0xc], 4
jne 0x50333c
cmp dword [ebp - 0x10], edi
je 0x50333c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x8e0828], edi
xor eax, eax
jmp 0x503384
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x8e0828], edi
jge 0x50337f
lea eax, [ebp - 0x34]
push eax
mov dword [0x8e0828], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x50337f
cmp word [ebp - 0x14], 5
jb 0x50337f
call fcn.005032b2
test eax, eax
je 0x50337f
emms
mov dword [0x8e0828], 1
mov eax, dword [0x8e0828]
pop edi
leave
ret

Function at 0x52e338
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x52e370
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.0052c322
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0052c2fa
jmp 0x52e37c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x52fa2a
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 0x52fa6c
call fcn.005359d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52fa6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x52fa63
xor eax, eax
jmp 0x52fa74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052fa7a
pop edi
pop esi
pop ebx
ret 4

Function at 0x535f07
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 0x535f35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x535f53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00535e6d
jmp 0x535f53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x535f53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00535e6d
test edi, edi
mov eax, edi
jne 0x535f3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4063bf
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea edi, [ebp - 0x54]
push 0x15
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x10
mov esi, esp
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x4064b6
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x4064b6
cmp dword [ebp - 0x1c], 0
je 0x4064b6
mov esi, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x4064b6
mov esi, esp
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x4064b6
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e01
add esp, 0x10
movzx eax, al
test eax, eax
je 0x4064b6
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
call fcn.004069d3
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4064b6
mov byte [ebp - 5], 1
cmp dword [ebp - 0x1c], 0
je 0x4064ce
mov esi, esp
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x10], 0
je 0x4064e8
mov esi, esp
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00411bb8
mov al, byte [ebp - 5]
push edx
mov ecx, ebp
push eax
lea edx, [0x406517]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x54
cmp ebp, esp
call fcn.00411bb8
leave
ret
Function at 0x4069d3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
push edi
lea edi, [ebp - 0xac]
push 0x2b
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x94], 0
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 8
jae 0x406b8b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 8
jae 0x406a6e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x406a75
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x98], 8
jae 0x406aab
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x98]
movzx eax, byte [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x406ab2
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
shr eax, 2
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa0]
shr eax, 4
mov ecx, dword [ebp - 0x9c]
and ecx, 3
shl ecx, 4
or eax, ecx
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa4]
shr eax, 6
mov ecx, dword [ebp - 0xa0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa4]
and eax, 0x3f
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
jmp 0x406a18
mov eax, dword [ebp - 0x94]
dec eax
mov dword [ebp - 0x94], eax
push 0x3d
pop eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
xor eax, eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x406be7]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
leave
ret
Function at 0x40803b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413839
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
push esi
push edi
lea edi, [ebp - 0xa48]
mov ecx, 0x28f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov byte [ebp - 0xa29], 0
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.00407be8
pop ecx
pop ecx
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
je 0x408103
mov esi, esp
push 0x424550
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
mov esi, esp
lea eax, [ebp - 0xa24]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
jmp 0x408126
mov esi, esp
push 0x424454
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
mov esi, esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
lea ecx, [ebp - 0xa40]
call fcn.00411016
and dword [ebp - 4], 0
push 0x105
push 0
push dword [ebp + 8]
push str.Local_AppData
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xa40]
call fcn.004114ed
mov esi, esp
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x4081b5
mov esi, esp
push 0
push 0x1c
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x4081b3
mov byte [ebp - 0xa29], 1
jmp 0x4081bc
mov byte [ebp - 0xa29], 1
mov al, byte [ebp - 0xa29]
mov byte [ebp - 0xa45], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa40]
call fcn.00411040
mov al, byte [ebp - 0xa45]
push edx
mov ecx, ebp
push eax
lea edx, [0x408217]
call fcn.00411b62
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411bf0
add esp, 0xa48
cmp ebp, esp
call fcn.00411bb8
leave
ret
Function at 0x408517
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push esi
push edi
lea edi, [ebp - 0x284]
mov ecx, 0xa1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x437ad8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x40863b
mov esi, esp
push dword [ebp - 0x21c]
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x408626
mov esi, esp
push str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgram
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x408626
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x280]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x268], 0x44
mov esi, esp
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00411bb8
mov esi, esp
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.00411bb8
push edx
mov ecx, ebp
push eax
lea edx, [0x408667]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x284
cmp ebp, esp
call fcn.00411bb8
leave
ret