joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54cf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5619fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x54d002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00550dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x54d002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005486e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0055120b
push 0x10
call fcn.005511d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x54cfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0053d1c0
jmp 0x54cfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0054cb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x54cff0
mov ecx, edi
call fcn.0053d2c0
push edi
call fcn.005511c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x54d021
inc ebx
cmp ebx, 0x20
jb 0x54cf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x54e250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562808
push 0x552288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x54e329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x54e329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005511d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x54e329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x54e329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x54e32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0054e351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x54ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x54ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x54ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54ed94
push eax
push esi
call fcn.0055120b
add esp, 8
pop esi
ret 0x10

Function at 0x54eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x54ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x54ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x567320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00550dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x54edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x54ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x54eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x54eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x567320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00550dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x54eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x54ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x54f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x54f131
push esi
call fcn.00552145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00541080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x54f131
push 0
push ebp
call fcn.005413a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00541260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x54f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005412f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x54f121
push 0x567918
push edi
call fcn.005503f0
push eax
push ebx
push esi
call fcn.0054ef60
push 0x5678f8
push edi
call fcn.005503f0
push eax
push ebx
push esi
call fcn.0054ef60
push 0x5678d8
push edi
call fcn.005503f0
push eax
push ebx
push esi
call fcn.0054ef60
push 0x5678c0
push edi
call fcn.005503f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0054ef60
push 0x5678a0
push edi
call fcn.005503f0
push eax
push ebx
push esi
call fcn.0054ef60
push 0x567888
push edi
call fcn.005503f0
push eax
push ebx
push esi
call fcn.0054ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5501b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00550140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00550140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00550140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00550140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x550bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x550c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x56287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x550c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x550c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x409cef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43eaf0]
jne 0x409cf9
repz ret
jmp fcn.0040c782

Function at 0x40b4ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43eaf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407781
and dword [ebp - 0x14], 0
cmp dword [0x456168], 0
mov dword [ebp - 0x18], eax
jne 0x40b561
push 0x402c7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b609
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c70
push ebx
call edi
test eax, eax
je 0x40b609
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402c60
push ebx
mov dword [0x456168], eax
call edi
push eax
call esi
push 0x402c4c
push ebx
mov dword [0x45616c], eax
call edi
push eax
call esi
push 0x402c30
push ebx
mov dword [0x456170], eax
call edi
push eax
call esi
mov dword [0x456178], eax
test eax, eax
je 0x40b561
push 0x402c18
push ebx
call edi
push eax
call esi
mov dword [0x456174], eax
mov eax, dword [0x456174]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b5ba
cmp dword [0x456178], ecx
je 0x40b5ba
push eax
call esi
push dword [0x456178]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b5ba
test ebx, ebx
je 0x40b5ba
call edi
test eax, eax
je 0x40b5b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b5b1
test byte [ebp - 8], 1
jne 0x40b5ba
or dword [ebp + 0x10], 0x200000
jmp 0x40b5ed
mov eax, dword [0x45616c]
cmp eax, dword [ebp - 0x18]
je 0x40b5ed
push eax
call esi
test eax, eax
je 0x40b5ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b5ed
mov eax, dword [0x456170]
cmp eax, dword [ebp - 0x18]
je 0x40b5ed
push eax
call esi
test eax, eax
je 0x40b5ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456168]
call esi
test eax, eax
je 0x40b609
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b60b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409cef
leave
ret
Function at 0x446e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x446ee2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x446ed4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x446ecc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x446e95
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x446ef0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x446f5a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x446f2a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x446f76
push ecx
push esi
call fcn.00448500
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x446fd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x446fee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x446fe3
pop esi
ret

Function at 0x405d66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x405d66
lcall 0x5de5, 0x8b10c483
jmp loc.00773a50
Function at 0x401040
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x300
lea eax, [esp + 0x100]
push esi
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push ecx
push edx
call esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 3]
lea eax, [esp + eax + 3]
cmp cl, 0x2e
je 0x401092
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x2e
jne 0x401089
mov ecx, dword [esp + 0x318]
lea edx, [esp + 4]
push ecx
push edx
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x310]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x310]
lea ecx, [esp + 0x208]
push 0x100
push ecx
mov ecx, dword [esp + 0x314]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x314]
lea edx, [esp + 0x204]
push edx
push eax
call esi
pop esi
add esp, 0x300
ret

Function at 0x401100
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x100]
lea edx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax - 1]
lea eax, [esp + eax - 1]
cmp cl, 0x2e
je 0x40114f
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x2e
jne 0x401146
mov ecx, dword [esp + 0x210]
lea edx, [esp]
push ecx
push edx
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x20c]
mov edx, dword [esp + 0x208]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x208]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x200
ret

Function at 0x401190
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
push 0x418118
push 0
push str.DebugMode
push str.Settings
call fcn.00401100
add esp, 0x10
test eax, eax
jle 0x4011d9
mov ecx, dword [esp + 0x204]
lea eax, [esp + 0x208]
push eax
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x200
ret
Function at 0x4011e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012a5
lea ecx, [esp + 4]
lea edx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push edi
push str.PROCESSOR_ARCHITECTURE
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40129a
push ebx
lea edx, [esp + 0x94]
push esi
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0xc]
mov esi, str.AMD64
lea eax, [esp + 0x18]
mov byte [esp + ecx + 0x18], 0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40128a
test cl, cl
je 0x401286
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40128a
add eax, 2
add esi, 2
test cl, cl
jne 0x401262
xor eax, eax
jmp 0x40128f
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x40129a
mov edi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10c
ret

Function at 0x403da5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004039e9
push eax
push esi
push dword [ebp + 8]
call fcn.0040399e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
invalid
dec ecx

Function at 0x403e30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loop 0x403e84
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004039e9
push eax
push esi
push dword [ebp + 8]
call fcn.0040399e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004039d9
rcl byte [ecx - 0x627727d1], cl
jl 0x403e5e
invalid
invalid
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004039d9
int 0x5b
imul ebx, ebx, 0xffffff8d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x405e75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418d98
cmp edx, dword [eax]
je 0x405e97
add eax, 8
inc ecx
cmp eax, 0x418e28
jl 0x405e88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418d98]
jne 0x405fc5
mov eax, dword [0x41baa0]
cmp eax, 1
je 0x405f9f
test eax, eax
jne 0x405ec8
cmp dword [0x41897c], 1
je 0x405f9f
cmp edx, 0xfc
je 0x405fc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405eff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406100
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004061f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405f42
lea eax, [ebp - 0x1a4]
push eax
call fcn.004061f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414584
push edi
call fcn.00407c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406100
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406110
lea eax, [ebp - 0xa0]
push 0x414564
push eax
call fcn.00406110
push dword [esi + 0x418d9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406110
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407bfc
add esp, 0x2c
pop edi
jmp 0x405fc5
lea eax, [ebp + 8]
lea esi, [esi + 0x418d9c]
push 0
push eax
push dword [esi]
call fcn.004061f0
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 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
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 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

Function at 0x7d55b1
Capabilities:
Encode data using xor

Disassembly:
mov word [esp], bp
mov esp, ebp
call fcn.00a28666
push eax
invalid

Function at 0x97846a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
lea edi, [edi + 1]
pushal
cwde
mov al, al
push 0x51a8025e
mov eax, dword [esp + 0x48]
push 0xcf1d3924
jmp 0x7d653c
and al, 4
lea esp, [esp + 0x50]
ja 0x97edf9
call fcn.00980a4b
pop ebx
pop ds
sar dl, 1
sub eax, 0x9a998135
outsb dx, byte [esi]
xchg byte [esi + edx*4 - 0x46], bl
pop ebp
and al, 6
outsb dx, byte [esi]
add ah, byte [esi + edx*4 + 0x41a28f26]
jne 0x7d6502
sar dword [edi + ebp*8], 0x84
pushal
adc edi, esp
div dh
arpl word [ecx + 0x59bac276], cx
and dl, bh
in eax, 0xbc
dec ecx
add ebp, dword [eax + 0xcb7d9a0]
pop esi
or al, 0x1c
xor eax, 0xcf542366
xor ah, byte [esi + 0x80d04d2]
shr edx, cl
fstp xword [edi]
fist word [edi + 0x31da5e9c]
bound edx, qword [ebx - 0x369676ee]
dec edi
dec edx
hlt
bt dx, 1
xor al, 0x3b
push 0x8b360aa5
lea esp, [esp + 0x10]
jns 0x974d58
pushal
inc al
bt ax, ax
test dl, bl
cmp al, byte [edi]
push dword [esp]
setp al
movzx ax, cl
jmp 0x7d587a