joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009d70c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c5374
push 0x100c536c
push str.FlsAlloc
push 0x1e
call fcn.1009d539
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009d740
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b13a8]
call esi
jmp 0x1009d746
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009d78a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c5384
push 0x100c537c
push str.FlsGetValue
push 0x20
call fcn.1009d539
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009d7c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b13a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1009e27f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009e0f0
Function at 0x100a4cd1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a4d6e
push ebx
push esi
call fcn.100a4c9a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a320f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a4d1b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a4d6d
push edi
push eax
call fcn.1009e607
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a4d3b
call fcn.1009d25e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a4d6c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a320f
add esp, 0x20
test eax, eax
jne 0x100a4d5a
push edi
call fcn.1009d25e
jmp 0x100a4d62
push ebx
call fcn.1009d25e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a4d71
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a4d82
pop esi
ret
push ebx
push edi
push esi
call fcn.100a4c9a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1009e607
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a4daa
push ebx
push esi
push edi
call fcn.10083f30
add esp, 0xc
push 0
call fcn.1009d25e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a516e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a4dbf
Function at 0x100a5730
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a56ac
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a58a8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a58a8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100a5857
jg 0x100a5789
test eax, eax
je 0x100a584d
push 1
push 0x1000
call fcn.1009d201
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100a57af
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100a5844
push 0x8000
push ebx
call fcn.100a55dd
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100a57db
jg 0x100a57d6
cmp ecx, 0x1000
jb 0x100a57db
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009a4f1
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a5820
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100a57d6
jl 0x100a5807
test ecx, ecx
jne 0x100a57c8
push dword [ebp - 0xc]
push ebx
call fcn.100a55dd
push esi
call fcn.1009d25e
add esp, 0xc
xor edi, edi
jmp 0x100a58b9
cmp byte [edi + 0x24], 0
je 0x100a5837
cmp dword [edi + 0x20], 5
jne 0x100a5837
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100a5842
mov edi, dword [edi + 0x18]
jmp 0x100a5844
xor edi, edi
push esi
call fcn.1009d25e
pop ecx
jmp 0x100a58b9
test ecx, ecx
jg 0x100a5819
jl 0x100a5857
test eax, eax
jae 0x100a5819
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10094476
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a587a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100a5819
jmp 0x100a58b1
push ebx
call fcn.100a10df
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a5819
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100a58b9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100a58b6
mov edi, dword [edi + 0x18]
jmp 0x100a58b9
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10094476
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x276a273c
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
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
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x761177d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
mov ecx, 0x71c6678a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
mov ecx, 0x72650f2a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x10105a3b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5fc4bd2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x102081c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x10d0da8
push 0x14
lea eax, [ebp - 0x28]
push eax
push 0x10020dc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x102088a
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
mov esi, eax
jmp 0x1020854
inc esi
inc esi
cmp word [esi], 0x20
je 0x1020852
push 0x100427c
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0x10]
push eax
je 0x102087a
push 0x1004274
add esi, 4
jmp 0x102087f
push 0x100426c
push esi
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
pop esi
mov eax, dword [ebp + 0x10]
leave
ret 0xc

Function at 0x1020a42
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x25
push ebp
xor esi, esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1020a97
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push esi
push ebp
call edi
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42u.DLL_CString::GetBufferSetLength
test eax, eax
je 0x1020a9a
push ebx
push eax
push ebp
call edi
mov ecx, dword [esp + 0x18]
mov esi, eax
neg esi
sbb esi, esi
push 0xffffffffffffffff
neg esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
test esi, esi
jne 0x1020aa4
jmp 0x1020a9a
xor esi, esi
inc esi
mov ecx, dword [esp + 0x18]
push ebp
call fcn.0106e90a
push dword [esp + 0x18]
call fcn.01020900
test eax, eax
je 0x1020aba
test esi, esi
je 0x1020aba
xor eax, eax
inc eax
jmp 0x1020abc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1020d01
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10bd1e9
call fcn.0106f6c0
sub esp, 0x240
push ebx
push edi
xor ebx, ebx
mov edi, 0x80000002
push 0x4000
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], 0x2000
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x80000001
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
call sub.MFC42u.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
je 0x1020ece
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0xba4]
mov dword [ebp - 0x2c], ecx
call sub.MFC42u.DLL_CStringList::RemoveAll
lea ecx, [esi + 0xbc0]
mov dword [ebp - 0x34], ecx
call sub.MFC42u.DLL_CStringList::RemoveAll
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x10042b8
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1020e9d
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0x208
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x18]
cmp eax, ebx
jne 0x1020e9d
cmp dword [ebp - 0x30], 7
jne 0x1020d92
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x24c]
push 0x100429c
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1020e06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
jmp 0x1020d92
cmp word [esi], bx
je 0x1020df8
mov edi, 0x1004288
push 0x25
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1020e59
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x1c]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.01020a42
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push edi
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x1020e6e
lea eax, [ebp - 0x24c]
push eax
push esi
lea eax, [ebp + 8]
push edi
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
cmp dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x34]
lea eax, [ebp + 8]
push eax
je 0x1020e7e
mov ecx, dword [ebp - 0x2c]
call sub.MFC42u.DLL_CStringList::AddTail
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x1020e10
jmp 0x1020df8
cmp dword [ebp - 0x10], ebx
je 0x1020eae
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + eax*4 - 0x40]
cmp edi, ebx
jne 0x1020d6a
push dword [ebp - 0x24]
call sub.MFC42u.DLL_operatordelete
pop ecx
xor eax, eax
pop esi
jmp 0x1020ed1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1021b8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1021c48
push 0x1004ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1021c42
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a94
push eax
call edi
push 0x1004a74
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push 0x1004a54
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x1004a34
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push 0x1004a10
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push 0x10049e8
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push 0x10049c4
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x1021c36
cmp dword [esi + 0xc], ebx
je 0x1021c36
cmp dword [esi + 0x10], ebx
je 0x1021c36
cmp dword [esi + 0x14], ebx
je 0x1021c36
cmp dword [esi + 0x18], ebx
je 0x1021c36
cmp eax, ebx
je 0x1021c36
cmp dword [esi + 0x1c], ebx
jne 0x1021c42
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi], 1
pop esi
pop ebx
ret

Function at 0x10220e0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x1022133
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x102211d
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x200]
push eax
mov ecx, esi
call fcn.01022033
xor eax, eax
inc eax
pop esi
leave
ret 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102215f
test ah, 4
je 0x102215f
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x102211d
xor eax, eax
jmp 0x102212e
Function at 0x1022383
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 8]
push eax
push dword [0x10cd6a0]
push 0x80000002
call ebx
test eax, eax
je 0x10223ac
xor eax, eax
jmp 0x102241e
push esi
push edi
xor esi, esi
mov eax, dword [esi + 0x1004740]
mov edi, dword [esi + 0x1004744]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x820
call ebx
test eax, eax
jne 0x1022408
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10223ff
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
push eax
call fcn.01022293
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 8
cmp esi, 0x50
jb 0x10223b0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
pop ebx
leave
ret 4

Function at 0x1022423
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10bd2ef
call fcn.0106f6c0
sub esp, 0x224
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push dword [0x10cd67c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1022485
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1004ad8
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1022498
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x20], eax
lea eax, [eax + eax + 0x1e]
push eax
mov dword [ebp - 0x18], eax
call sub.MFC42u.DLL_operatornew
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
je 0x1022485
push 7
pop ecx
mov esi, str._GlobalRoot
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
lea esi, [ebp - 0x230]
lea edi, [ebx + 0x1c]
rep movsw word es:[edi], word [esi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
and word [eax + ebx - 2], 0
and dword [ebp - 4], 0
push ebx
call fcn.01022293
or dword [ebp - 4], 0xffffffff
push ebx
call sub.MFC42u.DLL_operatordelete
xor eax, eax
pop ecx
inc eax
jmp 0x1022487
Function at 0x102251c
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10bd309
call fcn.0106f6c0
sub esp, 0x880
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x410
lea eax, [ebp - 0x88c]
push eax
push 0x1004b54
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1022563
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004af8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x10225a5
lea ecx, [ebp - 0x3c]
call fcn.01021f2b
xor edi, edi
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
call fcn.01022423
cmp eax, edi
jne 0x102258c
lea ecx, [ebp - 0x3c]
jmp 0x102259c
lea eax, [ebp - 0x3c]
push eax
call fcn.01022383
cmp eax, edi
lea ecx, [ebp - 0x3c]
jne 0x10225ac
or dword [ebp - 4], 0xffffffff
call fcn.01021f47
xor eax, eax
jmp 0x1022675
lea eax, [ebp - 0x88c]
push eax
call fcn.01022293
lea ecx, [ebp - 0x6c]
call fcn.01021b6d
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.01021b8f
lea ecx, [ebp - 0x6c]
call fcn.0102223e
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.01021c64
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x18], ebx
jne 0x1022601
lea ecx, [ebp - 0x6c]
call fcn.01021e36
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.01022220
jmp 0x102265a
push ebx
lea ecx, [ebp - 0x3c]
call fcn.01022293
mov esi, dword [ebp - 0x14]
cmp word [esi], di
je 0x1022628
push esi
lea ecx, [ebp - 0x3c]
call fcn.01022293
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [esi + eax*2]
jmp 0x102260d
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
jmp 0x10225d4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], edi
call fcn.01022163
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.01021f47
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1024627
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.01031045
mov esi, eax
test esi, esi
je 0x102467e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x208]
push 0x1004284
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x1024680
xor eax, eax
pop esi
leave
ret 4