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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SoftwareMicrosoftTracing_s
mov esi, ecx
lea eax, [ebp - 0x804]
push 0x400
mov dword [esi], 0
push eax
mov dword [edi], 0x10000
call fcn.0040f5cc
add esp, 0x10
lea ecx, [ebp - 0x80c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x804]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x810], eax
test eax, eax
jne 0x40b7d6
mov edx, dword [ebp - 0x80c]
push ebx
lea eax, [ebp - 0x808]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x814]
push ecx
push 0
push str.EnableFileTracing
push edx
mov dword [ebp - 0x808], 4
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b776
call ebx
push eax
push str.EnableFileTracing
push str.SW2_TRACE_LEVEL_WARNING
push str.__23s::SW2_RegGetDWORDValue__::RegQueryValueEx__s__FAILED:__x
mov eax, 0x20000
call fcn.0040b690
add esp, 0x10
mov edx, dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push eax
push edi
lea ecx, [ebp - 0x814]
push ecx
push 0
push str.FileTracingMask
push edx
mov dword [ebp - 0x808], 4
call esi
test eax, eax
je 0x40b7c2
call ebx
push eax
push str.FileTracingMask
push str.SW2_TRACE_LEVEL_WARNING
push str.__23s::SW2_RegGetDWORDValue__::RegQueryValueEx__s__FAILED:__x
mov eax, 0x20000
call fcn.0040b690
add esp, 0x10
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x810]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f43d
mov esp, ebp
pop ebp
ret

Function at 0x40b7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SoftwareMicrosoftTracing_s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0040f5cc
add esp, 0x10
lea ecx, [ebp - 0x808]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x804]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40b88c
mov ecx, dword [ebp - 0x808]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push str.EnableFileTracing
push ecx
call edi
mov eax, dword [ebp - 0x808]
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push esi
push str.FileTracingMask
push eax
call edi
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
Function at 0x40b8e0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40b9e0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40b9ac
mov edx, dword [ebp - 4]
push 0
push edi
push 0
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40b999
mov eax, dword [edi]
push eax
mov esi, ebx
call fcn.0040bae0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b9cf
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
push eax
push edi
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40b9cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2GetSHA1__::CryptGetHashParam2::_FAILED___ld_
mov eax, 0x10000
call fcn.0040b690
add esp, 0xc
mov eax, ebx
mov esi, 0x1770
call fcn.0040bb70
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2GetSHA1__::CryptGetHashParam1::_FAILED___ld_
jmp 0x40b9bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2GetSHA1__::CryptHashData::_FAILED___ld_
mov eax, 0x10000
call fcn.0040b690
mov esi, 0x1770
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2GetSHA1__::CryptCreateHash_CALG_SHA1_::_FAILED___ld_
mov eax, 0x10000
call fcn.0040b690
add esp, 0xc
mov eax, 0x1770
mov esp, ebp
pop ebp
ret
Function at 0x40ba10
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push ebx
push esi
mov dword [ebp - 0x18], eax
mov esi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], str.534543555245573252554c455a544845574f524c44574954484f55544245494e474556494c
mov dword [ebp - 0x10], 0x4b
mov eax, 1
je 0x40ba4c
mov eax, 5
lea edx, [ebp - 8]
push edx
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push str.SECUREW2
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x40baa9
mov edx, dword [ebp - 8]
push edx
call fcn.0040bae0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40ba97
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push eax
push edx
push eax
mov dword [ecx], eax
mov eax, dword [esi]
push eax
call fcn.0040f557
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2EncryptData__::CryptProtectData_FAILED___ld_
mov eax, 0x10000
call fcn.0040b690
add esp, 0xc
pop esi
mov eax, 0x1770
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
xor edi, edi
push edi
push esi
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c4d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SW2_TRACE_LEVEL_WARNING
push str.__23s::SW2_RegGetDWORDValue__::RegQueryValueEx__s__FAILED:__x
mov eax, 0x20000
call fcn.0040b690
add esp, 0x10
mov eax, 0x3f3
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
push ecx
mov dword [ebp - 4], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c593
mov edx, dword [edi]
push edx
call fcn.0040bae0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x40c573
mov eax, dword [esi]
mov edx, dword [ebp + 8]
push edi
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.SW2_TRACE_LEVEL_WARNING
push str.__23s::SW2_RegGetValue__::RegQueryValueEx2__s__FAILED:__x
mov eax, 0x20000
call fcn.0040b690
add esp, 0x10
mov eax, esi
call fcn.0040bb70
mov dword [edi], 0
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
push eax
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2_RegGetValue__::could_not_allocate_memory_for_ppbData___ld_
mov eax, 0x10000
call fcn.0040b690
add esp, 0xc
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.SW2_TRACE_LEVEL_WARNING
push str.__23s::SW2_RegGetValue__::RegQueryValueEx__s__FAILED:__x
mov eax, 0x20000
call fcn.0040b690
add esp, 0x10
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 4]
call fcn.0040ba10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c60f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push 3
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c605
mov esi, 0x6e
lea eax, [ebp - 4]
call fcn.0040bb70
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c720
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00415110
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4285b8]
push esi
push edi
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00410110
push 0x800
lea ecx, [ebp - 0x804]
push 0
push ecx
call fcn.00410110
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0x18
push 0x400
lea edx, [ebp - 0x1004]
push edx
push str.ProgramFiles
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x40c7ef
push 0x400
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40c7ef
push str.SecureW2_sw2_res_default.bmp
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.0040f5ea
lea eax, [ebp - 0x804]
push eax
push str.SW2_TRACE_LEVEL_DEBUG
push str.__23s::SW2LoadCustomerLogo__::checking_directory:___s_
mov eax, 0x80000
call fcn.0040b690
add esp, 0x18
lea ecx, [ebp - 0x804]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40c896
push 0x800
lea edx, [ebp - 0x1004]
push 0
push edx
call fcn.00410110
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00410110
add esp, 0x18
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push str.ProgramFiles_x86_
call esi
test eax, eax
je 0x40c8fb
push 0x400
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40c8fb
push str.SecureW2_sw2_res_default.bmp
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0040f5ea
lea edx, [ebp - 0x804]
push edx
push str.SW2_TRACE_LEVEL_DEBUG
push str.__23s::SW2LoadCustomerLogo__::checking_directory:___s_
mov eax, 0x80000
call fcn.0040b690
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call edi
cmp eax, 0xffffffff
je 0x40c8fb
lea ecx, [ebp - 0x804]
push ecx
push str.SW2_TRACE_LEVEL_DEBUG
push str.__23s::SW2LoadCustomerLogo__::directory__expanded_:___s_
mov eax, 0x80000
call fcn.0040b690
add esp, 0xc
push 0x10
push 0
push 0
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x40c8fb
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2LoadCustomerLogo__::Loaded_customer_bitmap
mov eax, 0x40000
call fcn.0040b690
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
push str.SW2_TRACE_LEVEL_INFO
push str.__23s::SW2LoadCustomerLogo__::Loading_default_bitmap
mov eax, 0x40000
call fcn.0040b690
add esp, 8
push 0
push 0
push 0
push 0
push 0x66
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
jne 0x40c949
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x66
push str.SW2_TRACE_LEVEL_ERROR
push str.__23s::SW2LoadCustomerLogo__::Failed_to_load_default_bitmap__ld___ld_
mov eax, 0x10000
call fcn.0040b690
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
Function at 0x40da60
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.SOFTWARESecureW2License
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test byte [esi + 0x410], 0x64
je 0x40daa7
lea eax, [esi + 0xa18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da96
sub eax, edx
sar eax, 1
je 0x40dab0
cmp dword [esi + 0x404], 0
jbe 0x40dabe
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c180
jmp 0x40dace
push str.SOFTWARESecureW2License
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.0040c2e0
add esp, 4
test eax, eax
jne 0x40db6b
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push 0
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.00416840
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
mov dword [esi + 0x400], eax
push 1
lea edx, [ebp - 0x1c]
mov eax, 0x1018
mov ecx, esi
call fcn.0040ba10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db5f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push edx
push eax
push 3
push esi
push str.DataBlob
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40db57
mov esi, 0x6e
lea eax, [ebp - 0x1c]
call fcn.0040bb70
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f43d
mov esp, ebp
pop ebp
ret
Function at 0x40f43d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426004]
jne 0x40f447
repz ret
jmp fcn.0040fd56

Function at 0x4157c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426004]
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.004126a3
and dword [ebp - 0x14], 0
cmp dword [0x428580], 0
mov dword [ebp - 0x18], eax
jne 0x415874
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41591c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4189dc
push ebx
call edi
test eax, eax
je 0x41591c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428580], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428584], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x428588], eax
call edi
push eax
call esi
mov dword [0x428590], eax
test eax, eax
je 0x415874
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42858c], eax
mov eax, dword [0x42858c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4158cd
cmp dword [0x428590], ecx
je 0x4158cd
push eax
call esi
push dword [0x428590]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4158cd
test ebx, ebx
je 0x4158cd
call edi
test eax, eax
je 0x4158c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4158c4
test byte [ebp - 8], 1
jne 0x4158cd
or dword [ebp + 0x10], 0x200000
jmp 0x415900
mov eax, dword [0x428584]
cmp eax, dword [ebp - 0x18]
je 0x415900
push eax
call esi
test eax, eax
je 0x415900
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415900
mov eax, dword [0x428588]
cmp eax, dword [ebp - 0x18]
je 0x415900
push eax
call esi
test eax, eax
je 0x415900
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428580]
call esi
test eax, eax
je 0x41591c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41591e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f43d
leave
ret
Function at 0x10001010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10075200]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0x3e94d716
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0xb96086d9
je 0x10001072
jmp 0x10001048
mov eax, dword [ebp - 0x1c]
sub eax, 0x3e94d716
je 0x10001060
jmp 0x1000105b
jmp 0x100010ae
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xb96086d9
jmp 0x100010ae
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x47
sub byte [edi], 0x25
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x10001080
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.100167c0
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
jmp 0x10001032
Function at 0x10009050
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x1000c8f1
push ebp
sar ah, 0x3d
rcr eax, 0x8f
mov ebp, esp
test esi, ecx
adc ax, 0x6bb7
push ebx
neg ax
shl eax, 0xb6
push edi
rol al, cl
push esi
sub esp, 0x124
test di, 0xa521
ror al, 0x23
bt eax, 0xa
mov eax, dword [0x10075200]
cmp esi, eax
cmp esp, 0xda39efb3
xor eax, ebp
cmp dl, 0x35
mov dword [ebp - 0x10], eax
movsx eax, cx
mov dword [ebp - 0x12c], 0x9942f04b
bsf eax, esp
neg ah
ror eax, 0xe

Function at 0x10019b93
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10019bd2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10019bd2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10019bd2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10019bd2
cmp dword [ecx + 0x74], 0xe
jbe 0x10019bd2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001c84f
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 0x1001c8ec
push ebx
push esi
call fcn.1001c818
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.1001c7ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c899
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c8eb
push edi
push eax
call fcn.1001d80a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c8b9
call fcn.1001b2f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c8ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c7ac
add esp, 0x20
test eax, eax
jne 0x1001c8d8
push edi
call fcn.1001b2f4
jmp 0x1001c8e0
push ebx
call fcn.1001b2f4
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 0x1001cb59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cc8
push 0x10024cc0
push str.FlsAlloc
push 0x1f
call fcn.1001ca75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cb8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
jmp 0x1001cb93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001cbd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cd8
push 0x10024cd0
push str.FlsGetValue
push 0x21
call fcn.1001ca75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cc0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001cc16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ce0
push 0x10024cd8
push str.FlsSetValue
push 0x22
call fcn.1001ca75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cc50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100222d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100222fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100222fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001479
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10014f4
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10014de
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x10014e4
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [entry0]
test eax, eax
jne 0x10014d5
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10015eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001622
push 0x1001778
push dword [ebp + 8]
call fcn.01001590
test eax, eax
pop ecx
pop ecx
jne 0x10017c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10016e8
push 0x80000001
call esi
test eax, eax
jne 0x100168c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001744
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [entry0]
test eax, eax
jne 0x100167b
cmp dword [ebp - 0x10], 4
jne 0x100167b
cmp dword [ebp - 0x14], 1
je 0x10017c9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x10016de
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1001714
push 0x80000002
call esi
test eax, eax
jne 0x10016de
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001760
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [entry0]
test eax, eax
jne 0x10016d5
cmp dword [ebp - 0x10], esi
jne 0x10016d5
cmp dword [ebp - 0x14], 1
jne 0x10016d5
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x10016e3
mov byte [ebp - 1], bl
jmp 0x100167b