joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4379e1
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 0x437a7e
push ebx
push esi
call fcn.004379aa
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.004367cb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x437a2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437a7d
push edi
push eax
call fcn.0043211f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437a4b
call fcn.00431ea1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437a7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004367cb
add esp, 0x20
test eax, eax
jne 0x437a6a
push edi
call fcn.00431ea1
jmp 0x437a72
push ebx
call fcn.00431ea1
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 0x43a46d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004303db
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a4dc
cmp esi, dword [ebp - 4]
je 0x43a4d7
cmp dword [ebp + 0xc], 0
je 0x43a4d7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43a4b4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00439fbf
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43a4de
xor eax, eax
inc eax
jmp 0x43a4de
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43a543
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004303db
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004303db
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43a5ba
cmp word [ecx], dx
je 0x43a5ba
mov eax, dword [0x4477a4]
push edi
dec eax
push eax
push 0x447690
call fcn.0043a4e2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43a62d
cmp word [eax], dx
je 0x43a62d
mov eax, dword [edi]
test eax, eax
je 0x43a5de
cmp word [eax], dx
je 0x43a5de
lea eax, [ebp - 0x10]
push eax
call fcn.00439ec5
jmp 0x43a5e7
lea eax, [ebp - 0x10]
push eax
call fcn.00439f60
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43a657
mov eax, dword [0x44768c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x447380
call fcn.0043a4e2
add esp, 0xc
test al, al
je 0x43a657
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43a622
cmp word [eax], di
je 0x43a622
lea eax, [ebp - 0x10]
push eax
call fcn.00439ec5
pop ecx
jmp 0x43a659
lea eax, [ebp - 0x10]
push eax
call fcn.00439f60
jmp 0x43a61f
mov eax, dword [edi]
test eax, eax
je 0x43a644
cmp word [eax], dx
je 0x43a644
lea eax, [ebp - 0x10]
push eax
call fcn.00439e7a
pop ecx
jmp 0x43a657
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43a722
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043a367
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43a722
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43a722
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43a722
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43a6af
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00433870
test ebx, ebx
je 0x43a71d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00433870
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a722
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a722
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043e709
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43a724
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041feb1
leave
ret
Function at 0x43e825
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043e7a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43e994
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43e994
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43e949
jg 0x43e881
test eax, eax
je 0x43e93f
push 1
push 0x1000
call fcn.004308b8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43e8a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43e936
push 0x8000
push ebx
call fcn.0042dda7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43e8cd
jg 0x43e8c8
cmp ecx, 0x1000
jb 0x43e8cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00431c85
add esp, 0x10
cmp eax, 0xffffffff
je 0x43e912
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43e8c8
jl 0x43e8f9
test ecx, ecx
jne 0x43e8ba
push dword [ebp - 0xc]
push ebx
call fcn.0042dda7
push esi
call fcn.00431ea1
add esp, 0xc
xor ebx, ebx
jmp 0x43e9a2
cmp byte [edi + 0x24], 0
je 0x43e929
cmp dword [edi + 0x20], 5
jne 0x43e929
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43e934
mov ebx, dword [edi + 0x18]
jmp 0x43e936
xor ebx, ebx
push esi
call fcn.00431ea1
pop ecx
jmp 0x43e9a2
test ecx, ecx
jg 0x43e90b
jl 0x43e949
test eax, eax
jae 0x43e90b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004356bb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43e969
cmp byte [edi + 0x1c], 0
je 0x43e90b
jmp 0x43e99a
push ebx
call fcn.0043843e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43e90b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43e9a2
cmp byte [edi + 0x1c], 0
je 0x43e99f
mov ebx, dword [edi + 0x18]
jmp 0x43e9a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004356bb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x440040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44006d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44006d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x32861696
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
mov ecx, 0x1762348d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x6158f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x165000]
push edi
or ebp, 0xffffffff
jmp 0x615912
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x615919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x615908
mov eax, 1
add ebx, ebx
jne 0x61592b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x61593c
jne 0x61595b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x61595b
dec eax
add ebx, ebx
jne 0x615948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x615920
add ebx, ebx
jne 0x615957
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6159ad
xor ecx, ecx
sub eax, 3
jb 0x615973
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6159e2
sar eax, 1
mov ebp, eax
jmp 0x61597e
add ebx, ebx
jne 0x61597e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x61594c
inc ecx
add ebx, ebx
jne 0x61598c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x61594c
add ebx, ebx
jne 0x615999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x61598e
jne 0x6159aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x61598e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6159cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6159be
jmp 0x61590e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6159cc
add edi, ecx
jmp 0x61590e
pop esi
mov edi, esi
mov ecx, 0xa324
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6159ea
cmp byte [edi], 0x31
jne 0x6159ea
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 0x6159ef
lea edi, [esi + 0x203000]
mov eax, dword [edi]
or eax, eax
je 0x615a67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22e5d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22e77c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x615a1c
mov ecx, edi
jns 0x615a4b
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 + 0x22e780]
or eax, eax
je 0x615a61
mov dword [ebx], eax
add ebx, 4
jmp 0x615a39
call dword [esi + 0x22e790]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x615a98
cmp al, 0xef
ja 0x615a8b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x615a6d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x615a7a
mov ebp, dword [esi + 0x22e784]
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 0x615acc
sub esp, 0xffffff80
jmp 0x52b677
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x18682ae7
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5adf5ae5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4015f7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401636
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401670
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40164d
push esi
call fcn.00417628
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x40164f
xor eax, eax
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401680
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4016a7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4016e6
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40170c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x401747
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401786
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017ac
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x4017c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4017fd
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40187d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x401867
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.004a4717
mov esi, eax
add esp, 4
test esi, esi
je 0x401867
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x401890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4018d2
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40190e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8

Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40196a
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4019a6
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 0xc]
pop esi
add esp, 0x10
ret 8
Function at 0x401a00
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bd9d8
push eax
mov eax, dword [0x4f0220]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x401a3a
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x4f01b4
call fcn.0040ad80
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.004a4b65
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.004a1a16
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.004a4a9c
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.004a4a9c
lea eax, [esp + 0x14]
push 0x4df234
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.004a4c71
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.004a4c71
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.004a4b15
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.004a49dc
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004a49dc
lea eax, [esp + 0x10]
push 0x4df234
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.004a4c71
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.004a4c0b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.004a4b15
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.004a49dc
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004a49dc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x4f0220]
test eax, eax
je 0x401b7e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.0042e6c0
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x4f01b4
mov byte [esp + 0x38], 6
call fcn.0040ad80
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042f040
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.004a49dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.004a49dc
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407590
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x407768
push esi
call fcn.00417628
add esp, 4
test eax, eax
je 0x407768
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.004049f0
add esp, 0x1c
test eax, eax
je 0x407768
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x407768
test al, 1
je 0x4075fc
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x407741
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.004176ac
lea edx, [esp + 0x474]
push 0x4dfba8
push edx
call fcn.00417682
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407718
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x4df370
push edx
call ebp
test eax, eax
je 0x4076f8
lea eax, [esp + 0x248]
push 0x4df36c
push eax
call ebp
test eax, eax
je 0x4076f8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.004176ac
lea edx, [esp + 0x1c]
push 0x4dfbe0
push edx
call fcn.00417682
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00417682
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00407590
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407681
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret