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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x427021
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call main
add esp, 0xc
test al, al
jne 0x427045
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x4270b7
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4270b7
cmp word [esi], 1
jne 0x4270aa
cmp dword [esi + 4], 1
jne 0x4270aa
cmp dword [esi + 0x14], 0
jne 0x4270aa
push edi
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test edi, edi
jne 0x4270a1
push eax
push ebx
mov dword [ebx], eax
push dword [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x427098
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x427970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x43ffa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push eax
push ecx
call main
add esp, 8
test eax, eax
jne 0x4279b1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4279e1
push eax
xor esi, esi
call dword [sym.imp.kernel32.dll_FindClose]
movzx eax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
movzx esi, cx
mov ecx, dword [ebp - 4]
movzx eax, si
xor ecx, ebp
pop esi
call fcn.00433bb2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x427b00
Capabilities:
Delete 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 main
add esp, 0xc
test al, al
jne 0x427b28
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call main
add esp, 0xc
test al, al
jne 0x427bfa
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x427c2a
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 8], 4
jne 0x427c1f
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x427c40
Capabilities:
Query or enumerate 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 main
add esp, 0xc
test al, al
jne 0x427c68
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x427c7a
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427cfb
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x427cf2
push eax
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x427cc4
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x427cf2
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x427d10
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 main
add esp, 0xc
test al, al
jne 0x427d38
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x10
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 0x10
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 main
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 main
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 main
add esp, 4
lea ecx, [ebp - 0x10]
mov esi, eax
call main
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push esi
call main
test al, al
jne 0x427faf
lea ecx, [ebp - 0x10]
mov esi, 1
call main
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 main
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 main
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 main
add esp, 8
test eax, eax
jne 0x428f4f
mov eax, 0x80004005
jmp 0x42909a
push dword [ebp + 0x14]
call main
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0xc], esi
call main
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ebx
push esi
call main
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 main
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 main
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 main
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 main
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 main
mov ebx, eax
push dword [ebp + 0x14]
call main
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x1c]
call main
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push edi
push dword [ebp - 0xc]
call main
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 main
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 main
mov esi, eax
push ebx
call main
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 main
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 main
add esp, 8
test eax, eax
jne 0x42926f
mov eax, 0x80004005
jmp 0x42936c
push dword [ebp + 0x14]
call main
add esp, 4
lea ecx, [ebp - 0x18]
mov ebx, eax
call main
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push edi
push ebx
call main
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 main
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 main
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 main
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 main
add esp, 8
test eax, eax
jne 0x4293bf
mov eax, 0x80004005
jmp 0x42949d
push dword [ebp + 0x14]
call main
add esp, 4
lea ecx, [ebp - 0x18]
mov ebx, eax
call main
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push edi
push ebx
call main
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 main
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 main
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 0x42bc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x42bc7f
pop dword [ebp - 0x40]
mov eax, 0x42bc7f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xa19f9b96
add dword [ebp - 0x50], 0xacb2a9b5
mov dword [ebp - 0x4c], 0xac99acdc
sub dword [ebp - 0x4c], 0x7a666097
mov dword [ebp - 0x48], 0xa751663d
add dword [ebp - 0x48], 0xa4faddf1
mov dword [ebp - 0x44], 0x51678ca3
sub dword [ebp - 0x44], 0x51678ca3
lea eax, [ebp - 0x50]
push eax
mov eax, 0x3191a032
add eax, 0xceb1c082
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x5e6e8f3c
sub dword [ebp - 0x50], 0xe9fc25e6
mov dword [ebp - 0x4c], 0xb920fe4
sub dword [ebp - 0x4c], 0xca25ae6f
mov dword [ebp - 0x48], 0x37b67e1f
add dword [ebp - 0x48], 0x2bb8ee4d
mov dword [ebp - 0x44], 0x3121f339
add dword [ebp - 0x44], 0xcede0cc7
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xd65b9363
sub eax, 0xd6183217
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3e6c8
push 0
call eax
mov ecx, 0xeca9bd5c
add ecx, 0x135695eb
mov edi, eax
mov ebx, 0x8371a789
sub ebx, 0x832d4789
add ebx, dword [ebp - 0x40]
mov esi, 0x86504cfc
add esi, 0x5f0c2279
xor dword [ebp - 0x20], ebx
mov edx, dword [ebx]
xor dword [ebp - 0x1c], 0x1eee889c
xor edx, esi
add dword [ebp - 0x2c], 0x190576d
mov dword [edi], edx
mov dword [ebp - 0x2c], 0xb528cfd3
add edi, 0xb20e7012
add edi, 0x4df18ff2
add ebx, 4
loop 0x42bd9c
add eax, 0x95117963
add eax, 0x6aefc68c
mov ebx, eax
add eax, 5
mov ecx, 0x2706e898
sub ecx, 0x26c6e898
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4332ec
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x43597d
call fcn.004343d2
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x470], ebx
call fcn.0042f6ee
cmp dword [ebx + 4], 0
jne 0x43331e
mov eax, 0xffffe89d
jmp 0x433561
xor esi, esi
lea ecx, [ebp - 0x488]
push esi
push 0xffffffffffffffff
push 0x438300
call fcn.0042ec3f
push esi
lea eax, [ebp - 0x488]
mov dword [ebp - 4], esi
push eax
mov ecx, ebx
call fcn.0042f4ee
cmp eax, 0xffffffff
lea ecx, [ebp - 0x478]
setne bl
or dword [ebp - 4], 0xffffffff
call fcn.00425f00
lea ecx, [ebp - 0x480]
call fcn.00425f00
test bl, bl
je 0x433373
mov eax, 0xffffe8c2
jmp 0x433561
mov ebx, dword [ebp - 0x470]
mov ecx, ebx
call fcn.0042f6ee
lea ecx, [ebp - 0x46c]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4334c0
mov ecx, ebx
call fcn.0042f6ee
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0x105
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
jne 0x4333c4
inc eax
jmp 0x433561
cmp ebx, 0x105
jbe 0x4333d6
mov eax, 0xffffe8c1
jmp 0x433561
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.0042ec91
lea eax, [ebp - 0x488]
mov dword [ebp - 4], 1
push eax
call main
pop ecx
test eax, eax
je 0x433418
mov dword [edi], 2
mov dword [edi + 4], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
jmp 0x433483
movzx eax, word [ebp + ebx*2 - 0x21e]
push eax
call main
add esp, 4
test al, al
je 0x433469
lea ebx, [ebx*2 - 2]
cmp ebx, 0x20a
jae 0x43350e
xor eax, eax
mov word [ebp + ebx - 0x21c], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x4334a0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x43347e
cmp eax, 3
je 0x43347e
xor esi, esi
inc esi
jmp 0x433483
mov esi, 0xffffe8c2
lea ecx, [ebp - 0x478]
call fcn.00425f00
lea ecx, [ebp - 0x480]
call fcn.00425f00
mov eax, esi
jmp 0x433561
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00425f00
lea ecx, [ebp - 0x480]
call fcn.00425f00
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
inc eax
cmp dword [ebp - 0x450], 0
mov dword [edi], eax
je 0x433513
push esi
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.0042ec3f
push 0x439d00
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR120.dll__CxxThrowException
call fcn.00433d64
mov eax, dword [ebp - 0x44c]
lea esi, [edi + 0x10]
mov dword [edi + 4], eax
lea eax, [ebp - 0x458]
push esi
push eax
call main
cmp dword [ebp - 0x468], 0
pop ecx
pop ecx
jne 0x43354d
cmp dword [ebp - 0x464], 0
jne 0x43354d
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x43355f
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x468]
push eax
call main
pop ecx
pop ecx
xor eax, eax
call fcn.00434390
ret