joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402724
Capabilities:
Contain obfuscated stackstrings
Extract resource via kernel32 functions

Disassembly:
push 0x708
mov eax, 0x4688f5
call fcn.00455ff7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x710], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x714], eax
movzx eax, word [ebp + 8]
push str.WAVE
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x402872
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x402872
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x402872
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov eax, edi
lea ecx, [ebp - 0x704]
mov dword [ebp - 0x70c], ebx
mov dword [ebp - 0x708], ebx
mov byte [ebp - 0x25], 0x66
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x29], 0x35
mov byte [ebp - 0x37], 0x37
mov byte [ebp - 0x30], 0x36
mov byte [ebp - 0x1f], 0x32
mov byte [ebp - 0x3b], 0x32
mov byte [ebp - 0x1e], 0x38
mov byte [ebp - 0x1d], 0x36
mov byte [ebp - 0x33], 0x31
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x31], 0x63
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x28], 0x63
mov byte [ebp - 0x2a], 0x66
mov byte [ebp - 0x2c], 0x66
mov byte [ebp - 0x23], 0x37
mov byte [ebp - 0x27], 0x37
mov byte [ebp - 0x26], 0x62
mov byte [ebp - 0x20], 0x35
mov byte [ebp - 0x2e], 0x35
mov byte [ebp - 0x36], 0x64
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x22], 0x37
mov byte [ebp - 0x39], 0x35
mov byte [ebp - 0x2b], 0x34
mov byte [ebp - 0x2f], 0x39
mov byte [ebp - 0x21], 0x62
mov byte [ebp - 0x3c], 0x65
mov byte [ebp - 0x34], 0x39
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x2d], 0x39
mov byte [ebp - 0x3a], 0x37
mov dword [ebp - 4], ebx
call fcn.0040b5b6
lea eax, [ebp - 0x708]
push eax
lea eax, [ebp - 0x70c]
push eax
lea eax, [ebp - 0x704]
call fcn.0040b64c
cmp eax, ebx
jne 0x402872
mov eax, dword [ebp - 0x70c]
mov ecx, dword [ebp - 0x710]
mov dword [ecx], eax
mov eax, dword [ebp - 0x708]
mov ecx, dword [ebp - 0x714]
mov dword [ecx], eax
mov al, 1
jmp 0x402874
xor al, al
call fcn.00456053
ret
Function at 0x402e32
Capabilities:
Delete file
Get common file path
Get program files directory
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x890]
sub esp, 0x910
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp + 0x88c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x789]
push ebx
push eax
mov byte [ebp + 0x788], bl
call fcn.00451d90
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00451d90
push esi
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call fcn.00451d90
lea eax, [ebp - 0x80]
push eax
call fcn.0044f05c
mov eax, dword [ebp - 0x80]
add esp, 0x28
push 5
pop ecx
xor edx, edx
div ecx
lea edi, [ebp - 0x78]
mov ebx, edx
add ebx, ecx
call fcn.00407af2
lea eax, [ebp + 0x788]
push eax
xor esi, esi
push esi
push esi
push 0x2a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, edi
push eax
push eax
lea eax, [ebp + 0x788]
push eax
lea eax, [ebp + 0x388]
push str._s_s_s
push eax
call fcn.00402f62
add esp, 0x14
xor edi, edi
lea eax, [ebp + 0x388]
push esi
push eax
call fcn.0044f1ed
pop ecx
pop ecx
test eax, eax
je 0x402f4a
push 0x47aa2c
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0044f2e0
add esp, 0xc
test eax, eax
jne 0x402f37
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push pe_nt_image_headers32
push 1
push eax
call fcn.0044f495
push dword [ebp - 0x7c]
call fcn.0044f58e
add esp, 0x14
jmp 0x402f44
lea eax, [ebp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, 0xa
jl 0x402ee8
mov ecx, dword [ebp + 0x88c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e6cf
add ebp, 0x890
leave
ret

Function at 0x402f7d
Capabilities:
Hash data with md5

Disassembly:
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 0x403c41
Capabilities:
Encode data using xor

Disassembly:
push 0x1c
mov eax, 0x468c25
call fcn.00455f58
cmp dword [esi + 0x34], 0x10
jb 0x403c58
mov edx, dword [esi + 0x20]
jmp 0x403c5b
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x28]
call fcn.0040f965
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004025cc
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004026c6
cmp dword [esi + 0x14], edi
jbe 0x403c9e
mov eax, esi
call fcn.00401cef
mov bl, byte [eax]
mov eax, esi
xor bl, 0xaa
call fcn.00401cef
inc edi
mov byte [eax], bl
cmp edi, dword [esi + 0x14]
jb 0x403c83
cmp dword [esi + 0x18], 0x10
jb 0x403ca9
mov eax, dword [esi + 4]
jmp 0x403cac
lea eax, [esi + 4]
call fcn.00456030
ret

Function at 0x403d3f
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.EmployerJuggleing.exe
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
xor bl, bl
call fcn.004504d4
lea eax, [ebp - 0x218]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403d7a
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0044fef2
pop ecx
pop ecx
xor edi, edi
push edi
push 2
mov dword [ebp - 0x340], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x344], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x344], 0xffffffff
je 0x403e90
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x344]
call sub.KERNEL32.dll_Process32First
jmp 0x403e7b
push esi
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00451d90
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004504d4
lea eax, [ebp - 0x110]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e05
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0044fef2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00450663
add esp, 0x10
test eax, eax
jne 0x403e5a
push dword [ebp - 0x338]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
je 0x403ea1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
mov ecx, esi
lea eax, [ebp - 0x110]
mov byte [eax], 0
inc eax
dec ecx
jne 0x403e62
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x344]
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x403dd7
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e6cf
leave
ret
xor al, al
jmp 0x403e92
Function at 0x403ea5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
mov byte [ebp - 0x345], 0
call fcn.004504d4
lea eax, [ebp - 0x21c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403ee3
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044fef2
pop ecx
pop ecx
push 0
push 2
mov dword [ebp - 0x344], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0xffffffff
je 0x403fc5
lea eax, [ebp - 0x344]
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x403fb5
push esi
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00451d90
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004504d4
lea eax, [ebp - 0x114]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403f61
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0044fef2
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00450663
add esp, 0x10
test eax, eax
jne 0x403f99
mov byte [ebp - 0x345], 1
mov ecx, esi
lea eax, [ebp - 0x114]
mov byte [eax], 0
inc eax
dec ecx
jne 0x403fa1
lea eax, [ebp - 0x344]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x403f32
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x345]
pop edi
xor ecx, ebp
pop esi
call fcn.0044e6cf
leave
ret 4
Function at 0x40428e
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
cmp ebx, 6
jne 0x4042d6
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffbffff
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov al, 1
jmp 0x404367
cmp ebx, 7
jne 0x4042f6
mov esi, dword [esi]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x40000
jmp 0x4042c5
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404365
push 0x415
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40432d
sub eax, edx
cmp eax, 4
jle 0x404365
push 0
add bl, 0x30
push esi
mov byte [ebp + eax - 0x406], bl
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
dec eax
neg eax
sbb al, al
inc al
jmp 0x404367
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e6cf
leave
ret
Function at 0x404375
Capabilities:
Get graphical window text

Disassembly:
push 0x164
mov eax, 0x46924d
call fcn.00455fc1
mov ebx, ecx
push str.EmployerJuggleing
lea ecx, [ebp - 0x134]
call fcn.00402350
push str..exe
lea eax, [ebp - 0x134]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040386b
imul ebx, ebx, 0xa
push 0x103
lea eax, [ebp - 0x117]
push esi
push eax
mov dword [edi + 4], esi
mov byte [ebp - 0x118], 0
call fcn.00451d90
add esp, 0xc
cmp ebx, esi
mov dword [ebp - 0x170], esi
jle 0x4044e8
cmp byte [ebp + 0xc], 0
je 0x404405
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x4043f7
lea eax, [ebp - 0x130]
push eax
call fcn.00403ea5
test al, al
je 0x4044ef
push 0x47ac68
lea eax, [ebp - 0x16c]
push eax
call fcn.00403ba1
push str.EmployerJuggleing
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 1
call fcn.00403c41
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40446f
cmp byte [ebp + 0xc], al
je 0x404473
cmp ebx, 0x96
jle 0x404473
mov dword [edi + 4], 3
xor bl, bl
lea eax, [ebp - 0x16c]
call fcn.00403d1e
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.004026c6
mov al, bl
call fcn.00456044
ret 8
mov byte [edi + 8], 1
mov eax, dword [edi]
test eax, eax
je 0x4044bf
push 0x415
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x118]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044a1
sub eax, esi
cmp eax, 3
jle 0x4044bf
movsx eax, byte [ebp + eax - 0x11a]
sub eax, 0x30
cmp dword [ebp + 8], eax
jle 0x40450c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0
call fcn.00403d1e
inc dword [ebp - 0x170]
cmp dword [ebp - 0x170], ebx
jl 0x4043dc
xor bl, bl
jmp 0x404456
push 0
push 1
lea ecx, [ebp - 0x134]
mov dword [edi + 4], 2
call fcn.004026c6
xor al, al
jmp 0x404467
mov dword [edi + 4], 1
mov bl, 1
jmp 0x40444b
Function at 0x4045b9
Capabilities:
Enumerate processes

Disassembly:
push 0x150
mov eax, 0x468bf5
call fcn.00455fc1
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x159], bl
mov dword [ebp - 0x14], 0xf
call fcn.004026aa
push ebx
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40461e
mov byte [ebp - 0x159], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004026c6
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004026c6
mov al, byte [ebp - 0x159]
call fcn.00456044
ret
lea eax, [ebp - 0x158]
push eax
push esi
mov dword [ebp - 0x158], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40468a
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040232d
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x404654
lea eax, [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
call fcn.004064f1
test eax, eax
je 0x40467a
lea eax, [ebp - 0x158]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404639
jmp 0x404681
mov byte [ebp - 0x159], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov al, byte [ebp - 0x159]
mov byte [ebp - 0x159], al
jmp 0x4045fc
Function at 0x404dc4
Capabilities:
Write file on windows

Disassembly:
push 0x460
mov eax, 0x469e41
call fcn.00455fc1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x44c], eax
mov byte [ebp - 0x42d], bl
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov esi, 0x47a94b
lea ecx, [edi + 0x50]
push esi
mov dword [ebp - 4], ebx
call fcn.0040232d
push dword [ebp - 0x434]
lea eax, [ebp - 0x410]
push 0x47ae54
push eax
call fcn.00402f62
add esp, 0xc
mov dword [ebp - 0x434], ebx
jmp 0x404e3f
xor ebx, ebx
lea ecx, [ebp - 0x410]
call fcn.00407b34
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0040fcaa
test al, al
je 0x404f4b
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x444], eax
cmp eax, 0xffffffff
je 0x404f4b
push ebx
lea ecx, [ebp - 0x450]
push ecx
push dword [ebp - 0x438]
push dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x448]
lea ebx, [ebp - 0x42c]
mov ecx, edi
call fcn.00404c4a
push esi
mov eax, ebx
mov byte [ebp - 4], 1
call fcn.004064cc
test eax, eax
je 0x404f38
sub esp, 0x1c
mov eax, ebx
mov ecx, esp
mov dword [ebp - 0x444], esp
push eax
call fcn.0040265e
lea ecx, [ebp - 0x46c]
call fcn.00404a4a
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 2
call fcn.004025cc
push 0
push 1
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 1
call fcn.004026c6
mov edi, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x440]
call fcn.00404d0f
mov edi, dword [ebp - 0x440]
mov byte [ebp - 0x42d], al
push 0
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0
call fcn.004026c6
cmp byte [ebp - 0x42d], 1
lea ecx, [ebp - 0x46c]
mov ebx, 0x4937dc
je 0x404fac
push dword [ebp + 0x18]
call fcn.00403342
push 0
push 1
lea ecx, [ebp - 0x46c]
call fcn.004026c6
inc dword [ebp - 0x434]
cmp dword [ebp - 0x434], 3
jl 0x404e3d
cmp dword [ebp - 0x43c], 0
je 0x404f9e
push dword [ebp - 0x43c]
call fcn.00450446
pop ecx
mov al, byte [ebp - 0x42d]
call fcn.00456044
ret 0x14
push dword [ebp + 0x14]
call fcn.00403342
push 0
push 1
lea ecx, [ebp - 0x46c]
call fcn.004026c6
cmp dword [ebp - 0x43c], 0
je 0x404fd8
push dword [ebp - 0x43c]
call fcn.00450446
pop ecx
mov al, 1
jmp 0x404fa4
Function at 0x405166
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00402724
add esp, 0xc
test al, al
je 0x4051d1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4051c6
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
push dword [ebp - 4]
call fcn.0043fb5a
pop ecx
mov al, bl
pop esi
pop ebx
leave
ret 8
Function at 0x40664e
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x46c
lea ebp, [esp - 4]
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp + 0x46c], eax
push 0x10
mov eax, 0x469070
call fcn.00455f8b
mov eax, dword [ebp + 0x478]
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x18], edi
call fcn.00402f7d
mov dword [ebx], edi
mov dword [ebp - 4], edi
xor eax, eax
cmp eax, 0x100
jge 0x4066a1
mov dword [ebp + eax*4 + 0x6c], edi
inc eax
jmp 0x406693
push edi
push 0x80
push 3
push edi
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40671a
push edi
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp + 0x6c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066f2
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4066f2
add dword [ebx], eax
lea ecx, [ebp + 0x6c]
push ecx
lea esi, [ebp]
call fcn.00406747
jmp 0x4066c0
lea ecx, [ebp]
call fcn.004067db
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
lea ebx, [ebp + 0x58]
call fcn.0040656b
mov eax, dword [ebp - 0x14]
pop ecx
jmp 0x406724
mov esi, dword [ebp - 0x14]
call fcn.00402711
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x46c]
xor ecx, ebp
call fcn.0044e6cf
add ebp, 0x470
leave
ret

Function at 0x406f3f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
push ebx
push esi
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
cmp cx, word [eax + 6]
jae 0x407009
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x406fa9
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x406ff4
push dword [edi + 0x34]
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x407010
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.00451d90
jmp 0x406ff1
mov ecx, dword [esi + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00406f2a
pop ecx
test eax, eax
je 0x407010
push dword [edi + 0x34]
mov eax, dword [esi - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x407010
mov eax, dword [esi + 4]
push dword [esi]
mov ebx, dword [esi - 4]
add eax, dword [ebp + 8]
add ebx, dword [ebp - 4]
push eax
push ebx
call fcn.00452230
mov dword [esi - 8], ebx
add esp, 0xc
mov eax, dword [edi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add esi, 0x28
cmp dword [ebp - 8], eax
jl 0x406f69
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40700c
Function at 0x408570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, [esp - 0x384]
sub esp, 0x404
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp + 0x380], eax
lea eax, [ebp - 0x80]
push eax
push 1
push 0
mov byte [ebp - 0x80], 0x43
mov byte [ebp - 0x73], 0x6c
mov byte [ebp - 0x7b], 0x6c
mov byte [ebp - 0x6d], 0x72
mov byte [ebp - 0x72], 0x65
mov byte [ebp - 0x76], 0x74
mov byte [ebp - 0x79], 0x49
mov byte [ebp - 0x6b], 0x75
mov byte [ebp - 0x6e], 0x61
mov byte [ebp - 0x70], 0x53
mov byte [ebp - 0x7d], 0x65
mov byte [ebp - 0x6c], 0x74
mov byte [ebp - 0x74], 0x6c
mov byte [ebp - 0x77], 0x73
mov byte [ebp - 0x7c], 0x6c
mov byte [ebp - 0x7f], 0x61
mov byte [ebp - 0x7e], 0x70
mov byte [ebp - 0x75], 0x61
mov byte [ebp - 0x7a], 0x61
mov byte [ebp - 0x78], 0x6e
mov byte [ebp - 0x6a], 0x70
mov byte [ebp - 0x71], 0x72
mov byte [ebp - 0x6f], 0x74
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4921c4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4921c4], 0
je 0x408614
cmp eax, 0xb7
je 0x408614
mov al, 1
jmp 0x408616
xor al, al
mov ecx, dword [ebp + 0x380]
xor ecx, ebp
call fcn.0044e6cf
add ebp, 0x384
leave
ret
Function at 0x408cf7
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x48dcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov byte [ebp - 0x434], bl
call fcn.00451d90
push 0x7ff
lea eax, [ebp - 0xc33]
push ebx
push eax
mov byte [ebp - 0xc34], bl
call fcn.00451d90
add esp, 0x18
push 0x400
lea eax, [ebp - 0x434]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x408da6
push esi
push edi
push 0xb
pop ecx
mov esi, str._d__c_timeout_5__cmd__d__c_rmdir__s__q___s_
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 0x4921c8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc34]
push 0x800
push eax
movsb byte es:[edi], byte [esi]
call fcn.0044f950
add esp, 0x10
push ebx
push ebx
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x434]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044e6cf
leave
ret
Function at 0x4098dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x8e
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00402724
add esp, 0xc
test al, al
je 0x40994b
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409940
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
push dword [ebp - 4]
call fcn.0043fb5a
pop ecx
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x409951
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
push 0x754
mov eax, 0x4695a8
call fcn.00455fc1
xor edi, edi
mov esi, ecx
cmp dword [0x4925d8], edi
je 0x409996
push 5
call dword [0x4925c4]
pop ecx
cmp eax, edi
jne 0x409ad0
cmp dword [0x4925d8], edi
je 0x409996
push 0x1c
call dword [0x4925c4]
pop ecx
cmp eax, edi
jne 0x409ad0
cmp byte [esi + 0x94], 1
je 0x409ad0
push 0x47a94b
push 0x47b5b4
lea ecx, [ebp - 0x744]
mov ebx, 0x4937dc
call fcn.004033c0
push 0x47ae50
lea eax, [ebp - 0x744]
mov dword [ebp - 4], edi
call fcn.004064cc
test eax, eax
jne 0x409ac2
push 0x84e
lea ecx, [ebp - 0x760]
mov byte [esi + 0x97], 1
call fcn.00403342
push edi
push 1
lea ecx, [ebp - 0x760]
call fcn.004026c6
push edi
push 0x2a
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.BetelgeuseDirectory
lea eax, [ebp - 0x118]
push eax
call ebx
push edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push str.PerspectivePause
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push str._s_s.exe
push eax
call fcn.0040b1bc
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call fcn.004098dd
test al, al
je 0x409ac2
push str.ThroneTrainR4
lea eax, [ebp - 0x328]
push eax
call ebx
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x728]
push str._p__s_
push eax
call fcn.00402f62
add esp, 0xc
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403fdb
push edi
push 1
lea ecx, [ebp - 0x744]
call fcn.004026c6
call fcn.00456044
ret