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

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.00435250
push 0xffffffffffffffff
push 0x4492b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4625e0]
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 0x405277
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4050e6
sub eax, edx
sar eax, 1
je 0x405277
push 0x800
push ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.00431f90
push 0x800
push ebx
lea ecx, [ebp]
push ecx
call fcn.00431f90
push 0x800
push ebx
lea edx, [ebp + 0x800]
push edx
call fcn.00431f90
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, 0x467200
call fcn.00405f70
add esp, 0x2c
cmp edi, ebx
je 0x405188
mov eax, edi
lea ecx, [ebp + 0x800]
call fcn.00401790
lea ecx, [ebp + 0x800]
push ecx
push str.Run_Command_Parameter_:__s
mov ecx, 0x467200
call fcn.00405f70
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, 0x454204
lea edx, [ebp]
call fcn.004087b0
mov ecx, 0x454204
lea edx, [ebp]
call fcn.00408960
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405257
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405237
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, 0x467200
call fcn.00405e30
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, 0x467200
call fcn.00405f70
add esp, 4
jmp 0x405270
lea eax, [ebp + 0x1000]
push eax
push str.Run_execut__s___Fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x467200
call fcn.00405e30
jmp 0x40526d
lea ecx, [ebp + 0x1000]
push ecx
push str.__s__file_not_found__
mov ecx, 0x467200
call fcn.00405f70
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.00431056
add ebp, 0x1804
mov esp, ebp
pop ebp
ret
Function at 0x405380
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449280
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x4625e0]
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.00431f90
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 0x405499
mov eax, edi
lea ecx, [eax + 2]
mov dword [ebp - 0x820], ecx
mov cx, word [eax]
add eax, edx
cmp cx, si
jne 0x405430
sub eax, dword [ebp - 0x820]
sar eax, 1
je 0x405499
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.00431056
mov esp, ebp
pop ebp
ret 4
mov eax, 0x43
jmp 0x40547b
Function at 0x405c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449250
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.00435250
mov eax, dword [0x4625e0]
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.00431f90
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x818]
push ecx
call fcn.00431f90
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x1818]
push edx
call fcn.00431f90
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x405ce9
mov al, 1
jmp 0x405dd6
push 0x400
lea eax, [ebp - 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405d17
mov byte [ebp - 0x181a], bl
push 0x45caa8
lea ecx, [ebp - 0x181a]
push ecx
call fcn.0043527b
push 0x5c
lea edx, [ebp - 0x1018]
push edx
call fcn.0043166a
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x405d33
add edi, 2
jmp 0x405d38
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.00431065
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.00406150
lea edx, [ebp - 0x1818]
push edx
call fcn.00407f30
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.00431056
mov esp, ebp
pop ebp
ret
Function at 0x405e30
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d60
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.00435250
mov eax, dword [0x4625e0]
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 0x405f42
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.00431f90
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.00431f90
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.0043128a
add esp, 0x28
test edi, edi
je 0x405f14
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 0x405f14
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.00431065
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.00406050
test edi, edi
je 0x405f3b
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.00406050
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.00431056
mov esp, ebp
pop ebp
ret
Function at 0x406460
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa004]
mov eax, 0xa004
call fcn.00435250
push 0xffffffffffffffff
push 0x448cd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4625e0]
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 0x4064bc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
mov esi, eax
cmp esi, ebx
jne 0x4064c9
xor eax, eax
jmp 0x40654b
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.00431f90
add esp, 0xc
cmp byte [ebp + 0xa00c], bl
je 0x406506
push 0x9fff
push edi
push 0xa000
lea ecx, [ebp]
push ecx
call fcn.00431963
add esp, 0x10
jmp 0x40651c
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 0x406522
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.00431056
add ebp, 0xa004
mov esp, ebp
pop ebp
ret 4
Function at 0x4072e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00435250
push 0xffffffffffffffff
push 0x4491b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4625e0]
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.00431f90
add esp, 0xc
mov dword [ebp - 4], esi
push str.__Get_Required_Directory_Paths__
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407422
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 0x4073b3
push str.Get_Temp_File_Name_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x467200
call fcn.00405e30
push str.7zipTemp
lea ecx, [ebp]
push ecx
push str._s_s000
lea edx, [ebp + 0x800]
call fcn.00405ab0
add esp, 0x10
push 0x2e
lea edx, [ebp + 0x800]
push edx
call fcn.0043166a
add esp, 8
cmp eax, esi
je 0x4073cb
mov word [eax], si
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4073d4
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x7fe], 0x5c
jne 0x40740e
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4073f7
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.00430f21
jmp 0x40743b
push 0x800
push esi
lea ecx, [ebp + 0x800]
push ecx
call fcn.00431f90
mov dword [ebp - 0x14], 3
add esp, 0xc
lea edx, [ebp + 0x800]
push edx
push str.Temparary_Directory_Path_:___s_
mov ecx, 0x467200
call fcn.00405f70
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.00431056
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x407720
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x449180
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4625e0]
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 0x407869
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407770
sub eax, edx
sar eax, 1
je 0x407869
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00431f90
add esp, 0xc
mov eax, edi
lea ecx, [ebp]
call fcn.00401790
mov ecx, 0x45685c
lea edx, [ebp]
call fcn.004087b0
mov ecx, 0x45685c
lea edx, [ebp]
call fcn.00408960
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x407806
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x467200
call fcn.00405e30
add esp, 8
mov dword [ebp - 0x18], esi
push 0x45cadc
lea eax, [ebp - 0x18]
push eax
call fcn.0043527b
sub eax, 2
je 0x40785b
sub eax, 3
je 0x407836
lea ecx, [ebp]
sub eax, 0x1b
je 0x407848
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x467200
call fcn.00405e30
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x4078ac
push 0x80
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00407c20
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4078ac
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4078ac
mov eax, 0x57
jmp 0x4078ae
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.00431056
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x407c20
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00435250
push 0xffffffffffffffff
push 0x449150
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4625e0]
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 0x407dc0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407c77
sub eax, edx
sar eax, 1
je 0x407dc0
push 0x5c
push edi
call fcn.0043166a
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x407dc0
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.00431f90
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x407cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x45cadc
lea edx, [ebp - 0x1c]
push edx
call fcn.0043527b
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00431f90
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 0x407d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x45cadc
lea eax, [ebp - 0x24]
push eax
call fcn.0043527b
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x407d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x45cadc
lea edx, [ebp - 0x20]
push edx
call fcn.0043527b
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x407d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x45cadc
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043527b
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, 0x467200
call fcn.00405f70
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.00431056
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x407d9b
Function at 0x407e20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449130
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4625e0]
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 0x407ea9
mov eax, edx
lea esi, [eax + 2]
jmp 0x407e60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e60
sub eax, esi
sar eax, 1
je 0x407ea9
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x14], eax
cmp eax, 0x50
je 0x407e8b
cmp eax, 0xb7
jne 0x407e90
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 0x40b4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448c50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4625e0]
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 0x40b604
cmp ebx, edi
je 0x40b604
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b513
sub eax, edx
sar eax, 1
je 0x40b604
cmp dword [ebp + 0xc], edi
je 0x40b604
cmp dword [ebp + 0x10], edi
je 0x40b604
cmp esi, edi
je 0x40b581
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b543
sub eax, edx
sar eax, 1
je 0x40b581
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 0x40b587
mov dword [ebp - 0x24], eax
push 0x45cadc
lea edx, [ebp - 0x24]
push edx
call fcn.0043527b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00415643
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x40b5b1
mov dword [ebp - 0x28], 0xe
push 0x45cadc
lea edx, [ebp - 0x28]
push edx
call fcn.0043527b
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 0x40b5e6
mov dword [ebp - 0x2c], 0x57
push 0x45cadc
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0043527b
mov eax, dword [ebp + 0x10]
push eax
push esi
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004309a2
add esp, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x40b642
mov dword [ebp - 0x30], 0x57
push 0x45cadc
lea eax, [ebp - 0x30]
push eax
call fcn.0043527b
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40b640
ret
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x40b655
cmp eax, dword [ebp + 8]
je 0x40b655
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40b665
push eax
call fcn.00415648
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 0x40c470
Capabilities:
Create directory

Disassembly:
mov eax, 0x1018
call fcn.00435250
mov eax, dword [0x4625e0]
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 0x40c5fd
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c4b0
sub eax, edx
sar eax, 1
je 0x40c5fd
cmp byte [esp + 0x102c], bl
jne 0x40c4fe
push 0x5c
push esi
call fcn.0043166a
add esp, 8
cmp eax, ebx
je 0x40c5fd
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x828]
push 0x400
push eax
call fcn.00430f8d
add esp, 0x10
jmp 0x40c514
push esi
lea ecx, [esp + 0x824]
push 0x400
push ecx
call fcn.00430f21
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x828]
push ecx
call fcn.00430b53
add esp, 0xc
cmp eax, ebx
je 0x40c5f9
push eax
lea edx, [esp + 0x24]
push 0x400
push edx
call fcn.00430f21
add esp, 0xc
push 0x456c30
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00431a16
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00430b53
add esp, 0xc
cmp eax, ebx
je 0x40c5f7
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 0x40c590
sub ecx, esi
sar ecx, 1
je 0x40c5f7
push eax
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00431a16
add esp, 0xc
push 0x456c30
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.00431a16
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
jne 0x40c5e0
call ebp
cmp eax, 0xb7
jne 0x40c5fd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00430b53
add esp, 0xc
cmp eax, ebx
jne 0x40c587
mov bl, 1
mov al, bl
jmp 0x40c5ff
xor al, al
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431056
add esp, 0x1018
ret 4
Function at 0x40e790
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 0x40e849
cmp dword [esi + 0x7c], ebx
jbe 0x40e849
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 0x40e7c0
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 0x40e872
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