joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x46273c], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x46273c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x462740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x462744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46274c], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462748], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x46273c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x462748]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x46274c], edi
je 0x40d5ef
push eax
call ebx
push dword [0x46274c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x462740]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x462744]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x46273c]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x40188a
Capabilities:
Check if file exists
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push ecx
lea ecx, [ebp - 0x250]
call fcn.00401015
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00403db0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4018df
push 7
pop ecx
mov esi, str.aisinolove.dll
lea eax, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401978
push str.aisinolove1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00404a67
lea eax, [ebp - 0x20c]
mov dword [esp], 0x415ce8
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404b50
pop ecx
pop ecx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x250]
call fcn.0040108a
lea ecx, [ebp - 0x214]
call fcn.00401000
cmp dword [ebp - 0x214], ebx
je 0x401978
push dword [ebp - 0x214]
call fcn.00404c0d
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.fnzprog
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4019a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
jmp 0x4019b4
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.004014c9
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.004014c9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019e5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4020c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4020e0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x402110
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402122
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4028c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40291e
test ecx, ecx
je 0x402910
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40293a
test ecx, ecx
je 0x4029dd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x4029a4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.004028c0
mov edi, eax
test edi, edi
jne 0x4029ea
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x402966
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x4029bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x124]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4029dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4029f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x118
ret 4
Function at 0x4055a0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push 0
mov ebx, ecx
push 0
mov dword [ebx + 0xa4], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4055cb
mov dword [ebx + 0xa4], 0
xor eax, eax
pop ebx
pop ecx
ret
push esi
push edi
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x40c0c0
mov ecx, 0x40c190
call fcn.00402610
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x40c1c0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x409bb4]
mov dl, byte [0x409bb6]
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, 0x40c190
mov byte [esp + 0x16], dl
call fcn.00401ee0
mov esi, eax
test esi, esi
je 0x40565e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ebx, [ebx]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x405687
push str.RegServer
push esi
call edi
test eax, eax
je 0x4056a7
lea edx, [esp + 0xc]
push edx
push esi
mov ecx, 0x40c190
call fcn.00401ee0
mov esi, eax
test esi, esi
jne 0x405630
push 1
push 4
mov ecx, 0x40c190
call fcn.00402b60
test eax, eax
jge 0x4056e6
mov dword [ebx + 0xa4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push 0
push 0x67
push 0x40c190
call fcn.00404d30
push 0
push 1
mov ecx, 0x40c190
call fcn.00405010
jmp 0x4056c5
push 0
push 1
push 0x67
push 0x40c190
call fcn.00404d30
push 0
push 1
mov ecx, 0x40c190
call fcn.00404f80
mov ecx, 0x40c190
mov dword [ebx + 0xa4], 0
call fcn.00402ac0
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x405870
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x408005
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0x18], esi
call fcn.00407592
lea ebx, [esi + 0x74]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esi], 0x409f98
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ebp, [esi + 0x78]
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x7c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x80]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x84]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x8c]
mov byte [esp + 0x1c], 5
call fcn.00401760
mov dword [esi + 0x118], 0x409f20
mov dword [esi + 0x11c], edi
push 0x409f95
lea ecx, [esi + 0x144]
mov byte [esp + 0x20], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x409f95
mov ecx, ebx
mov byte [esp + 0x20], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x409f95
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x409f95
lea ecx, [esi + 0x7c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x409f95
lea ecx, [esi + 0x80]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0x409f95
lea ecx, [esi + 0x84]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
call sub.MFC71.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov edi, dword [esp + 0x24]
add edi, 0x14
push str.Morphis
mov ecx, edi
mov dword [esi + 0x88], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x4059c9
mov dword [esi + 0x138], str..M_SYSTEM_MORPHIS
jmp 0x405a04
push str.Helios
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x4059e6
mov dword [esi + 0x138], str..M_SYSTEM_HELIOS
jmp 0x405a04
push str.Solios
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
neg eax
sbb eax, eax
not eax
and eax, str..M_SYSTEM_SOLIOS
mov dword [esi + 0x138], eax
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x407813
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40a2a0
call fcn.00407a14
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x407853
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407853
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40786b
cmp eax, 0x20b
je 0x407858
mov dword [ebp - 0x1c], ebx
jmp 0x40787f
cmp dword [ecx + 0x84], 0xe
jbe 0x407853
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x407879
cmp dword [ecx + 0x74], 0xe
jbe 0x407853
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40c26c], 0xffffffff
or dword [0x40c270], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40c1fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40c1f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c268], eax
call fcn.00407ae6
call fcn.00407b86
cmp dword [0x40c094], ebx
jne 0x4078df
push fcn.00407b86
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00407b74
push 0x40c024
push 0x40c020
call sub.MSVCR71.dll__initterm
push 0x407b2a
call fcn.00407801
mov eax, dword [0x40c1f4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40c1f0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x407933
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c01c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4079b1
cmp al, bl
je 0x40795d
cmp dword [ebp - 0x20], ebx
jne 0x4079b1
mov al, byte [esi]
cmp al, bl
je 0x40796d
cmp al, 0x20
ja 0x40796d
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40795d
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x407989
movzx eax, word [ebp - 0x54]
jmp 0x40798c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00407d76
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4079a9
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x407a06
cmp al, 0x22
jne 0x4079c0
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4079d3
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40794b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00407a4f
ret
Function at 0x4b8e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e70
mov eax, 1
add ebx, ebx
jne 0x4b8e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8ea4
jne 0x4b8ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec3
dec eax
add ebx, ebx
jne 0x4b8eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8e88
add ebx, ebx
jne 0x4b8ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f15
xor ecx, ecx
sub eax, 3
jb 0x4b8edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f4a
sar eax, 1
mov ebp, eax
jmp 0x4b8ee6
add ebx, ebx
jne 0x4b8ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8eb4
inc ecx
add ebx, ebx
jne 0x4b8ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8eb4
add ebx, ebx
jne 0x4b8f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8ef6
jne 0x4b8f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f26
jmp 0x4b8e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f34
add edi, ecx
jmp 0x4b8e76
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f52
cmp byte [edi], 0x13
jne 0x4b8f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8f57
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc00d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc022c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8f84
mov ecx, edi
jns 0x4b8fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc0230]
or eax, eax
je 0x4b8fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fa1
call dword [esi + 0xc0240]
mov ebp, dword [esi + 0xc0234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b9003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x10038ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10038f0d
mov eax, dword [esi]
xor ecx, ecx
cmp dword [esi + 0xc], ecx
lea edx, [eax + edi*4]
setne cl
sub ecx, edi
add ecx, dword [esi + 8]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call fcn.100c7590
add esp, 0xc
sub dword [esi + 8], edi
mov dword [esi + 0x10], 0
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
sub ecx, edi
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov dword [ebp + 0xc], ecx
jne 0x10038f2b
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea edx, [ecx + edi*4]
add edx, eax
push ebx
test eax, eax
je 0x10038f5a
mov eax, dword [ecx + edi*4]
mov edi, eax
mov ebx, eax
shr edi, 8
shl ebx, 8
xor edi, ebx
shl eax, 8
and edi, 0xff00ff
xor edi, eax
mov eax, dword [esi + 8]
rol edi, 0x10
mov dword [ecx + eax*4], edi
mov eax, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp + 8]
push edx
call eax
add esp, 0x10
test eax, eax
jne 0x10038f7a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
lea eax, [edx + ecx*4]
mov edx, dword [esi + 0xc]
lea edx, [eax + edx + 3]
shr edx, 2
cmp dword [esi + 0x2c], 0
jne 0x10038fbe
cmp dword [esi + 0x34], 0
je 0x10038fbe
mov eax, dword [esi]
sub edx, ecx
lea ecx, [eax + ecx*4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10038fbc
mov eax, dword [edx]
bswap eax
mov dword [edx], eax
add edx, 4
dec ecx
jmp 0x10038fae
jmp 0x10038ff0
cmp ecx, edx
jae 0x10038ff0
mov eax, dword [esi]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov edi, eax
shr edi, 8
mov ebx, eax
shl ebx, 8
xor edi, ebx
shl eax, 8
and edi, 0xff00ff
xor edi, eax
mov eax, dword [ebp - 8]
rol edi, 0x10
inc ecx
mov dword [eax], edi
cmp ecx, edx
jb 0x10038fc2
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*4]
add eax, dword [esi + 0xc]
pop ebx
mov ecx, eax
shr ecx, 2
and eax, 3
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 8], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10039110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x10039175
mov edx, dword [eax + 0x10]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esi + edx*4]
mov esi, dword [eax + 0x1c]
cmp esi, ecx
jae 0x1003916d
mov edx, dword [eax + 0x18]
push ebx
mov ecx, 0x18
sub ecx, esi
mov ebx, edi
shr ebx, cl
mov ecx, edx
movzx edx, dl
and ebx, 0xff
shr ecx, 8
xor ebx, ecx
shl edx, 8
xor edx, dword [ebx*4 + 0x100fbb78]
add esi, 8
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
cmp esi, dword [eax + 0x14]
jb 0x10039132
pop ebx
pop edi
mov ax, dx
pop esi
pop ebp
ret
mov ax, word [eax + 0x18]
pop edi
pop esi
pop ebp
ret
mov ax, word [eax + 0x18]
pop ebp
ret
Function at 0x10039f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor al, al
test ecx, ecx
je 0x10039fa3
mov edx, dword [ebp + 8]
push esi
movzx esi, byte [edx]
movzx eax, al
xor esi, eax
mov al, byte [esi + 0x100df030]
inc edx
dec ecx
jne 0x10039f90
pop esi
pop ebp
ret

Function at 0x10041a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x10041ad6
push ebx
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x10041a8e
mov edi, dword [ecx]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x100e0708]
inc edx
cmp edx, esi
jl 0x10041a70
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x10041ab2
mov edi, dword [ecx + 8]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x100e0708]
inc edx
cmp edx, esi
jl 0x10041a95
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop edi
shr eax, 0x18
pop esi
mov byte [ecx + 0x19], al
pop ebx
pop ebp
ret
Function at 0x10077670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x10132688], 0
jne 0x100776d4
mov eax, dword [0x100fecc0]
add eax, 0x34
cmp dword [eax + 4], 0
mov dword [0x10132688], eax
jne 0x100776d4
cmp dword [eax], 0
mov ecx, 5
mov dword [eax + 0xc], 0x40000
mov dword [eax + 0x10], 0x200000
mov dword [eax + 0x14], ecx
jne 0x100776b9
mov dword [eax], 0x58585858
mov dword [0x10132674], ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10132688]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007d3c0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1007d405
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1007d405
cmp dword [esi + 0x3a8], 1
jne 0x1007d3ec
xor eax, eax
test edx, edx
je 0x1007d3ec
xor byte [eax + ecx], 0x80
inc eax
cmp eax, edx
jb 0x1007d3e3
mov eax, dword [esi + 0x3ac]
push eax
push edx
push 1
push ecx
call fcn.100c8501
add esp, 0x10
add dword [esi + 0x3a4], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1007d444
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1007d444
cmp dword [esi + 0x3a8], 1
jne 0x1007d42b
xor eax, eax
test edx, edx
je 0x1007d42b
xor byte [eax + ecx], 0x80
inc eax
cmp eax, edx
jb 0x1007d422
mov eax, dword [esi + 0x3ac]
push eax
push edx
push 1
push ecx
call fcn.100c8501
add esp, 0x10
add dword [esi + 0x3a4], eax
xor eax, eax
pop esi
pop ebp
ret 0x10