joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bb3a18f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5bb70c3c]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x5bb3a1c6
xor eax, eax
jmp 0x5bb3a379
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5bb76b40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5bb3a1fb
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.5bb3c23e
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5bb3a2c9
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x5bb3a347
jmp 0x5bb3a222
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x5bb3a278
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5bb3a263
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x5bb3a23a
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5bb3a2f6
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x5bb3a302
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x5bb3a220
jmp 0x5bb3a302
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5bb3a2f6
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x5bb3a302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x5bb3a371
cmp dword [ebp - 0x40c], eax
je 0x5bb3a341
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x5bb3a333
call fcn.5bb3a6e8
mov dword [eax], 9
call fcn.5bb3a6f6
mov dword [eax], esi
jmp 0x5bb3a36c
push dword [ebp - 0x40c]
call fcn.5bb3a704
pop ecx
jmp 0x5bb3a36c
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5bb3a359
cmp byte [edi], 0x1a
jne 0x5bb3a359
xor eax, eax
jmp 0x5bb3a377
call fcn.5bb3a6e8
mov dword [eax], 0x1c
call fcn.5bb3a6f6
and dword [eax], 0
or eax, 0xffffffff
jmp 0x5bb3a377
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.5bb3f314
leave
ret
Function at 0x5bb3c4ef
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.5bb36150
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5bb3c555
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x5bb74d34]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x5bb3c559
xor eax, eax
jmp 0x5bb3c566
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5bb3da9f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5bb751bc], 0
push esi
jne 0x5bb3da0d
call fcn.5bb3d904
test eax, eax
je 0x5bb3da50
mov eax, dword [0x5bb751bc]
cmp eax, 1
jne 0x5bb3da2e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5bb3da50
pop esi
ret
push eax
call dword [0x5bb751c4]
test eax, eax
jne 0x5bb3da98
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5bb3da54
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5bb751bc]
call dword [0x5bb751c4]
mov edi, eax
test edi, edi
je 0x5bb3da79
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x5bb3da95
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5bb751bc]
call dword [0x5bb751c0]
add edi, 0x10
cmp edi, esi
jb 0x5bb3da81
mov eax, edi
pop edi
pop esi
ret
jmp 0x5bb3d9fa

Function at 0x5bb3ddc1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x5ba518d4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bb3de19
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5ba44198
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5bb3de0c
inc esi
push dword [ebp - 4]
call dword [entry0]
mov eax, esi
jmp 0x5bb3de1b
xor eax, eax
pop esi
leave
ret 4
Function at 0x5bb3ed8b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_Ordinal_125]
test eax, eax
jne 0x5bb3ee2a
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 4
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 2
push dword [ebp + 0x10]
mov dword [ebp + 8], edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x5bb3ede3
cmp word [ebp + 0xc], 0x30
je 0x5bb3ee0e
cmp word [ebp + 0xc], 0x31
je 0x5bb3ee13
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 2
push 0x5ba5251c
push ebx
push dword [ebp - 8]
mov dword [ebp + 8], edi
call esi
test eax, eax
jne 0x5bb3ee1f
cmp word [ebp + 0xc], 0x30
je 0x5bb3ee0e
cmp word [ebp + 0xc], 0x31
jne 0x5bb3ee1f
cmp word [ebp + 0xc], 0x31
mov ecx, dword [ebp + 0x14]
sete al
mov byte [ecx], al
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [entry0]
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x10
Function at 0x5bb3f644
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x3f
mov dword [ebp - 0x514], eax
xor ebx, ebx
pop ecx
xor eax, eax
mov byte [ebp - 0x204], bl
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x100
push esi
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5ba4e54c
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x508], ebx
mov dword [ebp - 0x50c], ebx
mov dword [ebp - 0x510], ebx
call edi
push esi
push 0x5ba4e538
lea eax, [ebp - 0x404]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x508]
push eax
push 1
push ebx
lea eax, [ebp - 0x404]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bb3f7fd
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x50c]
mov dword [ebp - 0x51c], esi
push dword [ebp - 0x508]
mov dword [ebp - 0x518], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc dword [ebp - 0x50c]
cmp eax, ebx
jne 0x5bb3f7fd
push 0x3a
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x510], 1
call sub.SHLWAPI.dll_StrChrA
test eax, eax
jne 0x5bb3f7e5
push 0x5c
lea eax, [ebp - 0x104]
push eax
call sub.SHLWAPI.dll_StrChrA
test eax, eax
jne 0x5bb3f7e5
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5bb3f766
sub eax, edx
mov dword [ebp - 0x524], eax
jne 0x5bb3f79e
lea eax, [ebp - 0x520]
push eax
push 0x1a
push ebx
call dword [0x5bb70b30]
test eax, eax
jne 0x5bb3f79e
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x520]
call dword [0x5bb70b28]
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
call edi
push 0x5ba4e594
lea eax, [ebp - 0x304]
push eax
call sub.SHLWAPI.dll_PathAppendA
push esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x304]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push esi
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [ebp - 0x514]
test eax, eax
jne 0x5bb3f6dd
cmp dword [ebp - 0x508], ebx
pop edi
pop esi
pop ebx
je 0x5bb3f814
push dword [ebp - 0x508]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x510]
call fcn.5bb3f314
leave
ret 8

Function at 0x5bb3f930
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5bb3f644
test eax, eax
jne 0x5bb3f94a
pop ebp
jmp fcn.5bb3f82b
pop ebp
ret 8
Function at 0x5bb3f953
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 1
xor edi, edi
push edi
push 0x5ba4e5a8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bb3fa70
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
push edi
push 0x5ba4e5cc
push dword [ebp - 0x108]
mov dword [ebp - 0x110], esi
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5bb3f9df
push esi
push 0x5ba4e5dc
push ebx
call sub.SHLWAPI.dll_StrCatBuffA
mov dword [ebp - 0x10c], 1
push dword [ebp - 0x108]
mov esi, dword [entry0]
call esi
cmp dword [ebp - 0x10c], edi
je 0x5bb3fa6f
push 0x100
push 0x5ba4e54c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x100
push 0x5ba4e538
lea eax, [ebp - 0x104]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push edi
lea eax, [ebp - 0x108]
push eax
push edi
push 0x20006
push edi
lea eax, [ebp - 0x104]
push eax
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5bb3fa6f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push edi
push 0x5ba4e590
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x108]
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop ebx
call fcn.5bb3f314
leave
ret 8
Function at 0x5bb3fb09
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push 1
push ebx
mov esi, 0x5ba4e5f8
push esi
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x104], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bb3fb89
cmp dword [ebp - 0x20c], ebx
je 0x5bb3fb89
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
push dword [ebp - 0x20c]
call sub.SHLWAPI.dll_SHQueryValueExA
push dword [ebp - 0x20c]
call dword [entry0]
cmp dword [ebp - 0x210], ebx
je 0x5bb3fb99
cmp byte [ebp - 0x104], bl
jne 0x5bb3fbef
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x20006
push ebx
lea eax, [ebp - 0x104]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5bb3fbef
cmp dword [ebp - 0x20c], ebx
je 0x5bb3fbef
mov edi, 0x5ba4e600
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x20c]
call dword [entry0]
push 0x100
lea eax, [ebp - 0x104]
push eax
call fcn.5bb3fab3
test eax, eax
je 0x5bb3fcc4
push 0x104
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x208]
push eax
call sub.SHLWAPI.dll_PathRemoveFileSpecA
lea eax, [ebp - 0x208]
push eax
call fcn.5ba819ed
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x5bb3fc63
push eax
call esi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x250], 0x3c
mov dword [ebp - 0x24c], 0x40
mov dword [ebp - 0x234], 1
call dword [0x5bb70b44]
test eax, eax
je 0x5bb3fcc4
push 0x4e20
push dword [ebp - 0x218]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5bb3fcd6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x5bb70c3c]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x5ba4e4ec
mov esi, 0x100
lea eax, [ebp - 0x204]
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
push esi
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.5bab678e
test eax, eax
jne 0x5bb3fd2a
inc eax
jmp 0x5bb3fd82
push edi
lea eax, [ebp - 0x104]
push eax
call sub.SHLWAPI.dll_PathFindFileNameA
mov edi, eax
test edi, edi
je 0x5bb3fd7e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x5ba5277c
push edi
call esi
test eax, eax
je 0x5bb3fd7e
push 0x5ba52770
push edi
call esi
test eax, eax
je 0x5bb3fd7e
lea eax, [ebp - 0x104]
push eax
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x5bb3fd7e
lea eax, [ebp - 0x304]
push eax
call sub.SHLWAPI.dll_PathFileExistsA
neg eax
sbb eax, eax
inc eax
jmp 0x5bb3fd81
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.5bb3f314
leave
ret 4

Function at 0x5bb405d6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
mov word [ebp - 0x20c], bx
je 0x5bb40600
cmp word [esi], bx
jne 0x5bb4060a
mov ebx, 0x80070057
jmp 0x5bb406ad
push edi
push esi
call fcn.5bb4035d
mov edi, 0x104
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_StrCpyNW
lea eax, [ebp - 0x20c]
push eax
call fcn.5bab7b18
test eax, eax
jne 0x5bb40645
push 0x5ba52e48
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAddExtensionW
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x5bb4069e
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_StrCpyNW
lea eax, [ebp - 0x20c]
push eax
call fcn.5bab7b18
test eax, eax
jne 0x5bb40684
push 0x5ba52e3c
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAddExtensionW
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x5bb4069e
and word [esi], ax
mov ebx, 0x80004005
jmp 0x5bb406ac
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.SHLWAPI.dll_StrCpyNW
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop esi
setge al
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5bb41f20
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
je 0x5bb41f4c
cmp esi, ebx
jne 0x5bb41f55
mov dword [ebp - 0x10], 0x80070057
jmp 0x5bb41fcb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x5ba527b8
push 0x5ba527c0
call sub.MSOERT2.dll_CreateTempFile
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x5bb41faf
push 1
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push esi
call fcn.5bb41e4b
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x5bb41faf
push dword [ebp - 8]
push ebx
call sub.MSOERT2.dll_PszToUnicode
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x5bb41fa1
mov dword [ebp - 0x10], 0x8007000e
jmp 0x5bb41faf
push eax
push ebx
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0xc], ebx
je 0x5bb41fbd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x5bb41fcb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x5bb73714]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [0x5bb73714]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0xc

Function at 0x5bb43227
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5bb70c3c]
push ebx
xor ebx, ebx
cmp byte [0x5bb75678], bl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ebx
mov esi, 0x5bb75678
jne 0x5bb432c0
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push ebx
push 0x5ba52e90
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push 0x33
pop edi
jne 0x5bb432ac
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
push ebx
push 0x5ba44198
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x20c]
call dword [entry0]
cmp byte [0x5bb75678], bl
jne 0x5bb432c0
push edi
push esi
push 0x1826
call fcn.5ba56439
push 0x5ba52e8c
push dword [ebp - 0x208]
call sub.SHLWAPI.dll_StrStrA
mov edi, eax
neg edi
sbb edi, edi
neg edi
je 0x5bb4330e
push esi
push esi
push esi
push esi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push 0x200
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x1c
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8
Function at 0x5bb46dd2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5bb70c3c]
push esi
push edi
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x428], ecx
lea ecx, [ebp - 0x44c]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
push eax
mov dword [ebp - 0x44c], 0x2c
mov dword [ebp - 0x448], 0x30
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x424], esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x5bb46f93
cmp dword [ebp - 0x42c], edi
je 0x5bb46f93
push dword [ebp - 0x42c]
lea eax, [ebp - 0x40c]
push 0x5ba4cf50
push 0x5ba4cb94
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x40c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bb46f93
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x5ba4cfb8
push dword [ebp - 0x414]
mov dword [ebp - 0x410], 0x200
call esi
test eax, eax
je 0x5bb46f0f
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x5ba4cfac
push dword [ebp - 0x414]
mov dword [ebp - 0x410], 0x200
call esi
test eax, eax
jne 0x5bb46f87
lea eax, [ebp - 0x204]
push eax
call sub.MSOERT2.dll_IsHttpUrlA
test eax, eax
je 0x5bb46f87
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x5ba4cfdc
push dword [ebp - 0x414]
mov dword [ebp - 0x410], 4
call esi
test eax, eax
jne 0x5bb46f6b
cmp dword [ebp - 0x420], edi
je 0x5bb46f6b
push edi
push edi
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x418]
call fcn.5ba93cfb
push eax
call sub.MSOERT2.dll_DoHotMailWizard
jmp 0x5bb46f87
push 1
push edi
push edi
lea eax, [ebp - 0x204]
push eax
push 0x5ba41cd0
push dword [ebp - 0x418]
call dword [0x5bb70b40]
push dword [ebp - 0x414]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.5bb3f314
leave
ret 0xc

Function at 0x5bb490b2
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
lea eax, [esi + 0xb8]
cmp dword [eax], 0
jne 0x5bb4912d
push edi
mov dword [eax], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esi + 0xd4]
mov eax, dword [ecx]
lea eax, [eax + eax*2]
cdq
push 5
sub eax, edx
push 0xfa0
push dword [ebp + 8]
sar eax, 1
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 5
push dword [esi + 0x48]
call edi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x16
push dword [esi + 0xa4]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
leave
ret 4
Function at 0x5bb49a9c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
push 0x5ba4ccb0
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.USER32.dll_SetPropA]
push dword [ebp + 8]
mov ecx, edi
call fcn.5bb49577
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xfa0
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x36
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 0x80
push dword [ebp + 8]
mov dword [edi + 0xd8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x36
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, dword [ebp + 8]
push eax
push 0
push 0x80
push esi
mov dword [edi + 0xdc], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ecx, edi
call fcn.5bb49514
lea eax, [edi + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.5bb4919a
push esi
mov ecx, edi
call fcn.5bb49437
push eax
push 0x3f2
push esi
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0x408
push dword [ebp + 8]
call ebx
push eax
call esi
mov ebx, dword [ebp + 8]
push 1
push 0x3fe
push ebx
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x70
call fcn.5ba5615b
test eax, eax
pop ecx
je 0x5bb49ba9
mov ecx, eax
call fcn.5ba75e8e
jmp 0x5bb49bab
xor eax, eax
test eax, eax
mov dword [edi + 0x54], eax
je 0x5bb49bbb
mov ecx, dword [eax]
push 7
push ebx
push eax
call dword [ecx + 0xc]
push 0x78
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, eax
push esi
call fcn.5ba6ddd1
push esi
push ebx
call dword [sym.imp.USER32.dll_SetMenu]
lea eax, [edi + 0xec]
cmp dword [eax], 0
jne 0x5bb49beb
push eax
push edi
call fcn.5ba6ea51
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0xc