joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fbc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x405fd8
mov eax, 0x80004005
jmp 0x40601f
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call fcn.00408c14
add esp, 0xc
test al, al
jne 0x405ff7
push 0x57
pop eax
jmp 0x40601e
push dword [ebp + 0x1c]
mov eax, dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x60]
test eax, eax
jne 0x40601e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret 0x18

Function at 0x406023
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x406043
mov eax, 0x80004005
jmp 0x4060a4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c14
add esp, 0xc
test al, al
jne 0x406061
push 0x57
pop eax
jmp 0x4060a4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40607b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4060a4
cmp dword [ebp + 0x20], 0
jne 0x40608b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x40609d
cmp dword [ebp - 4], 0
je 0x406096
xor eax, eax
inc eax
jmp 0x4060a4
cmp eax, 0x7fffffff
ja 0x406091
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
leave
ret 0x1c

Function at 0x4060a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x4060c7
mov eax, 0x80004005
jmp 0x406168
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c14
add esp, 0xc
test al, al
jne 0x4060e8
push 0x57
pop eax
jmp 0x406168
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x406162
mov esi, dword [ebp + 0x20]
cmp esi, edi
je 0x406162
push dword [ebp + 0x18]
push edi
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
cmp eax, edi
jne 0x406114
mov eax, 0x80004005
jmp 0x406165
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 0x14], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40615d
push edi
push ebx
push dword [ebp + 0x18]
mov dword [ebx], edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [ebp + 0x14], edi
je 0x40615d
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
jmp 0x406165
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40616c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x40618c
mov eax, 0x80004005
jmp 0x406213
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c14
add esp, 0xc
test al, al
jne 0x4061aa
push 0x57
pop eax
jmp 0x406213
cmp dword [ebp + 0x1c], 0
push esi
je 0x40620f
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40620f
cmp word [esi], 1
jne 0x406208
cmp dword [esi + 4], 1
jne 0x406208
cmp dword [esi + 0x14], 0
jne 0x406208
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x406212
mov eax, dword [ebp + 0x1c]
and dword [eax], edi
push edi
push eax
push dword [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4061fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
jmp 0x406212
mov eax, 0x80004005
jmp 0x406212
push 0x57
pop eax
pop esi
pop edi
leave
ret 0x18

Function at 0x40645e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x40647f
mov eax, 0x80004005
jmp 0x40650c
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x406505
lea ecx, [ebp - 0x18]
call fcn.0040c1ef
push 1
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.0040be61
test al, al
jne 0x4064af
lea ecx, [ebp - 0x18]
call fcn.0040bd65
xor eax, eax
inc eax
jmp 0x40650a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064b4
sub eax, edx
sar eax, 1
je 0x4064f8
movzx ecx, word [esi + eax*2 - 2]
cmp ecx, 0x2e
je 0x4064f8
cmp eax, 1
jbe 0x4064e1
cmp word [esi + eax*2 - 4], 0x2e
jne 0x4064e1
cmp ecx, 0x5c
je 0x4064f8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4064fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4064fb
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.0040bd65
jmp 0x406508
xor ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x406797
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c46
add esp, 0xc
test al, al
jne 0x4067b8
push 0x57
pop eax
jmp 0x4067d4
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x10
Function at 0x4067d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c46
add esp, 0xc
test al, al
jne 0x4067f9
push 0x57
pop eax
jmp 0x40685c
cmp dword [ebp + 0x18], 0
push esi
je 0x406858
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x406858
cmp word [esi], 1
jne 0x406851
cmp dword [esi + 4], 1
jne 0x406851
cmp dword [esi + 0x14], 0
jne 0x406851
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40685b
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406846
xor eax, eax
inc eax
jmp 0x40685b
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x40685b
mov eax, 0x80004005
jmp 0x40685b
push 0x57
pop eax
pop esi
pop ebp
ret 0x14

Function at 0x406860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c46
add esp, 0xc
test al, al
jne 0x406883
push 0x57
pop eax
jmp 0x4068bd
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4068ad
xor eax, eax
inc eax
jmp 0x4068bd
cmp dword [ebp - 4], 4
jne 0x4068a8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
leave
ret 0x10

Function at 0x4068c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c46
add esp, 0xc
test al, al
jne 0x4068e6
push 0x57
pop eax
jmp 0x406971
push ebx
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x4068f6
push 0x57
pop eax
jmp 0x40696f
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
cmp esi, ebx
jne 0x406924
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40691f
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
jmp 0x40696c
xor eax, eax
inc eax
jmp 0x40696e
mov eax, dword [edi]
push eax
push ebx
push 0x11
mov dword [ebp + 0xc], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
cmp eax, ebx
jne 0x406940
mov eax, 0x80004005
jmp 0x40696e
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40696c
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x406975
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408c46
add esp, 0xc
test al, al
jne 0x406996
push 0x57
pop eax
jmp 0x4069a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
pop ebp
ret 0xc

Function at 0x406da9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push ecx
push eax
mov dword [ebp - 0xa10], edx
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
je 0x406f08
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0xa4c]
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0xa10]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push edi
push esi
mov dword [ebp - 0xa4c], 0x3c
mov dword [ebp - 0xa48], 0x100
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa40], ebx
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa0c], 0x400
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x20
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa08]
push eax
push str.open
lea eax, [ebp - 0x208]
push eax
push 9
push edi
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
pop edi
test eax, eax
jne 0x406f08
push dword [ebp - 0xa0c]
mov esi, dword [sym.imp.MSVCR100.dll_wcsncmp]
lea eax, [ebp - 0xa08]
push str.WinWord
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef3
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.Excel
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef3
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.OUTLOOK
push eax
call esi
add esp, 0xc
test eax, eax
je 0x406ef3
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.POWERPNT
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x406f08
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406f08
xor eax, eax
jmp 0x406f0d
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e766
leave
ret 0x1c

Function at 0x406f1d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push ecx
push eax
call fcn.0040b5f7
pop ecx
pop ecx
test eax, eax
jne 0x406f4e
mov eax, 0x80004005
jmp 0x406f7f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x406f6c
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406f7c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
movzx esi, ax
movzx eax, si
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e766
leave
ret 0x10
Function at 0x406f8e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406fa3
xor eax, eax
pop ebp
ret
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x406fb8
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_wcscat_s]
mov ebx, 0x433118
push ebx
mov esi, 0x104
push esi
push eax
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x870], 1
call edi
push ebx
push esi
push dword [ebp - 0x878]
call edi
push dword [ebp - 0x87c]
mov ebx, dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea eax, [ebp - 0x61c]
push esi
push eax
call ebx
push 0x433110
lea eax, [ebp - 0x61c]
push esi
push eax
call edi
add esp, 0x30
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
jne 0x407057
xor eax, eax
jmp 0x4071d9
test eax, eax
je 0x4071c7
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4071c7
push dword [ebp - 0x87c]
lea eax, [ebp - 0x414]
push esi
push eax
call ebx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call edi
push dword [ebp - 0x878]
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00406f8e
add esp, 0x34
test byte [ebp - 0x86c], 0x10
jne 0x4070ef
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4071b4
mov ecx, 0x43310c
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407120
test dx, dx
je 0x40711c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407120
add eax, 4
add ecx, 4
test dx, dx
jne 0x4070fa
xor eax, eax
jmp 0x407125
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40705f
mov ecx, 0x433104
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40715e
test dx, dx
je 0x40715a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40715e
add eax, 4
add ecx, 4
test dx, dx
jne 0x407138
xor eax, eax
jmp 0x407163
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40705f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x870], eax
test eax, eax
jne 0x40719f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40705f
mov dword [ebp - 0x870], 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00406fb8
pop ecx
pop ecx
test eax, eax
jne 0x40705f
and dword [ebp - 0x870], eax
jmp 0x40705f
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x870]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e766
leave
ret
Function at 0x4090a6
Capabilities:
Link many functions at runtime

Disassembly:
push 0
mov eax, 0x430857
call fcn.0042e77c
mov esi, ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x2c], eax
setne al
push str.MAPI32.DLL
mov byte [esi + 0x20], al
call fcn.0040901e
mov dword [esi + 0x18], eax
test eax, eax
je 0x4091b8
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
mov dword [ebp + 0x10], ebx
and dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ebx, ebx
je 0x409150
push str.MAPIFreeBuffer
push dword [esi + 0x18]
call edi
push str.MAPIAllocateBuffer
push dword [esi + 0x18]
mov dword [ebp + 0xc], eax
call edi
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov dword [ebx], vtable.MapiAllocator.0
mov eax, ebx
xor ebx, ebx
jmp 0x409154
xor ebx, ebx
xor eax, eax
or dword [ebp - 4], 0xffffffff
push str.MAPIInitialize
push dword [esi + 0x18]
mov dword [esi + 0x14], eax
call edi
push str.MAPIUninitialize
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.MAPILogonEx
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.HrQueryAllRows
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4091b8
cmp dword [esi + 8], ebx
je 0x4091b8
cmp dword [esi + 0xc], ebx
je 0x4091b8
push ebx
call eax
mov dword [esi + 0x1c], eax
cmp eax, ebx
jl 0x4091bf
push esi
push 0x63
push ebx
push ebx
push ebx
call dword [esi + 0xc]
mov dword [esi + 0x1c], eax
jmp 0x4091bf
mov dword [esi + 0x1c], 0x80040102
mov eax, esi
call fcn.0042e854
ret 0x28
Function at 0x40b1d1
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0040c970
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40b29c
push ebx
push 0x40cba0
push dword [edi]
call fcn.0040caa0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40b29c
push ebx
push 0x4383e4
push dword [edi]
call fcn.0040caf0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40b29c
push 0x10
pop eax
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 4], eax
mov esi, ecx
cmp esi, ebx
jne 0x40b29c
push 0x10
push ebx
push eax
call fcn.0040b12d
add esp, 0xc
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b2a3
push dword [ebp - 4]
push 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40b2a3
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
push 0x10
push dword [ebp - 4]
push dword [edi]
call fcn.0040cb20
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x40b2a3
push edi
call fcn.0040ca60
pop ecx
push dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
call fcn.0040b12d
push dword [ebp - 4]
call fcn.0040b19f
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b70d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x60c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AcroBroker.log
lea eax, [ebp - 0x60c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
lea eax, [ebp - 0x60c]
push 0x433424
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov edi, eax
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40b793
xor eax, eax
jmp 0x40b7ad
lea eax, [esi + esi]
call fcn.0042ea80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408e97
push eax
push edi
call dword [sym.imp.MSVCR100.dll_fwprintf]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 0x614], 0
add esp, 0xc
lea eax, [ebp - 0x610]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SoftwareAdobeAdobe_Acrobat11.0Private
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x618], 0x400
call esi
test eax, eax
jne 0x40b885
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x614]
push eax
push 0
push 0
push str.bAlertOnUnexpectedWrites
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b879
cmp dword [ebp - 0x614], eax
je 0x40b879
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x61c], eax
cmp eax, 0x3fffffff
jle 0x40b848
xor eax, eax
jmp 0x40b866
add eax, eax
call fcn.0042ea80
mov eax, esp
push 3
push dword [ebp - 0x61c]
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408e97
push 0x10000
push str.AcroBroker:_Unexpected_Write_Warning__
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x614], 0
jne 0x40b92f
lea eax, [ebp - 0x610]
push eax
push ebx
push 0
push str.SoftwareAdobeAcrobat_Reader11.0Private
push edi
call esi
test eax, eax
jne 0x40b92f
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x614]
push eax
xor edi, edi
push edi
push edi
push str.bAlertOnUnexpectedWrites
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b923
cmp dword [ebp - 0x614], edi
je 0x40b923
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40b8f7
xor eax, eax
jmp 0x40b911
lea eax, [esi + esi]
call fcn.0042ea80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408e97
push 0x10000
push str.AcroBroker:_Unexpected_Write_Warning__
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x628]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e766
leave
ret