joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x410433
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], ebx
call fcn.0040ec60
mov edx, dword [esp + 0x234]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
mov ebp, dword [edx - 8]
lea esi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
mov byte [esp + 0x234], 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x409feb
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40a098
sub ebp, 2
cmp ebp, ebx
jle 0x40a004
cmp byte [esp + ebp + 0x1c], 0x5c
je 0x40a002
mov byte [esp + ebp + 0x1c], bl
dec ebp
cmp ebp, ebx
jg 0x409ff2
cmp ebp, ebx
je 0x40a06f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040ec5a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x1c]
call fcn.00409f30
cmp eax, ebx
je 0x40a06f
mov eax, dword [esp + 0x234]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x22c], bl
lea ecx, [esp + 0x10]
je 0x40a07a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40a098
mov byte [esp + 0x22c], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x220
ret 4
Function at 0x40b730
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4106ab
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.0040f170
push esi
push edi
push 0x416c74
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
push 0
push 0
stosw word es:[edi], ax
push 0
push 0
push str.HttpDownload
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x40b7ba
lea ecx, [esp + 8]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1004]
mov dword fs:[0], ecx
add esp, 0x1010
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 2
lea eax, [esp + 0x14]
push ecx
push eax
push str.http:__hu.xsbsoft.com_xsbtest.inf
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
jne 0x40b80f
lea ecx, [esp + 8]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1004]
mov dword fs:[0], ecx
add esp, 0x1010
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
lea ecx, [esp + 8]
mov dword [esp + 0x1014], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1010
ret
Function at 0x40b930
Capabilities:
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x4106cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call fcn.00405c50
add esp, 4
lea ecx, [esp + 0x14e]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 4]
push 0x416c74
push edx
mov dword [esp + 0x21c], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
pop edi
jne 0x40b9b6
mov eax, dword [esp + 0x22]
lea ecx, [esp]
push eax
call fcn.0040f00e
push str.:GHOSTc_bak.gho
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
call esi
push str.C:grldr
lea ecx, [esp + 8]
call fcn.0040ec5a
mov edx, dword [esp + 4]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edx
call esi
mov eax, dword [esp + 0x26]
lea ecx, [esp + 4]
push eax
call fcn.0040f00e
lea ecx, [esp + 4]
push str.:GHOST_boot.ini
lea edx, [esp + 0xc]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 4]
push str.:GHOST_bcdback
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push str.C:OKGFileOKGCon.exe
lea ecx, [esp + 8]
call fcn.0040ec5a
mov edx, dword [esp + 4]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edx
call esi
push str.C:_sbldr
lea ecx, [esp + 8]
call fcn.0040ec5a
push 0
push 0
push 3
push 0
push 0
mov eax, dword [esp + 0x18]
push 0x80000000
push eax
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x214], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20c]
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x40bf10
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bf36
or eax, eax
pop esi
ret
push edi
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x48
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
pop edi
sub eax, 0x49554758
pop esi
neg eax
sbb eax, eax
ret
Function at 0x40bf70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0
push edx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push 0x4130b0
push 0
push edi
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, dword [esp + 0x3c]
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x24
ret
Function at 0x477d4c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x477d7a
mov eax, ebx
call fcn.00478800
cmp dword [ebx + 0x40], 0
je 0x477d73
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x477deb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x477ddd
cmp dword [ebx + 8], 0
je 0x477d9c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x477dae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x477ddd
cmp dword [ebx + 8], 0
je 0x477d8f
cmp eax, 3
je 0x477dc1
dec eax
jne 0x477d8f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x477d8f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x477d8f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x477e09
cmp dword [ebx + 0x14], 0xcc
je 0x477e09
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00477e14
pop ebx
ret

Function at 0x48aa18
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x45f884]
call 0x45f954
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48aadb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call 0x45f9f4
xor ecx, ecx
mov edx, 0x48aaf0
mov eax, dword [ebp - 4]
call 0x45fa58
test al, al
jne 0x48aa89
mov eax, 0x48aaf0
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0x48ab3c
mov dl, 1
mov eax, dword [0x45f824]
call 0x40c4cc
call fcn.00403e9c
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call 0x45fbf4
cmp dword [ebx], 0
jne 0x48aabd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, 0x48ab60
mov dl, 1
mov eax, dword [0x45f824]
call 0x40c4cc
call fcn.00403e9c
mov eax, dword [ebp - 4]
call 0x45f9c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48aae2
mov eax, dword [ebp - 4]
call fcn.004036fc
ret
Function at 0x4b7f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x73000]
mov dword [edi + 0x8b0a0], 0xc121824b
push edi
or ebp, 0xffffffff
jmp 0x4b7f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7f70
mov eax, 1
add ebx, ebx
jne 0x4b7f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7fa4
jne 0x4b7fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7fc3
dec eax
add ebx, ebx
jne 0x4b7fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7f88
add ebx, ebx
jne 0x4b7fbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8015
xor ecx, ecx
sub eax, 3
jb 0x4b7fdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b804a
sar eax, 1
mov ebp, eax
jmp 0x4b7fe6
add ebx, ebx
jne 0x4b7fe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7fb4
inc ecx
add ebx, ebx
jne 0x4b7ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7fb4
add ebx, ebx
jne 0x4b8001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7ff6
jne 0x4b8012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7ff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8026
jmp 0x4b7f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8034
add edi, ecx
jmp 0x4b7f76
pop esi
mov edi, esi
mov ecx, 0x3daa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8052
cmp byte [edi], 0x1b
jne 0x4b8052
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8057
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b80c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb850]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb918]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8084
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb91c]
or eax, eax
je 0x4b80c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4b80a1
call dword [esi + 0xbb92c]
mov ebp, dword [esi + 0xbb920]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b80fa
sub esp, 0xffffff80
jmp fcn.0048bbe8
Function at 0x51f1f1
Capabilities:
Encode data using xor

Disassembly:
pushfd
jmp 0x51f235
pop dword [esp]
lea esp, [esp + 2]
xchg dword [esp + 0x10], edx
call fcn.0051f1f4
xchg byte [0xe427d48d], bl
fidivr dword [0x3c81fddf]
xor ebp, dword [eax - 0x21]
popal
jle 0x51f240
jb 0x51f2a8
sti
invalid
call fcn.004d40ce
rcl dword [eax - 0x3a], cl
mov eax, dword [0xf5a6e550]
adc cl, byte [esi - 0x2c]
mov edi, 0x24048f66
pop word [esp]
lea esp, [esp + 5]
lea esp, [esp + 1]
lea esp, [esp + 4]
call fcn.004d40ce
cli
jp 0x51f2b9
invalid

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
sub edx, edx
dec eax
call fcn.0040894a
xor dword [esi], ebx
push edx
pop eax
inc edx
inc esi
cmp esi, ecx
jne fcn.00408932
ret
Function at 0x403d00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484c88
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b3014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x48]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x34]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x20]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0xc]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485306
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b3014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x118]
mov dword [ebp - 4], 0
mov ecx, esi
push dword [esi + 8]
mov dword [esi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [esi + 0xc]
call fcn.0045f4a0
add esp, 4
mov dword [esi + 4], 0
lea ecx, [edi + 0xf0]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004080e0
lea ecx, [edi + 0xc8]
call fcn.004080e0
lea ecx, [edi + 0xa0]
call fcn.004080e0
lea ecx, [edi + 0x78]
call fcn.004080e0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CObjectVector_struct_NArchive::N7z::CFileItem_.0
push 0
call fcn.004099f0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x70]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [ebp - 4], 3
lea ecx, [edi + 0x50]
push dword [edi + 0x58]
mov dword [edi + 0x50], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x5c]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [ebp - 4], 4
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CObjectVector_struct_NArchive::N7z::CFolder_.0
push 0
call fcn.00409aa0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x48]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 6
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x34]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 7
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x20]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 8
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0xc]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 4], vtable.ISetProperties.0
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0
mov dword [esi], vtable.NArchive::N7z::CHandler.1.0
mov dword [esi + 4], vtable.NArchive::N7z::CHandler.0
mov dword [esi + 0xc], 0
call fcn.00408240
lea eax, [ebp - 0x28]
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 8
mov dword [esi + method.CBaseRecordVector.virtual_0], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
push eax
mov dword [esi + 0x1e8], 4
mov byte [esi + 0x1e0], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov dword [esi + 0x1e4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045f48f
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485550
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b3014]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebx + 0x1e0], eax
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp + 0x14]
jge 0x409927
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov esi, dword [eax + edi*4]
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp word [esi], di
je 0x4097fb
inc edi
cmp word [esi + edi*2], 0
jne 0x4097f3
push edi
lea ecx, [ebp - 0x20]
call fcn.004039c0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409810
mov dword [ebp - 0x1c], edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CharUpperW]
test edi, edi
jne 0x409845
push ebx
call fcn.0045f4a0
add esp, 4
mov eax, 0x80070057
jmp 0x409929
mov edi, dword [ebp - 0x48]
lea edx, [ebp - 0x48]
mov esi, edi
lea ecx, [ebp - 0x20]
shl esi, 4
add esi, dword [ebp - 0x4c]
call fcn.00410ef0
test eax, eax
jne 0x409907
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409d90
mov edx, 0x497a60
mov ecx, dword [eax]
call fcn.0041bae0
push dword [ebp - 0x5c]
test eax, eax
sete bl
call fcn.0045f4a0
add esp, 4
test bl, bl
je 0x4098f5
push 2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409dc0
mov ecx, dword [ebp - 0x50]
mov edx, esi
add ecx, 0x1e0
mov byte [ebp - 4], 2
push ecx
push dword [ebp - 0x30]
mov ecx, eax
call fcn.00410f40
add esp, 8
mov byte [ebp - 4], 1
mov esi, eax
push dword [ebp - 0x68]
call fcn.0045f4a0
add esp, 4
test esi, esi
je 0x4098e0
push dword [ebp - 0x20]
call fcn.0045f4a0
add esp, 4
mov eax, esi
jmp 0x409929
mov byte [ebp - 4], 0
push dword [ebp - 0x20]
call fcn.0045f4a0
add esp, 4
inc edi
jmp 0x4097b6
push dword [ebp - 0x20]
call fcn.0045f4a0
add esp, 4
mov eax, 0x80070057
jmp 0x409929
push ebx
mov byte [ebp - 4], 0
call fcn.0045f4a0
add esp, 4
inc edi
jmp 0x4097b6
xor eax, eax
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.0045f48f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48559e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b3014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x48]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x34]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0x20]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
push 0
call fcn.00409c50
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc80
push dword [edi + 0xc]
call fcn.0045f4a0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret