joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e113
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 0x40e174
lea ecx, [ebp - 4]
call fcn.0040e067
test al, al
jne 0x40e174
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 0x40e16f
cmp dword [ebp - 4], 0xffffffff
je 0x40e16f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 4], 0
je 0x40e189
cmp dword [ebp - 4], 0xffffffff
je 0x40e189
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
leave
ret

Function at 0x40e236
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x43114c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x814], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x80c], esi
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push esi
push eax
call fcn.004168c0
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push 0x20019
push esi
push ebx
push edi
mov dword [ebp - 0x808], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e2e1
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push dword [ebp - 0x814]
mov dword [ebp - 0x80c], 0x800
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push eax
call fcn.00401c39
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x810]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168ab
leave
ret

Function at 0x40e6f9
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov byte [esi + 8], 1
call fcn.0040e1ad
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edx
cmp dword [esi], eax
jbe 0x40e720
push eax
push eax
push esi
push 0x40e6d2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
Function at 0x40e76f
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 0x40e78d
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x40e782
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x40e83f
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 + 0x426f70]
mov dl, byte [edx + 0x426f70]
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 0x40e82a
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x426f70]
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 0x40e82a
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x426f70]
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 0x40e7b4
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x40ea6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43114c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0040cf0f
test eax, eax
je 0x40ebca
test byte [0x433e20], 1
jne 0x40eaaf
or dword [0x433e20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x433e1c], eax
push ebx
push edi
push 0xa
push 0x10
push 0x433dfc
push dword [0x433e1c]
call fcn.00418524
push 0xa
push 0x10
push 0x433ddc
push esi
call fcn.00418524
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
mov ebx, 0x433dbc
push ebx
push eax
call fcn.00418524
and dword [0x433db4], 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 [0x433db8], 1
mov dword [0x433db0], 0xc
movsw word es:[edi], word [esi]
call fcn.0040cf0f
push eax
push str._s_s
mov esi, 0x4335b0
push esi
call fcn.0040ea34
add esp, 0x10
call fcn.0040cf1b
xor edi, edi
cmp eax, edi
jne 0x40eb47
mov eax, 0x427078
push eax
push 0x433ddc
push ebx
push 0x433dfc
push esi
push str._s__pid_s__tid_s__exp_s__dumpfilename_s__callfrom1
mov ebx, 0x4324b0
push ebx
call fcn.0040ea50
add esp, 0x1c
push 0xa
pop ecx
push 0x43249c
push 0x432458
push edi
push edi
push edi
xor eax, eax
inc eax
push eax
push edi
push edi
push ebx
push esi
mov dword [0x432458], 0x44
mov dword [0x432484], eax
mov word [0x432488], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
pop edi
mov dword [0x432450], eax
pop ebx
je 0x40ebca
push 0xffffffffffffffff
push dword [0x43249c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4324a0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x43249c]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004168ab
leave
ret
Function at 0x40f072
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 0x40f08a
cmp edx, 0x20
jne 0x40f252
push ebx
push edi
shr edx, 2
push 4
mov ebx, edx
pop edi
mov dword [ebp - 4], ebx
cmp ebx, edi
jge 0x40f09d
mov edx, edi
push esi
mov esi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x40f24f
mov dword [esi], eax
add esi, edi
mov dword [esi], edx
add esi, edi
xor edx, edx
test ebx, ebx
jle 0x40f0ed
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 0x40f0c4
mov ecx, dword [esi + edx*4 - 4]
mov edi, 0xff
cmp ebx, dword [ebp - 0xc]
jge 0x40f1d1
and dword [ebp + 8], 0
mov dword [ebp - 8], esi
mov eax, ebx
cdq
idiv dword [ebp - 4]
test edx, edx
jne 0x40f16d
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 + 0x427108]
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 0x40f1b8
cmp dword [ebp - 4], 6
jle 0x40f1b8
cmp edx, 4
jne 0x40f1b8
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 0x40f106
and dword [ebp + 8], 0
dec ebx
js 0x40f24f
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 0x40f23e
cmp ebx, 4
jl 0x40f23e
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov eax, dword [eax*4 + 0x428728]
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + str.cw]
xor eax, dword [edx*4 + 0x428b28]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
xor eax, dword [edx*4 + 0x428328]
and ecx, edi
movzx ecx, byte [ecx + str.cw]
xor eax, dword [ecx*4 + 0x428f28]
jmp 0x40f240
mov eax, ecx
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 8]
add dword [ebp - 0xc], 4
dec ebx
mov dword [ecx], eax
jns 0x40f1e1
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x40f9fa
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 0x40fb3c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40fb3c
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 0x40fa42
mov eax, ecx
jmp 0x40fb3e
xor ecx, ecx
test eax, eax
je 0x40fab5
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 0x40fa4e
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
dec eax
je 0x40fb08
dec eax
jne 0x40fb37
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 0x40fb37
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 0x40fb3e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fc29
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 0x40fc8d
cmp dword [ebp + 0xc], 1
je 0x40fc65
cmp dword [ebp + 0xc], 2
je 0x40fc65
push 0xd
pop eax
jmp 0x40fc8d
mov eax, dword [ebp - 4]
test edi, edi
je 0x40fc87
test eax, eax
je 0x40fc82
test al, 1
jne 0x40fc60
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40fc87
jmp 0x40fc60
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4124cd
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x4253cf
call fcn.00417706
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
cmp byte [0x433e28], bl
je 0x4124ff
push 0x433e28
mov ecx, esi
call fcn.00410b47
mov eax, esi
jmp 0x4125a0
push ebx
push ebx
mov edi, 0x433e28
push edi
push 0x4121a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x41254c
push edi
lea ecx, [ebp - 0x48]
call fcn.00410b47
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], 2
jmp 0x41256a
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 4
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0040d6fa
or dword [ebp - 0x4c], 1
test byte [ebp - 0x4c], 4
je 0x41258c
and dword [ebp - 0x4c], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040565d
test byte [ebp - 0x4c], 2
je 0x41259d
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040565d
mov eax, dword [ebp - 0x50]
call fcn.00417750
ret
Function at 0x413717
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x14c
mov eax, 0x4256cf
call fcn.00417706
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x13c]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41392c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 0x13c]
mov esi, 0x100
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x130], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41392c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x134]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4138ee
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push str.Characteristics
push dword [ebp - 0x134]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 4
call edi
test eax, eax
jne 0x4138e2
test byte [ebp - 0x140], 4
je 0x4138e2
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push str.ComponentId
push dword [ebp - 0x134]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], esi
call edi
test eax, eax
jne 0x4138e2
push 3
lea eax, [ebp - 0x110]
push 0x4296fc
push eax
call fcn.00422ea5
add esp, 0xc
test eax, eax
jne 0x4138e2
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push str.NetCfgInstanceId
push dword [ebp - 0x134]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], esi
call edi
cmp eax, ebx
jne 0x4138e2
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00410b47
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
call fcn.004134e5
push ebx
push 1
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.0040565d
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x144]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x144]
mov dword [ebp - 0x130], esi
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4137af
mov edi, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00413552
lea ecx, [ebp - 0x154]
call fcn.004126fd
mov eax, edi
call fcn.00417750
ret
Function at 0x414f83
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x425a59
call fcn.0041769d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00414f42
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00414d22
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414ea0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x415001
jle 0x414fe5
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041471b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041471b
mov eax, esi
jmp 0x41505b
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x415043
jle 0x415041
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0041471b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041471b
mov eax, edi
call fcn.0041773c
ret
Function at 0x41558c
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 0x415686
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 0x4155c4
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 0x41565b
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 0x415647
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 0x41566f
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x41566f
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 0x4155c1
pop esi
pop ebx
pop edi
leave
ret

Function at 0x415689
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 0x41645d
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x43114c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x224], ebx
xor ebx, ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x208], ebx
lea ebx, [ebp - 0x208]
push ebx
lea ebx, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x218]
push ebx
push dword [ebp + 0x20]
mov dword [ebp - 0x20c], edi
push dword [ebp - 0x20c]
mov edi, dword [ebp + 0x24]
push dword [ebp + 0x18]
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp + 0xc]
push esi
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.004160f8
test eax, eax
jne 0x416508
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x214]
push eax
mov eax, ebx
push eax
call fcn.00416057
mov eax, 0x80004005
jmp 0x4165e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
xor esi, esi
lea eax, [ebp - 0x202]
push esi
push eax
call fcn.004168c0
add esp, 0xc
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x204]
push eax
push 5
push dword [ebp - 0x208]
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4164fe
cmp edi, esi
je 0x4165c4
mov ebx, dword [ebp + 0x28]
cmp ebx, esi
jbe 0x4165c4
lea eax, [ebp - 0x204]
push eax
call fcn.004172ae
pop ecx
mov dword [ebp - 0x20c], eax
cmp eax, ebx
jbe 0x41657b
mov dword [ebp - 0x20c], ebx
and dword [ebp - 0x21c], esi
lea eax, [ebp - 0x21c]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.WININET.dll_InternetReadFile]
add esi, dword [ebp - 0x21c]
test eax, eax
je 0x4165b8
cmp dword [ebp - 0x21c], 0
je 0x4165b8
cmp esi, dword [ebp - 0x20c]
jb 0x416581
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4165c4
mov dword [eax], esi
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00416057
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168ab
leave
ret 0x28

Function at 0x4168ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43114c]
jne 0x4168b5
repz ret
jmp fcn.0041bd8a