joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x4820f8]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b698
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x44b6d8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x44b6b5
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x44b752
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x44b74c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x44b714
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x44b744
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x44b700
test ecx, ecx
je 0x44b7c3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x44b744
cmp ecx, 1
jbe 0x44b7c3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x44b744
cmp ecx, 2
jbe 0x44b7c3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x44b7c3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x44b6f0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.00431ff0
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x44b684
mov ecx, dword [0x4821d0]
test ecx, ecx
je 0x44b7bc
mov esi, 0x4821d0
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44b798
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.004320c0
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x44b790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x44b761
xor cl, 3
mov byte [eax + 5], cl
jmp 0x44b761
Function at 0x44cfd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx]
push edi
push esi
push eax
mov eax, ebx
call fcn.0044c4b0
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
add eax, 0x10
call fcn.0041dfc0
mov esi, eax
push 0x485ed8
push esi
call fcn.0045c2f7
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], edi
test edi, edi
jne 0x44d065
mov ecx, dword [ebx + 0x34]
push esi
push str.Include_file_open_failed_n___s__n
push ecx
call fcn.00432860
mov esi, dword [ebx + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax - 0x10]
add esp, 0xc
cmp ecx, eax
jae 0x44d04f
lea edx, [ecx - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 8], eax
add ecx, 0x10
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x44d034
mov ecx, dword [ebp - 4]
add dword [esi + 8], 0xfffffff0
push 0x131
push ecx
push ebx
call fcn.0044ba20
add esp, 0xc
mov eax, dword [ebx + 0x34]
add dword [eax + 8], 0xfffffff0
mov edx, dword [ebx + 0x3c]
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
push 0x400
push ecx
push edx
push eax
call fcn.0044eab0
mov ecx, dword [ebx + 0x3c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x3c]
mov dword [edx + 8], 0x400
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.00461aa5
add esp, 0x20
test eax, eax
je 0x44d13a
mov edi, edi
add dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add ecx, 0x400
cmp ecx, eax
jbe 0x44d120
lea edi, [eax + eax]
cmp edi, 0x7ffffffe
jb 0x44d0ee
push 0
push str.lexical_element_too_long
push ebx
call fcn.0044ba20
add esp, 0xc
lea ecx, [edi + 1]
cmp ecx, 0xfffffffd
ja 0x44d10c
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
push edi
push edx
push eax
push ecx
call fcn.0044eab0
add esp, 0x10
jmp 0x44d118
mov edx, dword [ebx + 0x34]
push edx
call fcn.0044ea90
add esp, 4
mov dword [esi + 8], edi
mov edi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.00461aa5
add esp, 0x10
test eax, eax
jne 0x44d0c0
push edi
call fcn.0045c5f5
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esp, 4
call fcn.0044bb20
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0x131
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ef70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44efab
push 0x49c8e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.0044ec00
mov edi, eax
test edi, edi
je 0x44efab
inc dword [edi + 0x14]
push 0x49c8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44efcf
test esi, esi
je 0x44efc7
push 0x49c8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44efe4
test esi, esi
jmp 0x44f0da
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44f019
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44f0d6
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00465400
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044ec40
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44f09d
push eax
mov eax, esi
call fcn.0044edc0
add esp, 4
push esi
call fcn.0044ee50
add esp, 4
test eax, eax
je 0x44f0cf
push esi
call fcn.0044ecf0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44f0f3
add eax, edi
je 0x44f0cf
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44f0f0
mov eax, esi
call fcn.0044f240
cmp dword [ebp + 0xc], 0
je 0x44f0e7
push 0x49c8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44f124
push eax
call fcn.0045d8fa
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044eb00
push 0x49c8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459ed3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4989d4]
jne 0x459edd
repz ret
jmp fcn.00462b19
Function at 0x45cc9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45ccc1
call fcn.0045d23b
mov dword [eax], esi
call fcn.0045d228
push 0x16
pop esi
mov dword [eax], esi
call fcn.00464420
mov eax, esi
jmp 0x45cd16
test dword [ebp + 0xc], 0xfffffff9
jne 0x45cca7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45ccee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045d24e
pop ecx
call fcn.0045d228
mov eax, dword [eax]
jmp 0x45cd16
test al, 0x10
jne 0x45cd14
test al, 1
je 0x45cd14
test byte [ebp + 0xc], 2
je 0x45cd14
call fcn.0045d23b
mov dword [eax], 5
call fcn.0045d228
mov dword [eax], 0xd
jmp 0x45cce5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4715c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4989d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00464769
and dword [ebp - 0x14], 0
cmp dword [0x49b184], 0
mov dword [ebp - 0x18], eax
jne 0x471673
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47171b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x480a7c
push ebx
call edi
test eax, eax
je 0x47171b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x480a6c
push ebx
mov dword [0x49b184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49b188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49b18c], eax
call edi
push eax
call esi
mov dword [0x49b194], eax
test eax, eax
je 0x471673
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49b190], eax
mov eax, dword [0x49b190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4716cc
cmp dword [0x49b194], ecx
je 0x4716cc
push eax
call esi
push dword [0x49b194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4716cc
test ebx, ebx
je 0x4716cc
call edi
test eax, eax
je 0x4716c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4716c3
test byte [ebp - 8], 1
jne 0x4716cc
or dword [ebp + 0x10], 0x200000
jmp 0x4716ff
mov eax, dword [0x49b188]
cmp eax, dword [ebp - 0x18]
je 0x4716ff
push eax
call esi
test eax, eax
je 0x4716ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4716ff
mov eax, dword [0x49b18c]
cmp eax, dword [ebp - 0x18]
je 0x4716ff
push eax
call esi
test eax, eax
je 0x4716ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49b184]
call esi
test eax, eax
je 0x47171b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47171d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459ed3
leave
ret
Function at 0x794df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x33e000]
push edi
jmp 0x794e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x794e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x794e00
mov eax, 1
add ebx, ebx
jne 0x794e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x794e34
jne 0x794e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x794e53
dec eax
add ebx, ebx
jne 0x794e40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x794e18
add ebx, ebx
jne 0x794e4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x794ea5
xor ecx, ecx
sub eax, 3
jb 0x794e6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x794eda
sar eax, 1
mov ebp, eax
jmp 0x794e76
add ebx, ebx
jne 0x794e76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x794e44
inc ecx
add ebx, ebx
jne 0x794e84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x794e44
add ebx, ebx
jne 0x794e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x794e86
jne 0x794ea2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x794e86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x794ec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x794eb6
jmp 0x794e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x794ec4
add edi, ecx
jmp 0x794e06
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x794ee2
cmp byte [edi], 0x11
jne 0x794ee2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x794ee7
lea edi, [esi + 0x38d000]
mov eax, dword [edi]
or eax, eax
je 0x794f5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6516d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x651850]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x794f14
mov ecx, edi
jns 0x794f43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x651854]
or eax, eax
je 0x794f59
mov dword [ebx], eax
add ebx, 4
jmp 0x794f31
call dword [esi + 0x651864]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x794f90
cmp al, 0xef
ja 0x794f83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x794f65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x794f72
mov ebp, dword [esi + 0x651858]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x794fc4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x1000c859
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x1000c881
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x1000c86e
pop esi
mov eax, ecx
pop ebp
ret 8

Function at 0x10012a88
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x10018ec2
call fcn.10013fc4
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [ebp - 0x44], 0
push esi
push eax
mov dword [ebp - 0x48], edi
call fcn.100136f8
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x100020bc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100122ae
mov byte [ebp - 4], 2
push 0x100013a0
push eax
push edi
call fcn.100122ae
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.1000785f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0
push ebx
call fcn.1000785f
cmp dword [edi + 0x14], 8
jb 0x10012afe
mov eax, dword [edi]
jmp 0x10012b00
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x10012b08
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.MSVCR120.dll__wrename]
pop ecx
pop ecx
mov eax, edi
call fcn.10013f64
ret 8

Function at 0x1001357a
Capabilities:
Initialize hashing via wincrypt

Disassembly:
add ecx, 4
xor eax, eax
push ecx
push eax
push eax
push 0x800c
mov dword [ecx], eax
push dword [0x10020178]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100135b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x100135b8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x10020178
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret

Function at 0x10018745
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10018780
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10018767
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10018778
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10018782
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1001875d
xor eax, eax
pop edi
pop esi
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x40102a
xor eax, eax
inc eax
jmp 0x401073
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402ec3
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x401073
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x40106a
lea eax, [ebp - 0x20c]
push eax
call section..text
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c2c
leave
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, 0x40d7f4
call fcn.00409686
mov eax, dword [ebp + 0x218]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
test byte [0x412c50], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
jne 0x401162
mov eax, dword [0x41205c]
or dword [0x412c50], 1
mov ecx, 0x41205c
call dword [eax + 0xc]
add eax, 0x10
push 0x40d97d
mov dword [0x412c4c], eax
call fcn.00402d62
pop ecx
mov eax, dword [0x412c4c]
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.004017dd
push str.RootGenius_shuame_
push 0x412c4c
call fcn.00401807
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [0x412c4c]
call esi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x40faa8
call fcn.00401744
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 1
call fcn.0040183b
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00401f7c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401f7c
lea eax, [ebp - 0x10]
push eax
mov edi, str.DataApk
call fcn.00401744
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.0040183b
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
lea eax, [ebp - 0x10]
push eax
mov edi, str.DataBin
call fcn.00401744
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 3
call fcn.0040183b
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x28]
push esi
call fcn.00401890
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.004019d4
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.00402f32
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.00402c2c
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 str.CUSTOM
push eax
push dword [0x412c44]
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, 0x40d8ee
call fcn.00409686
mov eax, dword [0x41205c]
mov ecx, 0x41205c
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.0040179c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
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.00401f7c
mov al, bl
call fcn.00409725
ret

Function at 0x4013f9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d8c3
call fcn.00409686
mov eax, dword [0x41205c]
mov ecx, 0x41205c
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.0040179c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
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 0x40fc7c
call fcn.004010f5
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00401b0b
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
call fcn.00401fac
add esp, 0xc
push edi
mov bl, al
call esi
lea eax, [edi - 0x10]
call fcn.00401f7c
mov al, bl
call fcn.00409725
ret