joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d6b0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 3
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 8
push eax
push 0
push dword [0x52aaf4]
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x40d65d
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
push 4
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x52aaf8]
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
mov edx, 0x66d592a5
push eax
push 0
push 0x1a39f273
mov ecx, 0x501344e1
call fcn.00401674
pop ecx
push eax
push dword [ebp - 0x18]
call edi
pop edi
pop ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret

Function at 0x40d9aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 4
pop edi
mov edx, edi
mov word [esi + 8], ax
mov ecx, esi
call fcn.0040d6c8
test al, al
je 0x40da56
push 0x8c0f6e7a
mov edx, 0xf0e30ea1
mov ecx, 0xc625d91f
call fcn.00401674
pop ecx
mov ecx, eax
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40da09
test dx, dx
je 0x40da05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40da09
add eax, edi
add ecx, edi
test dx, dx
jne 0x40d9e5
xor eax, eax
jmp 0x40da0e
sbb eax, eax
or eax, 1
test eax, eax
je 0x40da56
push 0x50747f1a
mov edx, 0x2c981fc1
mov ecx, 0x1a5ec86b
call fcn.00401674
pop ecx
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40da4d
test dx, dx
je 0x40da49
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40da4d
add ecx, edi
add eax, edi
test dx, dx
jne 0x40da29
xor eax, eax
jmp 0x40da52
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40da80
push 0x25e03a23
mov edx, 0x590c5af8
mov ecx, 0x6fca8d6e
call fcn.00401674
pop ecx
mov ecx, eax
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40da71
xor edx, edx
lea ecx, [ebp + 8]
call fcn.0040dc79
test eax, eax
je 0x40dabd
push 0xa
push esi
push 1
push 0
push 0x57db5d68
mov edx, 0x2b373dbd
mov ecx, 0x1df1ea3f
call fcn.00401674
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x40dac5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 5
pop edx
mov ecx, esi
mov word [esi + 0xa], ax
call fcn.0040d6c8
test al, al
je 0x40db28
push 0xae3620a1
mov edx, 0xd2da4079
mov ecx, 0xe41c9703
call fcn.00401674
pop ecx
mov ecx, eax
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40db1f
test dx, dx
je 0x40db1b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40db1f
add eax, 4
add ecx, 4
test dx, dx
jne 0x40daf9
xor eax, eax
jmp 0x40db24
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40db52
push 0xd330d92f
mov edx, 0xafdcb9f7
mov ecx, 0x991a6e93
call fcn.00401674
pop ecx
mov ecx, eax
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40db43
xor edx, edx
lea ecx, [ebp + 8]
call fcn.0040dc79
test eax, eax
je 0x40db8f
push 0xc
push esi
push 1
push 0
push 0xe3cfd306
mov edx, 0x9f23b3d4
mov ecx, 0xa9e56482
call fcn.00401674
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40db96
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40dc0a
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 3
push 0
push dword [0x52aaf4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40dbf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push dword [0x52aaf8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret
Function at 0x40dcf4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor edx, edx
lea ecx, [ebp - 4]
mov word [edi], ax
call fcn.0040dc79
test eax, eax
je 0x40dd40
push 0x104
push edi
push 0x95fa747
mov edx, 0x75b3c793
mov ecx, 0x4375108d
call fcn.00401674
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0040d5b4
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp word [edi], bx
jne 0x40dd75
mov ecx, edi
call fcn.0040e2c0
push 0xc02c9a7b
mov edx, 0xbcc0faa1
mov ecx, 0x8a062f5b
mov esi, eax
call fcn.00401674
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40dd7a
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
lea esi, [edi + ecx*2]
cmp word [esi - 2], ax
je 0x40dda0
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
push edi
call fcn.0041fe91
pop ecx
test al, al
jne 0x40ddb4
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ddbd
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
xor edx, edx
lea ecx, [esp + 8]
call fcn.0040dc79
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x40de2a
cmp byte [esp + 0x14], 0
je 0x40ddeb
push 0xbf9873a1
mov edx, 0xc3741373
mov ecx, 0xf5b2c783
jmp 0x40ddfa
push 0x4067110f
mov edx, 0x3c8b71d7
mov ecx, 0xa4da539
call fcn.00401674
pop ecx
mov ecx, dword [esp + 8]
mov edx, eax
push 0x104
push ebp
call fcn.0040d5b4
pop ecx
pop ecx
push dword [esp + 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40de2a
mov al, 1
jmp 0x40defc
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push edi
push ebp
xor edi, edi
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x40de92
push 0xe44fdddc
mov edx, 0x98a3bd12
mov ecx, 0xae6569ca
call fcn.00401674
mov edx, eax
pop ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x40de59
sub edx, esi
lea edi, [ebp - 2]
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40de6b
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0041fe91
pop ecx
cmp al, 1
je 0x40deee
xor edi, edi
push ebp
push edi
push edi
push 0x23
push edi
call ebx
test eax, eax
jne 0x40def2
push 0x9708f1ee
mov edx, 0xebe49120
mov ecx, 0xdd22459e
call fcn.00401674
mov edx, eax
pop ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x40deb7
sub edx, esi
lea edi, [ebp - 2]
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40dec9
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0041fe91
pop ecx
cmp al, 1
jne 0x40def2
mov al, 1
jmp 0x40defa
xor eax, eax
mov word [ebp], ax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40df75
Capabilities:
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
push 0xff3401d0
mov edx, 0x83d8610a
mov ecx, 0xb51eb56e
call fcn.00401674
pop ecx
xor edx, edx
lea ecx, [esp + 0xc]
mov ebp, eax
call fcn.0040dc79
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40dfef
mov ecx, dword [esp + 0xc]
mov edx, ebp
push ebx
push 0x104
push edi
call fcn.0040d5b4
pop ecx
pop ecx
push dword [esp + 0x10]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x40dfef
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + eax*2]
cmp esi, edi
je 0x40e022
movzx eax, word [esi - 2]
cmp eax, 0x2f
je 0x40e022
push 0x5c
pop ecx
cmp ax, cx
je 0x40e022
mov word [esi], cx
add esi, 2
jmp 0x40e01d
mov ecx, edi
call fcn.0040e2c0
mov esi, eax
sub eax, ebp
movzx ecx, word [ebp]
mov word [eax + ebp], cx
lea ebp, [ebp + 2]
test cx, cx
jne 0x40dffa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop eax
mov word [esi + 6], ax
add esi, 8
xor eax, eax
mov word [esi], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 4
Function at 0x40e087
Capabilities:
Create directory
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d2d81
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x518450]
xor eax, esp
push eax
lea eax, [esp + 0x57c]
mov dword fs:[0], eax
mov bx, word [esp + 0x58c]
movzx eax, bl
mov edi, dword [eax*4 + 0x52aa34]
test edi, edi
je 0x40e296
lea ecx, [esp + 0x15c]
call fcn.0040dcf4
push 0
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + 0x15c]
push 0x5c
lea ecx, [esp + 0x20]
lea esi, [esi + eax*2]
pop eax
mov word [esi], ax
add esi, 2
call fcn.0041e868
and dword [esp + 0x584], 0
mov edx, 0x19c3989a
movzx eax, bx
mov ecx, 0x2f054cc2
push eax
push 0x652ff843
call fcn.00401674
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x168]
push eax
call fcn.0041fe91
add esp, 0x10
test al, al
je 0x40e285
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x160]
push eax
call fcn.004201a7
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x40e285
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x64cd07df
mov ecx, 0x520bd397
push ebp
push 0x18216709
call fcn.0040164a
pop ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0041eaf0
push ebp
call fcn.0040507c
pop ecx
lea eax, [edi + 0x94]
mov edx, 0xbf9aaca9
push eax
movsx eax, bl
mov ecx, 0x895c789f
push eax
push 0x4ef5b0
push 0x4ef5ec
push 0xc376cc67
call fcn.00401674
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x364]
xor ebx, ebx
push ebx
push ebx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x170]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x20]
call fcn.0041f56e
lea eax, [esp + 0x364]
mov edx, 0x4c565c2a
push eax
push 0x30ba3cf8
mov ecx, 0x7a90883e
call fcn.0040164a
pop ecx
push eax
lea eax, [esp + 0x474]
push eax
call fcn.004bad3c
add esp, 0xc
lea eax, [esp + 0x46c]
mov edx, 0x5a8ad2f2
mov ecx, 0x6c4c06fc
push 1
push ebx
push eax
push 0x2666b225
call fcn.0040164a
pop ecx
push eax
push 0x804fefb4
mov edx, 0xfca38f6f
mov ecx, 0xca655b69
call fcn.0040164a
pop ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [esp + 0x584], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041e964
mov ecx, dword [esp + 0x57c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.004b9a6c
add esp, 0x574
ret 4
Function at 0x40e2c0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push esi
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ebp
test eax, eax
jle 0x40e2ed
cmp word [esi + eax*2 - 2], bp
je 0x40e2ed
mov word [esi + eax*2], bp
inc eax
mov ebx, 0x4ef5ec
lea esi, [esi + eax*2]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], bp
add eax, 2
pop esi
pop ebp
pop ebx
mov word [eax], cx
ret
Function at 0x40e8ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e963
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 3
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0xc
push eax
push 0
push 0xaae0c58c
mov edx, 0xd60ca55a
mov ecx, 0xe0ca704a
call fcn.00401674
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
xor ecx, ecx
test esi, esi
pop esi
cmovne eax, ecx
jmp 0x40e966
mov eax, dword [ebp - 4]
shr eax, 2
mov esp, ebp
pop ebp
ret 8

Function at 0x40e96f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e9e7
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40e9b4
push 0x36a2e1ac
mov edx, 0x4a4e817a
mov ecx, 0x7c88547c
call fcn.00401674
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40e9de
shl eax, 2
mov edx, 0x33e1501c
push eax
push dword [ebp + 8]
mov ecx, 0x52782e8
push 3
push 0
push 0x4f0d30ca
call fcn.00401674
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e9ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ea63
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 3
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x15
push eax
push 0
push 0xc5f88430
mov edx, 0xb914e4e0
mov ecx, 0x8fd2360a
call fcn.00401674
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
xor ecx, ecx
test esi, esi
pop esi
cmovne eax, ecx
jmp 0x40ea66
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea6c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x52aaf0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40eae1
cmp dword [ebp + 0xc], eax
jne 0x40eaaf
push 0x4730c927
mov edx, 0x3bdca9f7
mov ecx, 0xd1a7b33
call fcn.00401674
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40ead8
push dword [ebp + 0xc]
mov edx, 0x94175b48
mov ecx, 0xa2d189ee
push dword [ebp + 8]
push 3
push 0
push 0xe8fb3b98
call fcn.00401674
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x40eae7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edx, edx
lea ecx, [ebp - 4]
call fcn.0040dc79
mov esi, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x40eb38
push ebx
push 0x104
push esi
push 0xb36dbf9
mov edx, 0x77dabb20
mov ecx, 0x411c69a0
call fcn.00401674
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0040d5b4
pop ecx
pop ecx
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x40eb44
push esi
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40eb49
sub ecx, edx
sar ecx, 1
push 0x5c
lea eax, [esi + ecx*2]
pop ecx
pop edi
pop esi
cmp word [eax - 2], cx
je 0x40eb71
mov word [eax], cx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fe56
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4b8]
lea eax, [esp + 0x1d]
push edi
mov edi, ecx
xor ebx, ebx
push 0x3f
push ebx
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [ebp + 4], 8
mov byte [esp + 0x2c], bl
call fcn.004bf040
add esp, 0xc
lea edx, [esp + 0xa0]
push 0x23
pop ecx
call fcn.0040fdee
lea eax, [esp + 0xa0]
mov edx, 0x15bd022c
push eax
push 0x8f29e55d
mov ecx, 0x62361e12
call fcn.0040173e
pop ecx
push eax
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2a8]
push ebx
push 2
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ff29
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00410736
mov ecx, dword [edi]
mov al, 1
sub ecx, 9
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x4b4]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x4ac
ret 4
Function at 0x41042c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x20219
push 0
push 0x92bc0ca1
mov edx, 0x828ebd0
mov ecx, 0x7fa3f686
call fcn.0040173e
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4104c8
push edi
mov byte [ebp - 0x14], al
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
mov edx, 0xe9226955
mov ecx, 0x9ea9747d
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x73b68e3b
call fcn.0040173e
pop ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104c7
push esi
mov edi, ebx
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret 4
Function at 0x410a28
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push esi
xor esi, esi
mov dword [esp + 8], eax
mov ecx, esi
sub edx, 0x51e3e0
mov al, byte [edx + ecx + 0x51e3e0]
xor al, byte [ecx + 0x51e3e0]
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x18
jl 0x410a4d
push ebx
push ebp
push edi
push 3
pop ebx
lea edi, [esp + 0x29]
mov dword [esp + 0x10], 5
lea ebp, [esp + 0x20]
mov dword [esp + 0x18], 8
cmp ebx, 8
jge 0x410a98
mov dl, byte [edi + 1]
mov cl, bl
mov al, byte [edi]
shr dl, cl
mov ecx, dword [esp + 0x10]
shl al, cl
jmp 0x410ab7
mov eax, ebx
and eax, 0x80000007
jns 0x410aa6
dec eax
or eax, 0xfffffff8
inc eax
mov dl, byte [edi - 1]
push 8
pop ecx
sub ecx, eax
mov al, byte [edi]
shl dl, cl
lea ecx, [ebx - 8]
shr al, cl
add dl, al
add edi, 3
dec dword [esp + 0x10]
mov byte [ebx + ebp - 3], dl
inc ebx
dec dword [esp + 0x18]
jne 0x410a82
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004109b7
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x4efa38]
xor byte [esp + esi + 0xc], al
inc esi
cmp esi, 8
jl 0x410ade
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b9a6c
add esp, 0x34
ret 8

Function at 0x410b11
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp], eax
push esi
mov eax, dword [ecx]
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0xc], eax
mov al, byte [ecx + 0x4efa38]
xor byte [esp + ecx + 8], al
inc ecx
cmp ecx, 8
jl 0x410b3c
push ebx
push ebp
push edi
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004109b7
push 3
pop edx
lea ebp, [esp + 0x25]
mov dword [esp + 0x14], 8
lea edi, [esp + 0x1c]
cmp edx, 8
jge 0x410b7c
mov eax, esi
jmp 0x410b96
mov eax, edx
and eax, 0x80000007
jns 0x410b8a
dec eax
or eax, 0xfffffff8
inc eax
push 8
pop ecx
sub cl, al
movzx eax, byte [edi + edx - 3]
shr eax, cl
mov byte [ebp - 1], al
mov al, byte [edi + edx - 3]
movzx ebx, al
cmp edx, 8
jge 0x410bae
push 8
pop ecx
sub cl, dl
shr ebx, cl
jmp 0x410bb3
lea ecx, [edx - 8]
shl ebx, cl
mov ecx, edx
mov byte [ebp], bl
shl al, cl
inc edx
mov byte [ebp + 1], al
add ebp, 3
dec dword [esp + 0x14]
jne 0x410b73
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x51e3e0]
xor al, byte [esp + esi + 0x18]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x18
jl 0x410bce
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.004b9a6c
add esp, 0x30
ret 8
Function at 0x410bf3
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x66c], 0
lea eax, [ebp - 0x668]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
push 0
push eax
call fcn.004bf040
add esp, 0xc
mov edx, 0x6cce210e
mov ecx, 0x1b453c02
push esi
push 0xf65ac66d
call fcn.0040173e
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x41c]
mov edx, 0x420ae5e7
mov ecx, 0x3581f805
push eax
push 0xd89e0284
call fcn.0040173e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410ceb
lea eax, [ebp - 0x640]
mov edx, 0xd3680ac2
push eax
lea eax, [ebp - 0x41c]
mov ecx, 0xa4e31712
push eax
push 0x49fcedac
call fcn.0040173e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410c95
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret 4