joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.004351f0
push 0xffffffffffffffff
push 0x449250
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x405287
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4050f6
sub eax, edx
sar eax, 1
je 0x405287
push 0x800
push ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.00431f30
push 0x800
push ebx
lea ecx, [ebp]
push ecx
call fcn.00431f30
push 0x800
push ebx
lea edx, [ebp + 0x800]
push edx
call fcn.00431f30
mov eax, esi
lea ecx, [ebp + 0x1000]
call fcn.00401790
mov eax, esi
lea ecx, [ebp]
call fcn.00401790
lea eax, [ebp + 0x1000]
push eax
push str.Run_Command_:__s
mov ecx, 0x466208
call fcn.00405f80
add esp, 0x2c
cmp edi, ebx
je 0x405198
mov eax, edi
lea ecx, [ebp + 0x800]
call fcn.00401790
lea ecx, [ebp + 0x800]
push ecx
push str.Run_Command_Parameter_:__s
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], str.open
lea edx, [ebp + 0x800]
mov dword [ebp - 0x3c], edx
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x50], 0x3c
mov ecx, 0x453204
lea edx, [ebp]
call fcn.00408750
mov ecx, 0x453204
lea edx, [ebp]
call fcn.00408900
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405267
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405247
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp + 0x1000]
push ecx
push str.__s__s__Executed__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x466208
call fcn.00405e40
add esp, 0xc
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.call_Shell_execute_End
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
jmp 0x405280
lea eax, [ebp + 0x1000]
push eax
push str.Run_execut__s___Fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x466208
call fcn.00405e40
jmp 0x40527d
lea ecx, [ebp + 0x1000]
push ecx
push str.__s__file_not_found__
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0x1804
mov esp, ebp
pop ebp
ret
Function at 0x405390
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449220
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
xor esi, esi
mov dword [ebp - 0x824], esi
push 0x800
push esi
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00431f30
add esp, 0xc
mov edx, 2
mov dword [ebp - 0x848], edx
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x83c], 1
mov dword [ebp - 0x840], 3
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x838], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x4054a9
mov eax, edi
lea ecx, [eax + 2]
mov dword [ebp - 0x820], ecx
mov cx, word [eax]
add eax, edx
cmp cx, si
jne 0x405440
sub eax, dword [ebp - 0x820]
sar eax, 1
je 0x4054a9
mov eax, edi
lea ecx, [ebp - 0x81c]
call fcn.00401790
push 8
push ebx
mov edx, dword [ebp - 0x828]
push edx
lea eax, [ebp - 0x848]
push eax
push esi
call sub.MPR.dll_WNetAddConnection3W
mov dword [ebp - 0x824], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00430ff6
mov esp, ebp
pop ebp
ret 4
mov eax, 0x43
jmp 0x40548b
Function at 0x405c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4491f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.004351f0
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1018]
push eax
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x818]
push ecx
call fcn.00431f30
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x1818]
push edx
call fcn.00431f30
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x405cf9
mov al, 1
jmp 0x405de6
push 0x400
lea eax, [ebp - 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405d27
mov byte [ebp - 0x181a], bl
push 0x45b9b8
lea ecx, [ebp - 0x181a]
push ecx
call fcn.0043521b
push 0x5c
lea edx, [ebp - 0x1018]
push edx
call fcn.0043160a
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x405d43
add edi, 2
jmp 0x405d48
mov edi, str.SSLog
lea eax, [ebp - 0x818]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea ecx, [ebp - 0x818]
push ecx
push str._s_s.log
push 0x400
lea edx, [ebp - 0x1818]
push edx
call fcn.00431005
add esp, 0x14
push ebx
push 0x80
push 4
push ebx
mov ebx, 1
push ebx
push 0xc0000000
lea eax, [ebp - 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 0x1819], cl
mov byte [esi + 0x208], bl
lea ecx, [esi + 8]
mov eax, str.Common_Installer_3
call fcn.004017b0
mov ecx, esi
call fcn.00406160
lea edx, [ebp - 0x1818]
push edx
call fcn.00407ed0
add esp, 4
mov byte [ebp - 0x1819], bl
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1819]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00430ff6
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d00
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.004351f0
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x405f52
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.00431f30
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.00431f30
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.0043122a
add esp, 0x28
test edi, edi
je 0x405f24
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x405f24
push eax
push edi
lea eax, [esi + 8]
push eax
push str.___s___Error_Code___d_:_s
push 0x1000
lea ecx, [ebp - 0x4014]
push ecx
call fcn.00431005
add esp, 0x18
mov edx, dword [ebp - 0x4018]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.00406060
test edi, edi
je 0x405f4b
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00430ff6
mov esp, ebp
pop ebp
ret
Function at 0x406470
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa004]
mov eax, 0xa004
call fcn.004351f0
push 0xffffffffffffffff
push 0x448c70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0xa000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x4064cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
mov esi, eax
cmp esi, ebx
jne 0x4064d9
xor eax, eax
jmp 0x40655b
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0xa000
push ebx
lea eax, [ebp]
push eax
call fcn.00431f30
add esp, 0xc
cmp byte [ebp + 0xa00c], bl
je 0x406516
push 0x9fff
push edi
push 0xa000
lea ecx, [ebp]
push ecx
call fcn.00431903
add esp, 0x10
jmp 0x40652c
push ebx
push ebx
push 0xa000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406532
sub eax, edx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa000]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0xa004
mov esp, ebp
pop ebp
ret 4
Function at 0x407280
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004351f0
push 0xffffffffffffffff
push 0x449150
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.00431f30
add esp, 0xc
mov dword [ebp - 4], esi
push str.__Get_Required_Directory_Paths__
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4073c2
lea edx, [ebp + 0x800]
push edx
push esi
push str.7zipTemp
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407353
push str.Get_Temp_File_Name_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x466208
call fcn.00405e40
push str.7zipTemp
lea ecx, [ebp]
push ecx
push str._s_s000
lea edx, [ebp + 0x800]
call fcn.00405ac0
add esp, 0x10
push 0x2e
lea edx, [ebp + 0x800]
push edx
call fcn.0043160a
add esp, 8
cmp eax, esi
je 0x40736b
mov word [eax], si
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407374
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x7fe], 0x5c
jne 0x4073ae
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407397
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 + 0x7fe], si
lea eax, [ebp + 0x800]
push eax
push 0x400
push edi
call fcn.00430ec1
jmp 0x4073db
push 0x800
push esi
lea ecx, [ebp + 0x800]
push ecx
call fcn.00431f30
mov dword [ebp - 0x14], 3
add esp, 0xc
lea edx, [ebp + 0x800]
push edx
push str.Temparary_Directory_Path_:___s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x4076c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x449120
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x407809
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407710
sub eax, edx
sar eax, 1
je 0x407809
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00431f30
add esp, 0xc
mov eax, edi
lea ecx, [ebp]
call fcn.00401790
mov ecx, 0x45574c
lea edx, [ebp]
call fcn.00408750
mov ecx, 0x45574c
lea edx, [ebp]
call fcn.00408900
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4077a6
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x466208
call fcn.00405e40
add esp, 8
mov dword [ebp - 0x18], esi
push 0x45b9ec
lea eax, [ebp - 0x18]
push eax
call fcn.0043521b
sub eax, 2
je 0x4077fb
sub eax, 3
je 0x4077d6
lea ecx, [ebp]
sub eax, 0x1b
je 0x4077e8
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x466208
call fcn.00405e40
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x40784c
push 0x80
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00407bc0
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x40784c
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x40784c
mov eax, 0x57
jmp 0x40784e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x407bc0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004351f0
push 0xffffffffffffffff
push 0x4490f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x407d60
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407c17
sub eax, edx
sar eax, 1
je 0x407d60
push 0x5c
push edi
call fcn.0043160a
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x407d60
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.00431f30
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x407c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x45b9ec
lea edx, [ebp - 0x1c]
push edx
call fcn.0043521b
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00431f30
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x45b9ec
lea eax, [ebp - 0x24]
push eax
call fcn.0043521b
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x407cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x45b9ec
lea edx, [ebp - 0x20]
push edx
call fcn.0043521b
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x407d17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x45b9ec
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043521b
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x466208
call fcn.00405f80
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00430ff6
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x407d3b
Function at 0x407dc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4490d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4615e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
test edx, edx
je 0x407e49
mov eax, edx
lea esi, [eax + 2]
jmp 0x407e00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e00
sub eax, esi
sar eax, 1
je 0x407e49
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x14], eax
cmp eax, 0x50
je 0x407e2b
cmp eax, 0xb7
jne 0x407e30
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4615e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x40b5a4
cmp ebx, edi
je 0x40b5a4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b4b3
sub eax, edx
sar eax, 1
je 0x40b5a4
cmp dword [ebp + 0xc], edi
je 0x40b5a4
cmp dword [ebp + 0x10], edi
je 0x40b5a4
cmp esi, edi
je 0x40b521
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b4e3
sub eax, edx
sar eax, 1
je 0x40b521
lea eax, [ebp - 0x18]
push eax
push 0x20019
push edi
push esi
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40b527
mov dword [ebp - 0x24], eax
push 0x45b9ec
lea edx, [ebp - 0x24]
push edx
call fcn.0043521b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004155e3
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x40b551
mov dword [ebp - 0x28], 0xe
push 0x45b9ec
lea edx, [ebp - 0x28]
push edx
call fcn.0043521b
lea eax, [ebp + 0x10]
push eax
push esi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x14]
je 0x40b586
mov dword [ebp - 0x2c], 0x57
push 0x45b9ec
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0043521b
mov eax, dword [ebp + 0x10]
push eax
push esi
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00430942
add esp, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x40b5e2
mov dword [ebp - 0x30], 0x57
push 0x45b9ec
lea eax, [ebp - 0x30]
push eax
call fcn.0043521b
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40b5e0
ret
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x40b5f5
cmp eax, dword [ebp + 8]
je 0x40b5f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40b605
push eax
call fcn.004155e8
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c410
Capabilities:
Create directory

Disassembly:
mov eax, 0x1018
call fcn.004351f0
mov eax, dword [0x4615e0]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
cmp esi, ebx
push edi
mov dword [esp + 0x18], 0x5c
mov dword [esp + 0x14], ebx
je 0x40c59d
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c450
sub eax, edx
sar eax, 1
je 0x40c59d
cmp byte [esp + 0x102c], bl
jne 0x40c49e
push 0x5c
push esi
call fcn.0043160a
add esp, 8
cmp eax, ebx
je 0x40c59d
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x828]
push 0x400
push eax
call fcn.00430f2d
add esp, 0x10
jmp 0x40c4b4
push esi
lea ecx, [esp + 0x824]
push 0x400
push ecx
call fcn.00430ec1
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x828]
push ecx
call fcn.00430af3
add esp, 0xc
cmp eax, ebx
je 0x40c599
push eax
lea edx, [esp + 0x24]
push 0x400
push edx
call fcn.00430ec1
add esp, 0xc
push 0x455b20
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.004319b6
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00430af3
add esp, 0xc
cmp eax, ebx
je 0x40c597
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40c530
sub ecx, esi
sar ecx, 1
je 0x40c597
push eax
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.004319b6
add esp, 0xc
push 0x455b20
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.004319b6
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
jne 0x40c580
call ebp
cmp eax, 0xb7
jne 0x40c59d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00430af3
add esp, 0xc
cmp eax, ebx
jne 0x40c527
mov bl, 1
mov al, bl
jmp 0x40c59f
xor al, al
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430ff6
add esp, 0x1018
ret 4
Function at 0x40e730
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x100ac], ebx
push edi
mov dword [esp + 8], ebx
je 0x40e7e9
cmp dword [esi + 0x7c], ebx
jbe 0x40e7e9
mov ebx, 0xffffff5c
lea edi, [esi + 0xa4]
sub ebx, esi
push ebp
lea esp, [esp]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebp, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebp + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebp + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
shr eax, 8
xor byte [edi], al
add edi, 1
lea ecx, [ebx + edi]
cmp ecx, dword [esi + 0x7c]
jb 0x40e760
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, edi
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x40e812
mov dword [esp + 8], 0xffffffff
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 8]
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
pop edi
mov dword [esi + 0x48], ebx
adc dword [esi + 0x100cc], ebx
mov dword [esi + 0x7c], ebx
pop ebx
pop ecx
ret