joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560ea4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], vtable.CFont.0
mov byte [ebp - 4], 1
call fcn.00427b27
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40910d
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 2
call fcn.00427b27
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40913a
push 0x80004005
call fcn.00405090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x68], eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
push 0x7f00
mov byte [ebp - 4], 4
push edi
mov dword [esi + 0x54], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
push str.CPic
lea ecx, [esi + 0x68]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.00404f50
push 0x593d1c
push 0x20
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x190
push edi
mov eax, 1
push edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov eax, 0xffffff
push edi
push 0xfffffffffffffff2
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esi + 0x3c]
call fcn.00434910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e1d0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40e36e
test eax, eax
je 0x40e36e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x592268]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x592668]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x591e68]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x591a68]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x591a30
jmp 0x40e2e0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x592668]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x592268]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x591a68]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x591e68]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x591a54
jne 0x40e2e0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x40e380
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0040e1d0
test eax, eax
js 0x40e5c7
mov edx, dword [edi + 0xf0]
add edx, edx
push ebx
push esi
add edx, edx
xor esi, esi
test edx, edx
jle 0x40e3ef
lea ecx, [edi + edx*4 + 8]
lea eax, [edi + 8]
nop
mov ebx, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebx
mov ebx, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x40e3b0
mov edi, dword [ebp + 8]
mov edx, 1
cmp dword [edi + 0xf0], edx
jle 0x40e5c3
lea eax, [edi + 2]
jmp 0x40e410
mov ecx, dword [eax + 0xe]
movzx ebx, byte [eax + 0xf]
mov ebx, dword [ebx*4 + 0x591e68]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x591e68]
and esi, 0xff
mov esi, dword [esi*4 + 0x592a68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x591e68]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x593668]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x591e68]
movzx ebx, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x592e68]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov ebx, dword [ebx*4 + 0x591e68]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x591e68]
and esi, 0xff
mov esi, dword [esi*4 + 0x592a68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
movzx ebx, byte [eax + 4]
mov ebx, dword [ebx*4 + 0x591e68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x592e68]
movzx ebx, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x591e68]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x593668]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov ebx, dword [ebx*4 + 0x591e68]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x591e68]
and esi, 0xff
mov esi, dword [esi*4 + 0x592a68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
movzx ebx, byte [eax + 8]
mov ebx, dword [ebx*4 + 0x591e68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x592e68]
movzx ebx, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x591e68]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x593668]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov ebx, dword [ebx*4 + 0x591e68]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x591e68]
and esi, 0xff
mov esi, dword [esi*4 + 0x592a68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
movzx ebx, byte [eax + 0xc]
mov ebx, dword [ebx*4 + 0x591e68]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x591e68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x592e68]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x593668]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [edi + 0xf0]
jl 0x40e410
pop esi
xor eax, eax
pop ebx
pop edi
pop ebp
ret
Function at 0x40f150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0x10
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
mov edx, eax
mov esi, ecx
mov dword [ebp - 4], edx
jb 0x40f1b9
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 8], eax
mov ecx, edi
sub edx, esi
mov eax, esi
sub ecx, esi
mov dword [ebp - 4], 4
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec dword [ebp - 4]
mov dword [ecx + eax - 4], ebx
jne 0x40f183
mov eax, dword [ebp + 0xc]
push eax
push edi
push edi
call fcn.0040e5d0
sub dword [ebp + 8], 0x10
mov edx, edi
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec dword [ebp - 8]
mov dword [ebp - 4], edx
jne 0x40f174
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], 0
je 0x40f2bb
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, 1
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, 2
sub ecx, esi
mov dword [ebp - 0x14], ecx
mov ebx, edx
sub ebx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
jmp 0x40f1f6
mov ebx, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x40f268
lea ecx, [eax + esi]
mov dl, byte [ebx + ecx]
xor dl, byte [ecx]
mov ebx, dword [ebp - 0xc]
mov byte [ebx + ecx], dl
mov edx, dword [ebp - 0x10]
add edx, ecx
cmp edx, dword [ebp + 8]
jae 0x40f25a
mov dl, byte [esi + eax + 1]
mov ebx, dword [ebp - 4]
xor dl, byte [eax + ebx + 1]
mov byte [edi + eax + 1], dl
mov edx, dword [ebp - 0x14]
add edx, ecx
cmp edx, dword [ebp + 8]
mov edx, ebx
jae 0x40f260
mov bl, byte [esi + eax + 2]
xor bl, byte [eax + edx + 2]
mov byte [edi + eax + 2], bl
mov ebx, dword [ebp - 0x18]
add ebx, ecx
cmp ebx, dword [ebp + 8]
jae 0x40f265
mov cl, byte [esi + eax + 3]
xor cl, byte [eax + edx + 3]
add eax, 4
mov byte [edi + eax - 1], cl
cmp eax, 0x10
jb 0x40f1f3
jmp 0x40f289
mov edx, dword [ebp - 4]
inc eax
jmp 0x40f268
add eax, 2
jmp 0x40f268
add eax, 3
cmp eax, 0x10
jae 0x40f289
mov ebx, 0x10
sub edx, edi
lea ecx, [eax + edi]
sub ebx, eax
lea esp, [esp]
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec ebx
jne 0x40f280
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push edi
call fcn.0040e5d0
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, edi
mov dword [ebp - 4], edx
cmp eax, 0x10
jbe 0x40f2b8
sub eax, 0x10
add esi, 0x10
add edi, 0x10
mov dword [ebp + 8], eax
test eax, eax
jne 0x40f1c3
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
pop edi
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
pop esi
mov dword [eax + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fbc0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f762
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov byte [esi + 0x38], al
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x84], ecx
mov dword [esi + 0x80], eax
mov byte [esi + 0x70], al
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x9c], eax
mov byte [esi + 0x8c], al
push eax
push 0x5952c3
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x1c]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x38]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x54]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x70]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x8c]
call fcn.00403690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fcb0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f6fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov byte [esi + 0x38], al
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x84], ecx
mov dword [esi + 0x80], eax
mov byte [esi + 0x70], al
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x9c], eax
mov byte [esi + 0x8c], al
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xb8], eax
mov byte [esi + 0xa8], al
mov dword [esi + 0xd8], ecx
mov dword [esi + 0xd4], eax
mov byte [esi + 0xc4], al
push eax
push 0x5952c3
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x1c]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x38]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x54]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x70]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0x8c]
call fcn.00403690
push 0
push 0x5952c3
lea ecx, [esi + 0xc4]
mov dword [esi + 0xe0], 0
call fcn.00403690
push 6
push 0x5952bc
lea ecx, [esi + 0xa8]
call fcn.00403690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411720
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560ae0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx]
cmp dword [eax - 4], 1
mov dword [ebp - 0xbc], edi
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
jle 0x4117ac
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, ebx
call fcn.00404db0
mov esi, dword [ebx]
mov eax, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4117c1
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403690
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4117e3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0xb4]
call fcn.00414790
lea edi, [ebp - 0x48]
mov eax, esi
call fcn.00415220
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], edi
jb 0x41180e
mov edx, dword [eax]
jmp 0x411810
mov edx, eax
test edx, edx
jne 0x411818
xor eax, eax
jmp 0x411829
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411820
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00404f50
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x411847
mov edx, dword [ebp - 0x48]
push edx
call fcn.00427ab5
add esp, 4
mov ecx, ebx
call fcn.004033d0
push eax
mov ecx, ebx
call fcn.00404960
mov ebx, dword [ebx]
sub ebx, edi
push ebx
call fcn.00404ce0
mov esi, dword [ebp - 0xb8]
add eax, edi
add esp, 4
mov dword [esi], eax
cmp dword [ebp - 0x18], edi
jb 0x41187e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00427ab5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret 4
Function at 0x415840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x415961
cmp byte [edi + 0x49], bl
je 0x415961
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x415955
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4158b5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4158cd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4158f6
dec eax
je 0x4158fa
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x415950
jmp 0x41595c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41590a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x415933
cmp ebx, 0x10
jae 0x415919
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00528b3a
add esp, 0x10
cmp esi, eax
jne 0x41594d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x415959
test esi, esi
jne 0x4158c1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00415250
jmp 0x4158bb
lea ecx, [ebp - 0x2c]
call fcn.00403660
xor al, al
jmp 0x415963
lea ecx, [ebp - 0x2c]
call fcn.00403660
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4168a6
lea ecx, [ebp - 0x20]
push ecx
push 0x590c0c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4168b6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x416904
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
Function at 0x416920
Capabilities:
Extract resource via kernel32 functions
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5622df
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push 0x66
mov ecx, esi
call fcn.00432bdc
lea eax, [esi + 0xbc]
mov dword [ebp - 4], edi
push eax
mov dword [esi], vtable.CNewWujiDlg.0
call fcn.00423640
lea ecx, [esi + 0x2d68]
push ecx
mov byte [ebp - 4], 1
call fcn.004010c0
lea edx, [esi + 0x2db4]
push edx
mov byte [ebp - 4], 2
call fcn.0040fdf0
lea eax, [esi + 0x2ec8]
mov dword [0x5ca5f4], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
call fcn.0042a532
call fcn.0042a532
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0xb8], eax
call fcn.0042a532
mov edi, dword [eax + 0xc]
push 0x590c20
push 0xa2
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x14]
push ecx
push edi
push eax
call fcn.0052f500
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x10]
push 0x10
mov dword [ebp - 0x14], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x416a66
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
jmp 0x416a68
xor edi, edi
push ebx
mov dword [esi + 0x2ef0], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4182e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x418317
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527d0f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push 0x5911f0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x418307
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.00527d0f
mov esp, ebp
pop ebp
ret