joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477333
Capabilities:
Set registry value

Disassembly:
push 0x18
mov eax, 0x5162a9
call fcn.004b96f6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor edx, edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
push dword [ebp + 0x24]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x20006
push eax
push ecx
push ebx
call fcn.00473e3e
mov edi, dword [ebp - 0x10]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4773a6
cmp byte [ebp + 0x28], 0
je 0x4773a2
push dword [ebp + 0x24]
push edi
push ebx
call fcn.00470dad
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4773ed
push dword [ebp + 0x24]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
call fcn.00473e3e
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4773ed
mov esi, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
sub esi, dword [ebp + 0x14]
push eax
call fcn.00410335
push esi
push eax
push dword [ebp + 0x20]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00470978
lea ecx, [ebp - 0x20]
call fcn.00470978
lea ecx, [ebp + 0x14]
call fcn.0040ee97
mov eax, esi
call fcn.004b96c4
ret

Function at 0x4776ed
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x516307
call fcn.004b9729
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4777e4
cmp byte [ebx + 0x45], 0
je 0x4777e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x477722
xor al, al
jmp 0x4777e6
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00410203
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x47777c
dec eax
je 0x477780
dec eax
dec eax
je 0x4777d2
xor bl, bl
jmp 0x4777d4
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4777b8
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004bfe19
add esp, 0x10
cmp esi, eax
jne 0x477778
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x4777d2
test esi, esi
jne 0x477746
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040f59f
jmp 0x477740
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040ed1b
mov al, bl
jmp 0x4777e6
mov al, 1
call fcn.004b96d8
ret
Function at 0x47a996
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
jne 0x47a9ad
mov eax, dword [esi]
call dword [eax + 4]
mov byte [esi + 0x18], 1
mov edx, ebx
cmp dword [ebp + 0xc], edx
jbe 0x47a9d1
mov esi, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edx + edi]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [esi + ecx*4]
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x47a9bb
pop edi
xor ebx, 0x55
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x47b7ca
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000000
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47b851
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47b851
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x47b851
push 0
lea eax, [esi + 0xc]
push eax
push ebx
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x47b851
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x47b866
cmp dword [ebp - 8], 0
je 0x47b860
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], 0
je 0x47b871
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47ba7e
Capabilities:
Encode data using xor

Disassembly:
push 0x34
mov eax, 0x517358
call fcn.004b9729
mov ecx, dword [ebp + 8]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov edi, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
and dword [ebp - 0x3c], ebx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], edx
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x47bb22
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cc6a
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.0040cf6b
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0040ceec
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040c702
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0047be04
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x47bb89
push dword [ebp - 0x38]
and dword [ebp - 0x2c], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00408122
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040899f
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.0047a956
add esp, 0xc
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x3c]
je 0x47bbb9
mov al, byte [eax + edi]
xor al, byte [ebx + 0x5b2058]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.00413df8
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x47bb90
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.00413df8
lea ecx, [ebp - 0x30]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x34]
call fcn.004b96d8
ret
Function at 0x47bbed
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x5173b6
call fcn.004b9729
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], esi
mov edi, ecx
mov dword [ebp - 0x34], esi
xor eax, eax
xor edx, edx
inc edx
mov ebx, esi
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
xor eax, eax
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x47bc90
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00468682
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.00468ac1
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.004689b5
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00466cf4
call fcn.0047be04
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x47bcee
push dword [ebp - 0x30]
and dword [ebp - 0x28], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408122
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040899f
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.0047a956
add esp, 0xc
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x34]
je 0x47bd27
movzx ecx, byte [eax + edi]
movsx ax, byte [ebx + 0x5b2058]
xor cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046b8a2
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x47bcf5
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
push eax
call fcn.0046b8a2
lea ecx, [ebp - 0x2c]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x38]
call fcn.004b96d8
ret
Function at 0x47be04
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x5173e3
call fcn.004b9729
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x47be7f
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x47be41
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x47be77
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00414b4d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.00410335
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x47be7f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret

Function at 0x47e00f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x28
mov eax, 0x517ae0
call fcn.004b9729
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x30]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x20019
push eax
push ecx
push edx
call fcn.0047f1a8
add esp, 0x14
test eax, eax
jne 0x47e120
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x14], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x14]
call fcn.00466c6a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x47e10b
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push esi
call fcn.004688f2
push esi
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0046896b
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004744de
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
call fcn.004811b4
mov edi, 0x53e978
push edi
call fcn.00468ac1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.004689b5
inc esi
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x24], esi
jmp 0x47e082
lea ecx, [ebp - 0x30]
call fcn.00470978
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
jmp 0x47e122
mov ebx, eax
lea ecx, [ebp - 0x30]
call fcn.00470978
mov eax, ebx
call fcn.004b96d8
ret
Function at 0x47e219
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push 0x24
mov eax, 0x517b52
call fcn.004b9729
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00467484
push 0x10
pop edi
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x28]
call fcn.00466c6a
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004688f2
push edi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0046896b
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x28]
test eax, eax
je 0x47e374
push dword [ebp - 0x14]
call fcn.0046896b
push 0x20
pop eax
push eax
mov dword [ebp - 0x24], eax
call fcn.0049a720
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
jne 0x47e2a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47e384
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x47e2d1
push edi
call fcn.004b8805
pop ecx
jmp 0x47e299
push dword [ebp - 0x24]
push ebx
push edi
call fcn.004bd8d0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
add esp, 0xc
push esi
call fcn.004688f2
push esi
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0046896b
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c]
test eax, eax
jne 0x47e322
call fcn.0046896b
jmp 0x47e2c8
call fcn.0046896b
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e2c8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x20]
mov edi, eax
call fcn.00468ac1
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call fcn.00470614
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.004b8805
pop ecx
test edi, edi
jne 0x47e386
jmp 0x47e299
push 0xffffffffffffffff
call fcn.004744de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x28]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret
Function at 0x47f29f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x517ee4
call fcn.004b9729
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x28]
mov edx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x20019
push edx
call fcn.0047f1a8
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x47f352
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x47f34a
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
call fcn.00414b4d
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00410335
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x47f3b9
lea ecx, [ebp - 0x28]
call fcn.00470978
cmp byte [ebp + 0x1c], 0
jne 0x47f3cb
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push 0x20219
push dword [ebp - 0x14]
push dword [eax]
call fcn.00473dc4
mov edi, eax
test edi, edi
jne 0x47f3cb
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x47f3c3
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
call fcn.00414b4d
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00410335
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x47f3c3
lea ecx, [ebp - 0x28]
call fcn.00470978
jmp 0x47f3cd
lea ecx, [ebp - 0x28]
call fcn.00470978
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.00470978
mov eax, esi
call fcn.004b96d8
ret
Function at 0x485d3c
Capabilities:
Create directory

Disassembly:
push 0x28
mov eax, 0x51a07a
call fcn.004b9729
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x1c]
call fcn.00466c6a
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
push str.aL2wOSeCRC8rTT_ZypMa1PFndDq0NU9xbz5HhNlFjQfNnU5GBgcAisuZD4OInh6fD06AD8_OwAmJxs8aj9qcg4wEjwKEQU4DzIDHxQFATE6FGUEIz0aBy1sJAQCCRVmASYJGTQWNjwMFhYbAAAAUAhfYEZqUu_dQ75XbLvg
mov dword [ebp - 0x24], ebx
call fcn.00466d59
lea eax, [ebp - 0x34]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0046929c
push eax
lea ecx, [ebp - 0x24]
call fcn.00466d59
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004690f8
mov dword [ebp - 0x18], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x18]
call fcn.00466c6a
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push ebx
push ecx
mov ecx, esp
push str.VIJfq7epgtUwxNS6o1Z32ho2dZ9RCYWFyFQHjQ0NwIUMRc8GWIeDD05YgoxKhgHHWAGIG1gZD0DAzoAE2YFAzVnJmdpMyg1Lgw8IzsNPgYnExk1ayAoKAUzE2A_AwgCAAQxN2gtNAoJAzkRJGcGPyYhCB95DwQ2BBc3EWA6fmkdBWlOgQrNChueQArORszOSMYBSUzNC1nBS4bGiA7NAwmPX4TAh4iITAKYjE4KGY7dDQMEDglCBwZYj8pJxgbYgcXFQ0FLgUiPjxgOGIcBx4tK2ZrIQs6BzMuGgwBGxw4ARd2ITwtKjsYDWUFGxAZcTpkbxQ5Hz4SFC4lFT02KRRxJRYzNw5lOGcWDDNlIzogD29qJhsZGx86OhQVJ3wOOxgjGgRkEyoAAAEMYp2x41RmhIhg_r2agu
call fcn.00466d59
lea eax, [ebp - 0x34]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0046929c
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004770f9
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.0046f944
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004690f8
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x485e9f
cmp dword [esi - 0xc], 0
lea ecx, [ebp - 0x18]
jne 0x485e36
lea eax, [ebp - 0x1c]
push eax
call fcn.0046f944
mov esi, dword [ebp - 0x18]
jmp 0x485e56
push edi
call fcn.004705b2
mov esi, dword [ebp - 0x18]
push esi
call fcn.00486a3a
pop ecx
test eax, eax
jne 0x485e56
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x485e8f
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.004770f9
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0046f944
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], ebx
jne 0x485e1f
jmp 0x485e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040ce73
lea ecx, [edi - 0x10]
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret
Function at 0x4860fe
Capabilities:
Encode data using xor

Disassembly:
push 0x34
mov eax, 0x51a16b
call fcn.004b9729
mov ecx, dword [ebp + 8]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov edi, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
and dword [ebp - 0x3c], ebx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], edx
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x4861a2
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cc6a
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.0040cf6b
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0040ceec
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040c702
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.004880ad
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x486209
push dword [ebp - 0x38]
and dword [ebp - 0x2c], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00408122
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040899f
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.0048548b
add esp, 0xc
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x3c]
je 0x486239
mov al, byte [eax + edi]
xor al, byte [ebx + 0x5b2084]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.00413df8
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x486210
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.00413df8
lea ecx, [ebp - 0x30]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x34]
call fcn.004b96d8
ret