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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562f1b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
xor esi, esi
or ebx, 0xffffffff
cmp dword [edi + 0x28], esi
jle 0x4b8029
test esi, esi
js 0x4b807b
cmp esi, dword [edi + 0x28]
jge 0x4b807b
mov eax, dword [edi + 0x24]
lea ebx, [esi*4]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [edi + 0x28]
jge 0x4b807b
mov eax, dword [edi + 0x24]
push 0x5c
push dword [ebx + eax]
lea ecx, [eax + ebx]
add ebx, eax
mov dword [ebp - 0x10], ecx
call fcn.0052387a
add esp, 8
test eax, eax
jne 0x4b7fe0
or eax, 0xffffffff
jmp 0x4b7fe4
sub eax, dword [ebx]
sar eax, 1
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d090
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, eax
call fcn.004929b0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b801f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [edi + 0x28]
jl 0x4b7f92
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.0047f650
mov byte [ebp - 4], 0
lea ecx, [edi + 4]
call fcn.004b8720
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b8069
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00411010
int3
Function at 0x4b9eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov ebx, edx
push eax
lea eax, [esp + 0x1c]
mov ebp, ecx
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x4b9f70
mov edi, dword [esp + 0x10]
test edi, edi
js 0x4b9f7f
mov esi, dword [esp + 0x20]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4b9f18
push edi
mov ecx, esi
call fcn.00408d50
mov edx, dword [esi]
cmp dword [edx - 4], 1
jle 0x4b9f2a
push dword [edx - 0xc]
mov ecx, esi
call fcn.00408c70
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x4b9f4c
xor ecx, ecx
jmp 0x4b9f5e
push dword [eax - 8]
push eax
call fcn.0052a05f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b9f7f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b9f7f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0xc
ret
push 0x80070057
call fcn.00408fc0
int3
Function at 0x4ba810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5638e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x4ba8a9
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004ba730
mov dword [ebp - 0x18], 0x594fec
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp byte [ebp + 0x14], 0
je 0x4ba86e
test eax, eax
setne bl
jmp 0x4ba873
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x594fec
test eax, eax
je 0x4ba893
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
push 0x5c
push dword [edi]
call fcn.0052387a
mov esi, eax
add esp, 8
mov ebx, 3
test esi, esi
je 0x4ba9ab
sub esi, dword [edi]
sar esi, 1
js 0x4ba9ab
push esi
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0040d340
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x10]
mov dl, byte [ebp + 0xc]
call fcn.004ba730
mov edi, eax
mov dword [ebp - 0x18], 0x594fec
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4ba96c
lea edx, [esi + 1]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040d340
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov ebx, eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ba96f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ba96f
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x594fec
test edi, edi
je 0x4ba98c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ba9ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x4ba9ca
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bb210
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x5d8024]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4bb35a
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x4bb254
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4bb245
xor eax, eax
mov edx, esi
mov word [esi], ax
xor cl, cl
sub esi, 2
xor al, al
xor bl, bl
cmp word [esp + 0x20], 0x5c
jne 0x4bb27f
cmp word [esp + 0x22], 0x5c
jne 0x4bb27f
cmp word [esi], 0x5c
mov bl, 1
setne cl
jmp 0x4bb28e
cmp word [esi], 0x5c
mov edi, 1
movzx eax, al
cmove eax, edi
cmp word [esp + 0x24], 0x5c
lea edi, [esp + 0x24]
je 0x4bb2a9
nop word [eax + eax]
add edi, 2
cmp word [edi], 0x5c
jne 0x4bb2a0
test cl, cl
jne 0x4bb2b3
test al, al
je 0x4bb2c8
jmp 0x4bb2c0
mov esi, edx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4bb32f
cmp word [esi], 0x5c
jne 0x4bb2fd
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
jbe 0x4bb316
cmp word [esi], 0x5c
je 0x4bb316
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x4bb305
cmp esi, edi
jb 0x4bb35a
test bl, bl
jne 0x4bb322
cmp esi, edi
jne 0x4bb325
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x4bb2d1
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x14]
ja 0x4bb35a
jb 0x4bb343
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x10]
jae 0x4bb35a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00521dac
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00521dac
mov esp, ebp
pop ebp
ret
Function at 0x4bbef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.005230d0
push 0xffffffffffffffff
push 0x563d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x1c], eax
jne 0x4bbf48
xor al, al
jmp 0x4bbfd6
mov ecx, eax
call fcn.0047f650
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x4bbfc8
mov esi, dword [ebp - 0x10]
call fcn.004092f0
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d450
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0048f670
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bbfc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
inc edi
test ebx, ebx
je 0x4bbf51
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.00521dac
lea esp, [ebp + 0x8004]
pop ebp
ret 8
Function at 0x4bc310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.0052266b
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004a1110
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4bc3cd
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.0052266b
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004a1110
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4bc390
test eax, eax
jne 0x4bc3fc
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4bc400
cmp eax, 2
je 0x4bc400
cmp eax, 7
je 0x4bc400
cmp eax, 4
jne 0x4bc3fc
push dword [esi]
push 0x5950a8
push dword [ebp + 8]
call fcn.004087a0
add esp, 0xc
jmp 0x4bc451
xor bl, bl
jmp 0x4bc453
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
cmp word [esi + edi*2], cx
jne 0x4bc421
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], cx
je 0x4bc417
inc edi
mov dword [ebp - 0x10], edi
call fcn.004092f0
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040d450
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
call fcn.00478300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408f50
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052266b
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc5b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563eb5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.00408b00
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.0052387a
mov edi, eax
add esp, 8
test edi, edi
je 0x4bc720
sub edi, esi
sar edi, 1
js 0x4bc720
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.004909c0
mov dword [ebp - 0x20], 0x594fec
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bc6e1
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4bc6bf
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x594fec
test eax, eax
je 0x4bc697
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc5f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bc5f1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x594fec
test eax, eax
je 0x4bc6df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x4bc701
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x594fec
test eax, eax
je 0x4bc701
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc720
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bc73f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc9d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563f9d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x44
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x4bca64
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
push 0
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4bcaac
test esi, esi
je 0x4bcaa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bcad0
test esi, esi
je 0x4bcac5
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0x13], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4bcafa
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
xor edx, edx
test eax, eax
mov al, byte [ebp + 0x13]
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bd1b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5641a5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x5853b8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bd21c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4bd2da
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x4bd26b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bd2be
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b0fe0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4bd2be
cmp dword [ebp - 0x1c], 0
je 0x4bd2be
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bd2c4
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4bd2c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.0052266b
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x5853b8
test eax, eax
je 0x4bd2fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521dac
mov esp, ebp
pop ebp
ret
Function at 0x4bd9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x56429d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x5853b8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bda5b
cmp eax, 0x400
jae 0x4bdb2c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.00493830
jmp 0x4bda25
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4bdae9
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d090
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4bdaca
cmp dword [ebx + 0xc], 0
jl 0x4bdabf
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4bdabf
call fcn.00408b00
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bdab8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x4bdaca
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408e70
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bdae9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x5853b8
test edi, edi
je 0x4bdb09
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00521dac
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.0052239c
int3
Function at 0x4be340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56448f
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5d8024]
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 esi, edx
mov edi, ecx
push str.TEST
push 0
mov edx, str.tin9999.tmp
mov dword [ebp - 0x1c], str.http:__www.google.com
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.http:__www.yahoo.com
mov dword [ebp - 0x14], str.http:__www.example.com
call fcn.00409a10
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd4]
push esi
push edi
call fcn.004be6b0
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x5c], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.004152f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
push dword [esi]
call fcn.004152f0
mov byte [ebp - 4], 3
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0048f670
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0xd4]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.0047f650
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4be472
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov eax, dword [ebp - 0xdc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4be494
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4be4a8
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4be3c2
jmp 0x4be4aa
mov bl, 1
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.004a37d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407f30
mov al, bl
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.00521dac
mov esp, ebp
pop ebp
ret