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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x100192f1
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x10019173
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x100191b5
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x100191b5
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x1001919d
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.10018ea8
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x100191b5
mov ebx, eax
push esi
cmp ebx, 3
jb 0x10019275
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
call fcn.10018853
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x10019242
cmp eax, 3
jb 0x10019242
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x100191f0
jmp 0x10019293
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x10019299
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
call fcn.10018853
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x100192d2
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x100192b2
lea edx, [ecx + esi + 0x1af70]
jmp 0x100192b4
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.10018692
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x100192e3
call fcn.10018feb
cmp dword [esi + 0x6af90], 0
jne 0x10019123
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10019304
lea edx, [ecx + esi + 0x1af70]
jmp 0x10019306
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.10018692
pop esi
pop ebx
leave
ret
Function at 0x10019ea4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x10019eb6
xor eax, eax
jmp 0x10019f86
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x10019f6a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10020958]
add ecx, 8
sub edi, 8
dec esi
jne 0x10019ecd
pop ebx
test edi, edi
je 0x10019f83
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x10020958]
inc ecx
dec edi
jne 0x10019f6e
not eax
pop esi
pop edi
pop ebp
ret 4
Function at 0x1001a1c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x1001a27b
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x1001a261
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x1001a1f3
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x1001a213
mov eax, 0x300
jmp 0x1001a2a4
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x1001a232
push ebx
call fcn.10010350
jmp 0x1001a209
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call fcn.10010350
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x1001a2a4
mov eax, dword [esi]
cmp eax, edi
je 0x1001a29b
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x1001a2a4
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1001a518
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x64]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x1001a560
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x1001a588
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x1001a53b
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
mov eax, dword [esi + 0x58]
add dword [esi + 0x54], edi
push edi
mov ecx, ebx
call fcn.10019ea4
mov dword [esi + 0x58], eax
mov eax, edi
jmp 0x1001a58a
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1001a581
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a588
mov edi, dword [ebp + 0xc]
jmp 0x1001a54b
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1001ade4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp esi, edi
je 0x1001ae05
mov dword [esp + 0x10], esi
jmp 0x1001ae0f
lea eax, [ebx + 0x800]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x1001ae27
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ae18
sub eax, edx
mov dword [esp + 0x18], eax
jmp 0x1001ae2b
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x1001ae43
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ae34
sub eax, edx
mov dword [esp + 0x1c], eax
jmp 0x1001ae47
mov dword [esp + 0x1c], edi
cmp ebx, edi
je 0x1001af4d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ae54
sub eax, edx
add eax, 0x104
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x1001af4d
push ebx
push str._s
push 0x104
push esi
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x14], edi
je 0x1001af43
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x10022938
cmp byte [esp + 0x4c], 0x2e
je 0x1001af2c
cmp dword [ebp + 0x10], 0
mov eax, edi
jne 0x1001aeca
mov eax, str._s_s
lea ecx, [esp + 0x4c]
push ecx
push dword [ebp + 0x10]
push eax
push dword [esp + 0x1c]
call esi
lea eax, [esp + 0x5c]
push eax
push ebx
push edi
push ebx
call esi
mov eax, dword [ebp + 8]
add esp, 0x20
test byte [esp + 0x20], 0x10
je 0x1001af0c
push 4
push 0
push dword [esp + 0x18]
call fcn.1001ad28
push dword [esp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.1001ade4
jmp 0x1001af18
push 2
push ebx
push dword [esp + 0x18]
call fcn.1001ad28
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001aeb6
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b0a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp esi, edi
je 0x1001b1ac
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b0c5
sub eax, edx
je 0x1001b1ac
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b0d9
push ebx
lea ecx, [ebp - 8]
push ecx
sub eax, edx
push esi
call fcn.1001b4c3
mov ebx, eax
cmp ebx, edi
je 0x1001b1ab
cmp dword [ebp - 8], edi
je 0x1001b1a4
mov ecx, ebx
call fcn.1001b074
test eax, eax
je 0x1001b1a4
lea eax, [ebx + 1]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b115
movzx ecx, byte [ebx]
sub eax, esi
lea esi, [ecx + eax + 2]
call fcn.10012679
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1001b1a4
xor ecx, ecx
cmp byte [ebx], cl
jbe 0x1001b169
mov eax, dword [str.DZEP]
xor edx, edx
push 0x19
pop esi
div esi
mov eax, dword [ebp - 4]
add dl, 0x61
mov byte [ecx + eax], dl
mov eax, dword [str.DZEP]
add eax, dword [ebx + 8]
mov dword [str.DZEP], eax
xor eax, dword [ebx + 0xc]
inc ecx
mov dword [str.DZEP], eax
movzx edx, byte [ebx]
cmp ecx, edx
jl 0x1001b13c
mov edi, dword [ebp - 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001b16d
mov esi, 0x10022664
lea eax, [ebx + 1]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b181
mov edi, dword [ebp - 4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001b18e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
call fcn.1001272d
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x1001b1b3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
push 0x103
mov esi, eax
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x118], bl
call sub.ntdll.dll_memset
add esp, 0xc
cmp esi, ebx
je 0x1001b339
cmp dword [ebp + 8], ebx
je 0x1001b339
cmp dword [ebp + 0xc], ebx
je 0x1001b339
cmp dword [ebp + 0x10], ebx
je 0x1001b339
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001b339
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.10012106
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1001b339
cmp dword [ebp - 4], ebx
je 0x1001b331
push edi
call fcn.1001c5ca
mov dword [ebp - 8], eax
call fcn.1001c5ca
mov edi, eax
mov dword [ebp - 0xc], edi
call fcn.1001c5ca
mov dword [ebp - 4], eax
call fcn.1001c5ca
mov dword [ebp + 0x10], eax
cmp dword [ebp - 8], ebx
je 0x1001b2fc
cmp edi, ebx
je 0x1001b2fc
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1001b2fc
cmp dword [ebp + 0x10], ebx
je 0x1001b309
push dword [ebp + 8]
call fcn.1001c6b7
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
call fcn.1001c6b7
push dword [ebp - 0x14]
mov eax, edi
call fcn.1001c6b7
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
call fcn.1001c6fc
xor ecx, ecx
xor eax, eax
cmp byte [esi], bl
je 0x1001b2cc
inc eax
cmp byte [eax + esi], bl
jne 0x1001b2b4
jmp 0x1001b2c8
dec eax
mov dl, byte [eax + esi]
mov byte [ebp + ecx - 0x118], dl
inc ecx
cmp eax, ebx
jne 0x1001b2bc
lea eax, [ebp - 0x118]
mov byte [ebp + ecx - 0x118], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001b2dc
sub eax, esi
mov ecx, eax
mov eax, dword [ebp - 8]
mov edi, dword [eax]
xor eax, eax
lea esi, [ebp - 0x118]
repe cmpsb byte [esi], byte es:[edi]
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], ebx
je 0x1001b309
lea edi, [ebp + 0x10]
call fcn.1001c5f6
cmp dword [ebp - 4], ebx
je 0x1001b316
lea edi, [ebp - 4]
call fcn.1001c5f6
cmp dword [ebp - 0xc], ebx
je 0x1001b323
lea edi, [ebp - 0xc]
call fcn.1001c5f6
cmp dword [ebp - 8], ebx
je 0x1001b330
lea edi, [ebp - 8]
call fcn.1001c5f6
pop edi
mov esi, dword [ebp - 0x14]
call fcn.1001272d
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001b3cf
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x44
mov esi, eax
pop eax
mov edi, ecx
call fcn.1001dad0
mov eax, esp
test eax, eax
je 0x1001b3fb
push 0x82
push 0x40
mov edx, 0x10025ec8
call fcn.100117e3
lea edx, [ebx - 2]
xor ecx, ecx
test edx, edx
jle 0x1001b463
movzx edx, byte [edi + ecx]
shr edx, 2
mov dl, byte [edx + eax]
mov byte [esi], dl
movsx edx, byte [edi + ecx]
movzx ebx, byte [edi + ecx + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
mov dl, byte [edx + eax]
mov byte [esi + 1], dl
movsx ebx, byte [edi + ecx + 1]
movzx edx, byte [edi + ecx + 2]
shr edx, 6
and ebx, 0xf
shl ebx, 2
or edx, ebx
mov dl, byte [edx + eax]
mov ebx, dword [ebp + 8]
mov byte [esi + 2], dl
movsx edx, byte [edi + ecx + 2]
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [esi + 3], dl
add ecx, 3
lea edx, [ebx - 2]
add esi, 4
cmp ecx, edx
jl 0x1001b404
cmp ecx, ebx
jge 0x1001b4b6
add edi, ecx
movzx edx, byte [edi]
shr edx, 2
mov dl, byte [edx + eax]
dec ebx
mov byte [esi], dl
cmp ecx, ebx
movsx ecx, byte [edi]
jne 0x1001b48d
and ecx, 3
add ecx, ecx
mov al, byte [eax + ecx*8]
mov byte [esi + 1], al
mov byte [esi + 2], 0x3d
jmp 0x1001b4af
movzx edx, byte [edi + 1]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
mov cl, byte [ecx + eax]
mov byte [esi + 1], cl
movsx ecx, byte [edi + 1]
and ecx, 0xf
mov al, byte [eax + ecx*4]
mov byte [esi + 2], al
add esi, 3
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1001b6a9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x11c]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x1001b7e6
push 2
pop edx
cmp dword [ebp - 0x10c], edx
jne 0x1001b7e6
xor ecx, ecx
inc ecx
cmp byte [ebp - 2], cl
jne 0x1001b76c
cmp dword [ebp - 0x118], 5
jne 0x1001b733
cmp dword [ebp - 0x114], edi
jne 0x1001b718
mov edi, ecx
jmp 0x1001b7bb
cmp dword [ebp - 0x114], ecx
je 0x1001b72c
cmp dword [ebp - 0x114], edx
jne 0x1001b7bb
mov edi, edx
jmp 0x1001b7bb
cmp dword [ebp - 0x118], 6
jne 0x1001b7bb
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x1001b74a
push 4
jmp 0x1001b7ba
cmp eax, ecx
jne 0x1001b752
push 6
jmp 0x1001b7ba
cmp eax, edx
jne 0x1001b75a
push 8
jmp 0x1001b7ba
cmp eax, 3
jne 0x1001b763
push 9
jmp 0x1001b7ba
cmp eax, 4
jne 0x1001b7bb
push 0xc
jmp 0x1001b7ba
cmp byte [ebp - 2], dl
je 0x1001b777
cmp byte [ebp - 2], 3
jne 0x1001b7bb
cmp dword [ebp - 0x118], 5
jne 0x1001b78c
cmp dword [ebp - 0x114], edx
jne 0x1001b7bb
push 3
jmp 0x1001b7ba
cmp dword [ebp - 0x118], 6
jne 0x1001b7bb
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x1001b7a3
push 5
jmp 0x1001b7ba
cmp eax, ecx
jne 0x1001b7ab
push 7
jmp 0x1001b7ba
cmp eax, edx
jne 0x1001b7b3
push 0xb
jmp 0x1001b7ba
cmp eax, 3
jne 0x1001b7bb
push 0xa
pop edi
movzx eax, word [ebp - 8]
imul edi, edi, 0xa
push 0xa
cdq
pop ecx
idiv ecx
push 0
add edi, edx
imul edi, edi, 0xa
call fcn.1000ff2a
test eax, eax
je 0x1001b7d9
inc edi
imul edi, edi, 0xa
call fcn.10010421
test eax, eax
jne 0x1001b7e6
inc edi
mov eax, edi
pop edi
leave
ret
Function at 0x1001bb43
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
xor esi, esi
or edi, 0xffffffff
cmp dword [ebp + 8], esi
je 0x1001bc59
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001bc59
push 0x124
lea eax, [ebp - 0x128]
push esi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001bc5f
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, esi
je 0x1001bbc5
push 0x92
push 0x1c
mov edx, 0x1002662c
call fcn.100117e3
mov ecx, eax
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1001bbca
push eax
push dword [ebp + 8]
sub ecx, edx
mov esi, ecx
call fcn.100120cd
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x1001bbff
push 0x81
push 8
mov eax, ebx
mov edx, 0x10026624
call fcn.100117e3
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x234]
push ebx
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x234]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001bc2b
sub eax, ecx
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp + 8]
mov esi, eax
call fcn.100120cd
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1001bbff
jmp 0x1001bc5f
push edi
call fcn.10010350
lea esp, [ebp - 0x244]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001bc6c
Capabilities:
Get hostname
List user accounts

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x28], str.USER_PRIV_GUEST
mov dword [ebp - 0x24], str.USER_PRIV_USER
mov dword [ebp - 0x20], str.USER_PRIV_ADMIN
cmp dword [ebp + 8], edi
je 0x1001be6b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.NETAPI32.dll_NetGetJoinInformation]
test eax, eax
jne 0x1001bcfa
cmp dword [ebp - 4], edi
je 0x1001bcbc
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 8], 3
jne 0x1001bcfa
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x1001bce1
push 0x96
push 0x24
mov edx, 0x10026654
call fcn.100117e3
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1001bce6
push eax
push dword [ebp + 8]
sub ecx, esi
mov esi, ecx
call fcn.100120cd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 2
push 1
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1001bd35
cmp eax, 0xea
jne 0x1001be6b
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x1001bd56
push 0x85
push 0xa
mov eax, esi
mov edx, 0x10026648
call fcn.100117e3
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bd5b
push esi
push dword [ebp + 8]
sub ecx, edx
mov esi, ecx
call fcn.100120cd
cmp dword [ebp - 4], edi
je 0x1001be5e
mov edi, dword [ebp - 4]
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x1001bd9c
push 0x91
push 0xf
mov eax, ebx
mov edx, 0x10026748
call fcn.100117e3
and dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
jbe 0x1001be53
test byte [edi + 0x18], 2
jne 0x1001be41
push 0x20a
lea eax, [ebp - 0x338]
push 0
push eax
mov dword [ebp - 0x10], 0x104
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push dword [edi]
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x540]
push str._ws_ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [edi + 0xc]
push dword [ebp + eax*4 - 0x28]
lea eax, [ebp - 0x338]
push dword [edi]
push eax
lea eax, [ebp - 0x12c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x12c]
add esp, 0x24
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001be27
sub eax, ecx
lea ecx, [ebp - 0x12c]
push ecx
push dword [ebp + 8]
mov esi, eax
call fcn.100120cd
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add edi, 0x20
cmp eax, dword [ebp - 8]
jb 0x1001bdaa
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
xor edi, edi
cmp dword [ebp - 0x1c], 0xea
je 0x1001bcfa
lea esp, [ebp - 0x54c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001be78
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
xor ecx, ecx
push edi
lea eax, [ebp + 0x14]
cmp dword [ebp + 0x10], ecx
jle 0x1001be9d
mov edx, dword [ebp + 0x14]
dec dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], edx
jmp 0x1001bea3
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0x10], ecx
jle 0x1001bebb
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x28], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x24], edx
jmp 0x1001bec1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0x10], ecx
jle 0x1001bed9
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x20], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x1c], edx
jmp 0x1001bedf
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], ecx
jle 0x1001bef7
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x18], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001befd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
cdq
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 4], esp
and esp, 0xfffffff8
push 0x33
call fcn.1001bf24

Function at 0x1001bf8d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
je 0x1001bff9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x1001bfa6
test eax, eax
je 0x1001bff9
cmp dword [ebp + 0x14], 0
je 0x1001bff9
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
push 0x33
call fcn.1001bfb9
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1001bfff
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
push esi
push edi
cmp dword [ebp + 8], edx
je 0x1001c07f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp ecx, edx
jne 0x1001c01b
cmp eax, edx
je 0x1001c07f
cmp dword [ebp + 0x14], edx
je 0x1001c07f
mov byte [ebp + 0x13], dl
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
push 0x33
call fcn.1001c030
xor al, al
pop edi
pop esi
leave
ret 0x10

Function at 0x1001c087
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
push ebx
xor edx, edx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
push 0x33
call fcn.1001c0a2