joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008195
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1002af6c], 0x29f
mov dword [0x1002af70], 0x2124
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10008275
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1002af6c], 0x1234
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.100076eb
mov eax, dword [ebp - 0x38]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov dword [0x1002af70], 0x156f
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x40], edx
mov esi, dword [ebp - 0x38]
mov dword [ecx + 0x3c], esi
mov dword [0x1002af6c], 0x1054
cmp esi, 0
mov dword [ebp - 0x40], eax
je 0x100082d2
mov eax, dword [ebp - 0x38]
add eax, 0x1b85
mov dword [0x1002af6c], 0x15da
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
jmp 0x100082d2
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10009720]
mov dl, byte [eax + 0x100096f1]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x10008275
lea eax, [ebp - 0x24]
mov dword [0x1002af6c], 0x1f59
mov dword [ebp - 0x48], eax
call fcn.10007f26
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
call fcn.10008041
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
jne 0x100081c6
mov eax, dword [ebp - 0x40]
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x10001050
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x10001078
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x10001086
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x1000109f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x100010ad
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x100010c6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100010d4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x100010ed
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x100010fb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.10001142
Function at 0x10003950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebp
lea ecx, [edi + 2]
jmp 0x10003960
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10003960
mov eax, dword fs:[0x18]
sub edi, ecx
sar edi, 1
mov eax, dword [eax + 0x30]
lea ecx, [edi + edi]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x10003994
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x100039f0
mov esi, dword [ebx]
cmp esi, ebx
je 0x100039d3
lea ebx, [ebx]
test esi, esi
je 0x100039d3
cmp word [esi + 0x24], 2
jbe 0x100039cd
movzx eax, word [esi + 0x2c]
cmp eax, ecx
jne 0x100039cd
cmp dword [esi + 0x18], 0
je 0x100039cd
push edi
push dword [esi + 0x30]
push ebp
call fcn.1002fc37
add esp, 0xc
test eax, eax
je 0x100039e8
lea ecx, [edi + edi]
mov esi, dword [esi]
cmp esi, ebx
jne 0x100039a0
cmp dword [0x10118400], 0
je 0x100039f0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10003cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
xor ecx, ecx
mov dword [esp + 8], 0
test edi, edi
je 0x10003d7c
test edx, edx
je 0x10003d7c
mov eax, dword [edi + 0x3c]
push ebx
mov ebx, dword [eax + edi + 0x78]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10003d7b
mov eax, dword [eax + edi + 0x7c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10003d7b
mov eax, dword [ebx + edi + 0x1c]
push ebp
mov ebp, dword [ebx + edi + 0x24]
add eax, edi
push esi
mov esi, dword [ebx + edi + 0x20]
add ebp, edi
add esi, edi
mov dword [esp + 0x10], eax
test edx, 0xffff0000
jne 0x10003d2d
movzx eax, dx
sub eax, dword [ebx + edi + 0x10]
jmp 0x10003d8d
mov ebx, dword [ebx + edi + 0x18]
test ebx, ebx
je 0x10003d79
mov eax, dword [esi]
dec ebx
mov ecx, edx
add eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003d60
test dl, dl
je 0x10003d5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003d60
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003d40
xor eax, eax
jmp 0x10003d65
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003d85
mov edx, dword [esp + 0x18]
add esi, 4
add ebp, 2
test ebx, ebx
jne 0x10003d35
xor ecx, ecx
pop esi
pop ebp
pop ebx
mov eax, ecx
pop edi
add esp, 0x14
ret 4
movzx eax, word [ebp]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x10003d77
cmp ebx, ecx
ja 0x10003ec3
mov eax, dword [esp + 0x20]
add eax, ebx
cmp ecx, eax
jae 0x10003ec3
lea ebp, [ecx + edi]
push 0x10045980
push ebp
call fcn.1002c810
mov edi, eax
add esp, 8
test edi, edi
je 0x10003d77
mov al, byte [edi + 1]
inc edi
test al, al
je 0x10003d77
mov ebx, edi
sub ebx, ebp
cmp al, 0x23
jne 0x10003deb
inc edi
cmp byte [edi], 0
je 0x10003d77
push 0xa
push 0
push edi
call fcn.1002f89f
add esp, 0xc
movzx edi, ax
lea eax, [ebx + 4]
push 2
push eax
call fcn.1002f064
mov esi, eax
add esp, 8
test esi, esi
je 0x10003d77
push ebx
push ebp
lea eax, [ebx + 1]
push eax
push esi
push 0
call fcn.1002fbab
mov eax, dword [0x10045984]
push 4
mov dword [esi + ebx*2], eax
mov ax, word [0x10045988]
push str.api_
push esi
mov word [esi + ebx*2 + 4], ax
call fcn.1002fc37
add esp, 0x20
test eax, eax
je 0x10003e4c
push 4
push str.ext_
push esi
call fcn.1002fc37
add esp, 0xc
test eax, eax
jne 0x10003e95
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov edx, esi
call fcn.10002b00
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10003e95
push esi
call fcn.1002f8e5
mov ebx, dword [esp + 0x18]
push 2
lea eax, [ebx + 1]
push eax
call fcn.1002f064
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003d77
lea eax, [ebx + ebx]
push eax
push ebp
push esi
call fcn.1002eaf0
add esp, 0xc
mov ecx, esi
call fcn.10003950
push esi
mov edx, edi
mov ecx, eax
call fcn.10003cc0
mov dword [esp + 0x28], eax
push esi
call fcn.1002f8e5
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, ecx
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x14
ret 4
pop esi
pop ebp
add ecx, edi
pop ebx
mov eax, ecx
pop edi
add esp, 0x14
ret 4
Function at 0x10005490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x414
push ebx
push ebp
push edi
push 0x208
lea eax, [esp + 0x21c]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.1002cd70
add esp, 0xc
xor edi, edi
xor ebp, ebp
test ebx, ebx
je 0x100054f4
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100054c3
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jb 0x100054df
mov edi, 0x103
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
lea ebp, [edi + edi]
call fcn.100303d6
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x10005523
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0xc]
add ebx, 0x14
jne 0x10005523
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push esi
mov esi, dword [ebx]
cmp esi, ebx
je 0x1000559a
lea ebx, [ebx]
test esi, esi
je 0x1000559a
cmp word [esi + 0x24], 2
jbe 0x10005594
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x10005594
cmp dword [esi + 0x18], 0
je 0x10005594
test ebp, ebp
je 0x10005552
cmp ebp, eax
jne 0x10005594
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
call fcn.1002cd70
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.100303d6
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x100055a7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.1002f16d
add esp, 8
test eax, eax
je 0x100055a7
mov esi, dword [esi]
cmp esi, ebx
jne 0x10005530
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x100058e0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [0x1011840c]
push esi
push edi
mov edi, ecx
test ebp, ebp
je 0x10005a0a
cmp dword [0x10118410], 0
jne 0x100059f5
xor eax, eax
mov edx, 0xb
mov dword [esp + 0x10], eax
mov ecx, 0x100461a4
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
lea eax, [esp + 0x10]
push eax
push 4
push 0x100461a0
call fcn.10007600
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.1002cd70
mov edx, 0x7ffe0030
add esp, 0x18
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10005953
sub edx, esi
sar edx, 1
je 0x10005a0a
mov esi, edi
lea ebx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005970
sub esi, ebx
add edx, 0xc
add edx, esi
cmp edx, 0x104
ja 0x10005a0a
xor eax, eax
test edx, edx
je 0x100059a7
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x100059a7
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x10005990
xor eax, eax
test edx, edx
je 0x100059c2
lea ecx, [ecx]
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x100059c2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059b0
xor eax, eax
test edx, edx
je 0x100059df
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + edi]
test bl, bl
je 0x100059df
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059d0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push 0x800
push 0
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
Function at 0x10007600
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
push 0x100
lea eax, [esp + 0x10]
mov dword [esp + 8], edx
mov ebp, ecx
push 0
push eax
mov dword [esp + 0x14], ebp
call fcn.1002cd70
add esp, 0xc
test ebp, ebp
je 0x10007713
cmp dword [esp + 0x110], 0
je 0x10007713
mov ecx, dword [esp + 0x114]
test ecx, ecx
je 0x10007713
cmp dword [esp + 0x118], 0
push edi
je 0x10007712
xor eax, eax
jmp 0x10007660
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jb 0x10007660
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
xor edi, edi
push ebx
lea esp, [esp]
mov eax, esi
mov bl, byte [esp + esi + 0x18]
xor edx, edx
div ecx
movzx ecx, bl
movzx eax, byte [edx + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov ecx, dword [esp + 0x120]
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], bl
cmp esi, 0x100
jb 0x10007680
mov edi, dword [esp + 0x124]
xor ebx, ebx
mov ebp, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x10007710
sub ebp, edi
jmp 0x100076d0
lea eax, [esi + 1]
movzx esi, al
lea edi, [edi + 1]
mov cl, byte [esp + esi + 0x18]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + ebx + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edi + ebp - 1]
sub dword [esp + 0x10], 1
mov byte [edi - 1], al
jne 0x100076d0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x108
ret
Function at 0x1000a320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1040
call fcn.1003e820
push ebx
push ebp
push esi
push edi
push 0x101c
lea eax, [esp + 0x34]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.1002cd70
xor esi, esi
add esp, 0xc
xor eax, eax
cmp dword [edi], esi
jne 0x1000a4f3
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x14]
mov dword [esp + 0x20], eax
mov ecx, 0x10045c34
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0x10045c30
call fcn.10007600
add esp, 0xc
lea edx, [esp + 0x1c]
call fcn.10005490
test eax, eax
je 0x1000a4f1
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
test edx, edx
je 0x1000a4f1
mov eax, dword [edx + 0x3c]
add eax, edx
je 0x1000a4f1
add eax, 0x78
je 0x1000a4f1
mov ecx, dword [eax]
test ecx, ecx
je 0x1000a4f1
cmp dword [eax + 4], esi
je 0x1000a4f1
lea eax, [edx + ecx]
test eax, eax
je 0x1000a4f1
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x24]
add ecx, edx
mov edi, dword [eax + 0x18]
add ebp, 0xfffffffe
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x20]
mov eax, 0x775a
add ecx, edx
add ebp, edx
lea ebx, [edi - 1]
lea ebp, [ebp + edi*2]
lea ebx, [ecx + ebx*4]
mov ecx, dword [ebx]
add ecx, edx
je 0x1000a458
cmp word [ecx], ax
jne 0x1000a458
add ecx, 2
mov edx, 0x1d7bf27a
cmp byte [ecx], 0
je 0x1000a433
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 1]
imul edx, edx, 0x1003f
add edx, eax
cmp byte [ecx], 0
jne 0x1000a420
movzx eax, word [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esp + esi*8 + 0x34], edx
mov eax, dword [ecx + eax*4]
mov dword [esp + esi*8 + 0x38], eax
inc esi
cmp esi, 0x203
je 0x1000a463
mov edx, dword [esp + 0x14]
mov eax, 0x775a
sub ebx, 4
sub ebp, 2
sub edi, 1
jne 0x1000a404
lea eax, [esi - 1]
mov dword [esp + 0x30], esi
xor edi, edi
test eax, eax
je 0x1000a4ba
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x1000a4b2
jmp 0x1000a480
mov ebp, dword [esp + eax*8 + 0x38]
mov ebx, dword [esp + eax*8 + 0x40]
cmp ebp, ebx
jbe 0x1000a4a8
mov edx, dword [esp + eax*8 + 0x34]
mov ecx, dword [esp + eax*8 + 0x3c]
mov dword [esp + eax*8 + 0x34], ecx
mov dword [esp + eax*8 + 0x38], ebx
mov dword [esp + eax*8 + 0x3c], edx
mov dword [esp + eax*8 + 0x40], ebp
mov esi, dword [esp + 0x30]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x1000a480
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x1000a470
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [ebx], esi
test esi, esi
je 0x1000a4df
lea edx, [ebx + 4]
lea esp, [esp]
mov eax, dword [esp + ecx*8 + 0x34]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, esi
jb 0x1000a4d0
cmp dword [ebx], 0
je 0x1000a4f1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x10118708
push edi
lock cmpxchg dword [ecx], edx
mov edx, eax
test edx, edx
jne 0x1000a9e2
push ecx
push 0x40
mov ecx, esi
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8bc
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
push eax
call edi
push ecx
mov ecx, esi
cmp eax, dword [esi + 0x14]
ja 0x1000a8d6
push eax
call fcn.10009af0
jmp 0x1000a948
add eax, 0x10
push eax
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8eb
mov eax, dword [esi]
push ecx
push eax
call edi
cmp eax, dword [esi + 0x14]
ja 0x1000a8ff
push ecx
push eax
mov ecx, esi
call fcn.10009af0
jmp 0x1000a948
xor eax, eax
mov edx, 0x14
mov dword [esp + 0x14], eax
mov ecx, 0x10046984
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x10046980
call fcn.10007600
add esp, 0xc
mov ecx, esi
call fcn.1000a7f0
push 9
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.100040e0
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x1000a994
mov edx, dword [esi + 0x14]
mov eax, esi
cmp edx, 8
jb 0x1000a95e
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000a994
cmp ecx, edx
jae 0x1000a981
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp edx, 8
jb 0x1000a978
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x1000a994
push 0x5c
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10006d30
mov eax, dword [edi]
lea ebp, [eax*2 + 4]
push ebp
call fcn.10005e10
mov ecx, eax
call fcn.10005ed0
mov ebx, eax
test ebx, ebx
je 0x1000a9f8
mov ecx, dword [edi]
add ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x1000a9bc
mov esi, dword [esi]
push ecx
push esi
mov edx, ebp
mov ecx, ebx
call fcn.10007c50
mov eax, dword [edi]
add esp, 8
mov ecx, 0x10118720
xchg dword [ecx], eax
mov eax, 0x10118708
xchg dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, 0x10118720
xor eax, eax
lock cmpxchg dword [edi], ecx
push eax
push edx
mov ecx, esi
call fcn.10004330
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ab60
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x10118560
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1000ac9a
cmp dword fs:[0xc0], eax
je 0x1000ab92
mov dword [0x1011843c], 1
mov eax, 0x8664
jmp 0x1000ab97
mov eax, 0x14c
mov dword [0x10117870], eax
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x10118444], eax
mov eax, dword [esi + 0xa8]
mov dword [0x10118448], eax
movzx edx, word [esi + 0xac]
mov dword [0x1011844c], edx
mov eax, dword [esi + 0xb0]
mov dword [0x10118450], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x1000abfc
push 0x7f
push eax
push 0x10118454
call fcn.100303d6
mov edx, dword [0x1011844c]
add esp, 0xc
jmp 0x1000ac04
xor eax, eax
mov word [0x10118454], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x10118554], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x10118556], ax
movzx eax, word [0x7ffe02d0]
mov word [0x10118558], ax
mov ecx, eax
mov byte [0x1011855a], 0
cmp byte [0x7ffe0268], 0
je 0x1000ac4b
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x1011855a], bl
cmp ebx, 1
pop ebx
jne 0x1000ac65
and ecx, 0xffef
mov word [0x10118558], cx
test edx, edx
jne 0x1000ac9a
call fcn.1000ab60
cmp dword [0x10118444], 6
ja 0x1000ac9a
jb 0x1000ac82
cmp dword [0x10118448], 4
jae 0x1000ac9a
call fcn.1000ab60
cmp dword [0x10118444], 0xa
jae 0x1000ac9a
mov dword [0x1011844c], 1
ret
Function at 0x1000be90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
push 0x30
lea eax, [esp + 0x64]
push 0
push eax
call fcn.1002cd70
xor eax, eax
add esp, 0xc
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.1000ab60
cmp dword [0x1011843c], 0
mov eax, dword [ebp + 8]
je 0x1000bf70
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x68], 0
lea edi, [esp + 0x60]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], ecx
jmp 0x1000bfb0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x40]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x10118438]
test eax, eax
je 0x1000bfd4
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x1000bfd4
add eax, 4
cmp dword [eax], 0x5afc786e
je 0x1000bfe6
inc esi
add eax, 4
cmp esi, ecx
jb 0x1000bfc4
mov ecx, 0x307
call fcn.10006110
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000bfd4
call fcn.1000ab60
cmp dword [0x1011843c], 0
je 0x1000c01d
mov eax, dword [esp + 0xc]
cdq
push edx
push eax
mov eax, edi
cdq
push edx
push eax
push 0
push 2
lea eax, [esp + 0x28]
cdq
push edx
push eax
push 4
push esi
call fcn.10001050
add esp, 0x28
jmp 0x1000c034
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push edi
push 2
push eax
push 4
push esi
call fcn.1002b060
add esp, 0x18
test eax, eax
js 0x1000bfd4
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d320
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x10118768
push edi
lock cmpxchg dword [ecx], edx
mov edx, eax
test edx, edx
jne 0x1000d461
mov ecx, 0x7ffe0030
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d350
sub ecx, edx
sar ecx, 1
cmp ecx, 2
ja 0x1000d3ba
xor eax, eax
mov edx, 0x18
mov dword [esp + 0x18], eax
mov ecx, 0x10046ec4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0x10046ec0
call fcn.10007600
lea ecx, [esp + 0x24]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d3a3
sub ecx, edx
lea eax, [esp + 0x18]
sar ecx, 1
push ecx
push eax
jmp 0x1000d3c0
push ecx
push 0x7ffe0030
mov ecx, esi
call fcn.10004330
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x10]
mov ecx, dword [ebx]
mov eax, esi
cmp edx, 8
jb 0x1000d3d8
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000d40e
cmp ecx, edx
jae 0x1000d3fb
lea eax, [ecx + 1]
mov dword [ebx], eax
mov eax, esi
cmp edx, 8
jb 0x1000d3f2
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x1000d40e
push 0x5c
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10006d30
mov eax, dword [ebx]
lea ebp, [eax*2 + 4]
push ebp
call fcn.10005e10
mov ecx, eax
call fcn.10005ed0
mov edi, eax
test edi, edi
je 0x1000d477
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx]
lea eax, [ecx + ecx]
jb 0x1000d437
mov esi, dword [esi]
test eax, eax
je 0x1000d44b
push eax
push esi
mov edx, ebp
mov ecx, edi
call fcn.1000acc0
mov ecx, dword [ebx]
add esp, 8
mov eax, 0x10118778
xchg dword [eax], ecx
mov eax, 0x10118768
xchg dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, 0x10118778
xor eax, eax
lock cmpxchg dword [edi], ecx
push eax
push edx
mov ecx, esi
call fcn.10004330
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret