joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
push ebx
push ebp
push esi
mov eax, dword [edx + 8]
xor ebp, ebp
push edi
mov dword [esp + 0x14], 0
lea edi, [edx + 8]
lea esi, [eax*8 + 8]
test esi, esi
je 0x40b62a
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x410650]
sub esi, 1
jne 0x40b610
mov eax, dword [edx + 4]
cmp ecx, eax
je 0x40b660
or dword [0x41b020], 0x20000400
push eax
push ecx
push str.Mismatched_struct_checksum_for_head_slab___computed__X___read__X
push 1
push 0x41b030
mov dword [edx + 8], ebp
mov dword [edx], ebp
call fcn.00401ad0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edi, dword [edx]
mov dword [edx], ebp
test edi, edi
je 0x40b7b7
xor esi, esi
nop
mov eax, ebp
mov dword [esp + 0x18], 0
inc ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmp eax, 0x400
jae 0x40b798
push 0x10
lea eax, [esp + 0x1c]
mov ecx, 0x41fe30
push eax
push edi
call fcn.00402b70
test eax, eax
je 0x40b784
mov eax, dword [esp + 0x20]
cmp eax, 0x1000
ja 0x40b75f
lea ebx, [eax*8 + 0x10]
push ebx
call fcn.0040dfde
add esp, 4
mov esi, eax
push ebx
test esi, esi
je 0x40b745
push esi
push edi
mov ecx, 0x41fe30
call fcn.00402b70
test eax, eax
je 0x40b736
mov ecx, esi
call fcn.0040b7d0
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x40b716
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [edx], esi
mov eax, dword [esi]
mov dword [esi], 0
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x40b784
or dword [0x41b020], 0x20000400
push ecx
push eax
push str.Mismatched_struct_checksum_for_intermediate_slab___computed__X___read__X
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x14
push esi
call fcn.0040e2dd
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x40b784
push str.Could_not_allocate__d_bytes_of_memory_for_marshaled_slab
push 1
push 0x41b030
call fcn.00401ad0
mov esi, dword [esp + 0x24]
add esp, 0x10
jmp 0x40b784
or dword [0x41b020], 0x20000800
push 0x1000
push eax
push edi
push str.Slab_at__p_did_not_pass_sanity_check___read__d___max_expected__d
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x18
mov edi, esi
test esi, esi
jne 0x40b670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
or dword [0x41b020], 0x20000800
push ebp
push str.Slab_list_did_not_pass_sanity_check___list_too_long___stopping_after__d_elements
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8

Function at 0x40b7d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea edx, [ecx + 8]
or eax, 0xffffffff
mov ecx, dword [edx]
push esi
lea esi, [ecx*8 + 8]
test esi, esi
je 0x40b7fe
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x410650]
sub esi, 1
jne 0x40b7e4
pop esi
ret
Function at 0x40dfde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40dfed
pop dword [ebp - 8]
mov eax, 0x66000627
sub eax, 0x65bf263a
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x37bec
push 0
mov eax, 0x6cfeac97
add eax, 0x93425481
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x579a4acd
sub ecx, 0x5799fe89
xor ebx, ebx
add ebx, eax
mov esi, 0x57e945a1
sub esi, 0x57a50fa1
add esi, dword [ebp - 8]
mov edi, 0xb1ccf425
add edi, 0xe3902fca
add dword [ebp - 4], eax
mov edx, dword [esi]
xor dword [ebp - 4], 0xf47bd27f
sub edx, edi
xor dword [ebp - 4], 0x3935e07f
mov dword [ebx], edx
xor dword [ebp - 4], 0xa7cbe478
add ebx, 0xffc88b87
add ebx, 0x37747d
add esi, 0x1f0cb8f8
sub esi, 0x1f0cb8f4
loop 0x40e04e
add eax, 0x4a521d59
add eax, 0xb5af068a
mov ebx, eax
add eax, 0x8908a621
sub eax, 0x8908a61c
mov ecx, 0x2c0a1bef
add ecx, 0xd435e411
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x49ef11c3
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5fc4cf3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x466a40
Capabilities:
Encode data using xor

Disassembly:
fcom qword [edx + 0x152808b7]
or al, bh
or byte [edi*4 + 0x16c8cf00], cl
xchg edx, eax
mov byte [0xcb52ebaa], al
xor al, 0xf2
loopne 0x466ac6
push edx
retf
leave
fisub dword [ecx]
pushfd
cmpsb byte [esi], byte es:[edi]
mov edx, 0xb22b8d99
dec esp
pop edi
dec esi
add esi, dword [edx]
add al, dl
jb 0x466a53
invalid
cmp al, ah
sbb ecx, dword [esi]
sti
mov dh, 0xf3
movsb byte es:[edi], byte [esi]
xchg ecx, eax
popal
sbb eax, 0x195c72e1
and byte [eax], al
push esp
leave
retf
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10036ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x38]
or dword [eax + 0x3c], 0xffffffff
mov dword [eax + 0x38], edx
mov dl, byte [ecx + 0x3c]
mov byte [eax + 0x40], dl
mov edx, dword [eax + 0x2c]
xor ebx, ebx
cmp edx, ebx
mov byte [eax + 0x41], bl
jne 0x1003764
mov dword [eax + 0x44], ebx
jmp 0x1003797
cmp edx, 3
je 0x1003790
cmp edx, 5
je 0x1003790
cmp edx, 2
je 0x1003790
cmp edx, 1
je 0x100377d
cmp edx, 4
jne 0x1003797
mov dl, byte [eax + 0x30]
not dl
movzx edx, dl
shr edx, 5
and edx, 1
mov dword [eax + 0x44], edx
jmp 0x1003797
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], ebx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x78], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x80], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x84], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], edx
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x90], edx
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x94], edx
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x98], edx
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x9c], edx
mov ecx, dword [ecx + 0x84]
mov dword [eax + 0xa4], ebx
mov dword [eax + 0xa0], ecx
pop ebx
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x8c72c54
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x51e814bb
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4085f7
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.00404b9b
and dword [ebp - 4], 0
cmp dword [0x40db0c], 0
mov ebx, eax
jne 0x4086a8
push 0x40fa58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408759
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40fa4c
push edi
call esi
test eax, eax
je 0x408759
push eax
call fcn.00404b29
mov dword [esp], 0x40fa3c
push edi
mov dword [0x40db0c], eax
call esi
push eax
call fcn.00404b29
mov dword [esp], 0x40fa28
push edi
mov dword [0x40db10], eax
call esi
push eax
call fcn.00404b29
mov dword [esp], 0x40fa0c
push edi
mov dword [0x40db14], eax
call esi
push eax
call fcn.00404b29
pop ecx
mov dword [0x40db1c], eax
test eax, eax
je 0x4086a8
push 0x40f9f4
push edi
call esi
push eax
call fcn.00404b29
pop ecx
mov dword [0x40db18], eax
mov eax, dword [0x40db18]
cmp eax, ebx
je 0x408700
cmp dword [0x40db1c], ebx
je 0x408700
push eax
call fcn.00404ba4
push dword [0x40db1c]
mov esi, eax
call fcn.00404ba4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408700
test edi, edi
je 0x408700
call esi
test eax, eax
je 0x4086f7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4086f7
test byte [ebp - 0xc], 1
jne 0x408700
or dword [ebp + 0x10], 0x200000
jmp 0x408739
mov eax, dword [0x40db10]
cmp eax, ebx
je 0x408739
push eax
call fcn.00404ba4
pop ecx
test eax, eax
je 0x408739
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408739
mov eax, dword [0x40db14]
cmp eax, ebx
je 0x408739
push eax
call fcn.00404ba4
pop ecx
test eax, eax
je 0x408739
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40db0c]
call fcn.00404ba4
pop ecx
test eax, eax
je 0x408759
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40875b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401290
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov ebx, 1
mov byte [esp + 0x18], 0
call fcn.00443400
add esp, 0xc
test esi, esi
je 0x4013ee
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x4013ee
push esi
call edi
cmp eax, 0x104
ja 0x4013ee
push ebp
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x401385
push 0x5c
push eax
call fcn.0043e121
mov esi, eax
add esp, 8
test esi, esi
je 0x401385
lea eax, [esp + 0x10]
push eax
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x40133f
test al, 0x10
jne 0x40137d
test al, 0x10
jne 0x40135a
push 0x80
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x40137d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40137d
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x401317
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, 0xffffffff
je 0x401395
test al, 0x10
jne 0x4013d3
test al, 0x10
jne 0x4013b0
push 0x80
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x4013d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4013d3
mov ebx, 1
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043defc
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043defc
add esp, 0x108
ret
Function at 0x401970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov dword [esp + 0x14], 0xffffffff
mov byte [esp + 0x128], bl
call fcn.00443400
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x401ada
mov eax, str.RAV.INI
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019d0
sub eax, edx
cmp eax, 2
jb 0x401ada
push esi
lea esi, [esp + 0x120]
call fcn.00401b00
mov eax, esi
mov ecx, 0x104
pop esi
cmp byte [eax], bl
je 0x401a03
inc eax
sub ecx, 1
jne 0x4019f7
jmp 0x401a26
cmp ecx, ebx
je 0x401a26
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 0x11c]
mov eax, str.RAV.INI
call fcn.00402000
push 0x104
lea edx, [esp + 0x19]
push ebx
push edx
mov byte [esp + 0x20], bl
call fcn.00443400
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0x4581a0
push edi
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 8], eax
cmp byte [esp + 0x14], bl
je 0x401ada
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x4581c8
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.0043e272
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push str.0X_X
push eax
call fcn.0043e272
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push 0x4581d4
push edx
call fcn.0043e272
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
ja 0x401adc
mov eax, ebp
mov ecx, dword [esp + 0x220]
pop ebp
pop ebx
xor ecx, esp
call fcn.0043defc
add esp, 0x21c
ret
Function at 0x401b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
cmp eax, 0x4581d8
je 0x401bfe
test esi, esi
je 0x401bfe
push edi
push 0x103
push eax
lea ecx, [esp + 0x1d]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], al
call fcn.00443400
push 0x4581d8
push str.SOFTWARERising_s
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401e00
add esp, 0x14
lea edx, [esp + 4]
push edx
push 0x20019
push 0
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bd7
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.datapath
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bb0
sub eax, edx
je 0x401bcc
push 0x4581b8
mov ecx, 0x104
mov edi, esi
call fcn.00402040
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
pop edi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401be0
sub eax, edx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043defc
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0043defc
add esp, 0x118
ret

Function at 0x401c20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call fcn.00443400
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x401ce2
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c67
sub eax, edx
cmp eax, 2
jb 0x401ce2
lea esi, [esp + 4]
call fcn.00401b00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x401c92
inc eax
sub ecx, 1
jne 0x401c85
jmp 0x401cb2
test ecx, ecx
je 0x401cb2
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 4]
mov eax, str.RAV.INI
call fcn.00402000
lea edx, [esp + 4]
push edx
push 0x200
push str.LOGSIZE
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043defc
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043defc
add esp, 0x108
ret
Function at 0x401d00
Capabilities:
Get common file path

Disassembly:
cmp byte [0x568cd8], 0
jne 0x401d87
push 0x568cd8
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401d2f
push 4
push str.C:Temp
push 0x568cd8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
push 0x568cd8
call fcn.0043e04e
add esp, 8
test eax, eax
je 0x401d4b
cmp byte [eax + 1], 0
jne 0x401d4b
mov byte [eax], 0
mov eax, 0x568cd8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d51
mov ecx, dword [str.NewRsInstall.log]
mov edx, dword [0x4582b0]
mov dword [eax], ecx
mov ecx, dword [0x4582b4]
mov dword [eax + 4], edx
mov edx, dword [0x4582b8]
mov dword [eax + 8], ecx
mov cx, word [0x4582bc]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
ret
Function at 0x402090
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4652b0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [0x466418]
push ebp
push esi
push edi
push 0x104
mov edi, ecx
lea ecx, [esp + 0x1d]
push 0
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
call fcn.00443400
add esp, 0xc
test edi, edi
je 0x402148
cmp byte [edi], 0
je 0x402148
push 0x5c
push edi
call fcn.0043e121
add esp, 8
test eax, eax
jne 0x402194
push 0x105
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.0043e04e
add esp, 8
test eax, eax
je 0x402118
mov byte [eax + 1], 0
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x40212e
inc eax
sub ecx, 1
jne 0x402121
jmp 0x402190
test ecx, ecx
je 0x402190
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, edi
jmp 0x40218b
push 0x105
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x402170
inc eax
sub ecx, 1
jne 0x402163
jmp 0x402190
test ecx, ecx
je 0x402190
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, str..log
call fcn.00402000
lea edi, [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4022e3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shl ebx, 0xa
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jbe 0x4022a9
cmp eax, 0xffffffff
je 0x4022a9
push esi
call ebx
push 0x104
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.00443400
add esp, 0xc
push 0x105
push edi
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x120]
push 0x2e
push ecx
call fcn.0043e04e
add esp, 8
test eax, eax
je 0x402229
mov byte [eax], 0
mov ecx, 0x105
lea eax, [esp + 0x120]
cmp byte [eax], 0
je 0x402242
inc eax
sub ecx, 1
jne 0x402235
jmp 0x402265
test ecx, ecx
je 0x402265
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x120]
mov eax, str.2.log
call fcn.00402000
push 0x80
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
mov eax, edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022c7
push 0
sub eax, edx
lea edx, [esp + 0x14]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043defc
add esp, 0x21c
ret
Function at 0x402d60
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x30
xor eax, eax
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp esi, 2
je 0x402e39
cmp esi, 8
je 0x402e39
cmp esi, 4
je 0x402e39
test esi, esi
jne 0x402dcb
push str.Idle
push 0x104
push ebx
call fcn.0043e8f0
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x30
ret
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402e0f
lea eax, [esp + 4]
push eax
push 0x28
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x402e06
mov edx, dword [esp + 8]
push 0x104
push ebx
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.OpenProcess___d__ERROR___d_n
push 0x80
call fcn.004025a0
add esp, 0x10
xor eax, eax
cmp byte [ebx], al
je 0x402e51
test edi, edi
setne al
pop edi
add esp, 0x30
ret
push str.System
push 0x104
push ebx
call fcn.0043e8f0
add esp, 0xc
mov eax, 1
pop edi
add esp, 0x30
ret