joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4734a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
xor ecx, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
mov word [ebp - 0x44c], cx
mov ecx, dword [esi]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x242], dx
mov dword [ebp - 4], 1
call fcn.00435cb5
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x680]
push edx
push eax
push esi
call fcn.004732fd
test eax, eax
je 0x47353a
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp + 0x17]
push 1
push edx
call fcn.004358e8
mov eax, dword [esi]
push eax
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.004358e8
mov edx, dword [esi]
mov edi, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
push 4
push eax
xor edi, 0x87bc
call fcn.004358e8
mov edx, dword [esi]
mov ecx, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
xor ecx, 0x87bc
push 4
push eax
mov dword [ebx], ecx
call fcn.004358e8
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0x40
push 1
xor eax, 0xa685
push 0x10
push ecx
mov dword [ebp - 8], eax
call fcn.00435cb5
mov edx, dword [ebx]
add esp, 0xc
push edx
call fcn.0043419f
add esp, 4
push edi
mov dword [ebp + 0xc], eax
call fcn.0043419f
add esp, 4
mov ebx, eax
mov eax, dword [esi]
push eax
push 1
push edi
push ebx
call fcn.004358e8
mov ecx, dword [esi + 8]
add esp, 0x10
add ecx, 0x2477
push ecx
push edi
push ebx
call fcn.0046bbd3
push edi
push ebx
lea edx, [ebp - 4]
push edx
call fcn.00452e0d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x47361a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043432c
add esp, 4
push ebx
call fcn.0043432c
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x17], 1
jne 0x473689
xor eax, eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, 1
xor edx, edx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov word [ebp - 0x44c], dx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x470]
xor ecx, ecx
push eax
mov word [ebp - 0x242], cx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x470], edx
call fcn.0046bd8d
push ebx
call fcn.0043432c
jmp 0x473695
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043432c
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add esp, 4
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
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
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5a9736eb
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x743a1825
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x56666847
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x56670224
call fcn.566541a0
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.oleaut32.dll_SetErrorInfo]
mov esi, dword [ebp + 8]
call fcn.5666b104
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 0x14], bl
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x566668af
cmp dword [ebp - 0xb0], 4
jb 0x566668af
mov byte [ebp - 0x14], 1
push ebx
push ebx
push 0x5663742c
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x566668c3
mov byte [ebp - 0x14], bl
mov esi, dword [ebp - 0x14]
push esi
call fcn.566686f2
pop ecx
push esi
call fcn.56668446
pop ecx
push esi
call fcn.5666803a
pop ecx
push esi
call fcn.56667fae
pop ecx
push esi
call fcn.5666798f
pop ecx
push esi
call fcn.5666790f
pop ecx
push esi
call fcn.5666788f
pop ecx
push esi
call fcn.566677b6
pop ecx
push esi
call fcn.566672ab
pop ecx
push esi
call fcn.56666967
pop ecx
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.oleaut32.dll_CreateErrorInfo]
lea ecx, [ebp - 0x18]
call fcn.5665f161
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x5666b104
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x5666b113
pop dword [ebp - 0x10]
mov eax, 0xd20ac24a
add eax, 0x845beec9
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd6604673
sub dword [ebp - 0x20], 0x880e0128
mov dword [ebp - 0x1c], 0xe5069e2b
add dword [ebp - 0x1c], 0x4d2cae1a
mov dword [ebp - 0x18], 0xc7a419c5
add dword [ebp - 0x18], 0x84a82a69
mov dword [ebp - 0x14], 0xb29e9bbf
sub dword [ebp - 0x14], 0xb29e9bbf
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x7f46e93c
sub dword [ebp - 0x20], 0xad47fe6
mov dword [ebp - 0x1c], 0x7df36464
add dword [ebp - 0x1c], 0xc378fd11
mov dword [ebp - 0x18], 0xf69b087
add dword [ebp - 0x18], 0x5405bbe5
mov dword [ebp - 0x14], 0x6cde7ad8
sub dword [ebp - 0x14], 0x6cde7ad8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x2dc9a635
sub eax, 0xd76694f5
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3d107
push 0
call eax
mov ecx, 0x4ee4
mov edx, eax
mov ebx, 0x56688000
add ebx, dword [ebp - 0x10]
mov esi, 0x3686dab1
add esi, 0xf60a916b
xor dword [ebp - 4], 0x22b4ad09
mov edi, dword [ebx]
add dword [ebp - 8], 0x1ff0de71
sub edi, esi
sub dword [ebp - 4], 0x927e818a
mov dword [edx], edi
sub dword [ebp - 4], edx
add edx, 4
add ebx, 4
loop 0x5666b224
add eax, 0xb36aee60
sub eax, 0xb369bffd
xor ebx, ebx
add ebx, eax
add eax, 0x7141256
add eax, 0xf8ebedaf
mov ecx, 0x56630000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x17aa670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf7b000]
push edi
or ebp, 0xffffffff
jmp 0x17aa692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x17aa699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17aa688
mov eax, 1
add ebx, ebx
jne 0x17aa6ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x17aa6a0
jne 0x17aa6bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17aa6a0
xor ecx, ecx
sub eax, 3
jb 0x17aa6d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x17aa742
mov ebp, eax
add ebx, ebx
jne 0x17aa6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x17aa6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x17aa70c
inc ecx
add ebx, ebx
jne 0x17aa6f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x17aa6ed
jne 0x17aa709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17aa6ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x17aa72c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x17aa71d
jmp 0x17aa68e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x17aa72c
add edi, ecx
jmp 0x17aa68e
pop esi
mov edi, esi
mov ecx, 0x8041d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x17aa74a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x17aa74f
lea edi, [esi + 0x13a8000]
mov eax, dword [edi]
or eax, eax
je 0x17aa7c0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13aea3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13aea78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x17aa775
mov ecx, edi
jns 0x17aa7a4
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 + 0x13aea80]
or eax, eax
je 0x17aa7ba
mov dword [ebx], eax
add ebx, 4
jmp 0x17aa792
call dword [esi + 0x13aea7c]
mov ebp, dword [esi + 0x13aea84]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x17aa7f4
sub esp, 0xffffff80
jmp 0x430628
Function at 0x401000
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov eax, 0x42d038
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
mov dword [0x5bf5e0], 0
mov eax, dword [ebp + 8]
mov dword [0x5c0da0], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00420150
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40105c
lea eax, [ebp - 0x24]
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], 0
jmp 0x40106b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], eax
jle 0x401099
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
movsx eax, byte [eax + ecx]
cmp eax, 0x3d
jne 0x401094
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], 0x20
jmp 0x401068
push 0x100
call fcn.004200d1
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401476
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00403a28
add esp, 8
push 0x5c0dc0
call fcn.00403890
add esp, 4
call fcn.004289d4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40110e
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0
call fcn.0041fffc
add esp, 4
cmp dword [0x5bed44], 0
je 0x401131
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0
call fcn.0041fffc
add esp, 4
call fcn.00403b23
test eax, eax
jne 0x401154
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0xffffffffffffffff
call fcn.0041fffc
add esp, 4
call fcn.00404a84
test eax, eax
je 0x40117a
cmp dword [0x5bf07c], 0
jne 0x40117a
mov eax, dword [ebp + 8]
push eax
call fcn.00401228
add esp, 4
push 0x5bec20
call fcn.00402090
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4011cf
xor eax, eax
mov al, byte [0x5bf601]
test eax, eax
je 0x4011cf
call fcn.00404a84
test eax, eax
je 0x4011be
push 0
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00401b70
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405858
mov dword [ebp - 0x10], eax
jmp 0x4011eb
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
je 0x40120d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 - 4]
push eax
call fcn.0041ffa0
add esp, 4
jmp 0x4011e8
mov eax, dword [ebp - 4]
push eax
call fcn.0041ffa0
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x401221
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401c46
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
cmp dword [0x5bf07c], 0
jne 0x401d40
call fcn.00404a84
test eax, eax
je 0x401c77
push 0
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x401d11
push 0x42d304
push 0x5bf3e0
call fcn.0042048c
add esp, 8
push 0
push 0x5bf3e0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
push 0x42d33c
push 0x5bf3e0
call fcn.0042048c
add esp, 8
push 0
push 0x5bf3e0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
push 0x42d374
push 0x5bf3e0
call fcn.0042048c
add esp, 8
push 0
push 0x5bf3e0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
cmp dword [ebp - 4], 0
je 0x401cde
cmp dword [ebp - 4], 1
je 0x401cb0
cmp dword [ebp - 4], 2
je 0x401c82
jmp 0x401d34
mov eax, dword [0x5bf5e0]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ddf
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
call fcn.00407757
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
jmp 0x407e2c
push 0x488408
lea eax, [ebp - 0xc]
push eax
call fcn.004202d0
add esp, 8
jmp 0x407e45
push 0x48840c
lea eax, [ebp - 0xc]
push eax
call fcn.004202d0
add esp, 8
jmp 0x407e45
cmp dword [ebp - 0x58], 1
je 0x407dfb
cmp dword [ebp - 0x58], 2
je 0x407e11
jmp 0x407e45
push 0x488410
lea eax, [ebp - 0x50]
push eax
call fcn.004202d0
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407ee6
cmp dword [ebp - 0x10], 2
jne 0x407ecf
lea eax, [ebp - 0xc]
push eax
call fcn.00420150
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407eca
push 0x10003
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x407eed
jmp 0x407ee6
push 0x10006
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x407eed
xor eax, eax
jmp 0x407eed
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40814e
cmp dword [ebp - 8], 2
jne 0x40812a
push 0x488420
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.004202d0
add esp, 8
xor eax, eax
jmp 0x408261
push 0x2002000
call fcn.00406c68
add esp, 4
push 0x10001
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x408261
mov dword [ebp - 8], 0xea
mov dword [ebp - 0xc], 0x80
jmp 0x408168
add dword [ebp - 0xc], 0x80
cmp dword [ebp - 8], 0xea
jne 0x4081c5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xea
jne 0x4081c0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.004209f4
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x408161
cmp dword [ebp - 8], 0
je 0x40821f
cmp dword [ebp - 8], 2
jne 0x4081f1
push 0x488424
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.004202d0
add esp, 8
jmp 0x40821f
push 0x2002000
call fcn.00406c68
add esp, 4
push 0x10006
call fcn.00406ccc
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x408261
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40825a
push 0x2002000
call fcn.00406c68
add esp, 4
push 0x10002
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x408261
xor eax, eax
jmp 0x408261
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408450
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.00420600
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x488428
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x4084d0
push 0x10001
call fcn.00406ccc
add esp, 4
push 0x2002012
call fcn.00406c68
add esp, 4
mov eax, 0xffffffff
jmp 0x4086cb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x488460
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x408537
push 0x10006
call fcn.00406ccc
add esp, 4
push 0x2002012
call fcn.00406c68
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x4086cb
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x408609
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.004202d0
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.00420b14
add esp, 4
push 0x488464
lea eax, [ebp - 0x808]
push eax
call fcn.004208f0
add esp, 8
test eax, eax
jne 0x4085df
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x408537
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x488470
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x408680
push 0x10006
call fcn.00406ccc
add esp, 4
push 0x2002012
call fcn.00406c68
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x4086cb
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x4086c4
push 0x10002
call fcn.00406ccc
add esp, 4
push 0x2002012
call fcn.00406c68
add esp, 4
mov eax, 0xffffffff
jmp 0x4086cb
xor eax, eax
jmp 0x4086cb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4086d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.00420600
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x488474
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x408750
push 0x10001
call fcn.00406ccc
add esp, 4
push 0x2002011
call fcn.00406c68
add esp, 4
mov eax, 0xffffffff
jmp 0x408961
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x4884ac
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x40878d
mov byte [ebp - 0x2f28], 0
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x40885f
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.004202d0
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.00420b14
add esp, 4
push 0x4884b0
lea eax, [ebp - 0x808]
push eax
call fcn.004208f0
add esp, 8
test eax, eax
jne 0x408835
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x40878d
push 0x4884bc
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x4884c8
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x408916
push 0x10006
call fcn.00406ccc
add esp, 4
push 0x2002011
call fcn.00406c68
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x408961
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x40895a
push 0x10002
call fcn.00406ccc
add esp, 4
push 0x2002011
call fcn.00406c68
add esp, 4
mov eax, 0xffffffff
jmp 0x408961
xor eax, eax
jmp 0x408961
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b00
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408b21
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408b26
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408b5a
push 0x20
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
jmp 0x408b62
pop edi
pop esi
pop ebx
leave
ret