joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416bed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d6f8
xor ebx, ebx
cmp dword [0x4222ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416cc3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416da3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416da3
push eax
call fcn.0040d68a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4222ec], eax
call esi
push eax
call fcn.0040d68a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4222f0], eax
call esi
push eax
call fcn.0040d68a
mov dword [0x4222f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040af58
test eax, eax
pop ecx
pop ecx
je 0x416c91
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073f7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416cc3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d68a
cmp eax, ebx
pop ecx
mov dword [0x4222fc], eax
je 0x416cc3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d68a
pop ecx
mov dword [0x4222f8], eax
mov eax, dword [0x4222f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416d48
cmp dword [0x4222fc], ecx
je 0x416d48
push eax
call fcn.0040d701
push dword [0x4222fc]
mov esi, eax
call fcn.0040d701
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416d48
cmp edi, ebx
je 0x416d48
call esi
cmp eax, ebx
je 0x416d15
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416d15
test byte [ebp - 0x18], 1
jne 0x416d48
lea eax, [ebp - 0x10]
push eax
call fcn.0040af8f
test eax, eax
pop ecx
je 0x416d30
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073f7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416d3f
or dword [ebp + 0x10], 0x200000
jmp 0x416d83
or dword [ebp + 0x10], 0x40000
jmp 0x416d83
mov eax, dword [0x4222f0]
cmp eax, dword [ebp - 8]
je 0x416d83
push eax
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416d83
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416d83
mov eax, dword [0x4222f4]
cmp eax, dword [ebp - 8]
je 0x416d83
push eax
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416d83
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4222ec]
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416da3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416da5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

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

Disassembly:
mov ebx, 0x438a14
add ecx, edx
call fcn.00438ceb
sub ecx, ecx
sub esp, 4
mov dword [esp], edx
pop ecx
xor dword [edi], ebx
sub esp, 4
mov dword [esp], ecx
pop ecx
inc edx
mov ecx, ecx
inc edi
dec ecx
mov edx, edx
dec edx
cmp edi, eax
jne fcn.00438cb1
inc ecx
or ecx, edx
and ecx, edx
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4a0068c1
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1baa21d0
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3eeb65ff
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x195960ea
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c4a7
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408ca3
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c42d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c44d
inc esi
cmp esi, 0xc
jl 0x40c4ff
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c53a
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c546
or eax, 0xffffffff
jmp 0x40c58b
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c568
mov edx, dword [0x40f920]
jg 0x40c564
cmp eax, edx
jbe 0x40c568
mov edi, edx
jmp 0x40c56a
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c584
dec edi
call fcn.0040c42d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c44d
inc esi
test edi, edi
jne 0x40c572
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x7e6628
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7e6632
pushal
call 0x7e6638
pop ebp
sub ebp, 0x10
sub ebp, 0x3e6628
jmp 0x7e664e
mov eax, 0x3e6628
add eax, ebp
add eax, 0x4c
mov ecx, 0x603
mov edx, 0x99751dc0
xor byte [eax], dl
inc eax
dec ecx
jne 0x7e6665
jmp 0x7e6678
dec ebx
or eax, 0xc0fc494b
rol al, 0x41
add dword [eax], edi
rol al, 0xc0
ret
Function at 0x40365b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov dword [ebp - 0x20c], 0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x403682
call fcn.00403749
and eax, 0xffff
mov dword [ebp + 0xc], eax
mov word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
lea eax, [ebp - 0x208]
push eax
push 0x1004
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x214], 0xffffffff
lea edx, [ebp - 0x214]
push edx
push 0x5b6bf8
push 0x103
lea eax, [ebp - 0x208]
push eax
call fcn.004591b0
add esp, 0x10
mov dword [ebp - 0x210], 0
jmp 0x4036fc
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 6
jae 0x40373e
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
cmp eax, dword [edx*8 + 0x5b6b98]
jne 0x40373c
mov dword [ebp - 0x20c], 1
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx*8 + 0x5b6b9c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0044aaf0
jmp 0x40373e
jmp 0x4036ed
mov eax, dword [ebp - 0x20c]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x404347
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x2001f
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x404374
mov eax, dword [ebp - 4]
or ah, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4043b8
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404404
cmp dword [ebp + 0x10], 0
je 0x4043d3
mov edx, dword [ebp + 0x10]
push edx
call fcn.0043139f
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
jmp 0x4043da
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40440a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x2001f
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x404437
mov eax, dword [ebp - 4]
or ah, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40447b
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40449d
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4044a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x2001f
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
je 0x4044d0
mov eax, dword [ebp - 4]
or ah, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404514
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404536
push 8
lea edx, [ebp + 0x10]
push edx
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40453c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404585
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404607
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 2
jb 0x4045fd
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
call fcn.005568c8
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x4045fd
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x404610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404655
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404689
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x404692
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4046de
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404712
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x40478f
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f54f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov ecx, 0x5e2dd8
call fcn.00405660
test eax, eax
je 0x4047d1
push str.CopyFile_1_______
push 0x5b6e10
push 0xffffffffffffffff
push 0x5e2ddc
call fcn.00481d20
add esp, 0x10
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00556380
push str._NEW.txt
push 0x5b6e2c
mov ecx, dword [ebp + 0x10]
call fcn.005527d0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.005562b7
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.005562b7
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
push 0x5b6e34
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0055648c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0055648c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00556330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005561f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.005561f7
mov edx, dword [ebp + 0x10]
push edx
push 0x5b6e38
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0055648c
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00556426
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.00556330
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.005561f7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.005561f7
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004035b0
push eax
lea ecx, [ebp - 0x10]
call fcn.004035b0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x18], eax
mov ecx, 0x5e2dd8
call fcn.00405660
test eax, eax
je 0x404955
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004035b0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00449e90
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
push edx
push 0x5b6e3c
push 0x5b6e74
push 0xffffffffffffffff
push 0x5e2ddc
call fcn.00481d20
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0044a810
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005561f7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005561f7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret