joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b3d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x250]
push esi
xor esi, esi
push edi
mov edi, esi
cmp eax, 0xffffffff
jne 0x410b5a
inc edi
jmp 0x410c31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x410c31
cmp dword [ebx + 0x14], esi
jne 0x410c31
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x410bb8
call esi
mov edi, eax
test edi, edi
jle 0x410bb6
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x410bf0
call esi
mov edi, eax
test edi, edi
jle 0x410bee
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x410c18
call esi
mov edi, eax
test edi, edi
jle 0x410c16
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
mov eax, dword [ebx + 0x244]
mov edx, dword [ebx + 0x240]
mov esi, dword [ebx + 0x20]
mov ecx, dword [esi]
push eax
push edx
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x410c4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x411063
Capabilities:
Encode data using xor

Disassembly:
les ebx, [ebx + 0xf]
mov edi, 0xedf981c7
lahf
add byte [eax], al
loop 0x41103d
stc
dec dword [eax + 0x1ec281c5]
daa
push es
Function at 0x414eda
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004138c7
and dword [ebp - 0x14], 0
cmp dword [0x422ab4], 0
mov dword [ebp - 0x18], eax
jne 0x414f8d
push 0x402da4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415035
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d98
push ebx
call edi
test eax, eax
je 0x415035
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402d88
push ebx
mov dword [0x422ab4], eax
call edi
push eax
call esi
push 0x402d74
push ebx
mov dword [0x422ab8], eax
call edi
push eax
call esi
push 0x402d58
push ebx
mov dword [0x422abc], eax
call edi
push eax
call esi
mov dword [0x422ac4], eax
test eax, eax
je 0x414f8d
push 0x402d40
push ebx
call edi
push eax
call esi
mov dword [0x422ac0], eax
mov eax, dword [0x422ac0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414fe6
cmp dword [0x422ac4], ecx
je 0x414fe6
push eax
call esi
push dword [0x422ac4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414fe6
test ebx, ebx
je 0x414fe6
call edi
test eax, eax
je 0x414fdd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414fdd
test byte [ebp - 8], 1
jne 0x414fe6
or dword [ebp + 0x10], 0x200000
jmp 0x415019
mov eax, dword [0x422ab8]
cmp eax, dword [ebp - 0x18]
je 0x415019
push eax
call esi
test eax, eax
je 0x415019
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415019
mov eax, dword [0x422abc]
cmp eax, dword [ebp - 0x18]
je 0x415019
push eax
call esi
test eax, eax
je 0x415019
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422ab4]
call esi
test eax, eax
je 0x415035
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415037
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret
Function at 0x416a4c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
xor edx, edx
push ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, 0xffff
test eax, eax
je 0x416a79
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call fcn.00416b71
mov ebx, eax
jmp 0x416abc
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x30]
movzx eax, byte [ecx + 0x12]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push eax
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x416ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x416abe
and ebx, edi
or ebx, 0x80070000
test ebx, ebx
js 0x416af4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x416aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x416aea
and ebx, edi
or ebx, 0x80070000
test ebx, ebx
js 0x416af4
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x416b03
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x416b71
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
push edi
push 0x44
pop eax
push 1
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xff
call fcn.0041a092
mov edi, eax
test edi, edi
jne 0x416ba2
mov esi, 0x8007000e
jmp 0x416c7e
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00416d68
mov esi, eax
test esi, esi
js 0x416c7e
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x416c74
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
cmp esi, 0x7a
jne 0x416c60
cmp dword [ebp - 0xc], 0x44
jbe 0x416c21
push 1
push dword [ebp - 0xc]
push edi
call fcn.0041a0b4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x416c1f
call ebx
mov esi, eax
test esi, esi
jle 0x416c1a
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x416c7d
mov eax, dword [ebp - 0x10]
mov edi, eax
cmp dword [ebp - 8], 0xff
jbe 0x416c3c
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00416d68
mov esi, eax
test esi, esi
js 0x416c7d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x416c74
call ebx
mov esi, eax
test esi, esi
jle 0x416c72
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x416c7d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
xor esi, esi
pop ebx
cmp dword [ebp - 4], 0
je 0x416c8c
push dword [ebp - 4]
call fcn.00417131
test edi, edi
je 0x416c96
push edi
call fcn.0041a0d9
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x4172b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x417357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x417357
movzx ecx, word [edi]
push ebx
xor ebx, ebx
mov eax, edi
test cx, cx
je 0x417351
push 0x5c
pop edx
cmp cx, dx
cmove ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4172e9
test ebx, ebx
je 0x417351
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.004172b0
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x417356
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41734d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41733b
xor esi, esi
inc esi
jmp 0x417356
test esi, esi
jle 0x417356
and esi, 0xffff
or esi, 0x80070000
jmp 0x417356
xor esi, esi
jmp 0x417356
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4173dd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x41742a
call ebx
mov esi, eax
test esi, esi
jle 0x417424
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4174b4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x417440
mov esi, 0x8007000e
jmp 0x4174b4
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41746b
call ebx
mov esi, eax
test esi, esi
jle 0x417469
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4174ad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x40177c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41749a
call ebx
mov esi, eax
test esi, esi
jle 0x417498
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4174ad
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x417528
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4175c3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x4175b0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417562
mov esi, 0x80070005
jmp 0x4175c2
test al, 0x10
je 0x41756d
mov esi, 0x8000ffff
jmp 0x4175c2
test al, 7
je 0x4175c2
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41759b
call ebx
mov esi, eax
test esi, esi
jle 0x417599
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x4175c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4175c2
call ebx
mov esi, eax
test esi, esi
jmp 0x4175b4
mov esi, eax
test eax, eax
jle 0x4175c2
and esi, 0xffff
or esi, 0x80070000
pop ebx
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4175ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 8]
push eax
or edi, 0xffffffff
call fcn.00416db1
mov esi, eax
test esi, esi
js 0x4176b6
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x41767f
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
push 0x40374c
push eax
call fcn.0041701f
mov esi, eax
add esp, 0x18
test esi, esi
js 0x4176b6
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x417676
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x417666
and esi, 0xffff
or esi, 0x80070000
cmp esi, 0x80070050
jne 0x417672
xor esi, esi
jmp 0x417676
test esi, esi
js 0x4176b6
inc ebx
cmp ebx, 0x3e8
jl 0x417602
cmp dword [ebp + 0x10], 0
je 0x417699
push 0xfde9
push 0
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.00416f1a
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4176a2
mov dword [eax], edi
test esi, esi
js 0x4176aa
test eax, eax
jne 0x4176b6
cmp edi, 0xffffffff
je 0x4176b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4176c4
push dword [ebp - 4]
call fcn.00417131
cmp dword [ebp - 8], 0
je 0x4176d2
push dword [ebp - 8]
call fcn.00417131
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4176db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
and dword [ebp - 0x210], esi
push 0x104
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x417750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41774a
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x41782b
xor eax, eax
mov dword [ebp - 0x214], eax
cmp edi, 0xffffffff
jne 0x4177f8
push dword [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push 0x403758
push eax
call fcn.0041700b
mov esi, eax
add esp, 0x18
test esi, esi
js 0x41782b
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4177e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4177d0
and esi, 0xffff
or esi, 0x80070000
cmp esi, 0x80070050
jne 0x4177dc
xor esi, esi
jmp 0x4177e0
test esi, esi
js 0x41782b
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, 0x3e8
jl 0x417758
test ebx, ebx
je 0x4177fe
mov dword [ebx], edi
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x417817
mov eax, dword [ebp - 0x210]
and dword [ebp - 0x210], 0
mov dword [ecx], eax
test esi, esi
js 0x41781f
test ebx, ebx
jne 0x41782b
cmp edi, 0xffffffff
je 0x41782b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], 0
je 0x41783f
push dword [ebp - 0x210]
call fcn.00417131
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret 0x10
Function at 0x417b1a
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x417b69
cmp word [edi], ax
je 0x417b69
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push dword [ebp + 0xc]
mov esi, eax
call ebx
add esi, 3
add eax, esi
push eax
push edi
lea eax, [ebp - 4]
push eax
call fcn.00416dfb
mov esi, eax
test esi, esi
js 0x417d19
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
jmp 0x417ba2
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
add eax, 3
push eax
lea eax, [ebp - 4]
push eax
call fcn.00416d68
mov esi, eax
test esi, esi
js 0x417d19
push 0xffffffffffffffff
push edi
push 4
push dword [ebp - 4]
call fcn.00411144
lea eax, [edi + 6]
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movzx eax, word [ecx]
push 0x5c
pop edx
mov dword [ebp - 0x10], edx
cmp dx, ax
jne 0x417bb9
cmp dx, word [ecx + 2]
je 0x417bfb
push 0x61
pop edx
cmp dx, ax
ja 0x417bc9
push 0x7a
pop edx
cmp dx, ax
jae 0x417be1
push 0x41
pop edx
cmp dx, ax
ja 0x417d12
push 0x5a
pop edx
cmp dx, ax
jb 0x417d12
push 0x3a
pop eax
cmp ax, word [ecx + 2]
jne 0x417d12
push 0x5c
pop eax
cmp ax, word [ecx + 4]
jne 0x417d12
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x417c16
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0xc], eax
push ecx
call ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea edx, [ecx + eax*2]
movzx eax, word [ebx]
mov dword [ebp + 8], edx
test ax, ax
je 0x417d1c
mov edi, dword [ebp + 0xc]
cmp word [ebp - 0x10], ax
jne 0x417c42
cmp ebx, edi
je 0x417d01
push 0x5c
pop ecx
mov word [edx], ax
cmp cx, ax
jne 0x417cf8
push dword [ebp - 0xc]
xor eax, eax
mov word [edx + 2], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x417cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x417caf
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x417cab
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x417cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x417ca9
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417d19
xor esi, esi
jmp 0x417cc3
test esi, esi
jle 0x417cc1
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417d19
cmp dword [ebp + 0x18], 0
je 0x417cf5
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x417cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x417cf3
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417d19
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add edx, 2
mov dword [ebp + 8], edx
add ebx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x417c34
jmp 0x417d1c
mov esi, 0x80070057
jmp 0x417d1c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x417d26
push ecx
call fcn.00417131
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4185b7
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x422f00], ebx
jne 0x418618
mov dword [0x422f00], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x4185fe
shr eax, 1
xor eax, 0xedb88320
jmp 0x418600
shr eax, 1
dec edi
test edi, edi
jg 0x4185f1
mov dword [ecx*4 + 0x422b00], eax
inc ecx
cmp ecx, 0xff
jle 0x4185ec
mov ecx, dword [ebp + 8]
test esi, esi
je 0x418634
movzx eax, byte [ecx]
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x422b00]
inc ecx
dec esi
jne 0x41861c
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
xor edx, edx
div dword [ecx + 0xc]
mov dword [ebp - 8], ebx
mov edi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x41867d
lea eax, [ecx + 8]
mov dword [ebp - 0xc], eax
mov esi, edi
imul esi, esi, 0xc
add esi, dword [eax]
cmp dword [ebp + 0xc], ebx
je 0x418689
cmp dword [esi + 4], ebx
je 0x418679
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4186bb
mov ecx, dword [ebp - 4]
cmp dword [esi + 4], ebx
jne 0x4186a1
cmp dword [esi], ebx
jne 0x4186a1
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp dword [esi + 4], ebx
je 0x4186bb
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4186bb
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0xc]
jb 0x4186aa
sub edi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
jb 0x418650
jmp 0x41867d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x418680
Function at 0x418e7d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
mov dword [ebp - 0x20c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jle 0x418edb
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jne 0x418f6d
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x418f11
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x418f82
push dword [ebp - 0x208]
call fcn.00418e7d
mov esi, eax
test esi, esi
jle 0x418f32
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x418f82
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x418f69
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x418f82
jmp 0x418f75
cmp esi, 0x80070103
je 0x418f80
test esi, esi
jne 0x418f82
xor ecx, ecx
jmp 0x418e9d
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x418f97
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret 4

Function at 0x418fa9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00411144
add esp, 0x10
cmp eax, 0x50
jne 0x418fe6
mov eax, 0x8007007a
jmp 0x419027
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x419036
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041ad9f
pop ecx
pop ecx
test eax, eax
je 0x419017
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x418ff8
cmp word [ebp - 0x20c], 0
je 0x419025
test eax, eax
jne 0x418fe6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410f5c
leave
ret 8
cmp eax, 2
je 0x419050
cmp eax, 3
je 0x419050
test eax, eax
jle 0x419052
and eax, 0xffff
or eax, 0x80070000
jmp 0x419052
xor eax, eax
cmp eax, 1
je 0x418fe6
jmp 0x419027