joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call fcn.0042a4f0
add esp, 0xc
test al, al
jne 0x427d88
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0x18]
push esi
test ebx, ebx
je 0x427e51
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x427e51
cmp word [esi], 1
jne 0x427e44
cmp dword [esi + 4], 1
jne 0x427e44
cmp dword [esi + 0x14], 0
jne 0x427e44
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x427e56
cmp ebx, 2
jb 0x427e44
test bl, 1
jne 0x427e44
cmp dword [esi + 0x10], ebx
jne 0x427e44
mov edx, dword [ebp + 0xc]
cmp byte [edx + ebx - 2], al
jne 0x427e44
cmp byte [edx + ebx - 1], al
jne 0x427e44
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427df5
sub ecx, edi
sar ecx, 1
pop edi
lea eax, [ecx*2 + 2]
cmp eax, ebx
jne 0x427e44
push ebx
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x427e33
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x57
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x427f50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x427f73
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
push dword [ebp + 0x14]
call fcn.00427150
add esp, 4
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042daf0
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push esi
call fcn.0042e910
test al, al
jne 0x427faf
lea ecx, [ebp - 0x10]
mov esi, 1
call fcn.0042dcd0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427fdd
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0042dcd0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x427ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push eax
push ecx
call fcn.0042d720
add esp, 8
test eax, eax
je 0x42815f
push 0x3c
lea eax, [ebp - 0xa48]
push 0
push eax
call fcn.00433c26
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0
push esi
mov dword [ebp - 0xa48], 0x3c
mov dword [ebp - 0xa44], 0x100
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa38], esi
mov dword [ebp - 0xa34], 0
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa0c], 0x400
call dword [sym.imp.MSVCR120.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 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jne 0x42815f
push dword [ebp - 0xa0c]
mov esi, dword [sym.imp.MSVCR120.dll_wcsncmp]
lea eax, [ebp - 0xa08]
push str.WinWord
push eax
call esi
add esp, 0xc
test eax, eax
je 0x428139
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.Excel
push eax
call esi
add esp, 0xc
test eax, eax
je 0x428139
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.OUTLOOK
push eax
call esi
add esp, 0xc
test eax, eax
je 0x428139
push dword [ebp - 0xa0c]
lea eax, [ebp - 0xa08]
push str.POWERPNT
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x42815f
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42815f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x428f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x428f4f
mov eax, 0x80004005
jmp 0x42909a
push dword [ebp + 0x14]
call fcn.00427150
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.0042daf0
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.0042e910
test al, al
jne 0x428f82
mov esi, 1
jmp 0x429090
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x428f91
lea esi, [edi + 0x57]
jmp 0x429090
cmp word [edi], 1
jne 0x42908b
cmp dword [edi + 4], 1
jne 0x42908b
cmp dword [edi + 0x14], 0
jne 0x42908b
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jne 0x429090
test ebx, ebx
je 0x429003
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428fd0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x428fee
xor eax, eax
jmp 0x429003
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00426220
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x429080
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x42904a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429030
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42904e
xor eax, eax
jmp 0x429063
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00426220
push dword [edi + 0x10]
push dword [ebp - 0x10]
push 3
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x429090
mov esi, 0x80004005
lea ecx, [ebp - 0x20]
call fcn.0042dcd0
mov eax, esi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4290b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x4290df
mov eax, 0x80004005
jmp 0x429229
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x4290ea
xor ebx, ebx
jmp 0x429125
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4290f0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42910e
xor ebx, ebx
jmp 0x429125
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
mov ebx, eax
push dword [ebp + 0x14]
call fcn.00427150
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x1c]
call fcn.0042daf0
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push edi
push dword [ebp - 0xc]
call fcn.0042e910
test al, al
jne 0x429158
mov esi, 1
jmp 0x42921f
test edi, edi
jne 0x429160
xor eax, eax
jmp 0x429198
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429165
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x429183
xor eax, eax
jmp 0x429198
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42921d
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4291df
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4291c5
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4291e3
xor esi, esi
jmp 0x4291fa
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
mov esi, eax
push ebx
call fcn.004261c0
add esp, 4
inc eax
push eax
push ebx
push 3
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.0042dcd0
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x429240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x42926f
mov eax, 0x80004005
jmp 0x42936c
push dword [ebp + 0x14]
call fcn.00427150
add esp, 4
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.0042daf0
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push edi
push ebx
call fcn.0042e910
test al, al
jne 0x42929f
mov esi, 1
jmp 0x429362
test edi, edi
jne 0x4292a7
xor eax, eax
jmp 0x4292e3
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4292b0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4292ce
xor eax, eax
jmp 0x4292e3
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x429360
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x42932a
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429310
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42932e
xor eax, eax
jmp 0x429343
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
push 4
lea ecx, [ebp + 0x20]
push ecx
push 4
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.0042dcd0
mov eax, esi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x429390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d720
add esp, 8
test eax, eax
jne 0x4293bf
mov eax, 0x80004005
jmp 0x42949d
push dword [ebp + 0x14]
call fcn.00427150
add esp, 4
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.0042daf0
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push edi
push ebx
call fcn.0042e910
test al, al
jne 0x4293ef
mov esi, 1
jmp 0x429493
test edi, edi
jne 0x4293f7
xor eax, eax
jmp 0x429433
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429400
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x42941e
xor eax, eax
jmp 0x429433
add esi, esi
mov eax, esi
call fcn.00433ec0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00426220
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x429491
mov edx, dword [ebp + 0x20]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429460
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.0042dcd0
mov eax, esi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4294c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434ff8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x43ffa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0x437b58
xor bl, bl
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4295a5
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00425ff0
push dword [0x43c040]
lea ecx, [ebp - 0x14]
call fcn.00425e60
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00426130
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00425f90
push 0x436fe4
lea ecx, [ebp - 0x14]
call fcn.00425e60
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00426130
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00425f90
push dword [0x43c044]
lea ecx, [ebp - 0x14]
call fcn.00425e60
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00426130
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00425f90
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4295e0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_wcscat_s]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
push 0x4366ac
push 0x104
push edi
mov dword [ebp - 0x874], edi
mov dword [ebp - 0x870], eax
call ebx
push 0x4366ac
push 0x104
push dword [ebp - 0x870]
call ebx
push edi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
push 0x43731c
lea eax, [ebp - 0x61c]
push 0x104
push eax
call ebx
add esp, 0x30
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429689
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x429823
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x429823
push dword [ebp - 0x874]
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call ebx
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
add esp, 0x30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429727
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x86c], 0x10
jne 0x429755
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x429691
xor esi, esi
jmp 0x429691
mov ecx, 0x437324
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429786
test dx, dx
je 0x429782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429786
add eax, 4
add ecx, 4
test dx, dx
jne 0x429760
xor eax, eax
jmp 0x42978b
sbb eax, eax
or eax, 1
test eax, eax
je 0x429691
mov eax, 0x437328
lea ecx, [ebp - 0x840]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4297c6
test dx, dx
je 0x4297c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4297c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4297a0
xor eax, eax
jmp 0x4297cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x429691
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4297fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x429691
mov esi, 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004295e0
add esp, 8
test eax, eax
jne 0x429691
xor esi, esi
jmp 0x429691
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433bb2
mov esp, ebp
pop ebp
ret
Function at 0x429840
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429951
push esi
push 0x1fe
mov dword [ebp - 8], 0xff
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x429947
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xff
push eax
push esi
push 0
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x42993a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ebx, [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call edi
test eax, eax
jne 0x429937
push esi
push dword [ebp - 4]
call fcn.00429840
add esp, 8
lea eax, [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call edi
test eax, eax
jne 0x429937
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x429937
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4298c0
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR120.dll_free]
mov ebx, dword [ebp + 0xc]
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a690
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43508b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43ffa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [edi + 0x2c], eax
setne al
push 0x437458
mov byte [edi + 0x20], al
call fcn.0042cfb0
mov dword [edi + 0x18], eax
test eax, eax
je 0x42a7cb
push 0xc
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x42a75a
push str.MAPIFreeBuffer
push dword [edi + 0x18]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], vtable.MapiAllocator.0
mov dword [ebx + 4], eax
jmp 0x42a75c
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x14], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0x18]
mov dword [edi + 4], eax
call esi
push str.MAPILogonEx
push dword [edi + 0x18]
mov dword [edi + 8], eax
call esi
push str.HrQueryAllRows
push dword [edi + 0x18]
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x42a7cb
cmp dword [edi + 8], 0
je 0x42a7cb
cmp dword [edi + 0xc], 0
je 0x42a7cb
push 0
call eax
mov dword [edi + 0x1c], eax
test eax, eax
js 0x42a7d2
mov eax, dword [edi + 0xc]
push edi
push 0x63
push 0
push 0
push 0
call eax
mov dword [edi + 0x1c], eax
jmp 0x42a7d2
mov dword [edi + 0x1c], 0x80040102
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x42d510
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.004016a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42d5d0
push eax
push 0x401580
push dword [edi]
call fcn.004017d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42d5d0
push eax
push 0x43c064
push dword [edi]
call fcn.00401820
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42d5d0
push 0x10
mov dword [ebp - 4], 0x10
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
sete bl
test ebx, ebx
jne 0x42d5d0
push 0xf0000000
push 1
push ebx
xorps xmm0, xmm0
lea eax, [ebp - 8]
push ebx
movdqu xmmword [esi], xmm0
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42d5e2
push esi
push 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x42d5e2
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
push 0x10
push esi
push dword [edi]
call fcn.00401850
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x42d5e2
push edi
call fcn.00401790
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x42d5f1
jmp 0x42d5e5
mov eax, dword [ebp - 4]
push eax
push 0
push esi
call fcn.00433c26
add esp, 0xc
test esi, esi
je 0x42d5ff
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret