joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a290
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40a2d5
cmp byte [esi + 1], 0
je 0x40a2dd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40a2f2
cmp byte [esi + 1], 0
je 0x40a2e4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40a2fb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40a2ae
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40a2fb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40a30f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040c2d2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40a32d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x40a441
jmp 0x40a350
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x40a361
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40a37a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40a39f
cmp byte [esi + 1], 0
je 0x40a441
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40a3a2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40a3ca
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a3c4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40a3f0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40a3db
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00413720
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40a441
lea eax, [ebp - 3]
test eax, eax
jl 0x40a42c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40a41c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40a41c
cmp byte [eax + ebx + 2], 5
jne 0x40a41c
cmp byte [eax + ebx + 3], 6
je 0x40a422
test eax, eax
jge 0x40a400
jmp 0x40a42c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40a441
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40a344
push ebx
call fcn.0040c447
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40ae10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40ae2e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40ae22
cmp dword [edi + 0x7c], ebx
je 0x40ae3d
call fcn.0040b200
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040ab80
add esp, 0xc
test eax, eax
je 0x40ae64
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0040c2d2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40aea5
push 0x4000
call fcn.0040c2d2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40aeb2
push esi
call fcn.0040c447
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40aefa
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00409cd0
test eax, eax
jne 0x40aefa
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40af24
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40af2d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x40af67
mov cl, byte [ebp]
cmp cl, bl
je 0x40af67
call fcn.004099c0
add ebp, 1
jne 0x40af56
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40b360
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x40b413
cmp dword [esi + 4], 0xffffffff
jne 0x40b413
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x40b390
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b390
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40b3c9
cmp ax, 0x2f
je 0x40b3c9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b3b6
mov eax, dword [0x41fd40]
mov dword [edi], eax
push 0x20
call fcn.0040bead
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0040a460
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x40bc96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424044]
jne 0x40bca0
repz ret
jmp fcn.0040dbd4

Function at 0x4173e2
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.0040faaf
and dword [ebp - 4], 0
cmp dword [0x4bc988], 0
mov ebx, eax
jne 0x417493
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417544
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417544
push eax
call fcn.0040fa3d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4bc988], eax
call esi
push eax
call fcn.0040fa3d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4bc98c], eax
call esi
push eax
call fcn.0040fa3d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4bc990], eax
call esi
push eax
call fcn.0040fa3d
pop ecx
mov dword [0x4bc998], eax
test eax, eax
je 0x417493
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fa3d
pop ecx
mov dword [0x4bc994], eax
mov eax, dword [0x4bc994]
cmp eax, ebx
je 0x4174eb
cmp dword [0x4bc998], ebx
je 0x4174eb
push eax
call fcn.0040fab8
push dword [0x4bc998]
mov esi, eax
call fcn.0040fab8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4174eb
test edi, edi
je 0x4174eb
call esi
test eax, eax
je 0x4174e2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4174e2
test byte [ebp - 0xc], 1
jne 0x4174eb
or dword [ebp + 0x10], 0x200000
jmp 0x417524
mov eax, dword [0x4bc98c]
cmp eax, ebx
je 0x417524
push eax
call fcn.0040fab8
pop ecx
test eax, eax
je 0x417524
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417524
mov eax, dword [0x4bc990]
cmp eax, ebx
je 0x417524
push eax
call fcn.0040fab8
pop ecx
test eax, eax
je 0x417524
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bc988]
call fcn.0040fab8
pop ecx
test eax, eax
je 0x417544
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417546
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40238b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e4f8]
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 0x4023f1
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004323c0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023f1
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401357
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043219b
leave
ret
Function at 0x402f9a
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x442dd8
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 0x403036
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 0x403036
cmp dword [esi + 4], ebx
je 0x403036
cmp dword [esi + 8], ebx
je 0x403036
cmp dword [esi + 0xc], ebx
je 0x403036
cmp dword [esi + 0x10], ebx
je 0x403036
cmp eax, ebx
je 0x403036
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40413d
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.004323c0
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.004323c0
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404183
mov esi, dword [esi + 4]
jmp 0x404186
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404194
mov eax, dword [eax + 4]
jmp 0x404197
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 0x4041c3
cmp dword [ebp - 0x14], ebx
je 0x4041bf
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041c5
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x40500b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e4f8]
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 0x405034
mov eax, dword [eax + 4]
jmp 0x405037
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 0x40504c
xor al, al
jmp 0x405094
cmp dword [ebp - 0x24], edi
jle 0x405080
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x40506e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011fc
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405051
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011c7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043219b
leave
ret 4
Function at 0x40762a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40764b
mov eax, dword [eax + 4]
jmp 0x40764e
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 0x407675
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043219b
leave
ret 4

Function at 0x409bad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44e4f8]
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.004050f5
lea ecx, [ebp - 0x250]
call fcn.0041010b
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409bf5
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.004323c0
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 0x409c70
push eax
call ebx
test eax, eax
je 0x409c70
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409c70
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401357
jmp 0x409c99
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409c99
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409c8d
mov eax, dword [eax + 4]
jmp 0x409c90
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c12c
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.00401708
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401471
push 0x443184
push edi
call fcn.0040c8f5
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409dc8
cmp dword [ebx + 0x88], 0
je 0x409dc8
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c75e
test al, al
jne 0x409dc8
lea esi, [ebp - 0x298]
call fcn.00402f9a
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401ac5
call fcn.0040c998
push 0x25
push 0x3a
call fcn.0040c87a
push 0x25
push 0x5c
call fcn.0040c87a
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403049
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401471
cmp byte [ebp - 0x251], 0
je 0x409dae
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040317f
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401471
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401471
lea eax, [ebp - 0x298]
call fcn.0040303a
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043219b
leave
ret
Function at 0x40c022
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44e4f8]
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.004323c0
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 0x40c075
xor al, al
jmp 0x40c0ae
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c096
cmp dword [ebp - 0x80], edi
je 0x40c071
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c071
lea eax, [ebp - 0x7c]
call fcn.00401357
cmp dword [ebp - 0x80], edi
je 0x40c0ac
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.0043219b
add ebp, 0x398
leave
ret

Function at 0x40c0c5
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.004323c0
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.exe
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 0x40c128
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c12c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e4f8]
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.004013c5
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c16b
call fcn.00401ac5
mov eax, esi
jmp 0x40c207
lea esi, [ebp - 0x20]
call fcn.00401ac5
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c181
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 0x40c199
mov eax, edi
jmp 0x40c1ef
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431e7d
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c1bf
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c1e3
cmp eax, esi
ja 0x40c1e3
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401357
push dword [ebp - 0x24]
call fcn.00432088
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401ac5
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043219b
leave
ret
Function at 0x40d21f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d971
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d254
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d27e
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043219b
leave
ret
xor bl, bl
jmp 0x40d262

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d971
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d2b7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2e5
test al, 0x10
jne 0x40d2e5
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043219b
leave
ret
xor bl, bl
jmp 0x40d2c9

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401ac5
mov eax, esi
push 0x24
push eax
call fcn.0040d971
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d31e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d34c
test al, 0x10
je 0x40d34c
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401471
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043219b
leave
ret
xor bl, bl
jmp 0x40d330

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d35e
mov eax, dword [esi]
jmp 0x40d360
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d37b
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040dbf9
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d383
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40d392
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44e4f8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401ac5
mov eax, esi
push 0x10
push eax
call fcn.0040d971
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d0e3
lea esi, [esp + 0x1c]
call fcn.0040d84c
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fd3
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d87c
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401471
cmp byte [esp + 0x1b], bl
je 0x40d510
lea esi, [esp + 0x58]
call fcn.0040d1d4
test al, al
jne 0x40d4fa
mov eax, esi
call fcn.0040d1c1
test al, al
mov eax, esi
je 0x40d45d
call fcn.0040d1bd
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
push eax
call fcn.0040d392
add esp, 0xc
jmp 0x40d480
call fcn.0040d1bd
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d350
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d4ee
lea esi, [esp + 0x58]
call fcn.0040d1d4
test al, al
jne 0x40d4fa
mov eax, esi
call fcn.0040d1c1
test al, al
mov eax, esi
je 0x40d4c3
call fcn.0040d1bd
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
push eax
call fcn.0040d392
add esp, 0xc
jmp 0x40d4e6
call fcn.0040d1bd
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00402005
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d350
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401471
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d8e9
test al, al
jne 0x40d48a
lea eax, [esp + 0x1c]
call fcn.0040d93a
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d971
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d536
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d552
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040dbf9
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d561
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d575
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d864
lea eax, [esp + 0x58]
call fcn.0040d111
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401471
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043219b
mov esp, ebp
pop ebp
ret