joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push ebx
push esi
push eax
push 0x20119
push 0
push str.SOFTWAREAMDFuel
push 0x80000002
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000798b
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ServiceStatus
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007986
cmp dword [ebp - 0xc], 4
jne 0x10007986
push dword [ebp - 4]
call esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call esi
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push str.SOFTWAREAMDFuel
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100079e6
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push str.ServiceStatus
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100079e1
cmp dword [ebp - 8], 4
jne 0x100079e1
push dword [ebp - 4]
call esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call esi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100079f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10007ab7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREAMDFuel
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007a4d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PerUserPath
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007a4d
cmp dword [ebp - 0x14], 1
je 0x10007aae
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1001041c
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x10007abd
push dword [ebp - 8]
push 0x104
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push 0x10010498
push 0x104
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_wcscat_s]
push str.AMDFuel_
push 0x104
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x24
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], str.Could_not_retrieve_the_Program_Data_directory_for_Profiles
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1001253c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
int3
Function at 0x1000d870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10016018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x10016018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x1000da03
cmp byte [edi + 0x46], 0
je 0x1000da03
mov eax, dword [edi]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x1000d8db
xor al, al
jmp 0x1000da05
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.1000d470
mov dword [esp + 0x40], 0
nop
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000d93b
dec eax
je 0x1000d93f
sub eax, 2
je 0x1000d9e9
xor bl, bl
jmp 0x1000d9eb
mov byte [edi + 0x46], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x1000d977
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000d934
cmp byte [edi + 0x46], 0
je 0x1000d9e9
test esi, esi
jne 0x1000d8f0
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x1000d9de
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.10001ed0
test al, al
je 0x1000d8f0
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [ecx + eax], xmm0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [eax + esi], 0
jmp 0x1000d8f0
push str.string_too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1000d9ff
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x1000da05
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000e3b2
mov esp, ebp
pop ebp
ret
Function at 0x1000dbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10016018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x10016018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x1000dd37
cmp byte [edi + 0x45], 0
je 0x1000dd37
push 0xffffffffffffffff
call fcn.1000c910
cmp eax, 0xffffffff
jne 0x1000dc10
xor al, al
jmp 0x1000dd39
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.1000d470
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000dc6f
dec eax
je 0x1000dc73
sub eax, 2
je 0x1000dd1d
xor bl, bl
jmp 0x1000dd1f
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x1000dcab
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000dc68
cmp byte [edi + 0x45], 0
je 0x1000dd1d
test esi, esi
jne 0x1000dc24
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x1000dd12
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.10001ed0
test al, al
je 0x1000dc24
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [ecx + eax], xmm0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [eax + esi], 0
jmp 0x1000dc24
push str.string_too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1000dd33
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x1000dd39
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000e3b2
mov esp, ebp
pop ebp
ret
Function at 0x43b6aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x43b716
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x43b75f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00443230
add esp, 8
test eax, eax
jne 0x43b75d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x43b761
jmp 0x43b70d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43e466
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0043e444
add esp, 4
and eax, 0xff
test eax, eax
je 0x43e4ef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0043ee90
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x43e4ed
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x43e4ed
jmp 0x43e4ef
jmp 0x43e46f
mov esp, ebp
pop ebp
ret

Function at 0x440bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x445938
cmp edx, dword [eax]
je 0x440c12
add eax, 8
inc ecx
cmp eax, 0x4459c8
jl 0x440c03
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x445938]
jne 0x440d40
mov eax, dword [0x4483f8]
cmp eax, 1
je 0x440d1a
test eax, eax
jne 0x440c43
cmp dword [0x445674], 1
je 0x440d1a
cmp edx, 0xfc
je 0x440d40
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x440c7a
lea eax, [ebp - 0x1a4]
push 0x444540
push eax
call fcn.0043f000
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043ef80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x440cbd
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043ef80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44453c
push edi
call fcn.0043f1b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x444520
push eax
call fcn.0043f000
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043f010
lea eax, [ebp - 0xa0]
push 0x44451c
push eax
call fcn.0043f010
push dword [esi + 0x44593c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043f010
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4444f4
push eax
call fcn.004429a8
add esp, 0x2c
pop edi
jmp 0x440d40
lea eax, [ebp + 8]
lea esi, [esi + 0x44593c]
push 0
push eax
push dword [esi]
call fcn.0043ef80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4488d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405dee
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4488d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4488d0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x403179
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x403196
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x4031a5
mov ebx, 0x418908
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031ba
mov ecx, dword [0x448838]
add ecx, eax
push ecx
call fcn.00403162
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403130
test eax, eax
jne 0x4031d1
push 0xfffffffffffffffd
pop eax
jmp 0x40332a
test dword [ebp + 0x14], 0x80000000
je 0x403309
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x428910
mov dword [ebp - 0xc], eax
call fcn.00406605
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403327
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403211
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414908
push edi
call fcn.00403130
test eax, eax
je 0x4031c9
sub dword [ebp + 0x14], esi
mov dword [0x428928], edi
mov dword [0x42892c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x428910
mov dword [0x428930], ebx
mov dword [0x428934], eax
call fcn.00406625
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032fb
mov esi, dword [0x428930]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4488d4], 1
mov edi, eax
je 0x4032af
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40327c
cmp dword [ebp + 0x14], 0
jne 0x4032af
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404ba8
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4032f0
cmp dword [ebp + 0x10], eax
jne 0x4032d8
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403302
cmp dword [ebp - 0x10], esi
jne 0x403302
add dword [ebp - 4], esi
jmp 0x4032e4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x428930]
cmp dword [ebp - 0x14], 1
jne 0x403230
jmp 0x403327
cmp dword [ebp + 0x14], eax
jg 0x403204
jmp 0x403327
push 0xfffffffffffffffc
jmp 0x4031cb
push 0xfffffffffffffffe
jmp 0x4031cb
test edi, edi
je 0x403370
cmp dword [ebp + 0x14], esi
jge 0x403315
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403130
test eax, eax
je 0x4031c9
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40333c
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414908
push edi
call fcn.00403130
test eax, eax
je 0x4031c9
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403302
cmp esi, dword [ebp + 0x10]
jne 0x403302
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403331
jmp 0x403327
Function at 0x405832
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43a9e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43a9e0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40586d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059a9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059c6
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059c9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a3c
test edi, edi
jne 0x405a03
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a36

Function at 0x405a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ab1
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aa0
cmp dword [ebp + 0x14], 1
je 0x405aa2
cmp dword [ebp + 0x14], 2
je 0x405aa2
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405c3a
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405c31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405caf
cmp dword [0x43fb68], ebx
je 0x405caf
cmp byte [0x444380], bl
je 0x405c79
cmp dword [0x40a058], 0xffffffff
jne 0x405c82
push 4
push 0x40000000
push 0x444380
call fcn.004059c9
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405caf
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405caf
push esi
push 0x408cbc
mov esi, 0x43fb80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x405eac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa28
push esi
call fcn.00405b59
push esi
call fcn.00405938
mov edi, eax
test edi, edi
jne 0x405ecd
xor eax, eax
jmp 0x405f25
push edi
call fcn.00405b7b
test byte [0x448848], 0x80
je 0x405ee6
mov al, byte [edi]
test al, al
je 0x405ec9
cmp al, 0x5c
je 0x405ec9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f06
push esi
call fcn.00405dc7
test eax, eax
je 0x405f00
test byte [eax], 0x10
je 0x405f2a
push esi
call fcn.00405e85
push esi
call ebx
cmp eax, edi
jg 0x405ef1
push esi
call fcn.00405e58
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405f24
Function at 0x4061da
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405dee
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4061fe
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406337
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ca28], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ca28
je 0x406242
push 1
push 0
push esi
call fcn.004059c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40633d
cmp eax, edi
jg 0x40633d
push edi
mov esi, 0x43d368
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40633d
cmp eax, edi
jg 0x40633d
push esi
push ebp
push str._s_s_r_n
push 0x43ce28
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4487ec]
push dword [eax + 0x128]
push esi
call fcn.00405f84
push 4
push 0xc0000000
push esi
call fcn.004059c9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x406337
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406330
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406330
cmp edi, dword [esp + 0x18]
jne 0x406330
push str._Rename__r_n
push esi
call fcn.00405f2e
test eax, eax
jne 0x406344
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405b59
add edi, 0xa
mov eax, edi
push ebx
push 0x43ce28
add eax, esi
push eax
call fcn.00405985
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4488b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d68
add eax, 0xa
push eax
call fcn.00405f2e
test eax, eax
je 0x4062fb
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40636b
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406360
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4062fd
Function at 0x406597
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f76c], 0
jne 0x4065d2
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065ab
mov dword [ecx*4 + 0x43f768], eax
inc ecx
cmp ecx, 0x100
jl 0x4065a6
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4065ff
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f768]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4065e0
not eax
pop ebp
ret 0xc