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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46e9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0046d040
xor eax, eax
push ebp
push 0x46e998
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046d640
test al, al
je 0x46e97c
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407368
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x46e97c
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407c6c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046cfa0
test al, al
je 0x46e970
mov eax, dword [ebp - 4]
call fcn.00407c6c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00407cd4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e08c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46e970
xor eax, eax
push ebp
push 0x46e969
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0046d040
xor eax, eax
push ebp
push 0x46e94b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c6c
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00407cd4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046d044
mov eax, dword [ebp - 4]
call fcn.00407c6c
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00407cd4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e08c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46e928
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046e63c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046e774
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e92f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x46e7ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e99f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0046d040
ret
Function at 0x47b334
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.00407de8
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x47b359
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00407c6c
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x47b378
mov eax, ebx
mov edx, dword [esp]
call fcn.00407de8
pop ecx
pop edx
pop ebx
ret
Function at 0x13745f8
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.013747a8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x13746f6
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x1374699
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x13746dc
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x13746b0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x13746cb
test al, 0x40
je 0x13746c2
mov ecx, dword [edi + 0x20]
jmp 0x13746c9
test al, 0x80
je 0x13746dc
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x13746dc
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x1374668
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x403970
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x887d9c]
mov ecx, dword [0x860f3c]
sub esp, 0xc34
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403a69
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x887d9c], 0x959
jne 0x403a57
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c64
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402eb8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402f00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403773
add ebx, 8
dec dword [ebp - 4]
jne 0x403999
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40551b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42235c]
jne 0x405525
repz ret
jmp fcn.00408b0c

Function at 0x40aeeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b36
and dword [ebp - 4], 0
cmp dword [0x426824], 0
mov ebx, eax
jne 0x40af9c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b04d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40b04d
push eax
call fcn.00406ac4
mov dword [esp], 0x4021a0
push edi
mov dword [0x426824], eax
call esi
push eax
call fcn.00406ac4
mov dword [esp], 0x40218c
push edi
mov dword [0x426828], eax
call esi
push eax
call fcn.00406ac4
mov dword [esp], 0x402170
push edi
mov dword [0x42682c], eax
call esi
push eax
call fcn.00406ac4
pop ecx
mov dword [0x426834], eax
test eax, eax
je 0x40af9c
push 0x402158
push edi
call esi
push eax
call fcn.00406ac4
pop ecx
mov dword [0x426830], eax
mov eax, dword [0x426830]
cmp eax, ebx
je 0x40aff4
cmp dword [0x426834], ebx
je 0x40aff4
push eax
call fcn.00406b3f
push dword [0x426834]
mov esi, eax
call fcn.00406b3f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aff4
test edi, edi
je 0x40aff4
call esi
test eax, eax
je 0x40afeb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40afeb
test byte [ebp - 0xc], 1
jne 0x40aff4
or dword [ebp + 0x10], 0x200000
jmp 0x40b02d
mov eax, dword [0x426828]
cmp eax, ebx
je 0x40b02d
push eax
call fcn.00406b3f
pop ecx
test eax, eax
je 0x40b02d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b02d
mov eax, dword [0x42682c]
cmp eax, ebx
je 0x40b02d
push eax
call fcn.00406b3f
pop ecx
test eax, eax
je 0x40b02d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426824]
call fcn.00406b3f
pop ecx
test eax, eax
je 0x40b04d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b04f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ae67c
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x20], edx
mov byte [ecx + eax], dl
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffe
mov dword [ebp - 0x54], 0x3e000000
mov dword [ebp - 0x50], 0x3f000000
mov dword [ebp - 0x4c], 0x37363534
mov dword [ebp - 0x48], 0x3b3a3938
mov dword [ebp - 0x44], 0x3d3c
mov dword [ebp - 0x3c], 0x2010000
mov dword [ebp - 0x38], 0x6050403
mov dword [ebp - 0x34], 0xa090807
mov dword [ebp - 0x30], 0xe0d0c0b
mov dword [ebp - 0x2c], 0x1211100f
mov dword [ebp - 0x28], 0x16151413
mov dword [ebp - 0x24], 0x191817
mov dword [ebp - 0x1c], 0x1c1b1a00
mov dword [ebp - 0x18], 0x201f1e1d
mov dword [ebp - 0x14], 0x24232221
mov dword [ebp - 0x10], 0x28272625
mov dword [ebp - 0xc], 0x2c2b2a29
mov dword [ebp - 8], 0x302f2e2d
mov word [ebp - 4], 0x3231
mov byte [ebp - 2], 0x33
test edx, edx
jle 0x5ae7a9
push esi
mov esi, dword [ebp + 8]
add esi, 2
dec edx
shr edx, 2
push edi
lea edi, [ecx + 2]
inc edx
movzx eax, byte [esi - 2]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 1]
shl cl, 2
mov al, byte [ebp + eax - 0x7c]
shr al, 4
or cl, al
mov byte [edi - 2], cl
movzx eax, byte [esi]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 1]
shr cl, 2
mov al, byte [ebp + eax - 0x7c]
shl al, 4
or cl, al
mov byte [edi - 1], cl
movzx eax, byte [esi]
lea esi, [esi + 4]
mov cl, byte [ebp + eax - 0x7c]
movzx eax, byte [esi - 3]
shl cl, 6
or cl, byte [ebp + eax - 0x7c]
mov byte [edi], cl
lea edi, [edi + 3]
sub edx, 1
jne 0x5ae753
pop edi
pop esi
xor eax, eax
leave
ret
Function at 0x894000
Capabilities:
Authenticate hmac
Encode data using base64
Encrypt data using chaskey
Parse pe header

Disassembly:
jmp 0x56e94f
lea esp, [esp - 0x1c]
pushfd
xchg dword [esp + 4], edi
cmp edi, 0x22ea
xor edi, 0x6660
or edi, 0xf52
and edi, edi
mov dword [esp + 8], ebp
inc ebp
inc edi
xor ebp, 0x23e9
not edi
mov dword [esp + 0xc], esi
clc
test esi, 0x1751
adc bp, di
sub esi, 0x4525
xchg dword [esp + 0x10], edx
xchg edx, esi
add edx, 0xe7c
stc
xor esi, 0x5522
mov dword [esp + 0x14], ecx
bswap edi
add ecx, 0x79b9
sahf
bswap ecx
mov dword [esp + 0x18], ebx
test ebx, 0x415b
or ebx, 0x152f
mov ebx, 0x1120
xor ebp, 0x1280
mov dword [esp + 0x1c], eax
or ebx, 0xb3
xor edx, 0x644f
sahf
setle cl
mov edi, esp
je 0x56e9ea
jne 0x56e9ea
out dx, al
wait
sub dword [ecx + 2], edi
lea esp, [esp - 0x200]
je 0x56e9fe
jne 0x56e9fe
pop eax
fcmovu st(0), st(6)
ret
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
je 0x56ea0e
jne 0x56ea0e
fstp qword [edx + esi*2 + 0x4f]
outsb dx, byte [esi]
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x10]
je 0x56ea22
jne 0x56ea22
xor al, 0x38
leave
std
mov esp, 0x8b50ba9b
inc edi
adc al, 0x50
push eax
mov eax, dword [edi + 0x14]
push eax
je 0x56ea30
jne 0x56ea30
call 0x752d5c77
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x1c]
je 0x56ea42
jne 0x56ea42
je 0x56e9c0
movsb byte es:[edi], byte [esi]
mov esi, dword [ecx - 0x74af10ef]
pop es
push eax
mov eax, dword [edi]
push eax
je 0x56ea53
jne 0x56ea53
jae 0x56e9fe
movsb byte es:[edi], byte [esi]
add dl, byte [ecx]
into
pop edx
xor ebp, dword [edi]
lea edi, [edi + 0x20]
push eax
pushfd
call 0x56ea5d
add dword [esp], 0x10000000
sub dword [esp], 0x1016ea5d
add dword [esp], 0x1ac300
pop eax
popfd
xchg dword [esp], eax
pop esi
jmp fcn.00562007
call 0x894005
jmp 0x56e947

Function at 0x8946ae
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x8946dc
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x8946d3
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x8946cb
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x8946fd
mov esp, ebp
pop ebp
ret
Function at 0x894701
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x89476d
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x89479a
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x894789
xor ecx, eax
xor edx, ebx
dec edi
jne 0x89477a
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x8947c0
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x894761
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x8947ec
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401061
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [0x43b050]
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4010c9
lea eax, [ebp - 0x20c]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4010c9
lea eax, [ebp - 0x20c]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010c9
push 1
pop eax
jmp 0x4010cb
xor eax, eax
pop esi
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
sbb esi, esi
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
neg esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40117d
test esi, esi
je 0x40117d
push 1
pop eax
jmp 0x40117f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40120e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
mov dword [ebp - 4], 2
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.update
push str.SOFTWARE360Safe_setting
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x401252
cmp eax, 3
jbe 0x401255
push 2
pop eax
leave
ret

Function at 0x401257
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
call fcn.00401061
cmp dword [ebp + 8], eax
jne 0x401272
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x208]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x208]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012bf
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00406331
pop ecx
pop ecx
jmp 0x4012c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x402b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
cmp eax, edx
mov dword [ebp - 4], edx
je 0x402b56
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x2c], 0
je 0x402b5a
mov ecx, dword [ebp - 8]
lea eax, [edx + 0x1c]
add edx, 0xc
push eax
push edx
push ebx
call fcn.00403015
lea ecx, [ebp - 4]
call fcn.0040518d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [eax + 4], edx
jne 0x402b29
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x20]
mov esi, dword [eax]
mov dword [ebp + 8], esi
cmp dword [edx + 0x20], esi
je 0x402b40
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402b8f
mov eax, ecx
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402b98
mov esi, ecx
mov edx, dword [edx + 0x10]
test edx, edx
je 0x402ba1
mov ecx, edx
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x444224
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402be3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [ebp + 8]
call fcn.00405041
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
jmp 0x402b62

Function at 0x403e95
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0042f680
and word [ebp - 0x1048], 0
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x1046]
push 0x824
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1048]
push ecx
mov eax, dword [eax]
push eax
call fcn.00406fe4
add esp, 0xc
lea ecx, [ebp + 0xc]
push eax
call fcn.00404729
mov eax, dword [ebp + 0xc]
push 2
pop ecx
pop edi
mov eax, dword [eax - 8]
cdq
idiv ecx
test edx, edx
je 0x403efb
push str.favorite_dll_cfg_shield_:_EmcryptStr_Fail__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 0
je 0x403f13
push 0x444224
push 0x43b5a8
lea ecx, [ebp + 0xc]
call fcn.00404876
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004046e3
lea ecx, [ebp + 0xc]
call fcn.00404c0d
mov eax, dword [ebp + 8]
leave
ret 0xc
Function at 0x406a6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
lea eax, [edi + 1]
push eax
call ebx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x406ae1
test edi, edi
jle 0x406aa6
sub esi, eax
mov ecx, edi
mov dl, byte [esi + eax]
xor dl, 0x13
mov byte [eax], dl
inc eax
dec ecx
jne 0x406a9a
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
call ebx
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
test ebx, ebx
je 0x406ad5
push ebx
push edi
push dword [ebp + 8]
call fcn.004069e0
add esp, 0xc
and byte [esi + ebx], 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406ae6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov edi, eax
push esi
push edi
push esi
call fcn.00406a21
mov eax, edi
add esp, 0x10
cdq
sub eax, edx
xor ecx, ecx
sar eax, 1
test eax, eax
jle 0x406b15
xor byte [ecx + esi], 0x13
inc ecx
cmp ecx, eax
jl 0x406b0c
and byte [eax + esi], 0
pop edi
pop esi
ret

Function at 0x40739b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x407418
cmp word [ebp - 0x210], ax
je 0x407418
lea eax, [ebp - 0x210]
push eax
push 0x43bb18
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
leave
ret
xor eax, eax
leave
ret