joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e2cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55378b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e37d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e366
test esi, esi
jbe 0x41e37d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040888c
test eax, eax
jne 0x41e358
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e37d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e335
jmp 0x41e37d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e37d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553792
ret
Function at 0x41ebdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x55418b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cb8
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ec17
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ec30
lea eax, [ebp - 0x10]
mov edx, dword [0x56a194]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d18
jmp 0x41ec43
lea eax, [ebp - 0x10]
mov edx, dword [0x56a194]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d18
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ec4f
adc edx, 0
mov edx, dword [edx*4 + 0x568cac]
call fcn.00404f08
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
call fcn.00406adc
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed5d
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ed50
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d7c
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ed50
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ed50
cmp dx, 0x150
ja 0x41ed50
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ed50
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cf4
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a94
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00405014
jne 0x41ed75
inc ebx
cmp ebx, 0x19
jne 0x41ec09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554192
lea eax, [ebp - 0x10]
call fcn.00404cb8
ret
Function at 0x46c170
Capabilities:
Authenticate hmac
Encode data using xor
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
jb 0x46c1ba
push eax
outsw dx, word [esi]
ja 0x46c1cb
mov al, byte [0x4e753754]
pop eax
dec eax
push edi
dec edi
pop edx
mov edx, 0x63dbe1a3
pop edx
mov dl, 0x6a
dec esi
inc ecx
pop eax
bound edx, qword [eax + 0x52]
push edx
adc ah, byte [ecx + 0x58]
dec esi
or byte [esi + 0x54], dh
lodsb al, byte [esi]
xor byte [esi + 0x76], cl
push edx
das
mov edx, 0xa0ba5455
retf
stosb byte es:[edi], al
aaa
js 0x46c209
pop edx
inc esi
std
fbld tbyte [eax + eax*8]
push ebp
outsd dx, dword [esi]
mov al, byte [0x6148774b]
dec eax
popal
inc ebp
inc edx
imul ebx, dword ss:[ecx + 0x69], 0x137f15c3
xchg esp, eax
push ss
inc ebx
dec eax
insd dword es:[edi], dx
dec ebp
das
push eax
dec edx
xor byte [eax + 0x69], bl
insb byte es:[edi], dx
fisub dword [eax + 0x346bb6ea]
xor eax, 0x60695196
imul ebp, dword [edx + 0x46], 0xdd464c80
rcl dword [esi]
push esi
dec ebx
pop esi
jno 0x46c18f
push edi
outsd dx, dword [esi]
jmp 0x479785
arpl word [ecx + 0x5a], bx
sub ebp, dword [ecx + 0x2f]
push edx
push edi
xchg esi, eax
inc esp
push 0x78497841
push eax
inc edi
outsd dx, dword [esi]
bound edx, qword [eax + 0x60]
test al, 0xba
sbb bl, byte [eax + 0x46]
inc edi
xor ch, byte [esi - 0x44]
invalid
Function at 0x471a50
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10055510]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055710]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055910]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10055b10]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10055610]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055810]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055a10]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10055c10]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10055510]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055710]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055910]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10055b10]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10055610]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055810]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10055a10]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10055c10]
xor esi, ebx
dec edi
jne 0x471a72
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4150b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4150de
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4150e5
cmp ebx, dword [eax + 4]
jae 0x4150e5
xor eax, eax
jmp 0x4152d5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4150f6
xor eax, eax
inc eax
jmp 0x4152d4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41510c
cmp ecx, edx
jae 0x415251
cmp dword [eax + 4], 0
je 0x415115
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4150fd
cmp dword [ebp + 8], 0
je 0x415137
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415251
cmp eax, esi
jae 0x415251
mov eax, dword [0x463fd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41515c
cmp dword [esi*4 + 0x463fe0], edi
je 0x415255
inc esi
cmp esi, eax
jl 0x41514a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x44a13c]
test eax, eax
je 0x4152d1
cmp dword [ebp - 8], 0x1000000
jne 0x4152d1
test byte [ebp - 0xc], 0xcc
je 0x4151da
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4152d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4152d1
cmp word [eax + 0x18], 0x10b
jne 0x4152d1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4152d1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4151da
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4151da
test byte [ecx + 0x27], 0x80
jne 0x415251
push 1
push 0x464020
call dword [fcn.0044a364]
test eax, eax
jne 0x4150ee
mov ecx, dword [0x463fd8]
test ecx, ecx
mov edx, ecx
jle 0x41520e
lea eax, [ecx*4 + 0x463fdc]
cmp dword [eax], edi
je 0x41520e
dec edx
sub eax, 4
test edx, edx
jg 0x415202
test edx, edx
jne 0x41523f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41521b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415233
lea eax, [edx*4 + 0x463fe0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415221
cmp ecx, 0x10
jge 0x41523f
inc ecx
mov dword [0x463fd8], ecx
push 0
push 0x464020
call dword [fcn.0044a364]
jmp 0x4150ee
xor eax, eax
jmp 0x4152d4
test esi, esi
jle 0x4150ee
mov ebx, dword [fcn.0044a364]
push 1
push 0x464020
call ebx
test eax, eax
jne 0x4150ee
cmp dword [esi*4 + 0x463fe0], edi
je 0x4152ab
mov eax, dword [0x463fd8]
lea esi, [eax - 1]
test esi, esi
jl 0x415299
cmp dword [esi*4 + 0x463fe0], edi
je 0x415295
dec esi
jns 0x415289
test esi, esi
jge 0x4152a9
cmp eax, 0x10
jge 0x4152a4
inc eax
mov dword [0x463fd8], eax
lea esi, [eax - 1]
jmp 0x4152ab
je 0x4152c3
xor ecx, ecx
test esi, esi
jl 0x4152c3
lea eax, [ecx*4 + 0x463fe0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4152b1
push 0
push 0x464020
call ebx
jmp 0x4150ee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472582
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x47259f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x472590
add dl, dl
jne 0x4725aa
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4725f6
xor eax, eax
add dl, dl
jne 0x4725b7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x472693
add dl, dl
jne 0x4725c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4725d1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4725dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4725e7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4725f1
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x472596
mov eax, 1
add dl, dl
jne 0x472604
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x47260f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4725fb
sub eax, 2
jne 0x47263e
mov ecx, 1
add dl, dl
jne 0x472624
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x47262f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x47261b
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x472596
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x472655
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x472660
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x47264c
cmp eax, 0x7d00
jae 0x472683
cmp eax, 0x500
jb 0x47267e
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x472596
cmp eax, 0x7f
ja 0x472686
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x472596
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4726af
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x472596
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
push 0x1036
push 0x40e928
call fcn.00404153
mov al, byte [0x4113e8]
add esp, 0x10
test al, al
mov byte [0x40f95d], 0
jne 0x40111f
push 0x4113e8
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov al, byte [0x4113e8]
test al, al
je 0x401082
mov eax, 0x4113e8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401057
sub eax, edx
cmp byte [eax + 0x4113e7], 0x5c
je 0x401082
mov edi, 0x4113e8
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401070
mov dx, word [0x40b2b8]
mov word [edi], dx
mov edi, 0x4113e8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401088
mov eax, dword [str.LogFiles]
mov ecx, dword [0x40b2b0]
mov dl, byte [0x40b2b4]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x4113e8
mov byte [edi + 8], dl
call fcn.0040abea
mov edi, 0x4113e8
add esp, 4
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010c0
mov eax, dword [str.PunkBuster]
mov ecx, dword [0x40b2a4]
mov edx, dword [0x40b2a8]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x4113e8
mov dword [edi + 8], edx
call fcn.0040abea
mov edi, 0x4113e8
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010f4
mov eax, dword [str.PnkBstrA.log]
mov ecx, dword [0x40b294]
mov edx, dword [0x40b298]
mov dword [edi], eax
mov ax, word [0x40b29c]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov word [edi + 0xc], ax
lea ecx, [esp + 8]
push ecx
call fcn.0040411a
lea edx, [esp + 0xc]
push edx
call fcn.00403f9a
push 0x40b28c
push 0x4113e8
mov esi, eax
call fcn.00403f87
mov edi, eax
add esp, 0x10
test edi, edi
je 0x401221
push 2
push 0
push edi
call fcn.00403ecf
push edi
call fcn.00403d76
add esp, 0x10
cmp eax, 0x19000
jle 0x4011c2
push edi
call fcn.00403d20
push 0x4113e8
call fcn.00403cf6
push 0x40b28c
push 0x4113e8
call fcn.00403f87
mov edi, eax
add esp, 0x10
test edi, edi
je 0x401221
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x10]
add eax, 0x76c
push eax
push ecx
inc edx
push edx
push str.__02u._02u._04u__02u:_02u:_02u__Log_File_emptied_due_to_size_r_n
push edi
call fcn.00403cc4
add esp, 0x20
mov ax, word [esp + 0x10]
cmp ax, 1
jne 0x4011d4
mov eax, str.ERROR:
jmp 0x4011e4
cmp ax, 2
mov eax, str.WARNING:
je 0x4011e4
mov eax, 0x40b20c
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push 0x40e928
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x10]
add eax, 0x76c
push eax
push ecx
inc edx
push edx
push str.__02u._02u._04u__02u:_02u:_02u___s_s_r_n
push edi
call fcn.00403cc4
push edi
call fcn.00403c13
push edi
call fcn.00403d20
add esp, 0x30
pop edi
pop esi
pop ecx
ret
Function at 0x403370
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push str.Attempting_unload_of_pnkbstrb._n
push 4
call section..text
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4033ac
push str.Failed_to_open_Service_Manager
push 1
call section..text
add esp, 8
pop edi
add esp, 0x1c
ret
push ebx
push esi
push 0xf01ff
push str.PnkBstrB
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4033ff
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [esp + 0x24]
cmp eax, 0x1388
jle 0x4033e9
mov eax, 0x1388
add eax, 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x403410
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40342e
add esp, 0x14
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call ebp
test eax, eax
jne 0x40344c
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 0
push 0
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
mov ebx, 1
mov edi, 2
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x403493
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403493
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x14
ret
lea ecx, [esp + 0x18]
push ecx
push str.SeLoadDriverPrivilege
push 0
call ebp
test eax, eax
je 0x403489
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x4034cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403489
lea ecx, [esp + 0x18]
push ecx
push str.SeSecurityPrivilege
push 0
call ebp
test eax, eax
je 0x403489
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x40350f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403489
lea ecx, [esp + 0x18]
push ecx
push str.SeProfileSingleProcessPrivilege
push 0
call ebp
test eax, eax
je 0x403489
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x403553
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403489
lea ecx, [esp + 0x18]
push ecx
push str.SeSystemEnvironmentPrivilege
push 0
call ebp
test eax, eax
je 0x403489
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
call esi
test eax, eax
je 0x403597
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403489
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
add esp, 0x14
ret
Function at 0x4047d6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40c000
call fcn.00406650
mov edi, 0x94
mov eax, edi
call fcn.00408300
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x411550], ecx
mov eax, dword [esi + 4]
mov dword [0x41155c], eax
mov edx, dword [esi + 8]
mov dword [0x411560], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x411554], esi
cmp ecx, 2
je 0x404836
or esi, 0x8000
mov dword [0x411554], esi
shl eax, 8
add eax, edx
mov dword [0x411558], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40486f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40486f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404887
cmp eax, 0x20b
je 0x404874
mov dword [ebp - 0x1c], edi
jmp 0x40489b
cmp dword [ecx + 0x84], 0xe
jbe 0x40486f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x404895
cmp dword [ecx + 0x74], 0xe
jbe 0x40486f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004068df
pop ecx
test eax, eax
jne 0x4048c7
cmp dword [0x411534], 2
je 0x4048b4
call fcn.00407ccc
push 0x1c
call fcn.00407b54
push 0xff
call fcn.004056c7
pop ecx
pop ecx
call fcn.0040826d
mov dword [ebp - 4], edi
call fcn.00405862
test eax, eax
jge 0x4048e0
push 0x1b
call fcn.004047b1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412bc4], eax
call fcn.0040814b
mov dword [0x41152c], eax
call fcn.004080a9
test eax, eax
jge 0x404906
push 8
call fcn.004047b1
pop ecx
call fcn.00407e76
test eax, eax
jge 0x404917
push 9
call fcn.004047b1
pop ecx
push 1
call fcn.004056f7
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40492d
push eax
call fcn.004047b1
pop ecx
mov eax, dword [0x411570]
mov dword [0x411574], eax
push eax
push dword [0x411568]
push dword [0x411564]
call fcn.00403b40
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40495c
push esi
call fcn.00405822
call fcn.00405844
jmp 0x40498e
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040668b
ret
Function at 0x40499d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40e084]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x411a84]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x404b3f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x411aa0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x404b3f
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x404a13
xor eax, eax
jmp 0x404b53
test al, 0x20
je 0x404a26
push 2
push 0
push 0
push ecx
call fcn.0040833d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404abb
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x404b1c
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x404a80
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404a71
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404a53
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ae0
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x404ae9
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x404a48
jmp 0x404ae9
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ae0
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x404ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x404b3a
cmp dword [ebp - 0x68], eax
je 0x404b19
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x404b0e
mov dword [0x411544], 9
mov dword [0x411548], eax
jmp 0x404b50
push dword [ebp - 0x68]
call fcn.0040558a
pop ecx
jmp 0x404b50
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404b2e
cmp byte [edi], 0x1a
je 0x404a0c
mov dword [0x411544], 0x1c
jmp 0x404b49
sub eax, dword [ebp - 0x7c]
jmp 0x404b53
mov dword [0x411544], 9
and dword [0x411548], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404231
add ebp, 0x3a4
leave
ret
Function at 0x405761
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x411590], esi
push edi
jne 0x405781
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41158c], esi
mov byte [0x411588], al
jne 0x4057e7
mov ecx, dword [0x411ba8]
test ecx, ecx
je 0x4057c8
mov eax, dword [0x411ba4]
sub eax, 4
cmp eax, ecx
jmp 0x4057c1
mov eax, dword [eax]
test eax, eax
je 0x4057b3
call eax
mov eax, dword [0x411ba4]
sub eax, 4
cmp eax, dword [0x411ba8]
mov dword [0x411ba4], eax
jae 0x4057ab
mov eax, 0x40e020
mov esi, 0x40e028
cmp eax, esi
mov edi, eax
jae 0x4057e7
mov eax, dword [edi]
test eax, eax
je 0x4057e0
call eax
add edi, 4
cmp edi, esi
jb 0x4057d8
mov eax, 0x40e02c
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x405806
mov eax, dword [edi]
test eax, eax
je 0x4057ff
call eax
add edi, 4
cmp edi, esi
jb 0x4057f7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405820
push dword [ebp + 8]
mov dword [0x411590], 1
call fcn.004056c7
pop ebp
ret