joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50cc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4c76f0
mov eax, dword [0x7adc9c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004f876d
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004f87bc
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004f8719
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4c76d7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4c76d7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f833d
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4ca7f0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50d0b0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ca997
mov ecx, dword [0x7adc9c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4ca8ec
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004c9510
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004f8476
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004f833d
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x7ac914
call fcn.004f83ab
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004c98d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004f8476
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004f833d
lea ecx, [esp + 0xc]
call fcn.004f8851
mov ecx, dword [esp + 0xc]
push 0x7ad354
push ecx
call fcn.004e65d4
add esp, 8
test eax, eax
je 0x4ca914
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4ca84d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004f833d
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004f833d
jmp 0x4ca99b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004ca590
test eax, eax
push 0
je 0x4ca97f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004c8c30
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4ca965
cmp eax, 0x64
jg 0x4ca953
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ca8f0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ca8f0
cmp eax, 0x64
jge 0x4ca8ec
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4ca8f0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004c8c30
mov esi, eax
jmp 0x4ca8f0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4ca9a5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4fa794
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fa7cc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f87e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f87bc
jmp 0x4fa7d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4fbf8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4fbfd1
call fcn.00502988
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4fbfd1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4fbfc8
xor eax, eax
jmp 0x4fbfd9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004fbfdf
pop edi
pop esi
pop ebx
ret 4

Function at 0x502eb8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x502ee6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x502f04
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00502e1e
jmp 0x502f04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x502f04
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00502e1e
test edi, edi
mov eax, edi
jne 0x502eee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp edx, ebx
push edi
mov edi, ecx
je 0x4045bf
cmp esi, ebx
je 0x4045bf
cmp eax, ebx
je 0x4044d3
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 1
call fcn.00402650
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x24]
push edx
push 0x80000002
call dword [0x41a014]
test eax, eax
jne 0x4044c6
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push str.installpath
push eax
call dword [0x41a018]
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x41a01c]
push esi
call dword [0x41a084]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Shell32.dll
call dword [0x41a058]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x40462b
push str.SHGetFolderPathA
push eax
call dword [0x41a040]
mov ebx, eax
test ebx, ebx
jne 0x404530
mov edx, dword [esp + 0xc]
push edx
call dword [0x41a150]
push str.SHFolder.dll
call dword [0x41a058]
test eax, eax
mov dword [esp + 0xc], eax
je 0x404528
push str.SHGetFolderPathA
push eax
call dword [0x41a040]
mov ebx, eax
test ebx, ebx
je 0x40461c
push esi
neg edi
sbb edi, edi
push 1
push 0
and edi, 7
add edi, 0x1c
push edi
push 0
call ebx
test eax, eax
jl 0x40461c
push esi
call dword [0x41a084]
test eax, eax
jle 0x40461c
mov eax, dword [ebp + 0xc]
push str.Rising
push eax
push esi
mov ebx, 1
call fcn.004043a0
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [0x41a0c8]
mov edi, eax
cmp edi, 0xffffffff
mov al, byte [esp + 0x18]
je 0x40458a
test al, 0x10
jne 0x4045a0
test al, 0x10
jne 0x404595
push esi
call dword [0x41a0c4]
push 0
push esi
call dword [0x41a0c0]
mov ebx, eax
cmp edi, 0xffffffff
je 0x4045ac
push edi
call dword [0x41a0bc]
test ebx, ebx
jne 0x4045c7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4045bf
push eax
call dword [0x41a150]
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push 0x41abbc
push edi
push esi
call fcn.004043a0
mov edx, dword [ebp + 8]
push edx
push edi
push esi
call fcn.004043a0
lea eax, [esp + 0x18]
push eax
push esi
call dword [0x41a0c8]
mov edi, eax
cmp edi, 0xffffffff
mov al, byte [esp + 0x18]
je 0x4045fc
test al, 0x10
jne 0x404610
test al, 0x10
jne 0x404607
push esi
call dword [0x41a0c4]
push 0
push esi
call dword [0x41a0c0]
cmp edi, 0xffffffff
je 0x40461c
push edi
call dword [0x41a0bc]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40462b
push eax
call dword [0x41a150]
push esi
call dword [0x41a084]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
xor eax, eax
cmp edx, eax
push edi
je 0x404721
cmp esi, eax
je 0x404721
mov byte [esp + 0x18], al
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], 1
call fcn.00402650
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push 0x80000002
call dword [0x41a014]
test eax, eax
jne 0x40470e
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x24], ebx
call dword [0x41a018]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046e0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x404703
cmp ebx, 0x7fffffff
ja 0x404703
push 0x41abbc
push ebx
push esi
call fcn.004026b0
mov eax, dword [esp + 8]
push eax
call dword [0x41a01c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404713
sub eax, edx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40d900
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov edx, dword [esp + 0x118]
push ebp
push esi
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [0x41a014]
mov esi, eax
test esi, esi
jne 0x40da0a
lea ecx, [esp + 8]
call fcn.0040d810
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40da0e
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [section..rdata]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d9c4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040d900
mov edi, eax
test edi, edi
jne 0x40da26
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d986
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [0x41a01c]
je 0x40d9dd
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x124]
mov edx, dword [ebp]
push ecx
push edx
call dword [0x41a010]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d9fc
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x114
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40da19
push eax
call dword [0x41a01c]
mov eax, esi
pop esi
pop ebp
add esp, 0x114
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40da35
push eax
call dword [0x41a01c]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x114
ret 4
Function at 0x40dee0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [0x41a084]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40def2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [0x41a028]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4112f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x411324
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41132b
cmp ebx, dword [eax + 4]
jae 0x41132b
xor eax, eax
jmp 0x41151b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41133c
xor eax, eax
inc eax
jmp 0x41151a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411352
cmp ecx, edx
jae 0x411497
cmp dword [eax + 4], 0
je 0x41135b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411343
cmp dword [ebp + 8], 0
je 0x41137d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411497
cmp eax, esi
jae 0x411497
mov eax, dword [0x420670]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4113a2
cmp dword [esi*4 + 0x420678], edi
je 0x41149b
inc esi
cmp esi, eax
jl 0x411390
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x41a0a8]
test eax, eax
je 0x411517
cmp dword [ebp - 8], 0x1000000
jne 0x411517
test byte [ebp - 0xc], 0xcc
je 0x411420
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411517
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411517
cmp word [eax + 0x18], 0x10b
jne 0x411517
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411517
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411420
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411420
test byte [ecx + 0x27], 0x80
jne 0x411497
push 1
push 0x4206b8
call dword [0x41a17c]
test eax, eax
jne 0x411334
mov ecx, dword [0x420670]
test ecx, ecx
mov edx, ecx
jle 0x411454
lea eax, [ecx*4 + 0x420674]
cmp dword [eax], edi
je 0x411454
dec edx
sub eax, 4
test edx, edx
jg 0x411448
test edx, edx
jne 0x411485
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411461
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411479
lea eax, [edx*4 + 0x420678]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411467
cmp ecx, 0x10
jge 0x411485
inc ecx
mov dword [0x420670], ecx
push 0
push 0x4206b8
call dword [0x41a17c]
jmp 0x411334
xor eax, eax
jmp 0x41151a
test esi, esi
jle 0x411334
mov ebx, dword [0x41a17c]
push 1
push 0x4206b8
call ebx
test eax, eax
jne 0x411334
cmp dword [esi*4 + 0x420678], edi
je 0x4114f1
mov eax, dword [0x420670]
lea esi, [eax - 1]
test esi, esi
jl 0x4114df
cmp dword [esi*4 + 0x420678], edi
je 0x4114db
dec esi
jns 0x4114cf
test esi, esi
jge 0x4114ef
cmp eax, 0x10
jge 0x4114ea
inc eax
mov dword [0x420670], eax
lea esi, [eax - 1]
jmp 0x4114f1
je 0x411509
xor ecx, ecx
test esi, esi
jl 0x411509
lea eax, [ecx*4 + 0x420678]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4114f7
push 0
push 0x4206b8
call ebx
jmp 0x411334
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4033a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4033e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4033e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4033e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4033d0
cmp esi, eax
jb 0x4033ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404160
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44fefb
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46c8b0]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
xor edi, edi
call fcn.00417b8f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4041b5
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x4041fc
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x40424b
cmp eax, 5
jne 0x404201
cmp dword [esp + 0x18], edi
jmp 0x4041ff
cmp eax, 1
je 0x40424b
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x10]
push 0x455b70
push eax
call fcn.004013d0
mov esi, dword [esp + 0x18]
push str.Service_Pack_1
push esi
call fcn.00434b0e
add esp, 0x14
test eax, eax
jne 0x404232
mov edi, 1
jmp 0x40424e
push str.Service_Pack_2
push esi
call fcn.00434b0e
add esp, 8
test eax, eax
jne 0x40424e
mov edi, 2
jmp 0x40424e
or edi, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00433eb7
add esp, 0xa8
ret
Function at 0x404560
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45001a
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x46c8b0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
mov esi, dword [esp + 0x150]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x144], 3
call fcn.004345b0
mov ebx, dword [esp + 0x158]
add ebx, 0xfffffff0
push ebx
call fcn.004011e0
add eax, 0x10
add esp, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x14]
push ecx
mov ebp, 1
push ebp
push 0
push edx
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x148]
jne 0x40466a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40465b
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404641
sub eax, edx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00401fa0
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x404683
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.GetRegString
call fcn.004044a0
call fcn.00404060
add esp, 4
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
mov byte [esp + 0x138], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4046ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x138], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f3
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00433eb7
add esp, 0x128
ret
Function at 0x404720
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x450068
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push 2
push 0
push edi
push esi
mov dword [esp + 0x38], 2
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [esp + 0x34]
je 0x404798
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0x455b91
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4047c6
mov eax, dword [ebp - 0xc]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
push ebp
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4047b7
xor ebx, ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4047df
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SetRegString
call fcn.004044a0
call fcn.00404060
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x408bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push ebx
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408ca4
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
push edx
push 1
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0x45dd54
push 0
push esi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.0041cd6d
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0041cd1a
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop ebx
add esp, 0x28
ret