joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435fd8
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x454a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], 0x461778
call fcn.00447106
push 4
mov dword [esp + 0x20], 0
call fcn.00448558
mov edi, eax
add esp, 4
test edi, edi
je 0x436056
call fcn.00447513
mov dword [edi], eax
call fcn.00447341
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00447663
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43604b
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044768b
jmp 0x436058
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x436728
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x456e50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46c340]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436778
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.0041a798
push edi
lea esi, [esp + 0x14]
mov dword [esp + 0x58], ebx
call fcn.004365c8
add esp, 4
mov ecx, esi
push ecx
push ebp
mov byte [esp + 0x5c], 1
call fcn.00437b08
add esp, 8
cmp dword [esp + 0x28], 0x10
mov esi, eax
jb 0x4367cb
mov edx, dword [esp + 0x14]
push edx
call fcn.0044849d
add esp, 4
cmp dword [esp + 0x44], 8
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x4367ef
mov eax, dword [esp + 0x30]
push eax
call fcn.0044849d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004484a8
add esp, 0x48
ret
Function at 0x439ca8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456d90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov eax, dword [0x46eba0]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x46eba0
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], esi
mov eax, dword [0x46eba0]
mov edx, dword [eax + 0xc]
mov ecx, 0x46eba0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, 0x46fbd0
mov byte [esp + 0x38], 1
mov dword [esp + 0x20], ebx
call fcn.0043a5c8
cmp ebp, esi
je 0x43a061
xor edi, edi
xor eax, eax
mov dword [esp + 0x2c], eax
test edi, edi
je 0x439d4a
cmp word [eax + ebp - 2], 0
je 0x43a059
movzx eax, word [eax + ebp]
cmp esi, 6
ja 0x439f9c
jmp dword [esi*4 + 0x4261e0]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
add eax, 2
jmp 0x439d36
mov dword [esp + 0x28], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a0ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x43e858
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x46c340]
xor eax, esp
mov dword [esp + 0x5c], eax
push 0x58
lea eax, [esp + 4]
push 0
push eax
call fcn.0044f1a8
mov eax, dword [esp + 0x70]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.0043e8d8
add esp, 0x10
mov edx, esi
lea ecx, [esp]
call fcn.0043e978
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004484a8
add esp, 0x60
ret
Function at 0x43ff88
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4575b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x78], ebx
jne 0x43ffc9
cmp dword [esp + 0x7c], 0x10
jmp 0x440120
lea eax, [ebp + 0xb4]
push eax
mov dword [esp + 0x18], eax
call dword [fcn.00459098]
mov cl, byte [ebp + 0x4d]
cmp cl, 1
jne 0x43fff7
cmp dword [esp + 0x7c], 0x10
jb 0x44012f
mov edx, dword [esp + 0x68]
push edx
jmp 0x440127
lea eax, [esp + 0x64]
push eax
mov edi, 0x462134
lea esi, [esp + 0x1c]
mov byte [ebp + 0x4d], 1
call fcn.00441658
add esp, 4
push 0xffffffffffffffff
push ebx
lea esi, [ebp + 0x7c]
push eax
mov ecx, esi
mov byte [esp + 0x64], 1
call fcn.00419bb8
mov edi, 0x10
mov byte [esp + 0x58], bl
cmp dword [esp + 0x30], edi
jb 0x440040
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044849d
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x18], edi
jb 0x44005a
mov esi, dword [esi + 4]
jmp 0x44005d
add esi, 4
push esi
push ebx
push 0x462140
push 0x462104
call dword [0x45915c]
test eax, eax
lea eax, [esp + 0x64]
setne dl
push eax
mov edi, 0x462148
lea esi, [esp + 0x38]
mov byte [ebp + 0x4e], dl
call fcn.00441658
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x98]
mov byte [esp + 0x64], 2
call fcn.00419bb8
mov edi, 0x10
mov byte [esp + 0x58], bl
cmp dword [esp + 0x4c], edi
jb 0x4400bd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044849d
add esp, 4
push 0x4000
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0044714e
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], ebx
push 0x4000
call fcn.0044714e
mov dword [ebp + 0x50], eax
add esp, 8
mov esi, ebp
mov dword [ebp + 0x54], ebx
call fcn.0043fd38
cmp dword [ebp + 0x48], ebx
jne 0x440111
push ebx
push ebx
push ebx
push 0x42c260
push ebx
push ebx
call fcn.0044b68f
add esp, 0x18
mov dword [ebp + 0x48], eax
mov edx, dword [esp + 0x14]
push edx
call dword [fcn.00459078]
cmp dword [esp + 0x7c], edi
jb 0x44012f
mov eax, dword [esp + 0x68]
push eax
call fcn.0044849d
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
Function at 0x4408c8
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, edx
test ecx, ecx
je 0x4408f6
push ecx
mov ecx, dword [edi*4 + 0x46d318]
push ebx
push ecx
mov ecx, ebp
mov edi, eax
call fcn.00440718
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov dl, byte [eax + 0x4d]
test dl, dl
je 0x440910
push 0
push ebp
push edi
mov edi, eax
call fcn.00440968
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
lea eax, [ebx + 0x10]
push eax
call fcn.00448a21
add esp, 4
mov esi, eax
push ebx
lea ecx, [esi + 0xc]
push ebp
push ecx
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
call fcn.0044edf8
add esp, 0xc
push 0
push 0
push esi
push 0x42c260
push 0
push 0
call fcn.0044b68f
add esp, 0x18
push eax
call dword [fcn.004590a4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x441268
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457dd0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x30], ebx
je 0x4412e1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00419bb8
push ecx
mov byte [esp + 0x34], 1
call fcn.0043fa48
add esp, 4
push eax
mov byte [esp + 0x34], bl
call fcn.0043ff88
call fcn.0043fa48
mov byte [eax + 0x4c], 1
mov byte [0x46fa6d], 1
cmp dword [esp + 0x34], 0x10
mov byte [0x46fa6e], 1
jb 0x4412fc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044849d
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret 0x1c
Function at 0x445de8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4564f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c340]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi], 0x462264
mov byte [esi + 4], 1
mov byte [esi + 5], 1
mov byte [esi + 6], bl
mov byte [esi + 7], bl
lea eax, [esi + 0x20]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
push eax
mov byte [esi + 0x18], 0xff
mov dword [esi + 0x1c], ebx
call fcn.00441318
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esi], 0x4623f4
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ebx
xor edx, edx
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], dx
mov byte [esp + 0x20], 1
mov dword [esi + 0x68], 1
mov eax, 0xff000000
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x80], ebx
mov dword [esi + 0x7c], ebx
mov eax, dword [esi + 0x44]
push eax
push ecx
call fcn.004422d8
add esp, 4
call fcn.004424a8
mov edi, eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
call fcn.00446ffa
cmp eax, ebx
je 0x445ec3
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x34], ebx
call fcn.0044707e
cmp eax, ebx
je 0x445ee0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
shr eax, 2
cmp ecx, ecx
jne 0x445eff
cmp edx, edx
jne 0x445eff
cmp dword [esi + 0x10], eax
jne 0x445eff
cmp dword [esi + 0x14], ebp
je 0x445f0b
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
mov eax, 0xff000000
or ecx, 0xffffffff
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x460298
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x4602eb
cmp dword [esi + 4], 0
jne 0x4602f4
call fcn.0044d010
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0044b9df
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4602ef
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.00464d38
add esp, 4
test eax, eax
je 0x4602eb
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret
Function at 0x460308
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x46037d
test edi, edi
je 0x460321
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.0044d010
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call fcn.0044b9df
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x460367
mov ecx, dword [esi + 0x40]
push ecx
call fcn.00464d38
add esp, 4
test eax, eax
je 0x460367
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x44]
mov dword [esi], edx
cmp eax, 2
jae 0x46037d
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x460456
cmp byte [eax + 1], 0x8b
jne 0x460456
add dword [esi + 4], 0xfffffffe
add eax, 2
push ebx
mov dword [esi], eax
call fcn.00460298
mov edi, eax
call fcn.00460298
mov ebx, eax
cmp edi, 8
jne 0x46044b
test bl, 0xe0
jne 0x46044b
mov edi, 6
lea esp, [esp]
call fcn.00460298
sub edi, 1
jne 0x4603c8
test bl, 4
je 0x4603f9
call fcn.00460298
mov edi, eax
call fcn.00460298
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4603f9
call fcn.00460298
cmp eax, 0xffffffff
jne 0x4603e8
test bl, 8
je 0x46040c
call fcn.00460298
test eax, eax
je 0x46040c
cmp eax, 0xffffffff
jne 0x4603fe
test bl, 0x10
je 0x460426
lea esp, [esp]
call fcn.00460298
test eax, eax
je 0x460426
cmp eax, 0xffffffff
jne 0x460418
test bl, 2
je 0x46043a
mov edi, 2
call fcn.00460298
sub edi, 1
jne 0x460430
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret

Function at 0x460518
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4605c3
cmp byte [esi + 0x5c], 0x77
jne 0x4605c3
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov dword [esi], ebp
mov dword [esi + 4], edi
test edi, edi
je 0x4605a9
lea ebx, [ebx]
cmp dword [esi + 0x10], 0
jne 0x460572
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.00449c6e
add esp, 0x10
cmp eax, 0x4000
jne 0x4605a2
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
add dword [esi + 0x64], edx
add dword [esi + 0x68], eax
push 0
push esi
call fcn.00461928
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
sub dword [esi + 0x64], ecx
sub dword [esi + 0x68], edx
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4605a9
test ecx, ecx
jne 0x460548
jmp 0x4605a9
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.00461888
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x4605d8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x46068c
cmp byte [esi + 0x5c], 0x77
jne 0x46068c
mov dword [esi + 4], ebx
push edi
lea esp, [esp]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x460626
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.00449c6e
add esp, 0x10
cmp eax, edi
jne 0x460682
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x460672
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push ecx
push esi
call fcn.00461928
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x460653
cmp eax, 0xfffffffb
jne 0x460653
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x460661
cmp dword [esi + 0x38], 1
je 0x460661
xor ebx, ebx
jmp 0x460666
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4605f8
cmp eax, 1
je 0x4605f8
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x401780
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4157bc
push eax
mov eax, 0x5030
mov dword fs:[0], esp
call fcn.00403b70
push ebx
lea ecx, [esp + 0x18]
call fcn.00402d91
mov eax, dword [esp + 0x5044]
push 0x5000
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x5048], 0
call fcn.00403ac5
mov edx, dword [0x41c6c0]
add esp, 0xc
mov dword [esp + 4], edx
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x5040], 1
call fcn.00411ef7
lea ecx, [esp + 0xc]
mov byte [esp + 0x503c], 2
push ecx
lea ecx, [esp + 8]
call fcn.00411f76
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0xc]
call fcn.0040d532
mov eax, dword [eax]
push 0x41c114
push eax
call fcn.00403a16
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00411e89
test bl, bl
je 0x401844
push 0x41c114
lea ecx, [esp + 8]
call fcn.004120f0
push 0x41c110
lea ecx, [esp + 8]
call fcn.004120f0
mov eax, dword [esp + 4]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00402e54
test eax, eax
setne al
test al, al
je 0x401963
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
call fcn.00403074
test eax, eax
lea ecx, [esp + 0x1c]
setne byte [esp + 0xf]
call fcn.0040303b
test eax, eax
jne 0x401956
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00411f76
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0040d532
mov eax, dword [eax]
push 0x41c114
push eax
call fcn.00403a16
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.00411e89
test bl, bl
je 0x4018e5
push 0x41c114
lea ecx, [esp + 0xc]
call fcn.004120f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040326c
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x5044], 3
call fcn.0041212c
lea ecx, [esp + 0x18]
mov byte [esp + 0x5040], 2
call fcn.00411e89
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x38]
test eax, eax
je 0x401940
mov eax, dword [esp + 8]
push eax
call fcn.00401780
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004039ec
add esp, 8
jmp 0x401956
mov edx, dword [esp + 8]
push 0
push edx
call esi
mov eax, dword [esp + 8]
push eax
call fcn.004039c2
add esp, 4
mov al, byte [esp + 0xf]
test al, al
jne 0x401876
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004039ec
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x503c], 1
call fcn.00411e89
lea ecx, [esp + 4]
mov byte [esp + 0x503c], 0
call fcn.00411e89
lea ecx, [esp + 0x18]
mov dword [esp + 0x503c], 0xffffffff
call fcn.00402dce
mov ecx, dword [esp + 0x5034]
pop ebx
mov dword fs:[0], ecx
add esp, 0x503c
ret
Function at 0x401e20
Capabilities:
Access peb ldr_data
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x415898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00411ef7
lea ecx, [esp + 4]
push 1
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0
call fcn.0040d532
mov eax, dword [eax]
push 0x41c114
push eax
call fcn.00403a16
add esp, 8
lea ecx, [esp + 4]
test eax, eax
setne bl
call fcn.00411e89
test bl, bl
je 0x401e8f
push 0x41c114
lea ecx, [esp + 0x3c]
call fcn.004120f0
push 0x41c110
lea ecx, [esp + 0x3c]
call fcn.004120f0
lea ecx, [esp + 0xc]
call fcn.00402d91
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00402e54
test eax, eax
setne al
test al, al
je 0x401f3f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
call fcn.00403074
test eax, eax
lea ecx, [esp + 0x10]
setne bl
call fcn.0040303b
test eax, eax
jne 0x401f3a
lea ecx, [esp + 0x10]
call fcn.0040303b
test eax, eax
je 0x401f1c
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.00403143
mov eax, dword [eax]
mov byte [esp + 0x34], 2
push eax
call fcn.00401e20
add esp, 4
mov byte [esp + 0x34], 1
lea ecx, [esp + 8]
jmp 0x401f35
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403143
mov eax, dword [eax]
push 0
push eax
call esi
lea ecx, [esp + 0xc]
call fcn.00411e89
test bl, bl
jne 0x401ecb
pop esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00402dce
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.00411e89
mov ecx, dword [esp + 0x28]
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x402660
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026ed
mov ecx, 0x100
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Common_DeskTop
push ecx
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4026e2
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402704
push str.C:WindowsDesk_Top
jmp 0x402709
lea eax, [esp + 0x14]
push eax
mov esi, dword [esp + 0x41c]
mov ecx, esi
call fcn.00411ef7
mov eax, esi
pop edi
pop esi
add esp, 0x40c
ret 4