joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f4d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov ebx, dword [edi + 0x2c]
mov ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100241d0
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x1005f654
sub eax, 1
je 0x1005f5c1
sub eax, 1
jne 0x1005f64b
mov dword [ebx + 0x19c], 7
lea ecx, [edi + 4]
or dword [ebx + 0x304], 0x20000000
mov byte [ebx + 0x1b0], 0xa
or dword [ebx + 0x308], 0x40
mov dword [ebx + 0x184], 9
or dword [ebx + 0x304], 0x1000000
mov edx, dword [esi + 2]
push ebx
call fcn.10054460
mov eax, dword [esi + 2]
mov edi, 1
mov ecx, eax
add esp, 4
and ecx, 0xf
shl edi, cl
cmp eax, 0x1000
jae 0x1005f64b
cmp edi, 8
ja 0x1005f64b
xor edx, edx
mov eax, 0x1208
cmp word [esi], ax
mov eax, dword [ebp - 0xc]
sete dl
sub esp, 0x10
mov ecx, esp
lea eax, [edx + eax*2]
imul eax, edi
lea edx, [esi + 8]
push edi
add edx, eax
call fcn.1005f430
add esp, 4
mov ecx, ebx
call fcn.10052310
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x19c], 7
lea ecx, [edi + 4]
or dword [ebx + 0x304], 0x20000000
mov byte [ebx + 0x1b0], 0xa
or dword [ebx + 0x308], 0x40
mov dword [ebx + 0x184], 9
or dword [ebx + 0x304], 0x1000000
mov edx, dword [esi + 2]
push ebx
call fcn.10054460
mov eax, dword [esi + 2]
mov edx, 1
mov ecx, eax
add esp, 4
and ecx, 0xf
shl edx, cl
cmp eax, 0x1000
jae 0x1005f64b
cmp edx, 8
ja 0x1005f64b
mov eax, dword [ebp - 0xc]
sub esp, 0x10
imul eax, edx
mov ecx, esp
push edx
add eax, 4
lea edx, [esi + eax*2]
call fcn.1005f430
add esp, 4
mov ecx, ebx
call fcn.10052310
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x19c], 0x1e
lea ecx, [edi + 4]
or dword [ebx + 0x304], 0x20000000
movzx eax, word [esi + 6]
mov dword [ebx + 0x204], eax
or dword [ebx + 0x30c], 0x20000000
mov edx, dword [esi + 2]
push ebx
call fcn.10054460
mov eax, 0x1208
add esp, 4
cmp word [esi], ax
jne 0x1005f6b6
lea edi, [ebx + 0x128]
mov dword [ebp - 0x18], 1
mov ecx, 7
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 0x30c], 0x40000000
lea edi, [ebx + 0x144]
mov dword [ebp - 0x18], 2
mov ecx, 7
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 0x30c], 0x80000000
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10068cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
movzx edx, byte [ebp + 0x10]
movzx eax, byte [ebp + 0x14]
and edx, 0xfffffffd
add eax, eax
or edx, eax
push esi
mov esi, ecx
shl edx, 0x14
movzx ecx, byte [ebp + 0xc]
and ecx, 0xffffffe1
mov eax, dword [esi + 0x20]
mov dword [esi], 0x10017dd0
and eax, 0xffc1ffff
mov dword [esi + 4], 0
or edx, eax
movzx eax, byte [ebp + 0x18]
and edx, 0xff3fffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
shl eax, 4
or ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 0x13
or edx, ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x80], eax
mov eax, esi
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
pop esi
pop ebp
ret 0x14
Function at 0x1006bd40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0
je 0x1006bd84
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
movzx esi, word [eax + ecx*4 + 6]
lea eax, [eax + ecx*4]
mov eax, dword [edi + 0x18]
dec esi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov ecx, eax
lea eax, [esi + esi*4]
pop edi
pop esi
mov eax, dword [ecx + eax*8 + 0xc]
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x24]
push ebx
test ecx, ecx
je 0x1006bda9
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, 0xfffffff8
je 0x1006bda9
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [eax]
jmp 0x1006bdae
mov ebx, 0x1000
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 4
test edx, edx
je 0x1006be1b
mov dword [ebp - 8], esi
cmp esi, dword [ebp + 8]
je 0x1006be27
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp - 8]
inc esi
mov ecx, dword [ebp - 4]
dec ecx
mov eax, dword [eax + edx + 0x10]
add ecx, eax
mov eax, dword [ebp - 4]
add edx, 0x14
neg eax
mov dword [ebp - 8], edx
and ecx, eax
mov eax, dword [edi + 0x14]
add ebx, ecx
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 4
cmp esi, edx
jb 0x1006bdd4
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10087ba0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
mov ebx, edx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10087c04
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp ecx, 0xffffffff
je 0x10087c04
push esi
push ecx
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x10087c04
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx], eax
test eax, eax
je 0x10087c04
mov bl, 1
jmp 0x10087c06
xor bl, bl
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10087c17
push esi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x10087c1f
push edi
call eax
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x10090500
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10090576
push 0
push dword [esi + 0x30]
mov byte [esi + 0x24], 1
push dword [esi + 0x28]
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x10090576
push ebx
mov ebx, dword [esi + 0x2c]
lea ecx, [esi + 4]
push edi
push ebx
call fcn.10021170
test eax, eax
je 0x10090552
mov ecx, dword [esi + 8]
lea eax, [ecx + ebx]
mov dword [esi + 8], eax
push dword [esi + 0x28]
push 1
push dword [esi + 0x2c]
push ecx
call fcn.100b3b62
add esp, 0x10
cmp eax, 1
je 0x10090570
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10090570
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
push ecx
call fcn.100abd80
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 8], eax
pop edi
pop ebx
mov al, 1
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x10091170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100911ad
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x10091211
cmp esi, dword [ebp - 4]
jne 0x10091211
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x100911d1
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
jmp 0x1009119b
mov eax, dword [esi + 0x98]
test eax, eax
je 0x10091211
push 0
push dword [ebp + 0xc]
push eax
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x10091211
push dword [esi + 0x98]
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.100b3b62
add esp, 0x10
cmp eax, 1
jne 0x10091211
mov al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10094230
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push 0
push 0x80
push 3
push eax
push 5
push 0x80000000
push ebx
mov esi, ecx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x1009429c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10094287
movzx eax, ax
or eax, 0x80070000
push 0
push ebx
push eax
mov ecx, esi
call fcn.10094a90
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
test dword [esi + 0x20], 0x800000
push edi
je 0x100942fe
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100942fe
cmp dword [ebp + 8], 0
jne 0x100942fe
push 0
push eax
push 0
push 2
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x100942fe
push dword [ebp - 4]
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 0
jne 0x10094346
and dword [esi + 0x20], 0xff7fffff
push 0x8080
push dword [esi + 0x10]
call fcn.100b4266
add esp, 8
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x10094346
call fcn.100b43da
mov eax, dword [eax]
test eax, eax
jle 0x10094330
movzx eax, ax
or eax, 0x80070000
push 0
push ebx
push eax
mov ecx, esi
call fcn.10094a90
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10095a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x10106010]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x10095a55
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0xc
test dword [esi + 0x20], 0x800000
je 0x10095a98
mov eax, dword [esi + 0x14]
add eax, ecx
add eax, dword [esi + 0x18]
test ebx, ebx
je 0x10095a86
push edi
test eax, eax
je 0x10095a7b
push eax
push ebx
call fcn.100ac500
add esp, 0xc
jmp 0x10095a3c
push 0
push ebx
call fcn.100abd80
add esp, 0xc
call fcn.100b43ed
mov dword [eax], 0x16
call fcn.100b45fb
jmp 0x10095a3c
mov eax, dword [esi + 0x18]
push 0
add eax, ecx
push 0
push eax
push dword [esi + 0xc]
call fcn.100b47c1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10095ac9
push edi
push ebx
push dword [esi + 0xc]
call fcn.100b4cdf
add esp, 0xc
cmp eax, edi
je 0x10095a3c
mov ecx, dword [esi + 0x80]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x104
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
cmp eax, 0x10017bc8
jne 0x10095b39
mov ecx, dword [ecx + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
setne al
test al, al
je 0x10095b20
call fcn.100b43da
mov eax, dword [eax]
test eax, eax
jle 0x10095b11
movzx eax, ax
or eax, 0x80070000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.10094a90
mov ecx, dword [esp + 0x21c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + 0x58]
call eax
jmp 0x10095afa
Function at 0x100bda22
Capabilities:
Read file on windows

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

Function at 0x100bf5f6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bf2a4
Function at 0x100f51c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10106010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x20
push 0x10018f84
push edi
mov dword [ebp - 0x54], edi
call fcn.100d5ff0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100f5254
mov dword [esi], 0x12
mov word [esi + 4], ax
cmp byte [esi + 0x81c], al
jne 0x100f5231
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x100f521c
mov dword [esi + 0x820], eax
jmp 0x100f5237
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x100f5237
mov eax, dword [esi + 0x820]
test eax, eax
je 0x100f5340
push 0
push 0x12
push edi
push dword [esi + 0x804]
call eax
add esp, 0x10
jmp 0x100f5340
push ebx
push 1
lea eax, [ebp - 0x50]
push 0x30
push eax
call fcn.100b3b62
add esp, 0x10
cmp eax, 1
jne 0x100f532b
mov eax, 0x4944
cmp word [ebp - 0x50], ax
jne 0x100f532b
mov eax, dword [ebp - 0x38]
push 1
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x34]
lea eax, [eax + ecx*8]
push eax
push ebx
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x100f532b
push ebx
call fcn.100bd896
mov edi, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, 0x24924925
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
test edi, edi
je 0x100f5306
push ebx
push 1
lea eax, [ebp - 0x20]
dec edi
push 0x1c
push eax
call fcn.100b3b62
add esp, 0x10
cmp eax, 1
jne 0x100f5328
cmp byte [esi + 0xc94], 0
jne 0x100f5302
cmp dword [ebp - 0x14], 2
jne 0x100f5302
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc98], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc9c], 0
mov dword [esi + 0xca0], eax
test edi, edi
jne 0x100f52c0
mov eax, dword [ebp - 0x48]
cmp eax, dword [esi + 0xc80]
je 0x100f5355
mov ecx, dword [esi + 0xc84]
test ecx, ecx
je 0x100f531f
cmp eax, ecx
je 0x100f5355
mov edi, dword [ebp - 0x54]
push 0
push 0x14
jmp 0x100f532f
mov edi, dword [ebp - 0x54]
push 0
push 0xb
push edi
mov ecx, esi
call fcn.100f5e80
push ebx
call fcn.100b29c0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a539a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x54]
push edi
call fcn.101001a6
add esp, 4
mov dword [esi + 0xc90], eax
mov ecx, esi
mov dword [esi + 0xc8c], ebx
push 0
push 0
push edi
call fcn.100f5e80
push 0
push dword [ebp - 0x58]
push ebx
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x100f53ca
mov edi, dword [ebp - 0x30]
mov eax, 0x24924925
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
test edi, edi
je 0x100f53ca
push ebx
push 1
lea eax, [ebp - 0x20]
dec edi
push 0x1c
push eax
call fcn.100b3b62
add esp, 0x10
cmp eax, 1
jne 0x100f53ca
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0
call fcn.100f5e20
test edi, edi
jne 0x100f53a2
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a539a
mov esp, ebp
pop ebp
ret 4
Function at 0x100f58c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100f58f9
push 0
push dword [ebp + 0xc]
push esi
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x100f5956
push esi
mov esi, dword [ebp + 0x14]
push esi
push 1
push dword [ebp + 0x18]
call fcn.100b3b62
add esp, 0x10
cmp eax, esi
sete al
pop esi
pop ebp
ret 0x18
mov eax, dword [ecx + 0x82c]
test eax, eax
je 0x100f5923
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ecx + 0x804]
call eax
add esp, 0x14
test eax, eax
setns al
pop esi
pop ebp
ret 0x18
mov eax, dword [ecx + 0x830]
test eax, eax
je 0x100f5956
cmp byte [ebp + 0x1c], 0
mov edx, dword [ebp + 0x10]
jne 0x100f593a
test edx, edx
je 0x100f5956
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push dword [ecx + 0x804]
call eax
add esp, 0x10
test eax, eax
setns al
pop esi
pop ebp
ret 0x18
xor al, al
pop esi
pop ebp
ret 0x18
Function at 0x100f5c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x101094cc
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 4], 0
jne 0x100f5e05
lea eax, [ebp - 4]
mov byte [ebx + 4], 1
push eax
push 1
push 0
push 0x1000c420
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f5e05
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x1000c46c
push dword [ebp - 4]
call esi
test eax, eax
je 0x100f5ceb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mov dword [ebp - 0xc], eax
inc eax
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10022030
mov edi, eax
add esp, 4
test edi, edi
jne 0x100f5d2f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1000c46c
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100f5daf
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x100f5d79
mov dword [ebx + 8], edi
pop edi
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100f5daf
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100f5daf
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10022030
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100f5dca
push edi
call fcn.10022040
add esp, 4
pop edi
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.10022040
mov eax, dword [ebp - 0xc]
add esp, 4
test esi, esi
jne 0x100f5e00
push eax
call fcn.10022040
add esp, 4
pop edi
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 8], eax
pop esi
push 0x101094cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f6870
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10109560]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jae 0x100f6885
mov ecx, eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], eax
lea eax, [edi + 0x18]
push eax
push esi
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [edi + 4], 0
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100f7740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100f776d
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1000c580]
sub esi, 1
jne 0x100f7752
pop edi
pop esi
pop ebp
ret
Function at 0x409ec4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409f97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409fb0
push ebx
push 0x409fbc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409f44
mov al, 0x6a
call fcn.00409b20
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409e98
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409f4d
call fcn.00409e98
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f9e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x40a050
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a104
jmp 0x40a0f9
cmp dword [esi + 0x10], 0x1000
jne 0x40a0e5
test byte [esi + 0x15], 1
jne 0x40a0e5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40a0a4
cmp eax, 2
je 0x40a0a4
cmp eax, 0x10
je 0x40a0a4
cmp eax, 0x20
jne 0x40a0b9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40a0b9
mov bl, 1
xor ebp, ebp
jmp 0x40a0ca
mov eax, dword [esi]
add eax, ebp
call fcn.0040a048
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40a0bd
test bl, bl
je 0x40a0e5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a104
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a07c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219