joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1067c
Capabilities:
Map section object

Disassembly:
push 0x30
push 0x14a88
call fcn.00013cbc
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x240
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov dword [edi], esi
push 0x20
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x100020
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jl 0x10767
mov dword [ebp - 0x38], esi
push dword [ebp + 8]
push 0x1000000
push 0x10
push esi
lea eax, [ebp - 0x40]
push eax
push 0xf001f
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jge 0x10706
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x10767
push 4
push 0x100000
push 1
lea eax, [ebp - 0x20]
push eax
push esi
push 0x3e8
push esi
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
push dword [ebp + 8]
cmp eax, esi
jge 0x1073f
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x10767
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0xc]
jmp 0x10769
xor eax, eax
call fcn.00013d01
ret 8
Function at 0x10776
Capabilities:
Parse pe header

Disassembly:
push 0x118
push 0x14aa8
call fcn.00013cbc
and dword [ebp - 0x20], 0
mov byte [ebp - 0x19], 0
and dword [ebp - 4], 0
push 0x1402a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0001067c
test eax, eax
jne 0x107bf
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1088c
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0x5a4d
mov edx, dword [ebp - 0x20]
cmp word [edx], ax
jne 0x107b1
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x107b1
lea esi, [eax + 0x18]
push 0x38
pop ecx
lea edi, [ebp - 0x128]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc8]
lea esi, [eax + edx]
mov edi, dword [esi + 0x1c]
add edi, edx
mov ebx, dword [esi + 0x20]
add ebx, edx
mov eax, dword [esi + 0x24]
add eax, edx
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x2c], ecx
xor edx, edx
mov dword [ebp - 0x24], edx
cmp edx, dword [esi + 0x14]
jae 0x10882
mov ecx, dword [ebx + edx*4]
add ecx, dword [ebp - 0x20]
movzx eax, word [eax + edx*2]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx - 1]
mov eax, dword [edi + eax*4]
add eax, dword [ebp - 0x20]
mov eax, dword [eax + 1]
mov dword [ebp - 0x28], eax
push ecx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x10870
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [ebp - 0x19], 1
jmp 0x10882
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
jmp 0x10814
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
call fcn.00013d01
ret 8
Function at 0x114a0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1abe0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
je 0x114ef
xor eax, eax
jmp 0x11585
cmp dword [ebp - 0x11c], 5
jne 0x1152b
cmp dword [ebp - 0x118], edi
jne 0x11505
xor edi, edi
inc edi
jmp 0x11583
cmp dword [ebp - 0x118], 1
jne 0x11512
push 2
jmp 0x11582
cmp dword [ebp - 0x118], 2
jne 0x11583
xor eax, eax
cmp word [ebp - 0xc], di
setne al
add eax, 6
mov edi, eax
jmp 0x11583
cmp dword [ebp - 0x11c], 6
mov eax, dword [ebp - 0x118]
jne 0x11579
cmp eax, edi
jne 0x11542
push 8
jmp 0x11582
cmp eax, 1
jne 0x11567
cmp dword [ebp - 0x114], 0x1b58
jne 0x11557
push 9
jmp 0x11582
cmp dword [ebp - 0x114], 0x1db0
jb 0x11583
push 0xa
jmp 0x11582
cmp eax, 2
jne 0x11570
push 0xb
jmp 0x11582
cmp eax, 3
jne 0x1157e
push 0xc
jmp 0x11582
jb 0x11583
cmp eax, 3
jbe 0x11583
push 0xd
pop edi
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00013c58
leave
ret

Function at 0x124ae
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x143e2
lea eax, [ebp - 0xc]
push eax
mov ebx, 0xc0000001
mov esi, 0x2000
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [ebp + 8], 0
je 0x1259d
push esi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x12541
push 0
push esi
push edi
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x1251d
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add esi, esi
jmp 0x124de
test ebx, ebx
jge 0x1252a
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
mov ebx, 0xc0000001
cmp dword [esi + 0x3c], 0
jne 0x12548
add esi, dword [esi]
jmp 0x12537
mov eax, 0xc000009a
jmp 0x1259f
push 1
lea eax, [esi + 0x38]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x12588
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x12563
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1256f
mov ecx, dword [esi + 0x48]
mov dword [eax], ecx
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
call edi
test eax, eax
jne 0x12592
push dword [esi + 0x44]
call fcn.00010a6e
mov eax, dword [esi]
test eax, eax
je 0x12592
add esi, eax
jmp 0x12537
push 0
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x12682
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
xor eax, eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1442e
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
call fcn.0001097c
mov edi, eax
cmp edi, esi
jge 0x12743
push esi
push esi
push 0x20
push 3
push 3
push 0x80
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
cmp edi, esi
jl 0x12743
push esi
lea eax, [ebp - 0x14]
push eax
push 0x6060
push section..data
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x12eee
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x240
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x3c], esi
push esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push 0x20
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
push 0x80
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
cmp ebx, esi
jl 0x12fd5
push 5
push 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
cmp ebx, esi
jl 0x12fd5
mov eax, dword [ebp - 0x34]
mov edi, 0x69666274
push edi
push eax
push esi
mov dword [0x1b05c], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [0x1b058], eax
cmp eax, esi
jne 0x12f9d
mov ebx, 0xc000009a
jmp 0x12fd5
push esi
push esi
push dword [0x1b05c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
cmp ebx, esi
jge 0x12fd5
push edi
push dword [0x1b058]
mov dword [0x1b05c], esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x1b058], esi
cmp dword [ebp - 4], esi
je 0x12fe3
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1b1be
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0001b185
pop ebp
jmp fcn.00013a82
Function at 0x1001ebe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c4530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100b9289
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10022110
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001ec34
jmp dword [ecx*4 + 0x1001ed9c]
mov al, byte [esi]
test al, al
je 0x1001ec62
cmp al, 0x20
je 0x1001ec4e
cmp al, 0xa1
jne 0x1001ec62
cmp byte [esi + 1], al
jne 0x1001ec62
test al, 0x80
je 0x1001ec5a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001ec62
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001ec41
test ecx, ecx
je case.default.0x1001ec34
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001ec34
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001eca8
cmp dl, 0xa1
jne 0x1001ec9c
cmp byte [eax + 1], 0xa1
jne 0x1001ec9c
test ecx, ecx
jne 0x1001ec94
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001ecbc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001ecd6
jmp 0x1001ecbc
cmp dl, 0x20
jne 0x1001ecba
test ecx, ecx
jne 0x1001ecb3
mov edi, eax
mov ecx, 1
jmp 0x1001ecbc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001ec7c
cmp ecx, 1
jne case.default.0x1001ec34
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001ec34
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001ec34
mov al, byte [esi]
test al, al
je 0x1001ed2e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001ed14
mov cl, byte [esi + 1]
test cl, cl
je 0x1001ed2e
cmp al, 0xa1
jne 0x1001ed04
cmp cl, al
je 0x1001ed11
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100223e0
inc esi
jmp 0x1001ed26
cmp al, 0x20
je 0x1001ed26
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10022420
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001eced
push 0
lea ecx, [esp + 0x14]
call fcn.10022420
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10036580
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001ed61
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100ef0a8
call fcn.10022310
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100b921b
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10043d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10129840]
xor edx, edx
cmp eax, edx
jne 0x10043d76
xor eax, eax
mov byte [eax + 0x10129740], al
inc eax
cmp eax, 0x100
jl 0x10043d5e
mov dword [0x10129840], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10129740
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10043e07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10043dda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10043da8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10043e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10043ed3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10043eba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004b1a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x1004b338
cmp ebp, ebx
jle 0x1004b338
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x1004b1fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x1004b205
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x1004b214
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x1004b21b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.100b8f5c
add esp, 4
cmp eax, ebx
je 0x1004b23c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.100b8f5c
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x1004b32e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x1004b315
mov al, byte [edx]
cmp al, 0xc0
jbe 0x1004b301
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x1004b2f6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x1004b304
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x1004b304
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x1004b2a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x1004b291
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10059760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c7b98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x10059799
inc eax
mov dword [esi + 0x10], eax
jmp 0x100598ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x100597ad
mov eax, 0xffffffc7
jmp 0x100598ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x100597be
cmp dword [esi + 8], eax
jne 0x100597ad
cmp dword [esi + 8], eax
jne 0x100597d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x100597d7
mov eax, 0xffffffc7
jmp 0x100598ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x100597eb
push eax
mov ecx, ebx
call fcn.10058f90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10022110
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1005981c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10022130
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.10058700
test eax, eax
mov dword [esp + 0x38], eax
je 0x1005984f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100f26c0
call fcn.10022310
mov eax, dword [esp + 0x38]
jmp 0x100598ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.100595c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10059893
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.100595e0
mov esi, eax
test esi, esi
jne 0x100598c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.100595c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10059865
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100f26c0
call fcn.10022310
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x100f26c0
call fcn.10022310
mov eax, esi
jmp 0x100598ae
Function at 0x1006da10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1006da1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1006db1e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100f4390]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4390]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4390]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4390]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4390]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4390]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4390]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100f4390]
xor eax, edx
inc ecx
dec edi
jne 0x1006da36
pop edi
test esi, esi
je 0x1006db40
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100f4390]
xor eax, edx
inc ecx
dec esi
jne 0x1006db22
pop esi
pop ebx
not eax
ret
Function at 0x10087930
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea eax, [esi + 0x28]
mov dword [ebp - 4], ebx
push eax
push 0x13
call fcn.10087b50
lea ecx, [esi + 0x30]
push ecx
push 5
mov ecx, esi
call fcn.10087be0
lea edx, [esi + 0x20]
mov ecx, esi
push edx
push 0x21
call fcn.10087aa0
lea eax, [esi + 0x14]
mov ecx, esi
push eax
push 0x16
call fcn.10087aa0
lea ecx, [esi + 0x18]
push ecx
push 1
mov ecx, esi
call fcn.10087aa0
mov eax, dword [esi + 8]
pop edi
call fcn.10177bf8
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push 0x1d
push eax
mov dword [esi + 0x24], ebx
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x10087a0d
push eax
call fcn.100b8f5c
mov edx, dword [esi + 8]
add esp, 4
lea ecx, [ebp - 0x14]
mov ebx, eax
push 0
push ecx
push ebx
push 0x1d
push edx
call edi
push str.gzip
push ebx
call fcn.1022b65d
mov ah, 0x85
sal byte [ebp + 9], 0xc7
inc esi
and al, 1
add byte [eax], al
add bl, ch
pop ss
push str.deflate
push ebx
push edx
call fcn.10204e6c
test eax, eax
jne 0x10087a02
mov dword [esi + 0x24], 2
push ebx
call fcn.100b8f85
add esp, 4
xor ebx, ebx
lea ecx, [esi + 0x1c]
push 0x1012cda0
call fcn.100b9358
mov dword [ebp - 0x18], ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x2b
push edx
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, 1
jb 0x10087a84
push eax
call fcn.100b8f5c
mov edx, dword [esi + 8]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x2b
push edx
call edi
cmp dword [ebp - 0x18], 1
jbe 0x10087a68
push 0x1011691c
lea ecx, [esi + 0x1c]
call fcn.100b95ab
push ebx
lea ecx, [esi + 0x1c]
call fcn.100b95ab
push ebx
call fcn.100b8f85
add esp, 4
xor ebx, ebx
jmp 0x10087a1d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10088130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c8a6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 6
call fcn.100b921b
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.100b921b
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.100b921b
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.100b921b
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 2
call fcn.100b921b
lea ecx, [esi + 8]
mov byte [esp + 0x10], 1
call fcn.100b921b
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call fcn.100b921b
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.100b921b
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret