joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b5f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e0158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.005b5550
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], 0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.005b5650
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.005b5560
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.005b5550
mov ebx, dword [esi + 0xc]
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x5b5fc6
mov ecx, dword [esp + 0x10]
inc eax
mov dword [ecx + eax*4 - 4], 0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x5b5fb1
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x5b5fec
mov edx, dword [esp + 0x18]
inc eax
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx + ecx*4], 1
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jl 0x5b5fd0
mov eax, dword [esi + 0xc]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x5b6011
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.005b5ec0
test al, al
je 0x5b6009
inc ebp
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x5b5ff7
cmp ebp, ebx
jge 0x5b6025
lea ecx, [esp + 0x18]
mov ebx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.005b5600
lea ecx, [esp + 0x18]
call fcn.005b56a0
test al, al
jne 0x5b5fa7
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x5b6055
mov edx, dword [esp + 0x10]
inc eax
mov dword [edx + eax*4 - 4], 0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x5b6040
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
jle 0x5b607b
mov ecx, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edx*4], 1
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jl 0x5b605f
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x38]
push edx
push eax
mov ecx, edi
call fcn.005b59b0
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0xc]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
push edx
call fcn.005b59b0
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
jle 0x5b60e8
xor ecx, ecx
xor edx, edx
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + eax*4]
mov ebx, dword [esi + 4]
test ebp, ebp
je 0x5b60cf
mov ebp, dword [edi + 4]
mov ebx, dword [ebx + eax*4]
mov dword [edx + ebp], ebx
add edx, 4
jmp 0x5b60e0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [ebx + eax*4]
add ecx, 4
mov ebp, dword [ebp + 4]
mov dword [ecx + ebp - 4], ebx
mov ebx, dword [esi + 8]
inc eax
cmp eax, ebx
jl 0x5b60b3
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.005b55a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.005b55a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005b55a0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x5b80d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x98]
call ebx
call ebx
cmp eax, dword [edi + 4]
jbe 0x5b80f8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.005b8120
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0xa12dec
Capabilities:
Encode data using xor

Disassembly:
jmp 0xa12df6
pushal
call 0xa12dfc
pop ebp
sub ebp, 0x10
sub ebp, 0x612dec
jmp 0xa12e12
mov eax, 0x612dec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e0
mov edx, 0x43f55e62
xor byte [eax], dl
inc eax
dec ecx
jne 0xa12e29
jmp 0xa12e3c
jmp 0x5f8d17f0
Function at 0x6753e4
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x65b6bb
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x65b6d5
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x65b6c4
pop esi
jmp 0x65b6e0
ret 4
jmp 0x65b6ae
Function at 0x401000
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x413020]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x401046
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00403493
add esp, 0x20c
ret
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040372a
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40107f
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00403493
add esp, 0x20c
ret
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x401097
lea eax, [esp + 8]
push eax
call fcn.00401000
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.00403493
add esp, 0x20c
ret
Function at 0x401440
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
mov ecx, dword [0x414c44]
push esi
push 0x410c48
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 8], eax
test esi, esi
jne 0x401477
xor al, al
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401473
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [edx]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0xc]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test esi, esi
je 0x4014cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x4014e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e120
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x410c58
lea edi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x20], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40158c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40157b
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40157b
call fcn.00402000
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401572
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
jmp 0x40158c
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.00401f60
mov esi, dword [esp + 0x10]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push 0x82
call fcn.00401440
mov bl, al
lea eax, [esi - 0x10]
add esp, 8
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4015f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x401610
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push str.RootGenius.zip
lea edi, [esp + 0x20]
mov dword [esp + 0x34], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4016bd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4016ac
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4016ac
call fcn.00402000
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4016a3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x4016bd
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401f60
mov esi, dword [esp + 0x18]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push 0x84
call fcn.00401440
mov bl, al
add esp, 8
test bl, bl
je 0x401740
push 1
push ecx
mov edi, esp
mov dword [esp + 0x28], esp
push 0x410c8c
call fcn.00401150
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x3c], 0
call fcn.004025d0
add esp, 0xc
push esi
mov bl, al
call ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401780
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push str.RootGeniusEx.zip
lea edi, [esp + 0x20]
mov dword [esp + 0x34], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40182d
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40181c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40181c
call fcn.00402000
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x401813
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x40182d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401f60
mov esi, dword [esp + 0x18]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push 0x85
call fcn.00401440
mov bl, al
add esp, 8
test bl, bl
je 0x4018b0
push 0
push ecx
mov edi, esp
mov dword [esp + 0x28], esp
push 0x410cb4
call fcn.00401150
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x3c], 0
call fcn.004025d0
add esp, 0xc
push esi
mov bl, al
call ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4018d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4018f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x410d08
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x24], eax
and ecx, 0x80000000
fild qword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0
fild qword [esp + 0x20]
fchs
faddp st(1)
fld qword [0x410e70]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x410e68]
fnstsw ax
test ah, 5
jp 0x4019a0
mov edx, esi
and edx, 0x3ff
mov eax, 4
push 0x30
cmp ax, dx
jne 0x40198e
push 0x410d10
push 0x410d18
jmp 0x401998
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov bl, 1
call fcn.004014e0
test al, al
jne 0x4019b2
xor bl, bl
jmp 0x401a4c
push str.zlib1.dll
lea edi, [esp + 0x40]
call fcn.00401150
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 4
push eax
call esi
mov dword [ebp], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401610
test al, al
jne 0x401a06
xor bl, bl
jmp 0x401a3f
push str.RootGenius.dll
lea edi, [esp + 0x40]
call fcn.00401150
mov eax, dword [eax]
add esp, 4
push eax
call esi
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00401780
test bl, bl
jne 0x401a8e
mov esi, dword [esp + 0x14]
and esi, 0x3ff
mov ecx, 4
push 0x30
cmp cx, si
jne 0x401a7c
push 0x410df0
push str.Root
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
push str.Error
push str.Root_Genius_failed_to_initialize_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x28
ret 4

Function at 0x4023c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402408
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402404
cmp esi, eax
jae 0x402408
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4023f4
cmp esi, eax
jb 0x40240e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403493
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413020]
jne 0x40349d
repz ret
jmp fcn.00403e7c

Function at 0x40836c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403ff4
and dword [ebp - 4], 0
cmp dword [0x414b68], 0
mov ebx, eax
jne 0x40841d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4084ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4084ce
push eax
call fcn.00403f82
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b68], eax
call esi
push eax
call fcn.00403f82
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b6c], eax
call esi
push eax
call fcn.00403f82
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414b70], eax
call esi
push eax
call fcn.00403f82
pop ecx
mov dword [0x414b78], eax
test eax, eax
je 0x40841d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403f82
pop ecx
mov dword [0x414b74], eax
mov eax, dword [0x414b74]
cmp eax, ebx
je 0x408475
cmp dword [0x414b78], ebx
je 0x408475
push eax
call fcn.00403ffd
push dword [0x414b78]
mov esi, eax
call fcn.00403ffd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408475
test edi, edi
je 0x408475
call esi
test eax, eax
je 0x40846c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40846c
test byte [ebp - 0xc], 1
jne 0x408475
or dword [ebp + 0x10], 0x200000
jmp 0x4084ae
mov eax, dword [0x414b6c]
cmp eax, ebx
je 0x4084ae
push eax
call fcn.00403ffd
pop ecx
test eax, eax
je 0x4084ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4084ae
mov eax, dword [0x414b70]
cmp eax, ebx
je 0x4084ae
push eax
call fcn.00403ffd
pop ecx
test eax, eax
je 0x4084ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414b68]
call fcn.00403ffd
pop ecx
test eax, eax
je 0x4084ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4084d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100059d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x3c
jae 0x10005a1a
mov ecx, dword [ebp + 0x10]
or ecx, ecx
je 0x10005a16
test byte [ebx + 0x1000727c], 0x10
jne 0x10005a2b
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x100072b8]
call sub.KERNEL32.dll_ReadFile
pop edx
pop ecx
or eax, eax
je 0x10005a1a
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10005a11
push 9
call fcn.10004c08
mov eax, 0xffffffff
jmp 0x10005a11
push esi
push edi
mov edi, dword [ebp + 0xc]
and byte [ebx + 0x1000727c], 0xfe
cld
push ds
pop es
mov edx, edi
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x100072b8]
call sub.KERNEL32.dll_ReadFile
pop edx
pop ecx
or eax, eax
je 0x10005b09
mov eax, dword [ebp - 8]
add edx, eax
cmp eax, ecx
je 0x10005a6e
or byte [ebx + 0x1000727c], 1
mov ecx, eax
or ecx, ecx
je 0x10005bb0
push edi
mov al, 0x1a
repne scasb al, byte es:[edi]
je 0x10005ad8
pop edi
mov ecx, edx
sub ecx, edi
mov al, 0xd
xor esi, esi
repne scasb al, byte es:[edi]
jne 0x10005bb0
cmp edi, edx
jae 0x10005b1d
cmp byte [edi], 0xa
jne 0x10005a86
mov esi, edi
mov dword [ebp - 4], edi
dec dword [ebp - 4]
mov ecx, edx
sub ecx, edi
mov al, 0xd
repne scasb al, byte es:[edi]
jne 0x10005b7a
cmp edi, edx
jae 0x10005b1d
cmp byte [edi], 0xa
jne 0x10005aa9
mov ecx, edi
dec ecx
sub ecx, esi
mov eax, edi
mov edi, dword [ebp - 4]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], edi
mov edi, eax
inc esi
jmp 0x10005aa3
dec edi
test byte [ebx + 0x1000727c], 8
jne 0x10005afb
sub edx, edi
push 1
push 0
push edx
push dword [ebx*4 + 0x100072b8]
call sub.KERNEL32.dll_SetFilePointer
cmp ax, 0xffff
je 0x10005b09
or byte [ebx + 0x1000727c], 1
mov edx, edi
jmp 0x10005a7d
push 9
call fcn.10004c08
mov eax, 0xffffffff
jmp 0x10005bb5
test byte [ebx + 0x1000727c], 1
jne 0x10005b7a
dec edx
mov ecx, 1
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x100072b8]
call sub.KERNEL32.dll_ReadFile
pop edx
pop ecx
or eax, eax
je 0x10005b09
mov eax, dword [ebp - 8]
or eax, eax
je 0x10005b73
cmp byte [edi - 1], 0xa
je 0x10005b7a
mov byte [edi - 1], 0xd
push 1
push 0
push 0xffffffffffffffff
push dword [ebx*4 + 0x100072b8]
call sub.KERNEL32.dll_SetFilePointer
cmp ax, 0xffff
je 0x10005b09
jmp 0x10005b7a
or byte [ebx + 0x1000727c], 1
cmp esi, 0
je 0x10005bb0
mov ecx, edi
sub ecx, esi
mov edi, dword [ebp - 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0x1000727c], 8
jne 0x10005bb0
mov ecx, esi
sub ecx, edi
je 0x10005bb0
test byte [ebx + 0x1000727c], 1
je 0x10005a3a
mov eax, edi
sub eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret