joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023b8
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.004029ca
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0xc]
call fcn.004029a9
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x514]
push 0x40e6e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x514]
push eax
push 0x3ec
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x40edb4], ebx
jne 0x402501
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add dword [0x40edb0], eax
push dword [0x40edb0]
call fcn.00402755
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x402505
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x40b0ec
push eax
call fcn.0040298e
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
push 0
push str.QTInstall
push str.32Bit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x402599
push 0
call fcn.00407ec0
test ax, ax
pop ecx
jne 0x402588
call fcn.00408070
lea eax, [ebp - 4]
push eax
push 0x7174696d
call fcn.00407c70
pop ecx
pop ecx
call fcn.00408090
call fcn.00408020
cmp dword [ebp - 4], 0x4128000
jge 0x402599
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040259b
pop ecx
pop ecx
leave
ret
Function at 0x40259b
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x25c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x104
lea eax, [ebp - 0x464]
push dword [ebp + 0xc]
mov ebx, 0x40de38
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallCaption
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x360]
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallMsg
push eax
call edi
lea eax, [ebp - 0x464]
push 0x34
push eax
lea eax, [ebp - 0x360]
push eax
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4026ed
push dword [ebp + 0xc]
lea eax, [ebp - 0x568]
push esi
push eax
push ebx
push str.QTInstallDir
push str.32Bit
call edi
push esi
lea eax, [ebp - 0x158]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004029a9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push str.QuickTimeInstaller.exe
push eax
call edi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00403240
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], si
call fcn.00403240
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4026ed
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
and byte [ebp - 0x114], 0
push 1
xor eax, eax
pop ebx
lea edi, [ebp - 0x113]
push 0x40
lea esi, [ebp - 0x114]
pop ecx
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x114], 0x5c
jne 0x402ac7
cmp byte [ebp - 0x113], 0x5c
jne 0x402ac7
push 2
lea esi, [ebp - 0x112]
pop ebx
xor ecx, ecx
test ebx, ebx
jle 0x402ae9
mov al, byte [esi]
test al, al
je 0x402ae9
cmp al, 0x5c
je 0x402adb
cmp al, 0x2f
jne 0x402ae4
inc ecx
cmp ecx, ebx
jne 0x402ae4
inc esi
and byte [esi], 0
inc esi
cmp ecx, ebx
jl 0x402acd
lea eax, [ebp - 0x114]
push eax
call fcn.00402a18
mov dword [esp], str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.GetDiskFreeSpaceExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x402b35
and dword [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call ecx
mov esi, eax
jmp 0x402b6c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
test esi, esi
je 0x402b6c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 4]
mov dword [eax], ecx
and dword [eax + 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402b7a
Capabilities:
Get common file path

Disassembly:
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 5
jge 0x402bb0
push dword [esp + 0x10]
push 0
push 0x40b210
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
test esi, esi
jne 0x402bab
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
test esi, esi
je 0x402b80
mov eax, esi
pop edi
pop esi
ret
Function at 0x402bb5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
and byte [ebp - 0x108], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a18
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b170
push eax
call edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402cdc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a18
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
mov eax, dword [ebp - 0x248]
test al, 1
je 0x402c80
dec eax
mov dword [ebp - 0x248], eax
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x248]
and eax, 0x10
test al, al
jne 0x402c96
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402cb5
cmp byte [ebp - 0x21c], 0x2e
je 0x402cb5
lea eax, [ebp - 0x108]
push eax
call fcn.00402bb5
pop ecx
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c32
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402ce0
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d0d
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x402d21
mov dword [eax], esi
jmp 0x402d21
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
Function at 0x407d50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push str.QuickTime.qts
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x407d98
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call esi
test eax, eax
jbe 0x407d98
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jbe 0x407e2c
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xf]
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x407e2c
mov cl, byte [eax]
cmp cl, 0x5c
je 0x407de1
cmp cl, 0x2f
je 0x407de1
dec eax
lea edx, [esp + 0x10]
cmp eax, edx
jae 0x407dca
jmp 0x407e2c
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x407e2c
mov byte [eax + 1], 0
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x407eac
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x407eac
mov edi, 0x40b1e8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x710c80
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop eax
add ebx, 0x51c71598
and ebx, ebx
sub ecx, ecx
call fcn.00710cb2
inc ecx
sub ecx, 0xb830f595
xor dword [esi], eax
dec ebx
inc esi
and ebx, ebx
cmp esi, edx
jne fcn.00710c80
mov ecx, 0x6282dc2
or ecx, ebx
ret
Function at 0x401c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c97
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401cc8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401cc4
cmp esi, eax
jae 0x401cc8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401cb4
cmp esi, eax
jb 0x401cce
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4022c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460728
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
je 0x4022f8
cmp word [ebx], 0
jne 0x402314
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
cmp ax, 0x20
je 0x402323
cmp ax, 9
jne 0x402328
add ebx, 2
jmp 0x402314
movzx eax, word [ebx]
mov esi, ebx
xor ecx, ecx
nop
cmp ax, 0x22
jne 0x40233f
xor eax, eax
test ecx, ecx
sete al
mov ecx, eax
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40235b
test ecx, ecx
jne 0x402330
cmp ax, 0x20
je 0x40235b
cmp ax, 9
jne 0x402330
mov edx, dword [0x474db4]
mov eax, dword [edx]
mov dword [esp + 0x18], ebx
sub ebx, esi
push 2
sar ebx, 1
push ebx
mov ecx, 0x474db4
call eax
test eax, eax
je 0x40245f
test ebx, ebx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
jl 0x402464
cmp ebx, dword [edi - 8]
jg 0x402464
mov dword [edi - 0xc], ebx
add ebx, ebx
push ebx
push esi
push ebx
push edi
mov word [ebx + edi], 0
call fcn.0041094b
add esp, 0x10
mov dword [esp + 0x28], 0
mov eax, dword [edi - 0xc]
cmp eax, 2
jl 0x40240e
test eax, eax
jl 0x402464
movzx ecx, word [edi]
cmp cx, 0x22
jne 0x40240e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x402464
cmp ecx, eax
jg 0x402464
movzx eax, word [edi + ecx*2]
cmp ax, 0x22
jne 0x40240e
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
call fcn.00402900
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x14]
add eax, 0xffffffff
push ecx
call fcn.00402900
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
call fcn.00402d30
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40243e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
cmp word [ecx], 0
jne 0x402310
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004018e0
push 0x80070057
call fcn.00401a20
int3
Function at 0x406d30
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45ba50
push 0
push 0
call fcn.004134ba
mov edx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [edx], eax
je 0x406d59
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406d68
mov eax, 1
pop ecx
ret 4

Function at 0x409cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45ff95
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [esp + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x10
mov dword [edi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov ecx, 1
mov byte [esp + 0x14], cl
lea esi, [edi + 0x30]
mov dword [edi + 0x28], ecx
mov byte [edi + 0x2c], al
push 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00406380
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x409e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45ff5a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 0x30]
push eax
call fcn.00410615
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x14]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x4685b0]
mov eax, dword [esi + 0xc]
push eax
call fcn.00410615
add esp, 4
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040a030
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40a790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4600b3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [esi], al
lea edi, [ebx + 4]
lea eax, [esi + 4]
call fcn.00407f30
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov byte [esp + 0x14], 1
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
lea edi, [ebx + 0x1c]
lea eax, [esi + 0x1c]
call fcn.00407f30
mov cl, byte [ebx + 0x28]
mov byte [esi + 0x28], cl
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x38], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x40fc07
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x472100]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040fb46
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413cd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40fc56
cmp dword [ebp - 0x1c], 5
jb 0x40fc6e
jmp 0x40fc6a
cmp dword [ebp - 0x10], 1
jne 0x40fc6e
cmp dword [ebp - 0x1c], 4
ja 0x40fc6a
jne 0x40fc6e
cmp dword [ebp - 0x18], 0
jbe 0x40fc6e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46131c
call fcn.0040f9dc
test eax, eax
jge 0x40fc8f
mov byte [0x475e0c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410ae1
add ebp, 0x78
leave
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4108dd
call fcn.00415056
mov dword [eax], esi
call fcn.00415043
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00411143
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4108b9
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41090c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415069
pop ecx
call fcn.00415043
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x410933
test al, 1
je 0x410933
test byte [esp + 0xc], 2
je 0x410933
call fcn.00415056
mov dword [eax], 5
call fcn.00415043
mov dword [eax], 0xd
jmp 0x410903
xor eax, eax
pop esi
ret

Function at 0x410ae1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472100]
jne 0x410aeb
repz ret
jmp fcn.00417aae