joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435570
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
cmp esi, eax
jb 0x435580
mov esi, eax
test esi, esi
je 0x435612
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
mov dword [esp + 0x10], esi
lea ecx, [ecx]
mov eax, dword [edi + 8]
mov dl, byte [ebx + ebp]
or eax, 2
mov ecx, eax
mov byte [esp + 0x20], dl
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x20]
push 1
push eax
shr ecx, 8
xor cl, dl
mov byte [ebx], cl
mov eax, dword [edi]
not eax
push eax
call fcn.00431fe0
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
mov al, byte [edi + 7]
mov byte [esp + 0x38], al
lea eax, [esp + 0x38]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.00431fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
dec esi
jne 0x4355a0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x435620
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
test edi, edi
je 0x4356a5
push ebx
mov ebx, dword [esp + 0x14]
jmp 0x435650
movzx eax, byte [ebx]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00431fe0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
movzx eax, byte [esi + 7]
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00431fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [esi + 8], eax
dec edi
jne 0x435650
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x437ed0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
cmp edi, eax
jb 0x437edf
mov edi, eax
test edi, edi
je 0x437f5d
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
sub ebp, ebx
mov eax, dword [esi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x1c]
push 1
push eax
shr ecx, 8
xor cl, byte [ebx + ebp]
mov byte [ebx], cl
mov eax, dword [esi]
not eax
mov byte [esp + 0x24], cl
push eax
call fcn.00431fe0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
mov al, byte [esi + 7]
mov byte [esp + 0x34], al
lea eax, [esp + 0x34]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00431fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [esi + 8], eax
dec edi
jne 0x437ef4
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x437f80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0xc
jae 0x437f98
mov eax, dword [esp + 0x28]
mov byte [eax], 0xff
or eax, 0xffffffff
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x24]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
test edi, edi
je 0x438015
push ebx
mov ebx, dword [esp + 0x24]
nop
movzx eax, byte [ebx]
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00431fe0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
movzx eax, byte [esi + 7]
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00431fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [esi + 8], eax
dec edi
jne 0x437fc0
pop ebx
push 0xc
lea eax, [esp + 0x10]
push eax
push 0xc
push dword [esp + 0x34]
push esi
call fcn.00437ed0
mov ecx, dword [esp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x17]
pop edi
mov byte [ecx], al
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x43da60
Capabilities:
Terminate process

Disassembly:
mov edx, dword [str.Fatal_Internal_Error_in_libarchive:]
mov ecx, edx
push esi
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43da70
sub ecx, esi
push ecx
push edx
push 2
call fcn.00443730
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43da90
sub ecx, esi
push ecx
push edx
push 2
call fcn.00443730
push 1
push 0x456568
push 2
call fcn.00443730
add esp, 0x18
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
int3

Function at 0x43e0e0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [edi + 1]
push eax
push esi
call fcn.0043f020
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
add esp, 8
test eax, eax
je 0x43e137
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push dword [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov byte [ecx + eax], 0
jmp 0x43e146
push str.Out_of_memory
push 1
call fcn.0043da60
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
inc eax
mov dword [esp + 0x18], ecx
add eax, ecx
push eax
push edi
call fcn.0043f020
add esp, 8
test eax, eax
je 0x43e197
push dword [esp + 0x18]
mov eax, dword [edi]
push dword [esp + 0x18]
add eax, dword [edi + 4]
push eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0xc
add dword [edi + 4], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x43e1a6
push str.Out_of_memory
push 1
call fcn.0043da60
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.0043f020
add esp, 8
test eax, eax
je 0x43e1f2
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call ebp
add dword [esi + 4], edi
add esp, 0xc
mov ecx, dword [esi + 4]
xor edx, edx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.0043da60
Function at 0x4431d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__errno]
test eax, 0xffff7fff
jne 0x4432b4
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44324d
call ebx
cmp eax, 3
jne 0x443233
push ebp
call fcn.00443500
mov esi, eax
add esp, 4
test esi, esi
jne 0x443227
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44324d
call ebx
push eax
call fcn.00443100
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4432a8
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x44326d
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x443274
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x443297
call ebx
push eax
call fcn.00443100
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x44334b
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4433d9
call edi
cmp dword [eax], 0xd
jne 0x443321
test dword [esp + 0x18], 0x100
je 0x443321
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4432fd
call ebx
push eax
call fcn.00443100
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x443311
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call edi
cmp dword [eax], 2
jne 0x4433d9
push ebp
call fcn.00443500
mov esi, eax
add esp, 4
test esi, esi
jne 0x44334b
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wopen]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jns 0x4433c6
call edi
cmp dword [eax], 0xd
jne 0x4433c6
test ebp, 0x100
je 0x4433c6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44339f
call ebx
push eax
call fcn.00443100
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4433be
call edi
push esi
mov dword [eax], 0x15
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call edi
mov dword [eax], 0xd
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4433e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4433f8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x443402
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44346a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x443443
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x4433ff
cmp eax, 5
jne 0x44345d
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00443100
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x443730
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x443748
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x443794
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x443787
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00443100
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x443a80
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x443abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x443ae7
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
je 0x443ae7
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
test esi, esi
je 0x443ae7
xor eax, eax
pop esi
pop ecx
ret
mov eax, 0xffffffe7
pop esi
pop ecx
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
jmp loc.0040f000
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x5f3421ba
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
push ebx
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.msvcrt.dll_tmpnam]
mov edi, 0x5f345c60
mov dword [esp], 0x5f34113c
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], edi
je 0x5f3421f8
xor eax, eax
jmp 0x5f3422c7
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.msvcrt.dll_fopen]
push 0x5f341138
push dword [eax]
call esi
push 0x5f341134
push dword [ebp - 8]
mov dword [ebp + 8], eax
call esi
add esp, 0x10
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
je 0x5f34227f
cmp eax, ebx
je 0x5f342273
mov esi, dword [sym.imp.msvcrt.dll_fgets]
mov ebx, 0x3e8
jmp 0x5f34225f
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x5f34225f
push dword [ebp - 4]
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.msvcrt.dll_fputs]
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x3f0]
push ebx
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x5f342234
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor ebx, ebx
cmp dword [ebp - 4], ebx
pop esi
je 0x5f34228f
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
cmp dword [ebp + 8], ebx
je 0x5f3422b1
cmp dword [ebp - 4], ebx
je 0x5f3422b1
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5f341130
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
pop ecx
xor eax, eax
pop ecx
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x5f342346
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
push ebx
push edi
or edi, 0xffffffff
cmp dword [ebp + 0xc], 0
jbe 0x5f3424f7
push esi
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 8]
xor ebx, ebx
dec eax
je 0x5f3424a0
dec eax
je 0x5f34241a
dec eax
je 0x5f3423ee
dec eax
je 0x5f3423e5
dec eax
je 0x5f3423bf
dec eax
je 0x5f3423a4
dec eax
jne 0x5f342489
test edi, edi
jl 0x5f342489
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
jmp 0x5f3424e3
test edi, edi
jl 0x5f342489
push dword [esi]
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
jmp 0x5f3424df
test edi, edi
jl 0x5f342489
push dword [esi]
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp ebx, 2
jne 0x5f3424df
xor ebx, ebx
jmp 0x5f3424df
push dword [esi]
push 0x80000002
jmp 0x5f3423cd
test edi, edi
jl 0x5f342489
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esi + 4]
push 1
push 0
push dword [esi]
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x5f3423b8
xor ebx, ebx
inc ebx
test edi, edi
jl 0x5f34248e
mov eax, dword [esi - 4]
cmp eax, ebx
je 0x5f342457
test eax, eax
jne 0x5f34243b
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
js 0x5f34248c
jmp 0x5f342457
jge 0x5f34248c
mov ebx, eax
jmp 0x5f342452
push dword [ebp + edi*4 - 0x30]
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
cmp edi, 0xffffffff
jl 0x5f342457
cmp ebx, 1
jl 0x5f342441
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [esi]
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5f34248c
mov eax, dword [ebp + 8]
inc edi
cmp edi, 0xa
mov dword [ebp + edi*4 - 0x30], eax
jl 0x5f3424df
xor ebx, ebx
inc ebx
test edi, edi
pop esi
jl 0x5f3424fa
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
jns 0x5f342491
jmp 0x5f3424fa
test edi, edi
jl 0x5f3424b1
push dword [ebp + edi*4 - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
jns 0x5f3424a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5f34248c
mov eax, dword [ebp + 8]
inc edi
mov dword [ebp + edi*4 - 0x30], eax
test ebx, ebx
jne 0x5f34248c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x10
cmp eax, dword [ebp + 0xc]
jb 0x5f342366
jmp 0x5f34248c
mov ebx, dword [ebp + 0xc]
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x5f342621
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x5f34266e
push edi
push dword [esp + 0xc]
mov edi, 0x5f341fac
push 0x100
push dword [esi]
push edi
push 0x5f341f94
push 0x5f341f88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
pop edi
je 0x5f34265f
xor eax, eax
inc eax
jmp 0x5f342678
push 0x5f341f84
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x5f342676
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret 8

Function at 0x5f34267c
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_malloc]
push edi
push 0x2000
call ebp
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
mov dword [esp + 0xc], edi
jne 0x5f3426a9
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5f34272e
push esi
push dword [esp + 0x18]
push 0x1000
push edi
push 0x5f341f0c
push ebx
push 0x5f341fd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x10]
cmp word [eax], bx
mov esi, dword [esp + 0x1c]
je 0x5f34271f
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call ebp
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x5f342735
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
je 0x5f34271f
push 0x24
call ebp
mov dword [esi], eax
cmp word [edi], bx
pop ecx
mov esi, eax
jne 0x5f3426d2
push dword [esp + 0x10]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
push dword [esp + 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5f34272d
Function at 0x5f342aa5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x2000
call edi
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x5f342acd
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5f342b9a
push esi
push dword [ebp + 0x18]
mov esi, 0x5f342068
push 0x1000
push ebx
push esi
push dword [ebp + 0xc]
push 0x5f34205c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5f342b11
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x5f342b99
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
push ebx
jne 0x5f342b35
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x12]
push eax
call edi
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
je 0x5f342b51
mov dword [esi + 8], eax
jmp 0x5f342b58
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x12]
push eax
call edi
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x5f342b55
push 0xe
jmp 0x5f342afc
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
and dword [eax], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xc]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x14