joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010bc
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x100]
sub esp, 0x180
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0xfc], eax
mov eax, dword [ebp + 0x108]
push ebx
mov ebx, dword [ebp + 0x10c]
push esi
push edi
mov edi, ecx
push dword [edi + 0x20]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x4011cb
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x60
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4011c2
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4011c2
mov esi, 0xa0000000
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
mov dword [ebp - 0x74], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test dword [ebp - 0x74], esi
je 0x401184
test dword [ebp - 0x74], 0x20000000
je 0x401184
push dword [ebp - 0x7c]
mov ecx, edi
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call fcn.0040103f
test eax, eax
jne 0x40119d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40114a
jmp 0x4011c2
push 0x4008
push 0x160
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x60]
mov dword [ebx], eax
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0xfc]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dfca
add ebp, 0x100
leave
ret 8

Function at 0x4011e8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0xe4], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0xf4]
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xf0]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x80], 0
je 0x401260
push 0x309
push 0x160
lea eax, [ebp - 0x7c]
push eax
push 0x80
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x401260
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.0045dfe0
pop ecx
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x78]
jmp 0x401262
xor eax, eax
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
pop esi
call fcn.0045dfca
add ebp, 0xe8
leave
ret 8
Function at 0x40191f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0xed]
push ebx
push eax
mov esi, ecx
mov byte [ebp + 0xec], bl
call fcn.0045df50
add esp, 0xc
call fcn.004462d0
mov eax, dword [eax + 4]
push 0x92
mov ecx, eax
call fcn.00401375
mov dword [ebp - 0x80], eax
push 0x104
lea eax, [ebp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
push 0x160
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp + 0xec]
push eax
call edi
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x120], eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x11
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x401a05
push 0x4009
push 0x160
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call edi
cmp eax, ebx
je 0x4019f9
push eax
call fcn.004466a5
push dword [ebp - 0x80]
mov edi, eax
push dword [esi + 0x120]
push dword [edi + 4]
call fcn.004017f7
push ebx
push edi
mov ecx, esi
call fcn.0040141d
push dword [ebp - 0x78]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x78], ebx
cmp byte [ebp + 0x1fc], bl
je 0x401a14
mov ecx, esi
call fcn.00401407
lea edi, [esi + 0x11c]
lea eax, [esi + 0x238]
push edi
push eax
mov ecx, esi
call fcn.004010bc
test eax, eax
jne 0x401a40
lea eax, [esi + 0x238]
push str.My_Computer
push eax
call fcn.0045dfe0
pop ecx
pop ecx
mov eax, dword [edi]
push eax
push eax
push 1
mov edi, 0xffff0000
push edi
lea eax, [esi + 0x238]
push eax
mov ecx, esi
call fcn.0040161c
mov dword [esi + 0x33c], eax
lea eax, [esi + 0x134]
push eax
push ebx
mov ecx, esi
call fcn.004011e8
push eax
push eax
push 1
push edi
lea edi, [esi + 0x134]
push edi
mov ecx, esi
mov dword [esi + 0x118], eax
call fcn.0040161c
push dword [esi + 0x33c]
mov dword [esi + 0x130], eax
push 2
push 0x1102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp + 0x1f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dfca
add ebp, 0x1f4
leave
ret 4
Function at 0x401ad6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x301
push 0x160
lea eax, [ebp - 0x268]
push eax
push 0
push esi
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x26c], eax
je 0x401b2d
push eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
jmp 0x401b62
push 0x5c
push esi
call fcn.0045e790
pop ecx
pop ecx
test eax, eax
je 0x401b3f
inc eax
push eax
jmp 0x401b40
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0045dfe0
pop ecx
pop ecx
push dword [ebp - 0x26c]
lea eax, [ebp - 0x108]
push dword [ebp - 0x26c]
push 0
push edi
push eax
mov ecx, ebx
call fcn.0040161c
push dword [ebp - 0x268]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dfca
leave
ret 0x14
Function at 0x404a98
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x406170
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
mov ebx, dword [ebp + 0x12c]
push esi
push edi
mov edi, dword [ebp + 0x128]
push 0x40
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x80], 0x44
call fcn.0045df50
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x3c], 0x3c
call fcn.0045df50
mov eax, dword [ebp + 0x130]
add esp, 0x18
sub eax, esi
je 0x4062c4
dec eax
je 0x4062b1
dec eax
je 0x406244
dec eax
jne 0x4062e7
mov ecx, dword [ebp + 0x10]
call fcn.00406113
test eax, eax
je 0x4062b1
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x134]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4062e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4062e7
push ebx
push edi
lea eax, [ebp + 0x18]
push str._s__s
push eax
call fcn.0045f726
mov ax, word [ebp + 0x134]
add esp, 0x10
mov word [ebp - 0x50], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp + 0x18]
push eax
push esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4062ea
push 0xffffffffffffffff
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x14]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x4062e7
push dword [ebp + 0x134]
push esi
push ebx
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4062e7
push ebx
push edi
lea eax, [ebp + 0x18]
push str._s__s
push eax
call fcn.0045f726
add esp, 0x10
push dword [ebp + 0x134]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x11c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dfca
add ebp, 0x120
leave
ret 0x10
Function at 0x4066a0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x118], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x124]
push 0x40
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x80], 0x44
call fcn.0045df50
push 0x3c
pop ebx
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0045df50
mov eax, dword [ebp + 0x128]
add esp, 0x18
sub eax, esi
je 0x406763
dec eax
je 0x406795
dec eax
je 0x406750
dec eax
jne 0x406778
mov ecx, dword [ebp + 0x10]
call fcn.00406113
test eax, eax
je 0x406763
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x406778
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406778
push dword [ebp + 0x12c]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00406320
test eax, eax
jne 0x406778
push dword [ebp + 0x12c]
push esi
push esi
push edi
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x118]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0045dfca
add ebp, 0x11c
leave
ret 0xc
push edi
lea eax, [ebp + 0x14]
push str.explorer.exe__s
push eax
call fcn.0045f726
mov ax, word [ebp + 0x12c]
add esp, 0xc
mov word [ebp - 0x50], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push eax
push esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406778
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x406778
Function at 0x40a0dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40a0e7
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x40a1a2
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47d240]
inc edx
sub edi, 8
dec esi
jne 0x40a107
pop ebx
test edi, edi
je 0x40a1bb
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x47d240]
inc edx
dec edi
jne 0x40a1a6
pop edi
not eax
pop esi
ret
Function at 0x40a6e5
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x514
lea ebp, [esp - 4]
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x514], eax
push 0x28
mov eax, 0x474c77
call fcn.0045eba3
xor ebx, ebx
push 0x207
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.0045df50
push 0x103
lea eax, [ebp + 0x411]
push ebx
push eax
mov byte [ebp + 0x410], bl
call fcn.0045df50
add esp, 0x18
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00406103
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp + 0x30c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x30c]
push eax
push ebx
push 0x47d8bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x30c]
push str..bat
push eax
call fcn.0045dff0
pop ecx
pop ecx
push esi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp]
push eax
call edi
lea eax, [ebp + 0x410]
push eax
push eax
push dword [0x4995bc]
lea eax, [ebp + 0x104]
push eax
call fcn.0045f726
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40a848
or ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040610c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x514]
xor ecx, ebp
call fcn.0045dfca
add ebp, 0x518
leave
ret
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x208
lea ecx, [ebp + 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x30c]
push eax
call edi
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40a817

Function at 0x40c9cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x40cd0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
inc eax
cmp dword [ecx + 0x6c8], 0
je 0x40cd1f
mov eax, 0x101
lea ecx, [ebp + 0xc]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cd3a
xor eax, eax
jmp 0x40cd67
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop ebp
ret 0x18

Function at 0x40cd6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push 2
pop eax
mov edi, 0x20006
cmp dword [ecx + 0x6c8], esi
je 0x40cd8e
mov eax, 0x102
mov edi, 0x20106
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cdc5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cdc5
xor eax, eax
jmp 0x40cdf5
push dword [ebp + 0x14]
call fcn.0045e510
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret 0x14
Function at 0x40f7d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2ac]
sub esp, 0x32c
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x2a8], eax
mov eax, dword [ebp + 0x2b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2b4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x2bc]
xor ebx, ebx
mov esi, 0x103
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1a5]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov byte [ebp + 0x1a4], bl
call fcn.0045df50
push esi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.0045df50
push esi
lea eax, [ebp + 0xa1]
push ebx
push eax
mov dword [ebp - 0x6c], 0x104
mov dword [ebp - 0x70], 1
mov byte [ebp + 0xa0], bl
call fcn.0045df50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x24
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
push edi
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x40f9e7
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a4]
push eax
call fcn.0047038c
pop ecx
pop ecx
test eax, eax
jne 0x40f9e7
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push str._s_shellopencommand
push eax
call fcn.00407505
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x40f94a
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0x104
mov byte [ebp + 0x1a4], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
lea eax, [ebp + 0xa0]
push str.__s_____1_
push eax
call fcn.00407505
lea eax, [ebp + 0xa0]
push eax
lea eax, [ebp + 0x1a4]
push eax
call fcn.0047038c
add esp, 0x14
test eax, eax
jne 0x40f94a
mov dword [ebp - 0x80], 1
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push str._sDefaultIcon
push eax
call fcn.00407505
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x40f9d8
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0x104
mov byte [ebp + 0x1a4], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
lea eax, [ebp + 0xa0]
push str._s__0
push eax
call fcn.00407505
lea eax, [ebp + 0xa0]
push eax
lea eax, [ebp + 0x1a4]
push eax
call fcn.0047038c
add esp, 0x14
test eax, eax
jne 0x40f9d8
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x80], ebx
je 0x40f9e7
cmp dword [ebp - 0x7c], ebx
je 0x40f9e7
xor eax, eax
inc eax
jmp 0x40f9e9
xor eax, eax
mov ecx, dword [ebp + 0x2a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045dfca
add ebp, 0x2ac
leave
ret 0xc
Function at 0x417b8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x417b99
and dword [esi], 0
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 0
jbe 0x417bdb
mov eax, 0x8000
cmp dword [ebp + 0x10], eax
jae 0x417baf
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], 0
test esi, esi
je 0x417bdb
add dword [esi], edx
test eax, eax
setne al
movzx eax, al
push eax
call fcn.00417591
pop ecx
pop esi
pop ebp
ret 0x10
Function at 0x41a0cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, ecx
mov ecx, dword [ebp + 8]
mov ebx, edx
mov edx, dword [ebp + 0xc]
push edi
mov esi, 0xff
jmp 0x41a0f9
test bl, 3
je 0x41a0fd
movzx edi, byte [ebx]
xor edi, eax
and edi, esi
shr eax, 8
xor eax, dword [edx + edi*4]
dec ecx
inc ebx
test ecx, ecx
jne 0x41a0e5
lea edi, [ebx + ecx]
cmp ecx, 0xc
jb 0x41a1e2
sub edi, 0xc
mov dword [ebp - 8], edi
mov ecx, dword [ebx + 4]
xor eax, dword [ebx]
mov dword [ebp + 8], ecx
mov edi, dword [ebp + 8]
shr ecx, 8
and ecx, esi
shr edi, 0x10
and edi, esi
mov dword [ebp - 4], edi
mov edi, dword [edx + ecx*4 + 0x1800]
mov ecx, dword [ebp - 4]
xor edi, dword [edx + ecx*4 + 0x1400]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edi, dword [edx + ecx*4 + 0x1000]
movzx ecx, byte [ebp + 8]
xor edi, dword [edx + ecx*4 + 0x1c00]
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], ecx
mov ecx, eax
mov dword [ebp + 0xc], eax
shr eax, 0x10
shr ecx, 8
and eax, esi
and ecx, esi
mov ecx, dword [edx + ecx*4 + 0x2800]
xor ecx, dword [edx + eax*4 + 0x2400]
mov eax, dword [ebp + 8]
shr eax, 8
and eax, esi
xor ecx, dword [edx + eax*4 + 0x800]
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, esi
xor ecx, dword [edx + eax*4 + 0x400]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x2000]
movzx eax, byte [ebp + 0xc]
xor ecx, dword [edx + eax*4 + 0x2c00]
movzx eax, byte [ebp + 8]
xor ecx, dword [edx + eax*4 + 0xc00]
mov eax, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [edx + eax*4]
add ebx, 0xc
xor ecx, edi
mov edi, dword [ebp - 8]
mov eax, ecx
cmp ebx, edi
jbe 0x41a10f
add edi, 0xc
jmp 0x41a1e2
movzx ecx, byte [ebx]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [edx + ecx*4]
inc ebx
cmp ebx, edi
jb 0x41a1d4
pop edi
pop esi
pop ebx
leave
ret 8