joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a35c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100a3751
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100a3751
mov eax, dword [0x100ee738]
cmp dword [eax + 0x174], 0xffffffff
je 0x100a3751
mov eax, dword [0x100ee9b8]
add eax, 0xffffff91
xor eax, 0xf01044d
cmp dword [eax + ebx], 0
mov eax, dword [0x100ee980]
setle cl
add eax, 0xffffff9f
xor eax, 0xf01043f
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x100ee974]
add eax, 0xffffffa2
xor eax, 0xf01043c
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x100ee978]
add eax, 0xffffffa1
xor eax, 0xf01043d
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x100ee97c]
lea eax, [ecx - 0x60]
xor eax, 0xf01043e
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100a36ae
lea eax, [ecx - 0x60]
xor eax, 0xf01043e
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100a36a6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100a369a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100a3697
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x100ee97c]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100a3663
lea eax, [ecx - 0x60]
xor eax, 0xf01043e
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x100ee74c]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100a3742
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x100a3706
xor edx, edx
test ecx, ecx
je 0x100a372c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100a3713
cmp edi, 0x79705c5e
je 0x100a3737
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100a3742
mov ecx, dword [ebp - 4]
jmp 0x100a36f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100a3744
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x100ee820]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a90f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100cb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100ee738]
mov edi, dword [esi + 0x174]
test edi, edi
setg byte [ebp - 0x14]
cmp dword [0x100dd670], 4
jne 0x100a9159
mov edx, dword [esi + 0x4cb0]
add edx, dword [esi + 0x4cac]
mov ecx, dword [0x100ee6e0]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push dword [ebp - 0x14]
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x100f3664], 0
jne 0x100a9299
movaps xmm0, xmmword [0x100c1c10]
xor eax, eax
movaps xmm2, xmmword [0x100c1790]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x34], 0x4e4b
movaps xmm0, xmmword [0x100c1980]
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x32], 0xd
nop
movups xmm0, xmmword [ebp + eax - 0x54]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x54], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100a9190
cmp eax, 0x23
jae 0x100a91bb
nop
xor byte [ebp + eax - 0x54], 0xd
inc eax
cmp eax, 0x23
jb 0x100a91b0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a91e0
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cfb0
mov dword [ebp - 4], 0
mov edx, dword [0x100ee698]
test edx, edx
je 0x100a920c
mov edx, dword [edx + 0x50]
jmp 0x100a920e
xor edx, edx
mov eax, dword [0x100ee690]
test eax, eax
je 0x100a921c
mov eax, dword [eax + 0x18]
jmp 0x100a921e
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1003c870
mov edi, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
inc edi
cmp edx, 0x10
jb 0x100a9268
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a925e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a925e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100b54d4
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x100f3664], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b5059
mov esp, ebp
pop ebp
ret
Function at 0x67341a05
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 9]
mov dword [esp], eax
call fcn.673893b8
lea eax, [ebp - 9]
mov dword [esp + 8], eax
mov dword [esp + 4], str.http:__www.datacenter_digiarty.com_scc_auth_verify
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.6738b7cc
lea eax, [ebp - 9]
mov dword [esp], eax
call fcn.673893d0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.6738dd18
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.673877cc
mov dword [esp + 4], str.license
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.6738cca4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
add eax, 4
mov dword [esp], eax
call fcn.6738cca4
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.6738dcb0
mov dword [esp + 4], 0x6739615a
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.6738cca4
mov eax, dword [ebp + 8]
sub eax, 0xffffff80
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
add eax, 4
mov dword [esp], eax
call fcn.6738cca4
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.6738dcb0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.673412e7
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.6738780c
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.6738dd2c
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.6738cba4
mov eax, ebx
add esp, 0x34
pop ebx
leave
ret

Function at 0x673420b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov esi, ecx
mov ecx, dword [eax]
cmp dword [ecx + 4], 2
sete byte [ebp - 0x19]
je 0x67342128
mov eax, dword [eax + 8]
test eax, eax
je 0x67342148
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov edi, eax
test edi, edi
jne 0x67342108
cmp byte [ebp - 0x19], 0
je 0x67342112
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
cmp edi, esi
jbe 0x673420fe
cmp byte [ebp - 0x19], 0
jne 0x673420f8
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx + 8], 0
jmp 0x673420f8
mov eax, dword [ecx + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [ebx + 0xc]
mov edi, eax
jmp 0x673420ee
mov dword [esp + 4], 0x67396281
mov eax, dword [ecx + 8]
mov dword [esp], eax
mov dword [ebp - 0x20], edx
call sub.msvcrt.dll_fopen
mov dword [ebx + 8], eax
test eax, eax
mov edx, dword [ebp - 0x20]
jne 0x673420d4
mov edi, 0xffffffff
jmp 0x673420fe
Function at 0x40c9f8
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x54
mov eax, 0x41aa5b
call fcn.0040aa0a
mov esi, ecx
mov dword [ebp - 0x5c], esi
cmp dword [0x421520], 8
lea ecx, [ebp - 0x48]
push ecx
mov eax, 0x42150c
cmovae eax, dword [0x42150c]
xor ebx, ebx
push 0x20119
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x40cbbf
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x40cbb6
lea ebx, [esi + 0x1c]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0040d053
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push 0x40137c
mov dword [ebx + 4], eax
call fcn.00409d17
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x401394
call fcn.00409d17
mov byte [ebp - 4], 1
lea eax, [esi + 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000001
call fcn.0040dede
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00409f8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00409f8b
mov eax, dword [ebp - 0x44]
inc eax
xor esi, esi
mov dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x4c]
jae 0x40cbb6
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cf4c
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
js 0x40cb9d
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.00409d17
mov byte [ebp - 4], 3
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call fcn.0040cbca
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0040d8c2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x40cb8d
call fcn.0040cfa3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00409f8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040d4eb
inc esi
test edi, edi
js 0x40cbb6
mov eax, dword [ebp - 0x44]
jmp 0x40caf4
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040a9be
ret
Function at 0x40dd94
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, pe_nt_image_headers32
cmp byte [ebp + 0x10], bl
push esi
mov esi, dword [ebp + 0xc]
cmovne ebx, eax
or ebx, 0x1000b
cmp dword [esi + 0x10], 0
jne 0x40ddbe
mov eax, 0x80070057
jmp 0x40de24
cmp dword [esi + 0x14], 8
jb 0x40ddc8
mov eax, dword [esi]
jmp 0x40ddca
mov eax, esi
push edi
lea ecx, [ebp + 0x10]
push ecx
push ebx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40de16
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp + 0x10], 0
test edi, edi
jne 0x40de16
cmp dword [esi + 0x14], 8
jb 0x40de07
mov esi, dword [esi]
push 0
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40de2f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x14], 0
mov eax, 0x20119
mov ecx, 0x20019
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40de51
mov eax, dword [eax]
push ebx
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
mov ebx, 0x80070000
or esi, ebx
mov dword [ebp + 0xc], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40decf
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x40de89
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40dec6
cmp dword [ebp + 8], 4
jne 0x40dec1
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x40dec6
mov esi, 0x8007065d
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40dede
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20019
cmp byte [ebp + 0x14], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, 0x20119
cmovne ecx, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40df1b
mov eax, dword [eax]
lea esi, [ebp - 0x210]
push esi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x218], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x214], 0
test esi, esi
js 0x40dfc8
cmp dword [edi + 0x14], 8
jb 0x40df58
mov edi, dword [edi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40dfbc
cmp dword [ebp - 0x214], 1
jne 0x40dfb7
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
call fcn.0040a1e7
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040a072
jmp 0x40dfbc
mov esi, 0x8007065d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a985
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40dff9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x18], 0
mov eax, 0x102
mov ecx, 0x20006
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40e01a
mov eax, dword [eax]
push esi
push edi
xor edi, edi
lea edx, [ebp + 0x18]
push edi
push edx
push edi
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40e069
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], edi
jne 0x40e044
mov eax, edi
jmp 0x40e04c
cmp dword [eax + 0x14], 8
jb 0x40e04c
mov eax, dword [eax]
push 4
push dword [ebp + 0x14]
push 4
push edi
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
pop edi
cmovle eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x40e081
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x18], 0
mov eax, 0x102
mov ecx, 0x20006
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40e0a2
mov eax, dword [eax]
push esi
push edi
xor edi, edi
lea edx, [ebp + 0x18]
push edi
push edx
push edi
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40e10b
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], edi
jne 0x40e0cc
mov ecx, edi
jmp 0x40e0d4
cmp dword [ecx + 0x14], 8
jb 0x40e0d4
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x14]
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x40e0e2
mov edx, dword [edx]
lea eax, [eax*2 + 2]
push eax
xor eax, eax
cmp byte [ebp + 0x1c], al
push edx
setne al
inc eax
push eax
push edi
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
pop edi
cmovle eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40f307
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.0040f694
mov esi, eax
test esi, esi
js 0x40f422
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [0x420178]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, dword [ecx]
push dword [ebp - 0x210]
push edx
call dword [eax + 0x80]
test al, al
setne al
test al, al
jne 0x40f3a0
push 0x403754
push 0x4017d0
push 0x403784
push 0x403714
push 0x1ca
push 0x4018a8
push ebx
call fcn.00411613
add esp, 0x1c
mov ecx, dword [0x420178]
lea edx, [ebp - 0x20c]
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
test al, al
setne al
test al, al
jne 0x40f3e6
push 0x403754
push 0x4017d0
push 0x403784
push 0x403714
push 0x1cd
push 0x4018a8
push ebx
call fcn.00411613
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f410
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f422
lea eax, [ebp - 0x20c]
push eax
call fcn.00417e0c
jmp 0x40f43b
mov eax, esi
cdq
push edx
push eax
push 0x403794
push 0x1e1
push 0x401a00
call fcn.0040fce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a985
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413506
test al, 0x10
je 0x413506
xor eax, eax
inc eax
jmp 0x413508
xor eax, eax
pop ebp
ret 4
Function at 0x413a9b
Capabilities:
Get common file path

Disassembly:
push 0x654
mov eax, 0x41b3c5
call fcn.0040aa0a
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x413ad7
mov eax, dword [esi]
jmp 0x413ad9
mov eax, esi
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 0x58]
cmp eax, 1
jne 0x413bc9
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041396e
test eax, eax
js case.0x413b37.5
mov eax, dword [ebp - 0x648]
add eax, 0xfffffffb
cmp eax, 0xa
ja case.0x413b37.5
movzx eax, byte [eax + 0x413c33]
jmp dword [eax*4 + 0x413c23]
push 3
pop eax
jmp 0x413c1b
mov esi, 0x20a
lea eax, [ebp - 0x634]
push esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x634]
mov edi, 0x105
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x413bc2
push esi
lea eax, [ebp - 0x428]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push edi
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x413bc2
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x413bc2
inc eax
jmp 0x413c1b
push 2
jmp 0x413b40
cmp dword [esi + 0x14], 8
jb 0x413bd1
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x413beb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x406e84
push 0xb5e
push 0x406ac0
call fcn.00415520
push 0
push 1
lea ecx, [ebp - 0x660]
call fcn.00409f8b
mov eax, 0xff
call fcn.0040a9be
ret 4
Function at 0x416e7b
Capabilities:
Copy file
Delete file

Disassembly:
push 0x248
mov eax, 0x41b630
call fcn.0040aa0a
movzx eax, byte [0x421794]
mov esi, dword [ebp + 8]
push eax
push 0xa
call fcn.00418a61
test al, al
je 0x416eb9
push 0x406b34
push 0x198
push 0x406ac0
call fcn.00414bf7
jmp 0x417043
test esi, esi
setne al
xor ebx, ebx
test al, al
jne 0x416eeb
push 0x406c00
push 0x4017d0
push 0x406c40
push 0x406b48
push 0x19c
push 0x406b70
push ebx
call fcn.00411613
add esp, 0x1c
push esi
call fcn.0041803a
test eax, eax
jne 0x416efd
xor eax, eax
inc eax
jmp 0x417045
push esi
call fcn.00417171
test eax, eax
je 0x416ef5
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x254], ebx
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
push 0x206
push ebx
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
push 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.MSVCR120.dll__wfullpath]
add esp, 0x18
test eax, eax
je 0x417043
lea eax, [ebp - 0x218]
push eax
call fcn.0041803a
mov ebx, eax
lea esi, [ebx + 2]
push esi
call fcn.00411c40
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
mov dword [ebp - 0x234], edi
call fcn.00417fe8
xor eax, eax
mov word [edi + ebx*2 + 2], ax
mov eax, 0x654
xor ebx, ebx
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], ebx
push eax
mov dword [ebp - 0x250], 3
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x242], ebx
mov dword [ebp - 0x23e], ebx
mov dword [ebp - 0x23a], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
lea eax, [ebp - 0x234]
push eax
call fcn.00411b7f
test esi, esi
jne 0x416ff0
cmp dword [ebp - 0x242], ebx
je 0x416ef5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x417011
mov ecx, dword [ecx]
cmp dword [ebp - 0x242], 0
setne al
movzx eax, al
push eax
push esi
push ecx
push 0x406b34
push 0x1cf
push 0x406ac0
call fcn.004149f8
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00409f8b
xor eax, eax
call fcn.0040a9be
ret 4