joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x41d3af
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41d3bf
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x41d4e1
test ebx, ebx
jl 0x41d4e1
test esi, esi
jle 0x41d4e1
mov eax, dword [ebp - 8]
call fcn.00407e74
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e74
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x41d47e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x41d4e1
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41d463
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41d432
inc dword [ebp - 0x14]
jmp 0x41d442
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x41d442
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x41d44d
or eax, 0xffffffff
jmp 0x41d463
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41d460
inc eax
jmp 0x41d463
or eax, 0xffffffff
test eax, eax
jl 0x41d46b
cmp esi, eax
jg 0x41d420
cmp esi, eax
jg 0x41d476
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41d4e4
inc edx
dec dword [ebp - 0x1c]
jne 0x41d41c
jmp 0x41d4e1
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x41d4e1
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41d4c8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41d4a7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x41d4b2
or eax, 0xffffffff
jmp 0x41d4c8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41d4c5
inc eax
jmp 0x41d4c8
or eax, 0xffffffff
test eax, eax
jl 0x41d4d0
cmp esi, eax
jg 0x41d490
cmp esi, eax
jg 0x41d4db
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41d4e4
inc edx
dec dword [ebp - 0x1c]
jne 0x41d48c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x402192
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00401fa0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403d40
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4021c5
push 1
call fcn.00401cb0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00401fa0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40a544], eax
mov dword [0x40a548], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40221e
mov eax, dword [0x40a614]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x402243
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40222f
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x402241
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40222a
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403d40
pop ecx
mov edi, eax
mov dword [0x40a550], eax
mov eax, dword [0x40a550]
test eax, eax
jne 0x40226b
push 1
call fcn.00401cb0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x40229a
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402275
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x402298
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x40228b
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402270
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x40a614]
cmp eax, edx
je 0x4022b9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x40ae10]
cmp eax, edx
jae 0x40437f
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
test byte [eax + edx*8 + 4], 1
jne 0x404391
mov dword [0x40a918], 9
or eax, 0xffffffff
jmp 0x404564
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x4043ac
xor eax, eax
jmp 0x404564
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
test byte [eax + edx*8 + 4], 0x20
je 0x4043d5
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406b10
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
test byte [eax + edx*8 + 4], 0x80
je 0x4044b3
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40449f
lea edi, [ebp - 0x411]
jmp 0x404421
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40441c
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x404442
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x404409
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404494
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x40449f
jmp 0x4044f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4044f9
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x404401
jmp 0x4044f9
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4044f0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x4044f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x40455e
cmp dword [ebp - 0x10], 0
je 0x40452a
cmp dword [ebp - 0x10], 5
jne 0x40451b
mov dword [0x40a918], 9
jmp 0x404525
mov eax, dword [ebp - 0x10]
push eax
call fcn.00406bc0
pop ecx
or eax, 0xffffffff
jmp 0x404564
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x40ad10]
test byte [eax + edx*8 + 4], 0x40
je 0x40454f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40454f
xor eax, eax
jmp 0x404564
mov dword [0x40a918], 0x1c
or eax, 0xffffffff
jmp 0x404564
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x40104a
push 0x4061b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.CreateMutex_Error:
push eax
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403fd0
call fcn.00404090
call fcn.00403eb0
call fcn.004041e0
push 0x10000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x110
push 0x10000000
push 0
mov esi, eax
push 0x40913c
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x10000000
push str.Windows
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
call fcn.004010d0
call fcn.004020e0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403eb0
Capabilities:
Get common file path
Log keystrokes via application hook
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
push 0
push 0
push 0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x403f12
push 0x4061b4
call edi
push eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.SetWindowsHookEx_Error:
push eax
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
push esi
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
je 0x403f4a
push 0x4061b4
call edi
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push str.UnhookWindowsHookEx_Error:
push ecx
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
lea edx, [esp + 8]
push edx
push 0xd
push 0x408e54
push 0x408e5c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
jne 0x403f99
push 0x4061b4
call edi
push eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.GetClipboardData_Error:
push eax
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
push str.Norton_AntiVirus
push 0x8000
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.00404846
mov esp, ebp
pop ebp
ret
Function at 0x403fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push esi
xor esi, esi
push esi
push esi
push esi
push str.C:_Windows
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
jne 0x404024
push 0x4061b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.ShellExecute_Error:
push eax
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], str.C:_Windows
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 0x408edc
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x404084
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.WinExec_Error_n
push edx
call fcn.00404560
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404090
Capabilities:
Get disk information
Open clipboard
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4040f2
push 0x4061b4
call esi
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push str.GetLogicalDriveStrings_Error:
push ecx
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
jne 0x404129
push 0x4061b4
call esi
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push str.GetLogicalDrives_Error:
push edx
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push str.Value
push str.SushiVariable
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x404171
push 0x4061b4
call esi
push eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.SetEnvironmentVariable_Error:
push eax
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x4041b3
push 0x4061b4
call esi
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push str.SetEntriesInAcl_Error:
push edx
call fcn.00404560
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.00404560
add esp, 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00404846
mov esp, ebp
pop ebp
ret
Function at 0x404846
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x404850
repz ret
jmp fcn.00404aed
Function at 0x403ea3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov dword [ebp - 4], 0x7f83677c
sub dword [ebp - 4], 0x1715
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mul dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x10], 0
jmp 0x403fc4
mov eax, ebx
add eax, esi
push eax
call fcn.0040363c
pop ecx
mov edx, eax
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
mov edx, eax
add edx, eax
mov dword [ebp - 4], edx
cmp byte [ebp - 5], 0
jne 0x403f09
mov byte [ebp - 6], 0
jmp 0x403f33
call fcn.00408f00
mov dword [ebp - 0x20], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 5]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 6], dl
mov al, byte [esi + ebx]
cmp al, 0x70
jb 0x403f4e
cmp al, 0x7f
ja 0x403f4e
mov eax, ebx
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 6]
sub edx, ecx
mov byte [eax], dl
movzx eax, byte [esi + ebx]
cmp eax, 0xe2
jne 0x403f69
mov eax, ebx
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 6]
sub edx, ecx
mov byte [eax], dl
mov eax, 0x3e96
mul dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
push 8
push 0x90
lea eax, [ebp - 0xe]
push eax
call fcn.00408edc
movzx eax, byte [ebp - 5]
push eax
mov eax, ebx
add eax, esi
push eax
lea eax, [ebp - 0xe]
movzx edx, byte [ebp - 6]
add eax, edx
push eax
call fcn.00408ed0
push 6
lea eax, [ebp - 0xe]
push eax
mov eax, ebx
add eax, esi
push eax
call fcn.00408ed0
add esp, 0x24
mov eax, dword [ebp - 4]
mov edx, eax
xor edx, eax
mov dword [ebp - 4], edx
add esi, 6
inc word [ebp - 0x10]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x403ee3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x77f738
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409ed4
xor eax, eax
push ebp
push 0x77f7ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x7a46ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x77f7d9
push 0xff
lea eax, [ebp - 0x216]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextW
lea edx, [ebp - 0x21c]
lea eax, [ebp - 0x216]
call fcn.00426530
mov edx, dword [ebp - 0x21c]
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.0040b008
test eax, eax
je 0x77f7c5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x77f7de
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x77f780
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77f806
lea eax, [ebp - 0x21c]
call fcn.00409df0
lea eax, [ebp - 4]
call fcn.00409df0
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xb1174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xb117a6
cmp eax, 0xffffffff
je 0xb117a6
cmp dword [ebp + 8], ebx
je 0xb117a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb1f302
cmp esi, dword [ebp - 4]
jne 0xb1f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xb1179e

Function at 0xb1227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xb2621c
call fcn.00b11350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xb2b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00b12097
test eax, eax
jne 0xb123c4
lea eax, [ebp - 0x20]
push eax
push dword [0xb2b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00b123dc
test eax, eax
jne 0xb123c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00b113e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xb123c4
lea eax, [ebp - 0x20]
push eax
push dword [0xb2b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00b123dc
test eax, eax
jne 0xb123bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xb123bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b113e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xb123bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xb123b2
cmp dword [ebp + 8], ebx
je 0xb1ea08
push dword [0xb2b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b113e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xb123b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00b121cb
push dword [0xb2b460]
push edi
push dword [ebp - 0x18]
call fcn.00b12436
push dword [ebp - 0x14]
call fcn.00b113c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00b113c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00b11f10
mov eax, dword [ebp - 0x18]
call fcn.00b11390
ret 4