joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446201
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69bacd
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0060a1b0
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x44632f
push ebx
push edx
call fcn.0044637c
mov ebx, eax
test ebx, ebx
jne 0x446269
push esi
jmp 0x446357
lea ecx, [ebp - 0x1014]
call fcn.00401f50
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x4462ee
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.004288fb
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.00430e67
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x44631c
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00407700
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00428a03
jmp 0x44635e
push esi
mov ecx, edi
call fcn.00406f20
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x446315
test esi, esi
jne 0x446338
mov esi, 0x6c1027
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00406f20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00609c1d
leave
ret 0x10
Function at 0x4478a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0xc8], 0
jne 0x44796b
cmp dword [edi + 0xb8], 0
je 0x44796b
push esi
call fcn.00436ce4
push 5
push dword [edi + 0xb8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44796a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44796a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44796a
push ebx
call fcn.00436ce4
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x447969
push 0x10
call fcn.0044902e
pop ecx
mov ecx, dword [ebx]
push esi
push eax
mov dword [ebp - 4], eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
mov ecx, dword [edi + 0xcc]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc8], eax
test ecx, ecx
je 0x447963
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
push 0x10
push dword [edi + 0xcc]
call fcn.00609c55
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov dword [edi + 0xcc], eax
pop ebx
pop esi
mov eax, dword [edi + 0xc8]
pop edi
leave
ret

Function at 0x448696
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x4486db
call fcn.00436ce4
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4486d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x448722
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4486fe
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6bfdfc]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x44871f
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x44b563
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8
Function at 0x455ed2
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x455f4e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x455f13
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x455f13
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x455f41
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x455f44
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x455f3b
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x455ef7
test eax, eax
je 0x455f95
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.004561e8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45623a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x69cabb
call fcn.0060aedf
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x456331
cmp edi, dword [ebx + 0xc]
jge 0x456331
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x456291
cmp edi, dword [esi + 8]
jl 0x45631f
cmp dword [ebp + 0xc], 0
je 0x45631f
xor edi, edi
jmp 0x4562c3
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00455c0a
mov esi, eax
test esi, esi
je 0x4562ab
mov dword [esi], vtable.CThreadData.0
jmp 0x4562ad
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00429fb3
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4562df
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4562eb
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x456358
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.006300b0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x456331
cmp edi, dword [esi + 8]
jge 0x456331
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0060ae44
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00427404
int3

Function at 0x457103
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x69ccec
call fcn.0060ae76
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f20
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x457165
call fcn.00436d32
cmp eax, 1
jne 0x457165
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040b850
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042a4a2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00428a03
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x457177
call fcn.00446e07
jmp 0x45717d
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00428a03
mov eax, esi
call fcn.0060ae44
ret 0xc
Function at 0x4572c8
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x69cd82
call fcn.0060ae76
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f20
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x457326
call fcn.00436d32
cmp eax, 1
jne 0x457326
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040b850
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042a4a2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00428a03
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00428a03
mov eax, esi
call fcn.0060ae44
ret 0x10

Function at 0x45734d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x69cdb4
call fcn.0060ae76
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f20
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x4573ab
call fcn.00436d32
cmp eax, 1
jne 0x4573ab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040b850
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042a4a2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00428a03
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00428a03
mov eax, esi
call fcn.0060ae44
ret 0x14

Function at 0x45c723
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004342ad
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45c75f
call fcn.0045ce8a
mov dword [esi + 0xc], 1
jmp 0x45c764
call fcn.0045ce8a
cmp dword [esi], 0
je 0x45c7af
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x45c78a
push edi
call fcn.0042e252
lea ecx, [edi + 1]
push ecx
jmp 0x45c799
push 0xff
call fcn.004288fb
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00430e67
pop edi
jmp 0x45c7d3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x45c7d3
push dword [esi]
push dword [ebp - 4]
call fcn.00460d1e
pop esi
leave
ret 0xc
Function at 0x45cd0c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0045ce8a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45cd54
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042e252
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00430e67
jmp 0x45cd5f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00460d1e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x46790b
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x7745b0]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x467964
push 0x6c178c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x467989
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x7745b0], eax
jmp 0x46796d
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x467989
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x6bfdfc]
call esi
jmp 0x467acb
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.00467de6
lea eax, [ebp - 0x14]
push eax
call fcn.0065a585
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0066bde6
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00467de6
lea eax, [ebp - 0x14]
push eax
call fcn.0065a585
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0066bde6
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.00467de6
lea eax, [ebp - 0x14]
push eax
call fcn.0065a585
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0066bde6
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00467de6
lea eax, [ebp - 0x14]
push eax
call fcn.0065a585
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0066bde6
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.00467de6
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0065a585
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0066bde6
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609c1d
leave
ret
Function at 0x46a13b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x46a191
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x46a16a
call fcn.004383b4
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x46a17f
call fcn.004383b4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x46a191
call fcn.004383b4
call fcn.00436ce4
cmp dword [eax + 0x3c], 0
je 0x46a1a6
push esi
mov ecx, ebx
call fcn.00469758
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0046a47b
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x46a1cf
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x46a1db
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x46c761
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x46c78b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46c791
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00427bef
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00483a49
int3

Function at 0x46c855
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x46c89c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x46c8ab
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x46c8ab
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x6bfdfc]
call edi
jmp 0x46c8ad
cmp dword [esi + 4], ebx
je 0x46c8ab
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46cae2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x46caf3
xor eax, eax
jmp 0x46cb0f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46cb14
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00427bef
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00483a49
int3
Function at 0x46cbef
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46cc22
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00427bef
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00483a49
int3

Function at 0x46ccf6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x46cd21
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46cd27
cmp dword [ebp - 4], esi
jne 0x46cd3e
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00427bef
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00483a49
lea ecx, [edi + 0xc]
call fcn.00427bef
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0048361b
int3

Function at 0x46f930
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.006705ed
pop ecx
test eax, eax
jne 0x46f972
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00446894
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46f938
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x46fc4a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x46fc85
push 0
call dword [0x6bfdfc]
mov ecx, esi
call edi
test eax, eax
je 0x46fc81
xor eax, eax
inc eax
jmp 0x46fc98
xor eax, eax
jmp 0x46fc98
push dword [esi + 0x24]
call dword [0x6bfdfc]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x47d439
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x69f9a4
call fcn.0060aea9
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.00436ce4
push 0
mov ecx, dword [eax + 4]
call fcn.00445ee2
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.0047d1ea
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00428a03
test esi, esi
jne 0x47d62b
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.006300b0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x47d5c7
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.006300b0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0047d3da
test eax, eax
jne 0x47d5b2
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.0047be68
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.0066be50
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403730
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x47d51f
test edi, edi
je 0x47d5e9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.0047c682
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00428a03
jmp 0x47d631
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x47d63c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.00445e84
mov eax, dword [ebp - 0x228]
call fcn.0060ae58
ret