joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aba50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13c000]
push edi
or ebp, 0xffffffff
jmp 0x5aba72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5aba79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5aba68
mov eax, 1
add ebx, ebx
jne 0x5aba8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5aba80
jne 0x5aba9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5aba80
xor ecx, ecx
sub eax, 3
jb 0x5abab0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5abb22
mov ebp, eax
add ebx, ebx
jne 0x5ababb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5abac8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5abaec
inc ecx
add ebx, ebx
jne 0x5abad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5abacd
jne 0x5abae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5abacd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5abb0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5abafd
jmp 0x5aba6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5abb0c
add edi, ecx
jmp 0x5aba6e
pop esi
mov edi, esi
mov ecx, 0x9001
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5abb2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5abb2f
lea edi, [esi + 0x17b000]
mov eax, dword [edi]
or eax, eax
je 0x5abb97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ab4d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ab644]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5abb55
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ab64c]
or eax, eax
je 0x5abb91
mov dword [ebx], eax
add ebx, 4
jmp 0x5abb72
call dword [esi + 0x1ab648]
mov ebp, dword [esi + 0x1ab650]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x48f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5abbcb
sub esp, 0xffffff80
jmp 0x4e6b1c
Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x409ea0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
Function at 0x415d04
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415d2c
Function at 0x420998
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c5283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.004246f2
pop ecx
push eax
call fcn.00424520
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x455d9b
lea ecx, [ebp - 0x18]
call fcn.00405ac4
mov ecx, edi
call fcn.00409843
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00405a21
push dword [ebp - 0x18]
push 0x491d28
push esi
call fcn.004248f1
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x455dbb
lea ecx, [ebp - 0x18]
call fcn.00405910
mov edi, dword [ebp - 8]
push esi
call fcn.00424ab6
pop ecx
cmp ebx, 0xffffffff
je 0x420a36
push ebx
push esi
call fcn.004246f2
pop ecx
push eax
call fcn.00424520
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
push 0x4000
jmp 0x420a1e
push esi
mov ecx, edi
call fcn.00468764
push eax
push 1
call fcn.00468721
push eax
call fcn.0042486f
add esp, 0x10
mov edi, eax
jmp 0x420a11
mov ecx, edi
call fcn.00409843
mov eax, dword [edi + 8]
push dword [eax]
call dword [0x48f248]
jmp 0x420a06
Function at 0x45f749
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420dc2
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e4c
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x45f7a4
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45f79b
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x464a9f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c52b7], 0
mov ebx, edx
test edi, edi
je 0x464af1
mov byte [0x4c52b8], 1
call dword [0x48f180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x464f75
push ecx
push ecx
call fcn.00423e9a
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x48f6b8]
mov edi, eax
test esi, esi
je 0x464b1c
push 0xffffffffffffffff
push esi
mov byte [0x4c52b8], 0
call dword [0x48f16c]
push esi
call dword [0x48f35c]
cmp byte [0x4c52b7], 1
jne 0x464b2a
or eax, 0xffffffff
jmp 0x464b2c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4687ae
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c3190]
jne 0x4687bb
call fcn.00468895
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4687f3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c3190]
jne 0x468805
call fcn.00468895
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468848
fadd qword [0x4b9e48]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4b9e20]
mov esp, ebp
pop ebp
ret

Function at 0x468858
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4c6530], ecx
inc esi
mov ecx, 0x4c6530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x4c6eec
jl 0x468869
mov dword [0x4c3190], esi
mov dword [0x4c6518], esi
pop esi
ret
Function at 0x468895
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c6518], 0
push esi
push edi
mov esi, 0x4c6530
jne 0x4688b4
push 0
call fcn.00425216
pop ecx
mov ecx, eax
call fcn.00468858
mov dword [0x4c3190], 0x270
mov edi, 0xe3
mov dword [0x4c6ef0], esi
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0x4688c9
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0x4688fe
mov ecx, dword [0x4c6530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret

Function at 0x468d9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x468dc2
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420e4c
add esp, 0xc
jmp 0x468dd5
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004255ee
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4b886c
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.0042569c
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x468eab
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x468ec1
cmp eax, ecx
jne 0x468edc
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.004255ee
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x468ef4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x468f3b
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.0042486f
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x468f41
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x468f69
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.0042486f
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x469115
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00468f6b
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.00468fb1
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x469159
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004690e9
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x469143
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4722fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x472309
pop ebp
jmp fcn.004723ca
pop ebp
jmp fcn.0047230f

Function at 0x4726a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x4726e5
cmp byte [ebp + 8], 0
je 0x4726e5
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00471746
push esi
push 0
push 0x47276c
call fcn.00425cd8
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x4726ed
push dword [ebp + 8]
call fcn.0047191a
pop esi
pop ebp
ret 4
Function at 0x40631d
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x4cdb45
call fcn.004bc0f4
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x4e8264
xor ebx, ebx
push 1
push ebx
push 0x4e8254
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4063d3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x4063c7
mov eax, dword [0x6cfe50]
cmp byte [eax + 0x1a1], bl
jne 0x4063d3
push 0x4f1b58
lea ecx, [ebp + 8]
call fcn.00401072
push esi
lea eax, [ebp - 0x18]
push str.get_LocalPolicy_failed:_0x_08lx_n
push eax
mov dword [ebp - 4], ebx
call fcn.0048cfd0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 5
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.0042a430
add esp, 0x24
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00401028
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401028
jmp 0x4063d3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4063e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4063ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4076ba
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cdd64
call fcn.004bc0f4
sub esp, 0x428
mov eax, dword [0x6cda48]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
test ecx, ecx
je 0x4076e9
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
call dword [eax + 0x318]
push ebx
push esi
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push esi
lea eax, [ebp - 0x414]
push str.LogFiles
push eax
call fcn.004bd190
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 8]
call fcn.00401072
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004a0a40
mov bl, al
neg bl
pop ecx
sbb bl, bl
lea ecx, [ebp + 8]
inc bl
mov byte [ebp - 4], 0
call fcn.00401028
test bl, bl
mov edi, 0x1ff
je 0x407779
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 8]
call fcn.00401072
lea eax, [ebp + 8]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0049fc70
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00401028
push esi
lea eax, [ebp - 0x414]
push str.PunkBuster
push eax
call fcn.004bd190
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 8]
call fcn.00401072
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.004a0a40
mov bl, al
neg bl
pop ecx
sbb bl, bl
lea ecx, [ebp + 8]
inc bl
mov byte [ebp - 4], 0
call fcn.00401028
test bl, bl
je 0x4077ee
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 8]
call fcn.00401072
lea eax, [ebp + 8]
push edi
push eax
mov byte [ebp - 4], 4
call fcn.0049fc70
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00401028
push esi
lea eax, [ebp - 0x414]
push str.pbsvc.log
push eax
call fcn.004bd190
add esp, 0xc
push 0x4e9340
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0049d550
cmp dword [ebp - 0x41c], 0
pop edi
pop esi
mov byte [ebp - 4], 5
pop ebx
je 0x407887
lea eax, [ebp - 0x434]
push eax
call fcn.00401af3
and dword [ebp - 0x428], 0
pop ecx
mov dword [ebp - method.wxConvAuto.virtual_0], vtable.wxConvAuto.0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 6
call fcn.00406b6c
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.00406ae7
lea ecx, [ebp - 0x41c]
call fcn.0049d3a0
lea ecx, [ebp - 0x41c]
call fcn.0049d240
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0
call fcn.00406b96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401028
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004bc19b
leave
ret
Function at 0x40906b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6cda48]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4090d1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4090c8
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.004bc19b
leave
ret
Function at 0x4090df
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], esi
jge 0x4090f5
xor eax, eax
jmp 0x40929b
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40911b
xor eax, eax
jmp 0x40929a
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x409114
push edi
push 2
pop edi
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x409175
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x409175
push dword [ebp + 0xc]
push str.Could_not_enable_SeDebugPrivilege
push dword [ebp + 8]
call fcn.004bc810
add esp, 0xc
xor eax, eax
jmp 0x409299
lea eax, [ebp - 0x10]
push eax
push str.SeLoadDriverPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40916e
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x4091b9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4091b9
push dword [ebp + 0xc]
push str.Could_not_enable_SeLoadDriverPrivilege
jmp 0x409163
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40916e
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x409200
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x409200
push dword [ebp + 0xc]
push str.Could_not_enable_SeSecurityPrivilege
jmp 0x409163
lea eax, [ebp - 0x10]
push eax
push str.SeProfileSingleProcessPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40916e
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x40924b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40924b
push dword [ebp + 0xc]
push str.Could_not_enable_SeProfileSingleProcessPrivilege
jmp 0x409163
lea eax, [ebp - 0x10]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40916e
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x409296
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x409296
push dword [ebp + 0xc]
push str.Could_not_enable_SeSystemEnvironmentPrivilege
jmp 0x409163
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret