joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040ad
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
test ebp, ebp
jne 0x4040ce
mov al, 1
jmp 0x404268
cmp dword [ebx + 0xc], 1
jne 0x4040df
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 4], eax
push esi
push edi
and dword [esp + 0x10], 0
cmp dword [ebx + 0xc], 0
mov byte [esp + 0x14], 0
je 0x404138
xor esi, esi
test ebp, ebp
je 0x404160
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x404107
mov eax, 0x4000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x3c]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
add al, 1
mov dword [esp + 0x14], eax
je 0x404160
add esi, 0x4000
cmp esi, ebp
jb 0x4040f7
jmp 0x404158
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x3c]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov dword [esp + 0x14], eax
test al, al
jne 0x40425e
cmp byte [ebx + 0x14], 0
je 0x40425e
cmp dword [ebx + 0xc], 0
jne 0x40425e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
mov edi, eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x420278]
mov ecx, ebx
call esi
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x1e]
push eax
mov dword [esp + 0x24], edx
call fcn.0040435a
push edi
mov dword [esp + 0x1c], eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp esi, edi
jb 0x4041f9
ja 0x4041b9
cmp dword [esp + 0x18], ebp
jbe 0x4041f9
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov esi, dword [esp + 0x20]
sub ecx, ebp
mov eax, esi
sbb eax, edi
cmp eax, edi
jg 0x4041f9
jl 0x4041d4
cmp ecx, 0xffffffff
ja 0x4041f9
mov ecx, ebp
mov eax, edi
add ecx, edx
adc eax, esi
mov dword [esp + 0x24], eax
js 0x4041f9
jg 0x4041e9
cmp ecx, 0xffffffff
jbe 0x4041f9
lea esi, [ebx + 0x1e]
mov ecx, 0x42d070
push esi
call fcn.0040378c
jmp 0x4041fc
lea esi, [ebx + 0x1e]
push edi
push esi
mov ecx, 0x42d070
call fcn.004035fc
test al, al
je 0x40424f
cmp dword [esp + 0x10], ebp
jae 0x4040e1
cmp dword [esp + 0x10], edi
jbe 0x4040e1
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x420278]
mov ecx, ebx
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x420278]
mov ecx, ebx
call dword [edi + 0x10]
jmp 0x4040e1
lea eax, [ebx + 0x1e]
mov ecx, 0x42d070
push eax
push edi
call fcn.00403789
mov al, byte [esp + 0x14]
pop edi
mov byte [ebx + 8], 1
pop esi
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a2bd
add esp, 0x1c
ret 8
Function at 0x4042f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404346
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040520a
test al, al
je 0x404346
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 4

Function at 0x40435a
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0xf9c]
mov eax, 0x101c
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp + 0xf98], eax
mov eax, dword [ebp + 0xfa4]
lea ecx, [ebp - 0x68]
push 0x800
push ecx
push eax
call fcn.0040513d
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x78]
and dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x68]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4043cc
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x74]
ja 0x4043cc
xor eax, eax
add eax, dword [ebp - 0x70]
adc edx, 0
jmp 0x4043d0
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0xf98]
xor ecx, ebp
call fcn.0040a2bd
lea esp, [ebp + 0xf9c]
pop ebp
ret 4

Function at 0x40440c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004054f1
movzx eax, word [eax]
cmp eax, 0x2e
je 0x404447
cmp eax, 0x20
je 0x404447
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40447a
push esi
call fcn.004042e3
test al, al
jne 0x40448d
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040520a
test al, al
je 0x40448d
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40448d
cmp byte [ebp + 0xc], 0
je 0x404489
push dword [ebp + 0x10]
push esi
call fcn.004044b6
xor eax, eax
jmp 0x4044a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4044a2
cmp eax, 3
je 0x4044a2
xor eax, eax
inc eax
jmp 0x4044a5
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4044b6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x404510
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040520a
test al, al
je 0x404510
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 8
Function at 0x404db4
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x404e55
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x404e7c
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040520a
test al, al
je 0x404e2e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x404e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404e48
cmp eax, 3
je 0x404e48
cmp eax, 0x12
je 0x404e48
xor eax, eax
inc eax
jmp 0x404e4a
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x404f24
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404e74
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x404f24
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.00407081
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00405583
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407303
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407303
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407303
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a2bd
add esp, 0x1254
ret 0xc
Function at 0x405180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareWinRARPaths
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x4051d5
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push str.AppData
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], bx
je 0x4051e4
push esi
call fcn.004042e3
test al, al
jne 0x405201
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040503d
test al, al
jne 0x405201
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00405557
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40520a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
cmp word [esi], 0
jne 0x40523f
xor al, al
jmp 0x4053aa
push ebx
push ebp
push esi
call fcn.004053c3
push esi
call fcn.0040dd48
pop ecx
push esi
mov ebx, eax
call fcn.004053ef
test al, al
je 0x4052e0
push esi
call fcn.004053c3
test al, al
je 0x405296
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x4053a6
push dword [esp + 0x1020]
push 0x421608
push edi
call fcn.00407081
push dword [esp + 0x1020]
jmp 0x40539b
push 0x5c
pop eax
cmp word [esi], ax
jne 0x4053a6
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x4053a6
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x4053a6
push esi
push 0x421608
push edi
call fcn.00407081
push esi
push 0x421614
push edi
call fcn.00407059
push esi
push ebp
jmp 0x40539c
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4053a6
cmp eax, ebp
ja 0x4053a6
movzx eax, word [esi]
push eax
call fcn.00405425
test al, al
je 0x405341
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x4053a6
push ebx
push 0x421608
push edi
call fcn.00407081
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00407059
jmp 0x40539a
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.00404fcc
lea eax, [esp + 0x10]
push eax
call fcn.0040dd48
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x4053a6
push ebx
push 0x421608
push edi
call fcn.00407081
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00407059
cmp word [esi], 0x2e
jne 0x40539a
movzx eax, word [esi + 2]
push eax
call fcn.00405425
test al, al
je 0x40539a
add esi, 4
push ebx
push esi
push edi
call fcn.00407059
mov al, 1
jmp 0x4053a8
xor al, al
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0040a2bd
add esp, 0x1004
ret 0xc
Function at 0x406960
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp esi, edi
je 0x40698d
push dword [ebp + 0x10]
push edi
push esi
call fcn.00407081
lea eax, [ebp - 0x2008]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a62
push edi
call fcn.0040dd48
pop ecx
mov ecx, 0x7ff
sub ecx, eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
add ecx, ecx
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x200c], ecx
push eax
push 0
push str.LanguageFolder
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406a56
push ebx
mov word [ebp - 0x1004], ax
mov ebx, 0x800
push ebx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00404fcc
push ebx
push edi
call fcn.0040550d
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00407059
lea eax, [ebp - 0x1004]
push eax
call fcn.004042e3
pop ebx
test al, al
je 0x406a56
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.00407081
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4081f5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
push esi
mov esi, dword [esp + 0x5b4]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x5b4]
cmp word [esi], bp
je 0x4082cc
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4082cc
push ebx
lea eax, [esp + 0x18]
mov ebx, ebp
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
jmp 0x40829a
lea eax, [esp + 0x20]
push eax
push esi
push str._s_s
lea eax, [esp + 0x1bc]
push 0x200
push eax
call fcn.0040346f
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push edi
call fcn.004081f5
lea eax, [esp + 0x18]
inc ebx
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x408258
push dword [esp + 0x14]
call fcn.0040784a
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
test eax, eax
jne 0x4082cc
inc dword [0x4321e8]
mov ecx, dword [esp + 0x5ac]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a2bd
add esp, 0x5a4
ret 8
Function at 0x408348
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
push esi
call fcn.0040792c
test al, al
jne 0x4083c2
push 0x200
lea eax, [ebp - 0x404]
push eax
push ebx
push esi
call fcn.0040869b
test al, al
je 0x4083c2
lea eax, [ebp - 0x408]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4083c2
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x408]
call fcn.0040784a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408408
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407c4f
test al, al
je 0x40842e
mov eax, dword [ebp - 4]
jmp 0x40847e
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004086fe
mov edi, eax
mov dword [ebp - 8], 4
test edi, edi
je 0x40847b
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
neg ebx
push edi
sbb bl, bl
call fcn.0040784a
add bl, 1
pop ebx
je 0x40847b
cmp dword [ebp - 8], 0
je 0x40847b
mov esi, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40849e
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x810], eax
mov ecx, dword [esp + 0x820]
lea edx, [esp + 0x10]
mov eax, dword [esp + 0x81c]
push ebx
mov ebx, dword [esp + 0x82c]
push ebp
mov ebp, dword [esp + 0x820]
push esi
push edi
mov edi, dword [esp + 0x834]
push 0x400
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
call fcn.00407ff4
test al, al
jne 0x408512
mov esi, dword [esp + 0x83c]
push esi
push ebx
push edi
call fcn.00407081
cmp byte [0x42a1b1], 0
sete al
jmp 0x408533
lea eax, [esp + 0x20]
push eax
call fcn.00407d07
test eax, eax
jne 0x408522
mov eax, ebx
mov esi, dword [esp + 0x83c]
push esi
push eax
push edi
call fcn.00407081
mov al, 1
test al, al
je 0x40853b
mov al, 1
jmp 0x4085b2
push dword [esp + 0x10]
push ebp
call fcn.004086fe
mov ebp, eax
xor eax, eax
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4085a6
lea ecx, [esi + esi]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push edi
lea ecx, [esp + 0x24]
push ecx
push eax
push dword [esp + 0x28]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push ebp
sbb al, al
inc al
mov byte [esp + 0x18], al
call fcn.0040784a
cmp byte [esp + 0x14], 0
je 0x4085a6
mov eax, dword [esp + 0x10]
shr eax, 1
test esi, esi
jne 0x408597
xor eax, eax
mov word [edi], ax
jmp 0x4085ae
dec esi
cmp eax, esi
jb 0x40859e
mov eax, esi
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x4085ae
push esi
push ebx
push edi
call fcn.00407081
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a2bd
add esp, 0x814
ret 0x18

Function at 0x4087a2
Capabilities:
Set registry value

Disassembly:
sub esp, 0x808
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
mov ebx, dword [esp + 0x814]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x81c]
push esi
mov esi, dword [esp + 0x824]
push edi
mov edi, dword [esp + 0x81c]
push 0x400
push eax
push ebp
push ebx
push edi
call fcn.00407ff4
test al, al
jne 0x4087f7
cmp byte [0x42a1b1], al
sete al
jmp 0x408806
push 1
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.0040789f
mov al, 1
test al, al
je 0x40880e
xor eax, eax
jmp 0x40884c
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call fcn.004080cd
mov edi, eax
test edi, edi
je 0x408846
push esi
call fcn.0040dd48
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.0040784a
jmp 0x40884a
mov esi, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a2bd
add esp, 0x808
ret 0x10
Function at 0x408b07
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x42299c
push 1
push ebx
push 0x4229bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408c47
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push esi
push ecx
push 0x4229ac
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x420278]
call dword [esi]
test eax, eax
js 0x408c33
cmp byte [ebp + 8], bl
je 0x408b78
mov eax, dword [ebp - 0xc]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x420278]
call esi
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x420278]
call esi
cmp dword [ebp + 0x18], ebx
je 0x408ba9
mov eax, dword [ebp - 8]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x420278]
call esi
mov eax, dword [ebp - 8]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x408bc0
push 0x420490
jmp 0x408bc3
push dword [ebp + 0x1c]
push eax
call dword [0x420278]
call esi
cmp dword [ebp + 0x20], ebx
je 0x408be7
mov eax, dword [ebp - 8]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x420278]
call esi
cmp dword [ebp + 0x14], ebx
je 0x408c02
mov eax, dword [ebp - 8]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x420278]
call esi
mov eax, dword [ebp - 0xc]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x420278]
call esi
test eax, eax
js 0x408c20
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x420278]
call esi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x420278]
call esi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040a2bd
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x408c9d
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x409e51
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push dword [esp + 0x10]
call fcn.0040dd48
lea edi, [eax + 1]
lea ecx, [edi*2 + 2]
push ecx
call fcn.00410248
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x409e9c
push edi
push esi
push dword [esp + 0x18]
call fcn.00407563
push dword [esp + 0xc]
push esi
call fcn.00410400
pop ecx
push eax
push 1
push esi
call fcn.004101f0
push esi
call fcn.0040dd43
add esp, 0x14
pop edi
pop esi
ret 8

Function at 0x41be9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bd19
Function at 0x405490
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
sub esp, 8
xor eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi]
mov edx, dword [eax + 0x5e6520]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x40549b
xor eax, eax
mov ecx, 0x100
mov edx, dword [esi + 4]
mov edi, dword [eax + 0x5e6568]
mov dword [eax + edx], edi
add eax, 4
dec ecx
jne 0x4054b5
cmp eax, 0x1000
jl 0x4054b0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
xor ebp, ebp
mov eax, ecx
cdq
idiv edi
inc ecx
mov al, byte [edx + ebx]
mov byte [esp + 0x23], al
mov eax, ecx
cdq
idiv edi
inc ecx
mov eax, ecx
mov dl, byte [edx + ebx]
mov byte [esp + 0x22], dl
cdq
idiv edi
inc ecx
mov al, byte [edx + ebx]
mov byte [esp + 0x21], al
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi]
inc ecx
add eax, ebp
add ebp, 4
mov dl, byte [edx + ebx]
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x20]
xor dword [eax], edx
cmp ebp, 0x48
jl 0x4054da
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00404af0
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov dword [edi + edx], eax
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
mov dword [edi + ecx + 4], edx
add edi, 8
cmp edi, 0x48
jl 0x40552a
mov edi, 4
mov ebx, 0x80
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00404af0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov dword [edi + edx - 4], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov dword [edi + ecx], edx
add edi, 8
dec ebx
jne 0x405560
cmp edi, 0x1004
jl 0x40555b
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8