joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b190
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
mov dword [edi + 4], vtable.ISetProperties.0
xor ebx, ebx
mov dword [edi + 8], ebx
push esi
mov dword [edi], vtable.NArchive::N7z::CHandler.0
mov dword [edi + 4], vtable.NArchive::N7z::CHandler.1.0
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ebx
call fcn.0040b210
lea eax, [esp + 8]
mov dword [edi + 0x1ec], ebx
mov dword [edi + 0x1f0], ebx
mov dword [edi + 0x1f4], ebx
mov dword [edi + 0x1f8], 8
mov dword [edi + method.CBaseRecordVector.virtual_0], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
push eax
mov dword [edi + 0x1e4], 4
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [edi + 0x1e0], ecx
mov eax, edi
pop ebx
add esp, 0x24
ret
Function at 0x4137c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x4137dd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
add dword [esp + 0x18], 5
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x41380d
nop
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41380d
inc edi
cmp edi, ebx
jb 0x413800
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x41390c
cmp eax, 3
jbe 0x413840
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x413878
cmp al, 0xff
je 0x413878
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x4137f8
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x413826
movzx ecx, byte [esi + 0x451ca8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x451ca0], 0
mov al, byte [eax + 4]
je 0x413869
test al, al
je 0x413869
cmp al, 0xff
jne 0x413826
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x4137f8
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
sub edx, ebp
sub edx, dword [esp + 0x20]
mov eax, edx
test esi, esi
je 0x4138de
movzx edx, byte [esi + 0x451ca8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x4138c3
cmp bl, 0xff
jne 0x4138da
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x413896
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x4137f8
pop edi
pop ebx
cmp eax, 3
jbe 0x413923
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x1c]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x41ad10
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x560ba1], 0
push ebx
push esi
mov esi, eax
mov ebx, ecx
jne 0x41ad50
lea ecx, [esp + 8]
call fcn.00417440
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call fcn.00438e02
add esp, 4
test esi, esi
je 0x41ad64
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41ad64
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x41b1a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44c260
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
mov eax, dword [esi]
mov dword [ebp + 0x20], eax
mov ecx, dword [esi + 4]
mov dword [ebp + 8], ecx
mov edx, dword [esi + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0x14], ecx
mov edx, dword [esi + 0x14]
push 1
mov dword [ebp + 0x18], edx
mov eax, dword [esi + 0x18]
push 0
mov dword [ebp + 0x1c], eax
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call fcn.004470d0
mov ecx, dword [esi + 0x20]
xor edi, edi
add eax, ecx
adc edx, edi
add esi, 0x2c
push esi
lea esi, [esp + 0x14]
mov dword [ebp], eax
mov dword [ebp + 4], edx
mov byte [ebp + 0x24], 0
call fcn.004174d0
mov ecx, esi
lea esi, [esp + 0x1c]
mov dword [esp + 0x30], edi
call fcn.004174b0
mov edi, eax
lea eax, [ebp + 0x28]
mov byte [esp + 0x30], 1
call fcn.00406770
mov edx, dword [esp + 0x1c]
push edx
call fcn.00438e02
mov eax, dword [esp + 0x14]
push eax
call fcn.00438e02
add esp, 8
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x44d02e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x1c], 2
mov dword [esp + 0x28], edx
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41bc70
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00404610
mov ebp, dword [esp + 0x2c]
mov eax, ebp
lea edx, [eax + 1]
jmp 0x41bc90
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41bc90
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00404610
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4220b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x220
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x121]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x128], 0
call fcn.0043d080
add esp, 0xc
push 0x104
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.0043d080
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422173
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.CreateFile_Failed__SoucFile__s_Error__d
push 0x80
call fcn.004025a0
push 9
call fcn.00422ba0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00437bf9
add esp, 0x220
ret
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4221d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4221d7
push 0
push 0x104
lea eax, [esp + 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 0x11c]
push ecx
push str.GetFileSize_fails_because__s
push 0x80
call fcn.004025a0
add esp, 0xc
mov ecx, dword [edi + 4]
mov eax, ebp
mov edx, 2
mul edx
cmp ecx, edx
ja 0x422222
jb 0x4221ef
mov edx, dword [edi]
cmp edx, eax
jae 0x422222
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Not_enough_space_for_install
push 0x80
call fcn.004025a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00437bf9
add esp, 0x220
ret
mov ecx, dword [edi + 0x2c]
lea eax, [esp + 0x14]
push eax
push ecx
push str.Try_to_cut_zip_file__s_out_from__s
push 0x80
call fcn.004025a0
mov edi, dword [edi + 0x2c]
add esp, 0x10
mov eax, esi
call fcn.004223f0
mov ecx, eax
mov edx, edi
call fcn.00422290
cmp eax, 0xffffffff
jne 0x422267
push str.FileCut_fail
push 0x80
call fcn.004025a0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00437bf9
add esp, 0x220
ret
Function at 0x422290
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov byte [esp + 0x20], 0
call fcn.0043d080
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
cmp esi, 0xffffffff
jne 0x422331
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x14]
push edx
push str.Open_Source_file_fail_because__s
push 0x40
call fcn.004025a0
add esp, 0xc
or eax, esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00437bf9
add esp, 0x118
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, eax
jbe 0x422368
push eax
push ebx
push str.Open_Source_file_fail_because_dwBeginPos__d___dwFileSize__d
push 0x40
call fcn.004025a0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00437bf9
add esp, 0x118
ret
xor edi, edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [esp + 0x10]
push eax
push 0x100000
push 0x4609d8
push esi
call ebx
test eax, eax
je 0x4223c9
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4223c9
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x4609d8
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push 0x100000
push 0x4609d8
push esi
call ebx
test eax, eax
jne 0x422391
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bf9
add esp, 0x118
ret

Function at 0x4223f0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 8]
push eax
push 0x100000
push 0x4609d8
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422423
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, 0x5a4d
cmp cx, word [0x4609d8]
jne 0x42241d
mov ecx, dword [0x460a14]
cmp dword [ecx + 0x4609d8], 0x4550
jne 0x42241d
push edi
movzx edi, word [ecx + 0x4609de]
xor eax, eax
xor esi, esi
test edi, edi
jle 0x422476
lea edx, [ecx + 0x460ae0]
lea esp, [esp]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x42246b
mov eax, ecx
inc esi
movsx ecx, si
add edx, 0x28
cmp ecx, edi
jl 0x422460
pop edi
pop esi
pop ecx
ret
Function at 0x422b40
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 0x422b57
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x422b88
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x422b84
cmp esi, eax
jae 0x422b88
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x422b74
cmp esi, eax
jb 0x422b8e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x44bdf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edx, edx
mov word [esp + 0xc], cx
mov word [esp + 0xe], dx
mov dword [esp + 0x28], edx
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push 6
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
je 0x423050
lea ecx, [esp + 0xc]
call fcn.0041b7a0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
mov ax, word [esp + 0xc]
cmp ax, 0xb
jne 0x423082
cmp word [esp + 0x14], 0
setne cl
mov byte [edi], cl
lea ecx, [esp + 0xc]
call fcn.0041b7a0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
test ax, ax
jne 0x4230a5
lea ecx, [esp + 0xc]
mov byte [edi], al
call fcn.0041b7a0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
lea ecx, [esp + 0xc]
call fcn.0041b7a0
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x423380
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44cf68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x2c], 1
mov dword [edi + 0x74], esi
mov dword [edi + 0x70], esi
mov dword [edi + 0x78], esi
mov dword [edi + 0x7c], esi
cmp ebp, esi
je 0x4233d0
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4233df
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x38]
lea esi, [edi + 0x1c]
push ecx
mov dword [edi + 0xc], ebp
call fcn.00425070
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x4c], eax
lea ebx, [edi + 0x34]
lea eax, [esp + 0x44]
mov dword [edi + 0x48], edx
call fcn.00404000
mov eax, ebx
call fcn.00403ee0
lea ebx, [edi + 0x38]
lea eax, [esp + 0x48]
call fcn.00404000
mov eax, ebx
call fcn.00403ee0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x14]
lea ebx, [edi + 0x50]
push ebx
push ebp
call edx
cmp dword [ebx], 0
jne 0x423444
push str._iTotals__0
push 0x40
call fcn.004025a0
add esp, 8
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x3c]
add edi, 0x3c
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x423474
mov ecx, 0x104
mov eax, edi
call fcn.004043a0
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x42349d
push ecx
push eax
call fcn.004389ba
add esp, 8
test eax, eax
jl 0x423568
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x423568
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov ecx, esi
lea esi, [esp + 0x18]
call fcn.004174b0
mov byte [esp + 0x2c], 2
mov edx, dword [eax + 4]
test edx, edx
je 0x4234f8
mov esi, dword [eax]
cmp word [esi + edx*2 - 2], 0x5c
lea ecx, [esi + edx*2 - 2]
je 0x4234e3
cmp ecx, esi
je 0x4234e9
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4234d6
sub ecx, esi
sar ecx, 1
jmp 0x4234ec
or ecx, 0xffffffff
dec edx
cmp ecx, edx
je 0x4234f8
push 0x5c
call fcn.004067c0
mov edx, dword [esp + 0x18]
push edx
call fcn.00438e02
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42352a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423552
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x1c
push 0x80070057
call fcn.00404c40
int3
Function at 0x424270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44e480
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
lea eax, [esp + 0x30]
push eax
call fcn.00425150
mov dword [esp + 0x54], 0
cmp dword [ebp + 4], 0
lea esi, [ebp + 8]
mov dword [esi], 0
jbe 0x4243c9
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x1c]
push ecx
call ebx
mov eax, dword [ebp]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi]
push 3
push ecx
push eax
call edx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x5c]
push eax
call fcn.00424b10
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x58], 1
call fcn.004287a0
add eax, 0x78
push eax
call fcn.0042b1b0
cmp eax, 1
jne 0x424360
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x424319
xor ecx, ecx
jmp 0x424322
mov ecx, dword [esp + 0x44]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x40]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x42433e
mov edx, dword [esi]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x40], eax
jmp 0x424365
mov edi, eax
cmp edx, eax
jbe 0x424349
call fcn.00438959
mov eax, dword [esp + 0x30]
push edi
push eax
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
call fcn.004253f0
jmp 0x424365
cmp eax, 0xffffffff
je 0x4243a4
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424395
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esi]
mov ecx, dword [esi]
cmp ecx, dword [ebp + 4]
jb 0x4242c6
jmp 0x4243c9
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4243c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
sub esi, eax
sar esi, 2
test esi, esi
je 0x4243fc
mov edi, dword [ebp]
mov ebp, dword [ebp + 0xc]
ja 0x4243eb
call fcn.00438959
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push ebp
push 0
push esi
push eax
push edi
call edx
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, esi
je 0x42440b
push eax
call fcn.0043876e
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.0043876e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x425ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44cf28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x45fdc0]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x45fdc0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
push eax
push str.SOFTWARE_rising_s
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.004044a0
mov edi, dword [esp + 0x24]
push edi
push str.strRegKey__s
push 0x80
call fcn.004025a0
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x425bed
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x425c06
lea edx, [esp + 0x14]
push edx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425be0
mov edx, dword [esp + 0x14]
push edx
call fcn.004376db
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
push ebx
push esi
call fcn.0043d080
add esp, 0x10
cmp esi, ebx
je 0x425be0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push ebx
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425bd7
lea ebp, [ebx + 1]
mov ebx, dword [esp + 0x34]
add ebx, 0x20
mov edx, esi
call fcn.004263d0
mov ecx, dword [ebx]
push ecx
push str.m_strVersionOld_s
push 0x80
call fcn.004025a0
add esp, 0xc
push esi
call fcn.00438e02
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x425c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenKey_Failed_ERR_d
push 0x80
call fcn.004025a0
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8