joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x425685
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.0041e6cf
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425736
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4257e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4257e7
push eax
call fcn.0041e65d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e65d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e65d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e65d
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425736
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e65d
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42578e
cmp dword [0x450200], ebx
je 0x42578e
push eax
call fcn.0041e6d8
push dword [0x450200]
mov esi, eax
call fcn.0041e6d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42578e
test edi, edi
je 0x42578e
call esi
test eax, eax
je 0x425785
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425785
test byte [ebp - 0xc], 1
jne 0x42578e
or dword [ebp + 0x10], 0x200000
jmp 0x4257c7
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x4257c7
push eax
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4257c7
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x4257c7
push eax
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4257e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ed73
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
sub eax, eax
call fcn.0040ed9f
xor dword [esi], ecx
and eax, eax
sub edi, eax
add esi, 1
cmp esi, ebx
jne fcn.0040ed73
add eax, eax
dec eax
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4014b6
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40b458
mov eax, dword [esi]
jmp 0x40b45a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b4ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b4ae
cmp eax, 5
jne 0x40b4a0
push dword [ebp + 0xc]
push 0x80
push esi
call fcn.0040d5a9
cmp dword [esi + 0x14], 8
jb 0x40b48d
mov eax, dword [esi]
jmp 0x40b48f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b4ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b4ae
cmp byte [ebp + 0xc], 0
jne 0x40b4c1
xor al, al
jmp 0x40b4b0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push esi
push str.failed_to_delete_file__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.00407198
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x40ba04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 0x20], 0
je 0x40bab0
cmp dword [esi + 0x14], 8
push 4
pop ebx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x394], ebx
jb 0x40ba45
mov eax, dword [esi]
jmp 0x40ba47
mov eax, esi
lea edx, [ebp - 0x394]
push edx
push ecx
lea ecx, [ebp - 0x390]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x40ba8f
cmp ecx, 2
je 0x40ba9b
cmp ecx, 0xea
je 0x40ba9b
push esi
lea eax, [edi + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0040761f
jmp 0x40bac2
cmp dword [ebp - 0x390], ebx
jne 0x40ba9b
mov al, 1
jmp 0x40ba9d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00407968
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x40bad4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x20], 0
mov edi, dword [ebp + 0xc]
je 0x40bc18
xor edx, edx
mov dword [ebp - 0x390], 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x394], edx
jb 0x40bb18
mov eax, dword [esi]
jmp 0x40bb1a
mov eax, esi
lea ecx, [ebp - 0x394]
push ecx
push edx
lea ecx, [ebp - 0x390]
push ecx
push edx
push eax
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x40bc03
cmp dword [ebp - 0x390], 1
je 0x40bb55
cmp dword [ebp - 0x390], 2
jne 0x40bc03
test ecx, ecx
je 0x40bb76
push esi
lea eax, [ebx + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0040761f
jmp 0x40bc2b
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x40bb84
mov eax, dword [edi]
jmp 0x40bb86
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x394]
cmp ecx, 2
ja 0x40bb9a
mov al, 1
jmp 0x40bc05
shr ecx, 1
dec ecx
push 0
push ecx
mov ecx, edi
call fcn.0040efbe
cmp dword [edi + 0x14], 8
jb 0x40bbb1
mov ecx, dword [edi]
jmp 0x40bbb3
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x40bbbd
mov eax, dword [esi]
jmp 0x40bbbf
mov eax, esi
lea edx, [ebp - 0x394]
push edx
push ecx
lea ecx, [ebp - 0x390]
push ecx
push 0
push eax
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40bbee
push esi
lea ecx, [ebx + 8]
push ecx
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push eax
jmp 0x40bb64
mov eax, dword [ebp - 0x394]
mov ecx, edi
shr eax, 1
push 0
dec eax
push eax
call fcn.0040efbe
jmp 0x40bb96
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push esi
push str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00407835
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x40d5a9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40d5ca
mov eax, dword [esi]
jmp 0x40d5cc
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40d5df
cmp byte [ebp + 0x10], al
jne 0x40d5f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push str.Cannot_set_file__s_attbutes_to__u
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004073a8
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3
Function at 0x40d741
Capabilities:
Set registry value

Disassembly:
push 0x3e8
mov eax, 0x553b0b
call fcn.0050b5da
mov dword [ebp - 0x3ec], ecx
and dword [ebp - 0x3e8], 0
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3f0], eax
push esi
je 0x40d784
lea eax, [ebp - 0x58]
push eax
call fcn.0040b576
and dword [ebp - 4], 0
xor edi, edi
inc edi
mov ebx, edi
jmp 0x40d795
lea ecx, [ebp - 0x40]
call fcn.00405700
xor edi, edi
inc edi
push 2
mov dword [ebp - 4], edi
pop ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3e8], ebx
call fcn.00405700
mov dword [ebp - 4], 2
test bl, 2
je 0x40d7be
push 0
push edi
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.004069fb
mov byte [ebp - 4], 4
test bl, 1
je 0x40d7d2
push 0
push edi
lea ecx, [ebp - 0x58]
call fcn.004069fb
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e85c
mov edx, dword [ebp - 0x3ec]
test eax, eax
setne cl
mov byte [ebp - 0x3e1], cl
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x3f4], eax
test eax, eax
jne 0x40d838
test cl, cl
mov edx, 0x57759c
mov eax, str.EXPAND_SZ
lea ecx, [ebp - 0x3e0]
cmove eax, edx
mov dword [ebp - 0x3ec], eax
lea eax, [ebp - 0x3ec]
push eax
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string._The_registry_key_is_closed_or_not_set
push 0x3a
call fcn.004079df
push 0x5e5eac
lea eax, [ebp - 0x3e0]
push eax
call fcn.0050ce64
mov ebx, dword [ebp - 0x3f0]
cmp dword [ebx + 0x10], 0x3fff
jbe 0x40d87b
test cl, cl
mov eax, str.EXPAND_SZ
mov esi, 0x57759c
lea ecx, [ebp - 0x3e0]
cmove eax, esi
mov dword [ebp - 0x3f0], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x3f0]
push eax
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_into_registry_key__s._The_value_name_is_too_long
push 0x1d
call fcn.00407c21
jmp 0x40d827
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40d889
mov edx, 0x576fe0
jmp 0x40d895
cmp dword [esi + 0x14], 8
jb 0x40d893
mov edx, dword [esi]
jmp 0x40d895
mov edx, esi
cmp dword [ebx + 0x14], 8
jb 0x40d8a8
mov eax, dword [ebx]
mov dword [ebp - 0x3e8], eax
mov eax, dword [esi + 0x10]
jmp 0x40d8ae
mov dword [ebp - 0x3e8], ebx
lea eax, [eax*2 + 2]
push eax
xor eax, eax
test cl, cl
push edx
setne al
inc eax
push eax
push 0
push dword [ebp - 0x3e8]
push dword [ebp - 0x3f4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40d91d
cmp byte [ebp - 0x3e1], 0
mov edx, 0x57759c
mov ecx, str.EXPAND_SZ
cmove ecx, edx
mov dword [ebp - 0x3f4], ecx
mov ecx, dword [ebp - 0x3ec]
add ecx, 8
push ecx
push esi
push ebx
lea ecx, [ebp - 0x3f4]
push ecx
push str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_name___s__value___s__into_registry_key__s.
push eax
push 0xf
lea ecx, [ebp - 0x3e0]
call fcn.00407afd
jmp 0x40d827
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004069fb
call fcn.0050b58c
ret 0xc
Function at 0x40d930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x62485c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x40d9c1
cmp dword [esi + 0x10], 0x3fff
jbe 0x40d96d
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
push 0x1d
lea ecx, [ebp - 0x38c]
call fcn.0040772f
jmp 0x40d9d3
cmp dword [esi + 0x14], 8
jb 0x40d977
mov eax, dword [esi]
jmp 0x40d979
mov eax, esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40d9af
lea ecx, [edi + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push esi
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004078c4
jmp 0x40d9d3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050b568
mov esp, ebp
pop ebp
ret 8
push str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x38c]
call fcn.00407968
push 0x5e5eac
lea eax, [ebp - 0x38c]
push eax
call fcn.0050ce64
int3

Function at 0x40e303
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x40e329
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40e316
pop esi
mov eax, ecx
pop ebp
ret 8
Function at 0x413aaa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x55422f
call fcn.0050b5a6
mov esi, dword [ebp + 8]
test esi, esi
jne 0x413ac4
xor eax, eax
jmp 0x413c0d
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x413ae7
cmp dword [0x6288f8], ebx
je 0x413bd1
push 2
pop edi
jmp 0x413b00
cmp ebx, 1
jne 0x413bd1
push esi
call fcn.00413e1e
test al, al
je 0x413bce
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.0041308d
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
push eax
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x413b9c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x413b31
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 2
mov edi, eax
jae 0x413b5d
cmp dword [ebp - 0x1c], 1
je 0x413b5a
cmp dword [ebp - 0x1c], 2
jne 0x413b5d
push 2
pop edi
push edi
call fcn.00413e48
push dword [ebp - 0x10]
test eax, eax
je 0x413bb9
mov eax, dword [esi + 0xc]
xor edi, edi
mov ecx, 0x628bf0
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x6064d0], edi
call fcn.00413d15
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 0x10], edi
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], edi
push edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
call fcn.00413197
mov edi, eax
test edi, edi
je 0x413b25
jmp 0x413bc2
call fcn.00414934
test edi, edi
je 0x413bdd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.004130ae
mov ecx, dword [ebp - 0x14]
inc ebx
cmp ebx, 2
jl 0x413acf
jmp 0x413be8
lea ecx, [ebp + 0xb]
call fcn.004130ae
mov ecx, dword [ebp - 0x14]
test edi, edi
jne 0x413c03
cmp dword [ebp - 0x1c], 2
je 0x413bfb
mov al, byte [esi + 0x10]
and al, 0xf
cmp al, 2
jne 0x413c0b
push ecx
call fcn.00415803
jmp 0x413c09
push esi
call fcn.00415ac2
mov ecx, eax
mov eax, ecx
call fcn.0050b577
ret 4
Function at 0x41400e
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x554252
call fcn.0050b5a6
mov esi, dword [ebp + 8]
test esi, esi
jne 0x414028
xor al, al
jmp 0x4140f9
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x414039
xor ecx, ecx
cmp dword [0x6288f8], ecx
jmp 0x414043
push esi
call fcn.00413e1e
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x414021
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.0041308d
xor ecx, ecx
mov dword [ebp - 4], edi
push 2
test bl, bl
pop eax
cmovne ecx, eax
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 0x14], ecx
or eax, ecx
jmp 0x4140cd
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x414083
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.00413e48
push ebx
test eax, eax
je 0x4140e7
mov eax, dword [esi + 0xc]
xor edi, edi
mov ecx, 0x628bf0
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x6064d0], edi
call fcn.00413d15
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp + 8], edi
or eax, dword [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
call fcn.00413197
mov edi, eax
test edi, edi
je 0x414077
jmp 0x4140ec
call fcn.00414934
lea ecx, [ebp + 0xf]
call fcn.004130ae
test edi, edi
sete al
call fcn.0050b577
ret 8

Function at 0x414291
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4142a9
mov eax, dword [edi]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0xffff
push dword [ebp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push 2
pop eax
cmp edx, eax
jae 0x4142e0
cmp ecx, 1
je 0x4142de
cmp ecx, eax
jne 0x4142e0
mov esi, eax
push esi
call fcn.00413e48
test eax, eax
je 0x4142f7
push edi
mov ecx, 0x628bf0
call fcn.00413d15
jmp 0x41432a
test esi, esi
jne 0x414324
cmp ecx, 2
je 0x414305
cmp ecx, 1
jne 0x414311
shr edx, 1
xor eax, eax
mov word [ebx + edx*2 - 2], ax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x1c]
push eax
push ecx
call fcn.00414101
test eax, eax
push 2
pop eax
cmove esi, eax
push edi
call fcn.00414934
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18