joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40203d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
mov byte [ebp - 1], 0
jb 0x402064
mov eax, dword [eax + 4]
jmp 0x402067
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
push 0x20019
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40210e
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
lea ebx, [esi + 4]
jb 0x402093
mov eax, dword [ebx]
jmp 0x402095
mov eax, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x402105
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040345e
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x4020c8
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
push edi
mov byte [edi + eax], 0
call fcn.00401c71
push edi
call fcn.004040e5
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402105
mov al, 1
jmp 0x402110
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40221e
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 8
mov eax, 0x41052a
call fcn.00403ee5
mov eax, dword [ebp + 0x24c]
mov edi, dword [ebp + 0x250]
mov esi, dword [ebp + 0x254]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x258]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], ecx
je 0x4022c0
cmp dword [eax + 0x18], 0x10
jb 0x402272
mov eax, dword [eax + 4]
jmp 0x402275
add eax, 4
cmp dword [esi + 0x18], 0x10
jb 0x402280
mov esi, dword [esi + 4]
jmp 0x402283
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x40228e
mov edi, dword [edi + 4]
jmp 0x402291
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4022b9
lea eax, [ebp + 0x38]
push eax
call fcn.00401cdf
jmp 0x4023a3
push 0x4111c9
jmp 0x4022af
test byte [0x41619c], 1
mov ebx, 0x416180
jne 0x4022f4
or dword [0x41619c], 1
push ecx
mov ecx, ebx
mov dword [0x416198], 0xf
call fcn.004015cf
push 0x410842
call fcn.004040ce
pop ecx
xor ecx, ecx
cmp dword [0x416194], ecx
jne 0x40239a
lea eax, [ebp]
push eax
call fcn.00401ef2
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x40238a
push str.Confuserconfig.ini
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401d23
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x402339
lea eax, [ebp + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x402344
mov esi, dword [esi + 4]
jmp 0x402347
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x402352
mov edi, dword [edi + 4]
jmp 0x402355
add edi, 4
push eax
push 0x104
lea eax, [ebp + 0x13c]
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40237e
lea eax, [ebp + 0x13c]
push eax
mov ecx, ebx
call fcn.00401c71
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004017b3
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp]
call fcn.004017b3
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00401bfe
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00403829
add ebp, 0x244
leave
ret
Function at 0x402519
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 4
mov eax, 0x41058a
call fcn.00403ee5
mov esi, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403840
add esp, 0xc
push 1
push dword [ebp + 0x130]
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x4025a5
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401cdf
push 0x4114d4
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401c4e
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00401bfe
push edi
push 1
lea ecx, [ebp]
call fcn.004017b3
jmp 0x4025b1
push 0x4111ca
mov ecx, esi
call fcn.00401cdf
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 + 0x120]
xor ecx, ebp
call fcn.00403829
add ebp, 0x124
leave
ret

Function at 0x4027f1
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 8
mov eax, 0x410642
call fcn.00403ee5
mov eax, dword [ebp + 0x148]
xor edi, edi
test byte [0x4161dc], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov esi, 0x4161c0
jne 0x402855
or dword [0x4161dc], 1
push edi
mov ecx, esi
mov dword [0x4161d8], 0xf
call fcn.004015cf
push 0x410833
call fcn.004040ce
pop ecx
cmp dword [0x4161d4], edi
jne 0x4028d8
lea eax, [ebp]
push eax
call fcn.00401ef2
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
je 0x4028c9
push 0x4112d8
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00401d23
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
jae 0x402894
lea eax, [ebp + 0x20]
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push edi
push 0x4112f0
push 0x4112fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4028be
lea eax, [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00401c71
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004017b3
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.004017b3
mov ecx, dword [ebp - 0x10]
push esi
call fcn.00401bfe
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.00403829
add ebp, 0x140
leave
ret
Function at 0x403829
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415110]
jne 0x403833
repz ret
jmp fcn.00406071

Function at 0x40ec43
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040707e
and dword [ebp - 4], 0
cmp dword [0x416bac], 0
mov ebx, eax
jne 0x40ecf4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40eda5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412594
push edi
call esi
test eax, eax
je 0x40eda5
push eax
call fcn.0040700c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416bac], eax
call esi
push eax
call fcn.0040700c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416bb0], eax
call esi
push eax
call fcn.0040700c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416bb4], eax
call esi
push eax
call fcn.0040700c
pop ecx
mov dword [0x416bbc], eax
test eax, eax
je 0x40ecf4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040700c
pop ecx
mov dword [0x416bb8], eax
mov eax, dword [0x416bb8]
cmp eax, ebx
je 0x40ed4c
cmp dword [0x416bbc], ebx
je 0x40ed4c
push eax
call fcn.00407087
push dword [0x416bbc]
mov esi, eax
call fcn.00407087
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ed4c
test edi, edi
je 0x40ed4c
call esi
test eax, eax
je 0x40ed43
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ed43
test byte [ebp - 0xc], 1
jne 0x40ed4c
or dword [ebp + 0x10], 0x200000
jmp 0x40ed85
mov eax, dword [0x416bb0]
cmp eax, ebx
je 0x40ed85
push eax
call fcn.00407087
pop ecx
test eax, eax
je 0x40ed85
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ed85
mov eax, dword [0x416bb4]
cmp eax, ebx
je 0x40ed85
push eax
call fcn.00407087
pop ecx
test eax, eax
je 0x40ed85
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416bac]
call fcn.00407087
pop ecx
test eax, eax
je 0x40eda5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eda7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40151e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x401584
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0042f6b0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x401584
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.004015ae
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042f5f3
leave
ret
Function at 0x4022d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push str.advapi32.dll
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x402371
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x402371
cmp dword [esi + 4], ebx
je 0x402371
cmp dword [esi + 8], ebx
je 0x402371
cmp dword [esi + 0xc], ebx
je 0x402371
cmp dword [esi + 0x10], ebx
je 0x402371
cmp eax, ebx
je 0x402371
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x403929
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0042f6b0
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.0042f6b0
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x40396f
mov esi, dword [esi + 4]
jmp 0x403972
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x403980
mov eax, dword [eax + 4]
jmp 0x403983
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4039af
cmp dword [ebp - 0x14], ebx
je 0x4039ab
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4039b1
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x404839
mov eax, dword [eax + 4]
jmp 0x40483c
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x404851
xor al, al
jmp 0x404899
cmp dword [ebp - 0x24], edi
jle 0x404885
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.00401592
cmp dword [ebp - 0xc], 0
je 0x404873
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004048e9
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x404856
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004010a2
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret 4
Function at 0x406c78
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x406c99
mov eax, dword [eax + 4]
jmp 0x406c9c
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x406cc3
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f5f3
leave
ret 4

Function at 0x409349
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.00404ea0
lea ecx, [ebp - 0x250]
call fcn.0040f8ad
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409391
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042f6b0
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x40940c
push eax
call ebx
test eax, eax
je 0x40940c
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40940c
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.004015ae
jmp 0x409435
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409435
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409429
mov eax, dword [eax + 4]
jmp 0x40942c
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040b809
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004010d7
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.0040115f
push 0x44116c
push edi
call fcn.0040c3bf
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409564
cmp dword [ebx + 0x88], 0
je 0x409564
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c230
test eax, eax
je 0x409564
lea esi, [ebp - 0x298]
call fcn.004022d5
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401083
call fcn.0040c462
push 0x25
push 0x3a
call fcn.0040c344
push 0x25
push 0x5c
call fcn.0040c344
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401592
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00402384
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.0040115f
cmp byte [ebp - 0x251], 0
je 0x40954a
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401592
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.004024ba
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.0040115f
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.0040115f
lea eax, [ebp - 0x298]
call fcn.00402375
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.0040115f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret
Function at 0x40b6ff
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.0042f6b0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40b752
xor al, al
jmp 0x40b78b
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40b773
cmp dword [ebp - 0x80], edi
je 0x40b74e
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40b74e
lea eax, [ebp - 0x7c]
call fcn.004015ae
cmp dword [ebp - 0x80], edi
je 0x40b789
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.0042f5f3
add ebp, 0x398
leave
ret

Function at 0x40b7a2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.0042f6b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x40b805
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40b809
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.00404a88
cmp eax, 0xffffffff
mov eax, edi
jne 0x40b848
call fcn.00401083
mov eax, esi
jmp 0x40b8e4
lea esi, [ebp - 0x20]
call fcn.00401083
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40b85e
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40b876
mov eax, edi
jmp 0x40b8cc
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f3b1
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40b89c
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40b8c0
cmp eax, esi
ja 0x40b8c0
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.004015ae
push dword [ebp - 0x24]
call fcn.0042fd82
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401083
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042f5f3
leave
ret
Function at 0x40be1d
Capabilities:
Move file

Disassembly:
jmp 0x40ed4e
cmp dword [eax + 0x18], 8
jb 0x40ed59
mov eax, dword [eax + 4]
jmp 0x40ed5c
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40ed67
mov ecx, dword [ecx + 4]
jmp 0x40ed6a
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40be22
Capabilities:
Create directory

Disassembly:
jmp 0x40ed78
cmp dword [eax + 0x18], 8
jb 0x40ed83
mov eax, dword [eax + 4]
jmp 0x40ed86
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x441554
mov esi, ecx
call fcn.0042f72a
pop ecx
push eax
mov eax, esi
call fcn.0040c10c
cmp eax, 0xffffffff
jne 0x40be88
cmp dword [esi + 0x18], 8
jb 0x40be72
mov esi, dword [esi + 4]
jmp 0x40be75
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40bea5
lea eax, [ebp - 0x50]
call fcn.0040d8b1
push eax
push esi
call fcn.0040d884
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d8df
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401083
mov eax, esi
push 0x24
push eax
call fcn.0040cbad
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40ce6d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ce97
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret
xor bl, bl
jmp 0x40ce7b

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401083
mov eax, esi
push 0x24
push eax
call fcn.0040cbad
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40ced0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cefe
test al, 0x10
jne 0x40cefe
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret
xor bl, bl
jmp 0x40cee2
Function at 0x40cf02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401083
mov eax, esi
push 0x24
push eax
call fcn.0040cbad
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40cf37
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf65
test al, 0x10
je 0x40cf65
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret
xor bl, bl
jmp 0x40cf49

Function at 0x40cf69
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40cf77
mov eax, dword [esi]
jmp 0x40cf79
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf94
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040be12
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40cf9c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret