joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.004029d0
test eax, eax
jne 0x414bf3
cmp dword [ebp + 8], 0
je 0x414bf3
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call fcn.00491823
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ecx + 0xc], 0
setne al
jmp 0x414bf5
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414c00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004029d0
test eax, eax
je 0x414c72
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414c3d
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov esp, ebp
pop ebp
ret
Function at 0x418660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x418678
cmp dword [ebp + 0xc], 8
jg 0x418678
mov byte [ebp - 5], 1
jmp 0x41867c
mov byte [ebp - 5], 0
push str.bad_pack_level
movzx eax, byte [ebp - 5]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004161f0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x4186c5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x4af70
push ecx
call fcn.0048e260
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4acb72]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4acb70]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4acb74]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4acb76]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x418752
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x418767
cmp dword [ebp + 0xc], 8
jl 0x418767
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x4187cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x4187e9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x418861
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x418811
mov edx, dword [ebp + 8]
push edx
call fcn.00418bf0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x418830
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x418861
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x418827
mov esp, ebp
pop ebp
ret
Function at 0x41a5e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x41a5f0
xor eax, eax
jmp 0x41a78d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x41a74e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4aceb8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4aceb8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4aceb8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4aceb8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4aceb8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4aceb8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4aceb8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4aceb8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x41a5f9
cmp dword [ebp + 0x10], 0
je 0x41a787
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4aceb8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x41a754
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x41a790
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4aceb8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4aceb8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x41af70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x41b052
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
je 0x41afc1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x41afc1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048e9ee
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x3c], 0
jne 0x41afed
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.0048bbe8
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.0048eb00
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x41b016
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x41b049
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
call fcn.0041a840
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x41b00d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x20], 0
je 0x41b0ad
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x28]
jb 0x41b07a
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x41b0e2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x24]
push eax
call fcn.0048eb00
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x41b0e2
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
je 0x41b0d6
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
jmp 0x41b0e2
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41b760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x84], 0
je 0x41b822
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x8c]
cmp eax, dword [edx + 0x88]
jb 0x41b794
xor eax, eax
jmp 0x41b892
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x88]
sub eax, dword [edx + 0x8c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x41b7b7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x84]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x8c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048eb00
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x8c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0041a5e0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 4]
jmp 0x41b892
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7c], 0
je 0x41b886
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b853
xor eax, eax
jmp 0x41b892
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0041a5e0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0xc]
jmp 0x41b892
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41f3a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x41f3bd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x41f3f1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shr eax, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
and ecx, 0xff
xor edx, ecx
xor eax, dword [edx*4 + 0x4bb420]
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x41f3b4
mov esp, ebp
pop ebp
ret
Function at 0x41f448
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x14]
mov edi, eax
mov dword [esp + 0x1c], eax
mov esi, dword [edi + 0x10]
mov edi, dword [edi]
test esi, esi
je 0x41f4b9
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x41f4b9
mov ecx, dword [ebx + esi + 0xc]
add ecx, esi
call fcn.0041f426
mov dword [esp + 0x10], eax
xor ebp, ebp
mov eax, dword [ebx + esi + 0x20]
add eax, esi
mov dword [esp + 0x18], eax
cmp dword [ebx + esi + 0x18], ebp
jbe 0x41f4b9
mov ecx, dword [eax + ebp*4]
add ecx, esi
call fcn.0041f426
add eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x41f4c9
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, dword [ebx + esi + 0x18]
jb 0x41f49a
cmp edi, dword [esp + 0x1c]
jne 0x41f465
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x41f4c1
Function at 0x421440
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.0048e260
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.0048e260
add esp, 0xc
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x421558
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4214e4
mov ecx, dword [ebp - 0x220]
mov byte [ecx], 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0048ea00
add esp, 8
push str._netconfig.ini
lea ecx, [ebp - 0x218]
push ecx
call fcn.0048ea10
add esp, 8
lea edx, [ebp - 0x218]
push edx
push 0x40
push 0x4c2898
push str.ris.ini
push 0x4ada8c
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2e
push 0x4c2898
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421558
mov eax, dword [ebp - 0x220]
mov byte [eax], 0
mov eax, 0x4c2898
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret

Function at 0x421570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0048e260
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.0048e260
add esp, 0xc
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x42165d
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421610
mov ecx, dword [ebp - 0x220]
mov byte [ecx], 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0048ea00
add esp, 8
push str.CompsVer.inf
lea ecx, [ebp - 0x218]
push ecx
call fcn.0048ea10
add esp, 8
lea edx, [ebp - 0x218]
push edx
push 0x40
push 0x4c28d8
push str.23.00.00.00
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x4c28d8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret
Function at 0x421bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x421bef
cmp dword [ebp + 0xc], 0
jne 0x421bf6
xor eax, eax
jmp 0x421cc1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.0048e260
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x4adb2c
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.00411290
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x118]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421cb5
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x4adb40
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0048e1d0
add esp, 4
test eax, eax
je 0x421cab
push 0x4adb4c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00411250
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048e1d0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret

Function at 0x421cd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0048e260
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00421d60
add esp, 0x10
test eax, eax
je 0x421d49
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret
Function at 0x421dd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0048e260
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00421d60
add esp, 0x10
test eax, eax
je 0x421f2f
mov byte [ebp - 0x228], 0
push 0x104
push 0
lea ecx, [ebp - 0x227]
push ecx
call fcn.0048e260
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x4ada71
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
movsx eax, byte [ebp - 0x228]
test eax, eax
jne 0x421e8a
mov eax, dword [ebp + 0x10]
jmp 0x421f32
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x118]
push edx
push 0x4adb50
lea eax, [ebp - 0x228]
push eax
call fcn.00491700
add esp, 0xc
cmp dword [ebp - 0x118], 0
jbe 0x421ed7
mov eax, dword [ebp - 0x118]
jmp 0x421f32
lea ecx, [ebp - 0x11c]
push ecx
push 0x4adb54
lea edx, [ebp - 0x228]
push edx
call fcn.00491700
add esp, 0xc
cmp dword [ebp - 0x11c], 0
jbe 0x421f03
mov eax, dword [ebp - 0x11c]
jmp 0x421f32
lea eax, [ebp - 0x114]
push eax
push 0x4adb5c
lea ecx, [ebp - 0x228]
push ecx
call fcn.00491700
add esp, 0xc
cmp dword [ebp - 0x114], 0
jbe 0x421f2f
mov eax, dword [ebp - 0x114]
jmp 0x421f32
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret

Function at 0x421f40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0048e260
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x20]
push eax
call fcn.00421d60
add esp, 0x10
test eax, eax
je 0x421fc1
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret
Function at 0x422be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4adba8
push str.RAV.INI
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4abbf4
push str.LOGNAME
push str.DEBUG
call fcn.00421f40
add esp, 0x1c
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x422cf0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], eax
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x422cda
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, ecx
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
call fcn.00492090
add esp, 0xc
push 9
push str.logfiles
mov edx, dword [ebp - 8]
push edx
call fcn.0048eb00
add esp, 0xc
mov eax, dword [ebp - 8]
mov byte [eax + 9], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov byte [edx + 9], 0x5c
cmp dword [ebp - 0xc], 0xffffffff
je 0x422cb2
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x422cb2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx + 9], 0
jmp 0x422cda
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, edx
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00492090
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0
push str..log
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422d00
add esp, 0xc
mov esp, ebp
pop ebp
ret