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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467be9

Function at 0x468530
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428f90
mov eax, dword [0x494040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00466951
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x468572
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4686ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047de10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e33f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00469ac3
mov ecx, dword [esi*4 + 0x4e33f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4686c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4686c7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4686c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00469ac3
add esp, 0x14
test edx, edx
jl 0x4686c7
jg 0x46863d
test eax, eax
jb 0x4686c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4686c7
jl 0x468657
cmp dword [ebp - 0x1008], eax
ja 0x4686c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x468675
test ebx, ebx
je 0x4686ae
cmp ecx, edi
jae 0x4686ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x46868f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46869b
cmp byte [ecx + 1], 0xa
jne 0x46869b
inc ecx
jmp 0x46869b
movzx eax, al
movsx eax, byte [eax + 0x494318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x468675
cmp edx, ebx
jne 0x468675
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4686cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427b3d
leave
ret
Function at 0x468c4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4e33f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x468c8c
cmp byte [ebx], 0xa
jne 0x468c8c
or byte [eax + edi + 0x28], 4
jmp 0x468c91
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x468d8f
mov al, byte [edx]
cmp al, 0x1a
je 0x468d71
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x468cc0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x468ce5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x468cef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x468ca2
jmp 0x468d8f
push 0
lea eax, [ebp - 0xc]
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 0x468d6c
cmp dword [ebp - 0xc], 0
je 0x468d6c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e33f8]
test byte [eax + edi + 0x28], 0x48
je 0x468d46
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x468d31
mov byte [esi], dl
jmp 0x468d42
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e33f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x468d8f
cmp byte [ebp - 1], 0xa
jne 0x468d55
cmp esi, ebx
jne 0x468d55
mov byte [esi], 0xa
jmp 0x468d8e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00469ae1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x468d8f
mov byte [esi], 0xd
jmp 0x468d8e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e33f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x468d8b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x468d8f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x468d98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e33f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x468ddb
cmp word [esi], dx
jne 0x468ddb
or byte [edi + eax + 0x28], 4
jmp 0x468de0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x468f33
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x468f13
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x468e22
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x468e58
cmp eax, edx
jae 0x468e64
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x468dfa
jmp 0x468f33
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468f0f
cmp dword [ebp - 0x14], 0
je 0x468f0f
mov eax, dword [ebx*4 + 0x4e33f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x468ee7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x468eb0
mov word [esi], cx
jmp 0x468ee3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e33f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e33f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e33f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x468f33
pop ebx
cmp word [ebp - 4], bx
jne 0x468ef8
cmp esi, dword [ebp + 0xc]
jne 0x468ef8
mov word [esi], bx
jmp 0x468f30
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00469ae1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x468f33
push 0xd
jmp 0x468f2c
mov ecx, dword [ebx*4 + 0x4e33f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x468f2a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x468f33
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46e424
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e2f8
Function at 0x46ec61
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x494040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x46ecac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046f03b
test al, al
jne 0x46eca6
sub edx, 2
cmp edx, edi
jne 0x46ec8c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46ecce
lea eax, [edi + 2]
cmp edx, eax
je 0x46ecce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046e928
add esp, 0x10
jmp 0x46edc8
push esi
lea ecx, [ebp - 0x255]
call fcn.0046f03b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ed11
push dword [ebp - 0x25c]
jmp 0x46ecbe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x46ed4e
cmp word [ebp - 0x226], 0
je 0x46ed6f
cmp word [ebp - 0x226], ax
jne 0x46ed4e
cmp word [ebp - 0x224], 0
je 0x46ed6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046e928
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46edbb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46ed28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46eda3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46edc8
push 0x46e447
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047a750
add esp, 0x10
jmp 0x46ed98
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427b3d
leave
ret
Function at 0x4701b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x470252
push ebx
push esi
call fcn.00470171
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046d258
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4701ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x470251
push edi
push eax
call fcn.00469ccc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47021f
call fcn.00464105
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x470250
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046d258
add esp, 0x20
test eax, eax
jne 0x47023e
push edi
call fcn.00464105
jmp 0x470246
push ebx
call fcn.00464105
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x470255
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x470266
pop esi
ret
push ebx
push edi
push esi
call fcn.00470171
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00469ccc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47028e
push ebx
push esi
push edi
call fcn.00429790
add esp, 0xc
push 0
call fcn.00464105
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x470b6f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470501

Function at 0x47dcb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47dcdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47dcdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010f5
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0xa0
mov eax, 0x40d8b7
call fcn.00409743
mov eax, dword [ebp + 0x218]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
test byte [0x412c54], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
jne 0x401162
mov eax, dword [0x41204c]
or dword [0x412c54], 1
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
push 0x40da40
mov dword [0x412c50], eax
call fcn.00402be0
pop ecx
mov eax, dword [0x412c50]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x40127b
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jle 0x40127b
lea eax, [ebp]
call fcn.00401898
push str.RootGenius_
push 0x412c50
call fcn.004018c2
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [0x412c50]
call esi
lea eax, [ebp - 0x18]
push eax
mov edi, str.Data_
call fcn.004017ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 1
call fcn.004018f6
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00402037
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402037
lea eax, [ebp - 0x10]
push eax
mov edi, str.DataApk
call fcn.004017ff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004018f6
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
lea eax, [ebp - 0x10]
push eax
mov edi, str.DataBin
call fcn.004017ff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 3
call fcn.004018f6
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x28]
push esi
call fcn.0040194b
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push 3
push eax
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xa8]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xac], ecx
call fcn.00401a8f
push dword [ebp - 0xac]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0xac], eax
je 0x4012d3
push dword [ebp - 0xac]
call fcn.00402db0
pop ecx
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 + 0x20c]
xor ecx, ebp
call fcn.00402aaa
add ebp, 0x210
leave
ret
Function at 0x4012f8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push 0x40fac0
push eax
push dword [0x412c48]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp edi, esi
jne 0x401331
xor al, al
jmp 0x401382
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40132d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
cmp edi, esi
je 0x401380
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x401386
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x40d9b1
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.zlib1.dll
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x82
call fcn.004012f8
pop ecx
mov bl, al
pop ecx
lea eax, [esi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret

Function at 0x4013f9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d986
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.RootGenius.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
push 0x84
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x4014a0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc8c
call fcn.004010f5
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00401bc6
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
push edi
mov bl, al
call esi
lea eax, [edi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret
Function at 0x4014b0
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d986
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.KingUser.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x83
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x401551
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc8c
call fcn.004010f5
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00401bc6
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
mov bl, al
lea eax, [esi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret

Function at 0x401561
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x40d953
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push str.RootGeniusEx.zip
lea ecx, [ebp - 0x18]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402037
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push 0x85
call fcn.004012f8
pop ecx
pop ecx
mov byte [ebp - 0xd], al
test al, al
je 0x40160d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x40fc8c
call fcn.004010f5
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
call fcn.00401bc6
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
push edi
mov byte [ebp - 0xd], al
call esi
lea eax, [edi - 0x10]
call fcn.00402037
mov al, byte [ebp - 0xd]
call fcn.004097e2
ret
Function at 0x40161e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40fb44
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 0x80000000
and eax, 0x7fffffff
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x24]
fild qword [ebp - 0x14]
fchs
faddp st(1)
fld qword [0x40fcc8]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x40fcc0]
fnstsw ax
test ah, 5
jp 0x4016b8
push 4
mov eax, edi
pop ecx
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x4016ab
push 0x40fb4c
push 0x40fb54
jmp 0x4016b5
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push esi
call ebx
mov byte [ebp - 5], 1
call fcn.00401386
test al, al
jne 0x4016ca
mov byte [ebp - 5], al
jmp 0x401742
push str.zlib1.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004013f9
test al, al
je 0x401731
call fcn.004014b0
test al, al
je 0x401731
push str.RootGenius.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
jmp 0x401735
mov byte [ebp - 5], 0
call fcn.00401561
cmp byte [ebp - 5], 0
jne 0x40176b
xor esi, esi
push 4
pop eax
and edi, 0x3ff
push 0x30
cmp ax, di
jne 0x40175e
push 0x40fc14
push str.Root
jmp 0x401768
push str.Error
push str.Root_Genius_failed_to_initialize_
push esi
call ebx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e4e
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401e83
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401e7f
cmp edi, eax
jae 0x401e83
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401e71
cmp edi, eax
jb 0x401e87
xor eax, eax
jmp 0x401e90
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret