joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4506ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x465a58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4506fa
cmp byte [ebx], 0xa
jne 0x4506fa
or byte [edi + eax + 0x28], 4
jmp 0x4506ff
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4507fe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4507e1
inc eax
cmp dl, 0xd
je 0x45072b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x450751
cmp eax, ecx
jae 0x45075f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x450713
jmp 0x4507fe
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4507dc
cmp dword [ebp - 0x10], 0
je 0x4507dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x465a58]
test byte [eax + edi + 0x28], 0x48
je 0x4507b6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4507a1
mov byte [esi], dl
jmp 0x4507b2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x465a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4507fe
cmp byte [ebp - 1], 0xa
jne 0x4507c5
cmp esi, ebx
jne 0x4507c5
mov byte [esi], 0xa
jmp 0x4507fd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00451240
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4507fe
mov byte [esi], 0xd
jmp 0x4507fd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x465a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4507fb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4507fe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x450807
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x465a58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45084d
cmp word [ebx], dx
jne 0x45084d
or byte [eax + edi + 0x28], 4
jmp 0x450852
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4509b5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x450995
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x450893
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4508c9
cmp eax, edx
jae 0x4508d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x45086e
jmp 0x4509b5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450990
cmp dword [ebp - 0x18], 0
je 0x450990
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x465a58]
test byte [eax + edi + 0x28], 0x48
je 0x450966
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45092a
mov word [esi], cx
jmp 0x450961
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x465a58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x465a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x465a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4509b5
pop eax
cmp word [ebp - 4], ax
jne 0x450976
cmp esi, ebx
jne 0x450976
mov word [esi], ax
jmp 0x4509b2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00451240
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4509b5
push 0xd
pop eax
jmp 0x450971
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x465a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4509af
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4509b5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4566f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45671d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45671d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040165d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401ba8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c000
mov dword [esp], 0x40300c
call fcn.0040287f
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401cb0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x401d20
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401d60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x40124f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x403100], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40136e
push 1
push dword [0x403100]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x403108], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x403108]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40136e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401351
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
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 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xadfe84], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xadfe84], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xadfe80]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xadfe84], 0x3eb
mov dword [0xadfe80], eax
mov eax, dword [0xadfdd8]
cmove eax, dword [ebp - 0xc]
mov dword [0xadfdd8], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xadfe7c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xadfe84], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0e2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
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.00408890
mov dword [ebp - 0x14], eax
cmp dword [0x43b678], esi
jne 0x40c1d5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c162
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c2b5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c2b5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c2b5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43b678], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43b67c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43b680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b688], eax
test eax, eax
je 0x40c1d2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b684], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1fa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1ed
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c20f
push 4
pop eax
jmp 0x40c2b7
cmp dword [ebp - 0x14], esi
je 0x40c20f
push dword [0x43b678]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1f4
mov eax, dword [0x43b684]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c26d
cmp dword [0x43b688], edi
je 0x40c26d
push eax
call ebx
push dword [0x43b688]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c26d
test eax, eax
je 0x40c26d
call ecx
test eax, eax
je 0x40c262
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 0x40c262
test byte [ebp - 8], 1
jne 0x40c26d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c29d
mov eax, dword [0x43b67c]
cmp eax, edi
je 0x40c29a
push eax
call ebx
test eax, eax
je 0x40c29a
call eax
mov esi, eax
test esi, esi
je 0x40c29a
mov eax, dword [0x43b680]
cmp eax, edi
je 0x40c29a
push eax
call ebx
test eax, eax
je 0x40c29a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43b678]
call ebx
test eax, eax
je 0x40c2b5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c2b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403da7
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
fldz
xor eax, eax
fstp qword [esp + 4]
mov dword [esp + 0x20], eax
fldz
mov word [esp], ax
fstp dword [esp]
mov dword [esp + 0x1c], 0x44
xor ecx, ecx
add dword [0x423c8c], 0xd322c294
fld qword [esp + 4]
mov word [esp + 0x4e], cx
mov edx, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x68]
mov word [esp + 0x50], dx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push 8
push eax
push eax
push eax
mov dword [esp + 0x44], eax
fstp dword [0x423ce0]
mov dword [esp + 0x48], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x88]
push eax
push ecx
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x60
ret
Function at 0x401d40
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x140
mov eax, dword [0x4260f0]
xor eax, esp
mov dword [esp + 0x13c], eax
fldz
push ebx
xor eax, eax
mov word [esp + 4], ax
fst qword [esp + 0x10]
push ebp
fstp qword [esp + 0x14]
fldz
push esi
push 0x104
fstp dword [esp + 0x18]
xor ebp, ebp
call fcn.0040afd9
add esp, 4
push ebp
push 2
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x401ee4
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401ecb
push edi
mov edi, ebx
lea edx, [esp + 0x48]
sub edi, edx
lea esp, [esp]
lea eax, [esp + 0x48]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401dc4
push ebx
call fcn.0041e133
mov ecx, dword [esp + 0x158]
add esp, 4
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401e00
test dl, dl
je 0x401dfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401e00
add eax, 2
add ecx, 2
test dl, dl
jne 0x401de0
xor eax, eax
jmp 0x401e05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401eac
fld dword [0x424274]
mov ax, word [esp + 0x10]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fsubp st(1)
fsub qword [0x41f430]
call fcn.0040b420
cmp dword [esp + 0x158], 0
mov word [0x425e48], ax
fld dword [0x424274]
fadd qword [0x41f358]
fstp dword [0x424274]
je 0x401ec9
mov edx, dword [esp + 0x2c]
fld qword [0x41f428]
push edx
fstp qword [0x423cb8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401e8e
push 0xffffffffffffffff
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
fld dword [esp + 0x18]
push esi
fstp qword [0x4241b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld dword [esp + 0x18]
mov ax, word [esp + 0x10]
mov esi, dword [esp + 0x1c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmulp st(1)
fstp dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401dc0
jmp 0x401eca
inc ebp
pop edi
movzx eax, word [0x423bfc]
sub eax, 0x26132782
push esi
mov word [0x423bfc], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040ae7f
mov ecx, dword [esp + 0x14c]
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b504
add esp, 0x140
ret
Function at 0x4026c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
fldz
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
fstp qword [esp + 0x18]
mov dword [esp + 0xc], eax
push edi
call fcn.0040afd9
mov ebx, dword [ebp + 8]
mov esi, eax
mov ax, word [0x425190]
mov ecx, dword [esp + 0x10]
cwde
push edi
sub eax, ecx
add eax, 0x677551ce
push ebx
mov word [0x425190], ax
push esi
call fcn.0040b0b0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
lea edx, [esi + edi]
fild dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x14], edx
fsub dword [0x424380]
call fcn.0040b420
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [0x4278e4]
imul ecx, ecx, 0x9f792299
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x10]
add ebx, edx
add eax, 0xa68a05c
sub ebx, 0x423004
mov edi, esi
mov dword [0x424360], eax
cmp esi, dword [esp + 0x14]
je 0x40279d
fld1
mov cl, byte [ebx]
xor byte [edi], cl
mov edx, dword [0x424ee4]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld qword [esp + 0x18]
fsub qword [esp + 0x18]
fsubp st(1)
call fcn.0040b420
mov dword [0x424ee4], eax
fld qword [esp + 0x18]
fsub st(1)
inc edi
inc ebx
fstp qword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jne 0x402763
fstp st(0)
fld qword [0x423cb0]
call fcn.0040b420
pop edi
mov dword [esp + 8], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403fb0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
fldz
push ebx
xor eax, eax
mov word [esp + 4], ax
fst dword [esp + 4]
push 0x2e
fstp dword [esp + 8]
push 0x424308
call fcn.004026c0
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404043
push esi
push edi
push 0x34
push 0x424e28
call fcn.004026c0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404007
sub eax, edi
push eax
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
fldz
xor eax, eax
fstp qword [esp + 0xc]
push 0x34
push eax
push esi
mov word [esp + 0x18], ax
call fcn.0040af10
push esi
call fcn.0040ae7f
add esp, 0x10
pop edi
pop esi
fldz
xor ecx, ecx
push 0x2e
fstp qword [esp + 8]
push ecx
push ebx
mov word [esp + 0x10], cx
call fcn.0040af10
push ebx
call fcn.0040ae7f
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0xc
ret

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
fldz
push ebx
push esi
fst dword [esp + 0xc]
push edi
fst dword [esp + 0xc]
push 3
fstp dword [esp + 0x18]
push 0x4241f0
call fcn.004026c0
mov ebx, dword [esp + 0x28]
mov esi, eax
push esi
push ebx
call fcn.0040bccc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4045cf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld dword [esp + 0xc]
fsub qword [0x41f660]
push esi
push ebx
fstp dword [esp + 0x14]
call fcn.0040bccc
mov edi, eax
add esp, 8
test edi, edi
je 0x4045e7
push edi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0040be45
push edi
call fcn.0040b872
add esp, 0x14
fldz
xor eax, eax
xor ecx, ecx
fstp qword [esp + 0x14]
mov word [esi], ax
mov word [esp + 0xc], cx
push esi
mov byte [esi + 2], al
call fcn.0040ae7f
fld dword [0x4244c0]
fadd qword [0x41f658]
add esp, 4
pop edi
pop esi
fadd dword [esp + 8]
pop ebx
fstp dword [esp + 4]
add esp, 0x10
ret