joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d550
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4770c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45d593
call fcn.004431b6
mov dword [eax], 0xf
call fcn.004431c9
mov dword [eax], 0xd
call fcn.004430b5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a25b
leave
ret
test eax, eax
jne 0x45d59a
inc eax
jmp 0x45d587
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x45d585
xor eax, eax
cmp ecx, 1
setne al
jmp 0x45d587

Function at 0x4602b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4602dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4602dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404ba4
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x494244]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, dword [esp + 0x838]
lea ecx, [esp + 8]
push ebp
mov ebp, dword [esp + 0x838]
push esi
push edi
mov edi, dword [esp + 0x838]
xor esi, esi
push esi
call fcn.00419a04
cmp dword [esp + 0x83c], 2
jae 0x404bf5
push str.jusched_Error:_Events_array_too_small
call fcn.004198f9
pop ecx
push 0xffffffffffffff9d
pop esi
and dword [edi], 0
call fcn.00412842
mov dword [edi], eax
test eax, eax
jne 0x404c11
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.004198f9
pop ecx
push 0xfffffffffffffffe
pop esi
push 0
push ebx
call fcn.00412cc9
pop ecx
pop ecx
test eax, eax
jne 0x404c2e
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.004198f9
pop ecx
push 0xfffffffffffffffd
jmp 0x404c4a
push dword [ebx]
call fcn.004055f1
mov dword [edi + 4], eax
pop ecx
test eax, eax
jne 0x404c4b
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.004198f9
pop ecx
push 0xfffffffffffffffe
pop esi
and dword [ebp], 0
push str.SunJavaUpdateSchedulerMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp], eax
test eax, eax
jne 0x404cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00442690
add esp, 0xc
lea eax, [esp + 0x30]
cmp esi, 0xb7
jne 0x404c9d
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404cad
push esi
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call fcn.004198f9
pop ecx
or esi, 0xffffffff
jmp 0x404cc1
test esi, esi
je 0x404ce8
push dword [ebp]
push dword [esp + 0x840]
push edi
call fcn.00404808
add esp, 0xc
lea ecx, [esp + 0x14]
push dword [ebx]
call fcn.00419a42
lea ecx, [esp + 0x14]
call fcn.00419a4c
mov ecx, dword [esp + 0x830]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440ce3
add esp, 0x824
ret
Function at 0x40619a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x494244]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00405eaf
mov esi, eax
test esi, esi
jne 0x406279
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x406251
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040619a
mov esi, eax
test esi, esi
jne 0x406279
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x406216
jmp 0x406253
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x406268
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00404f6b
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40628a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440ce3
add esp, 0x120
ret 4
Function at 0x40710d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x407127
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x407136
push 0xd
pop eax
jmp 0x407167
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00446690
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x40713e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40a3b3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 1
mov dword [edi + 0xc], 0xbc2
mov eax, dword [0x496e30]
push ebx
mov dword [edi + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x38], eax
call fcn.00412842
mov dword [edi + 0x3c], eax
call fcn.0040ca79
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], eax
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x38]
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push 0x40a1f5
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40a447
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [edi + 0x54]
mov ebx, 0x104
push ebx
push eax
push 0x7b
push dword [edi + 0x18]
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7c
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0040a4d9
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440ce3
leave
ret 4

Function at 0x40b663
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x40b6bf
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call fcn.0040a075
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0040c3ec
mov edi, esi
cmp esi, ebx
jl 0x40b689
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x40b6de
test al, 1
jne 0x40b6de
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebp
add ecx, ebp
push eax
call fcn.0040c3ec
mov edi, dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x18]
push edi
push ebp
call fcn.0040b784
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40dd27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40dd7e
cmp byte [esi + 0x3d], bl
je 0x40dd7e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ddb7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x40dd8f
sub eax, 1
je 0x40dd92
dec eax
sub eax, 1
jne 0x40ddb7
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440ce3
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ddaf
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044b1d4
add esp, 0x10
cmp edi, eax
jne 0x40ddb7
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40dd80
xor al, al
jmp 0x40dd80

Function at 0x40fae7
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x40fb01
jl 0x40faf8
test ebx, ebx
jne 0x40fb01
xor eax, eax
xor edx, edx
jmp 0x40fbc6
cmp dword [esi + 0x38], 0
je 0x40fb17
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.00409020
jmp 0x40fbc6
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40fb5d
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40fb5d
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004085ad
mov ecx, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x24], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40fb65
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
je 0x40fbbc
mov ecx, esi
call fcn.0040e874
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40fba7
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0044ab4d
mov ecx, dword [esp + 0x28]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40fbbc
jmp 0x40fb78
test edx, edx
je 0x40fbbc
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0044ab4d
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4121f5
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov ebx, SysStringLen
lea ecx, [ebp - 0x64]
push ebx
call fcn.00419a04
lea eax, [ebp - 0x48]
push 0x400
push eax
call fcn.00412e67
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
js 0x412241
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call fcn.00412606
pop ecx
test eax, eax
je 0x412261
lea eax, [ebp - 0x48]
push eax
push eax
call fcn.00412896
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
call esi
call fcn.00412315
xor edi, edi
push edi
push str.PreDownldStatus
push edi
call fcn.00412f80
add esp, 0xc
lea ecx, [ebp - 0x64]
push ebx
call fcn.00419a42
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.00419a89
test eax, eax
jne 0x4122fd
mov ebx, 0x20019
push ebx
lea eax, [ebp - 0x48]
inc edi
push eax
lea ecx, [ebp - 0x64]
call fcn.00419aa2
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.0040528e
test esi, esi
jne 0x4122ec
push eax
lea ecx, [ebp - 0x80]
call fcn.00419a04
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
call fcn.00419aa2
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.0040528e
push eax
lea ecx, [ebp - 0x80]
call fcn.00419a42
test esi, esi
jne 0x4122ec
push str.VersionXmlURL
lea ecx, [ebp - 0x80]
call fcn.00419a79
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.00419a89
test eax, eax
je 0x412296
mov ecx, dword [ebp + 0x3b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440ce3
add ebp, 0x3bc
leave
ret

Function at 0x412896
Capabilities:
Get common file path
Parse url

Disassembly:
sub esp, 0x644
mov eax, dword [0x494244]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x654]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x65c]
push 0x3c
pop ebx
push ebx
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.00442690
add esp, 0xc
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x250]
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x3c], eax
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ebp, 0x104
test eax, eax
je 0x412948
push 0x100
lea eax, [esp + 0x154]
push eax
push ebp
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x26c]
push ebx
push eax
call fcn.0044b9aa
lea eax, [esp + 0x70]
push 0x471868
push eax
call fcn.004427f0
add esp, 0x2c
test eax, eax
je 0x412964
push 1
push esi
call fcn.00413168
push eax
lea eax, [esp + 0x58]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x4c]
push eax
push edi
call esi
lea eax, [esp + 0x150]
push eax
push edi
call esi
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440ce3
add esp, 0x644
ret
Function at 0x41299e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
lea eax, [ebp - 0x28]
push esi
push 0
push eax
call fcn.00442690
add esp, 0xc
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x4129ec
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x94
push eax
call esi
test eax, eax
je 0x412a08
cmp dword [ebp - 0x18], 2
jne 0x412a05
cmp dword [ebp - 0x24], 6
jae 0x412a05
cmp dword [ebp - 0x24], 4
jb 0x412a05
call fcn.00412a5e
jmp 0x412a08
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.00440ce3
add ebp, 0x78
leave
ret
Function at 0x414e69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x398]
lea eax, [ebp - 0x78]
push eax
push 1
xor ebx, ebx
mov dword [ebp - 0x7c], 0x400
push ebx
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414f3d
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x74], bl
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.TransferJobID
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], ebx
jbe 0x414f3d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414f3d
lea eax, [ebp - 0x74]
push eax
call fcn.00446690
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x414f1d
lea eax, [esi + esi]
call fcn.00440e50
mov eax, esp
lea ecx, [ebp - 0x74]
push 3
push esi
push ecx
push eax
call fcn.0040444b
mov ebx, eax
push edi
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x10
push 0x47a7e8
push edi
call fcn.0044309e
add esp, 0xc
test eax, eax
je 0x414f3d
xor eax, eax
jmp 0x414f42
mov eax, 0x80004005
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.00440ce3
add ebp, 0x390
leave
ret
Function at 0x416b4c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x68
mov eax, 0x467889
call fcn.00440d56
mov esi, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], esi
cmp dword [ebp + 0x10], ecx
jne 0x416b7b
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
jmp 0x416c98
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
push eax
push ecx
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x416ca0
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 2
test eax, eax
jne 0x416bc3
mov dword [ebp - 0x18], eax
mov byte [ebp + eax - 0x28], cl
jmp 0x416bcd
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e961
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x416c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417118
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.binary2string__phase2__failed__sysError
push eax
call fcn.004029da
add esp, 0x18
mov byte [ebp - 4], 4
jmp 0x416ccc
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x18]
ja 0x416c3d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x416c4b
sub ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e961
and dword [esi], 0
lea eax, [ebp - 0x28]
and dword [esi + 0x10], 0
mov ecx, esi
and dword [esi + 0x14], 0
push eax
call fcn.00408316
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x416c98
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x416c8f
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407ee8
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00440879
pop ecx
pop ecx
mov eax, esi
call fcn.00440d05
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417118
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push str.binary2string__phase1__failed__sysError
push eax
call fcn.004029da
add esp, 0x18
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004033a6
push 0x48a77c
lea eax, [ebp - 0x70]
push eax
call fcn.00442add
int3
Function at 0x416ce4
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x4678c5
call fcn.00440d56
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
push eax
movlpd qword [ebp - 0x48], xmm0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x416d57
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00412080
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.00442110
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.00440d05
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417118
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.decryption_failed__sysError
push eax
call fcn.004029da
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004033a6
push 0x48a77c
lea eax, [ebp - 0x60]
push eax
call fcn.00442add
int3

Function at 0x416e81
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x4678c5
call fcn.00440d56
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
xor eax, eax
push 5
inc eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 0x14], eax
pop ecx
cmove eax, ecx
movlpd qword [ebp - 0x48], xmm0
lea ecx, [ebp - 0x48]
push ecx
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x416eff
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00412080
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.00442110
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.00440d05
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417118
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.encryption_failed__sysError
push eax
call fcn.004029da
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004033a6
push 0x48a77c
lea eax, [ebp - 0x60]
push eax
call fcn.00442add
int3
Function at 0x416f9d
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x6c
mov eax, 0x46796d
call fcn.00440d56
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x74], ecx
cmp dword [ecx], esi
jne 0x416fcb
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x4170c9
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebp - 0x5c], esi
jb 0x416fd8
mov eax, dword [ebx]
push esi
push esi
lea edx, [ebp - 0x5c]
push edx
push esi
push 1
push dword [ecx]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4170d1
mov esi, dword [ebp - 0x5c]
xor eax, eax
and dword [ebp - 0x68], eax
and dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x417040
cmp esi, 0x7fffffff
ja 0x417112
push esi
cmp esi, 0x1000
jb 0x417020
call fcn.00402af6
jmp 0x417025
call fcn.00440849
pop ecx
add esi, eax
mov dword [ebp - 0x70], eax
push esi
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], esi
call fcn.0041211b
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
mov dword [ebp - 0x68], esi
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x41704f
mov ebx, dword [ebx]
push 0
push 0
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push 1
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4170a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417118
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push str.string2binary__phase2__failed__sysError
push eax
call fcn.004029da
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004033a6
push 0x48a77c
lea eax, [ebp - 0x1c]
jmp 0x41710c
lea eax, [ebp - 0x5d]
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
call fcn.004169a1
mov eax, dword [ebp - 0x6c]
mov dword [edi], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 8], eax
mov eax, edi
call fcn.00440d05
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417118
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push str.string2binary__phase1__failed__sysError
push eax
call fcn.004029da
add esp, 0x18
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004033a6
push 0x48a77c
lea eax, [ebp - 0x6c]
push eax
call fcn.00442add
call fcn.0040e938
int3