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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x404fb6
mov eax, 0x80004005
jmp 0x404ffd
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call fcn.00408106
add esp, 0xc
test al, al
jne 0x404fd5
push 0x57
pop eax
jmp 0x404ffc
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 0x404ffc
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 0x405001
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.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x405021
mov eax, 0x80004005
jmp 0x405082
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408106
add esp, 0xc
test al, al
jne 0x40503f
push 0x57
pop eax
jmp 0x405082
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x405059
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405082
cmp dword [ebp + 0x20], 0
jne 0x405069
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x40507b
cmp dword [ebp - 4], 0
je 0x405074
xor eax, eax
inc eax
jmp 0x405082
cmp eax, 0x7fffffff
ja 0x40506f
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
leave
ret 0x1c

Function at 0x405086
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x4050a5
mov eax, 0x80004005
jmp 0x405146
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408106
add esp, 0xc
test al, al
jne 0x4050c6
push 0x57
pop eax
jmp 0x405146
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x405140
mov esi, dword [ebp + 0x20]
cmp esi, edi
je 0x405140
push dword [ebp + 0x18]
push edi
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
cmp eax, edi
jne 0x4050f2
mov eax, 0x80004005
jmp 0x405143
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 0x14], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40513b
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 0x405124
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 0x40513b
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
jmp 0x405143
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40514a
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.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x40516a
mov eax, 0x80004005
jmp 0x4051f1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00408106
add esp, 0xc
test al, al
jne 0x405188
push 0x57
pop eax
jmp 0x4051f1
cmp dword [ebp + 0x1c], 0
push esi
je 0x4051ed
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4051ed
cmp word [esi], 1
jne 0x4051e6
cmp dword [esi + 4], 1
jne 0x4051e6
cmp dword [esi + 0x14], 0
jne 0x4051e6
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x4051f0
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 0x4051db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
jmp 0x4051f0
mov eax, 0x80004005
jmp 0x4051f0
push 0x57
pop eax
pop esi
pop edi
leave
ret 0x18

Function at 0x40543c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x40545d
mov eax, 0x80004005
jmp 0x4054ea
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x4054e3
lea ecx, [ebp - 0x18]
call fcn.0040b652
push 1
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.0040b2c2
test al, al
jne 0x40548d
lea ecx, [ebp - 0x18]
call fcn.0040b1c6
xor eax, eax
inc eax
jmp 0x4054e8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405492
sub eax, edx
sar eax, 1
je 0x4054d6
movzx ecx, word [esi + eax*2 - 2]
cmp ecx, 0x2e
je 0x4054d6
cmp eax, 1
jbe 0x4054bf
cmp word [esi + eax*2 - 4], 0x2e
jne 0x4054bf
cmp ecx, 0x5c
je 0x4054d6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4054d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4054d9
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.0040b1c6
jmp 0x4054e6
xor ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x405775
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.00408138
add esp, 0xc
test al, al
jne 0x405796
push 0x57
pop eax
jmp 0x4057b2
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 0x4057b6
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.00408138
add esp, 0xc
test al, al
jne 0x4057d7
push 0x57
pop eax
jmp 0x40583a
cmp dword [ebp + 0x18], 0
push esi
je 0x405836
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x405836
cmp word [esi], 1
jne 0x40582f
cmp dword [esi + 4], 1
jne 0x40582f
cmp dword [esi + 0x14], 0
jne 0x40582f
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x405839
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 0x405824
xor eax, eax
inc eax
jmp 0x405839
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x405839
mov eax, 0x80004005
jmp 0x405839
push 0x57
pop eax
pop esi
pop ebp
ret 0x14

Function at 0x40583e
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.00408138
add esp, 0xc
test al, al
jne 0x405861
push 0x57
pop eax
jmp 0x40589b
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 0x40588b
xor eax, eax
inc eax
jmp 0x40589b
cmp dword [ebp - 4], 4
jne 0x405886
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
leave
ret 0x10

Function at 0x40589f
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.00408138
add esp, 0xc
test al, al
jne 0x4058c4
push 0x57
pop eax
jmp 0x40594f
push ebx
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x4058d4
push 0x57
pop eax
jmp 0x40594d
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
cmp esi, ebx
jne 0x405902
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 0x4058fd
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
jmp 0x40594a
xor eax, eax
inc eax
jmp 0x40594c
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 0x40591e
mov eax, 0x80004005
jmp 0x40594c
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40594a
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 0x405953
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.00408138
add esp, 0xc
test al, al
jne 0x405974
push 0x57
pop eax
jmp 0x405982
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
pop ebp
ret 0xc

Function at 0x405d87
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x43b4b0]
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.0040aa99
pop ecx
pop ecx
test eax, eax
je 0x405ee6
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 0x405ee6
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 0x405ed1
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.Excel
push eax
call esi
add esp, 0xc
test eax, eax
je 0x405ed1
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.OUTLOOK
push eax
call esi
add esp, 0xc
test eax, eax
je 0x405ed1
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.POWERPNT
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x405ee6
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405ee6
xor eax, eax
jmp 0x405eeb
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dc86
leave
ret 0x1c

Function at 0x405efb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43b4b0]
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.0040aa99
pop ecx
pop ecx
test eax, eax
jne 0x405f2c
mov eax, 0x80004005
jmp 0x405f5d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x405f4a
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x405f5a
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.0042dc86
leave
ret 0x10
Function at 0x405f6c
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 0x405f81
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 0x405f98
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x43b4b0]
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, 0x431fb4
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 0x431fac
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 0x406037
xor eax, eax
jmp 0x4061b9
test eax, eax
je 0x4061a7
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4061a7
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.00405f6c
add esp, 0x34
test byte [ebp - 0x86c], 0x10
jne 0x4060cf
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x406194
mov ecx, 0x431fa8
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406100
test dx, dx
je 0x4060fc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406100
add eax, 4
add ecx, 4
test dx, dx
jne 0x4060da
xor eax, eax
jmp 0x406105
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40603f
mov ecx, 0x431fa0
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40613e
test dx, dx
je 0x40613a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40613e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406118
xor eax, eax
jmp 0x406143
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40603f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x870], eax
test eax, eax
jne 0x40617f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40603f
mov dword [ebp - 0x870], 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00405f98
pop ecx
pop ecx
test eax, eax
jne 0x40603f
and dword [ebp - 0x870], eax
jmp 0x40603f
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.0042dc86
leave
ret
Function at 0x408598
Capabilities:
Link many functions at runtime

Disassembly:
push 0
mov eax, 0x42fc0a
call fcn.0042dd62
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.00408510
mov dword [esi + 0x18], eax
test eax, eax
je 0x4086aa
push 0xc
call fcn.0042dee0
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 0x408642
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 0x408646
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 0x4086aa
cmp dword [esi + 8], ebx
je 0x4086aa
cmp dword [esi + 0xc], ebx
je 0x4086aa
push ebx
call eax
mov dword [esi + 0x1c], eax
cmp eax, ebx
jl 0x4086b1
push esi
push 0x63
push ebx
push ebx
push ebx
call dword [esi + 0xc]
mov dword [esi + 0x1c], eax
jmp 0x4086b1
mov dword [esi + 0x1c], 0x80040102
mov eax, esi
call fcn.0042de3a
ret 0x28
Function at 0x40a6c3
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.0040bdd0
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40a78e
push ebx
push 0x40c000
push dword [edi]
call fcn.0040bf00
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40a78e
push ebx
push 0x4373e4
push dword [edi]
call fcn.0040bf50
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40a78e
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 0x40a78e
push 0x10
push ebx
push eax
call fcn.0040a61f
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 0x40a795
push dword [ebp - 4]
push 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40a795
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.0040bf80
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x40a795
push edi
call fcn.0040bec0
pop ecx
push dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
call fcn.0040a61f
push dword [ebp - 4]
call fcn.0040a691
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40abaf
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x43b4b0]
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 0x432314
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 0x40ac35
xor eax, eax
jmp 0x40ac4f
lea eax, [esi + esi]
call fcn.0042dfb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408389
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 0x40ad27
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 0x40ad1b
cmp dword [ebp - 0x614], eax
je 0x40ad1b
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x61c], eax
cmp eax, 0x3fffffff
jle 0x40acea
xor eax, eax
jmp 0x40ad08
add eax, eax
call fcn.0042dfb0
mov eax, esp
push 3
push dword [ebp - 0x61c]
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408389
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 0x40add1
lea eax, [ebp - 0x610]
push eax
push ebx
push 0
push 0x4321e0
push edi
call esi
test eax, eax
jne 0x40add1
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 0x40adc5
cmp dword [ebp - 0x614], edi
je 0x40adc5
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40ad99
xor eax, eax
jmp 0x40adb3
lea eax, [esi + esi]
call fcn.0042dfb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408389
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.0042dc86
leave
ret