joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100272e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x10073010]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10027349
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002c661
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002736b
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1002738c
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1002738c
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10027386
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1002738c
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002c661
mov esp, ebp
pop ebp
ret
Function at 0x10030092
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004a770
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1003bb32
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100300d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10030230
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004a6c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100658f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003bd41
mov ecx, dword [esi*4 + 0x100658f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10030229
cmp eax, dword [ecx + edi + 0x24]
jne 0x10030229
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10030229
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003bd41
add esp, 0x14
test edx, edx
jl 0x10030229
jg 0x1003019f
test eax, eax
jb 0x10030229
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10030229
jl 0x100301b9
cmp dword [ebp - 0x1008], eax
ja 0x10030229
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100301d7
test ebx, ebx
je 0x10030210
cmp ecx, edi
jae 0x10030210
mov al, byte [ecx]
cmp al, 0xd
jne 0x100301f1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100301fd
cmp byte [ecx + 1], 0xa
jne 0x100301fd
inc ecx
jmp 0x100301fd
movzx eax, al
movsx eax, byte [eax + 0x10063240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100301d7
cmp edx, ebx
jne 0x100301d7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003022e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002c661
leave
ret

Function at 0x1003ac43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003ac82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003ac82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ac82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003ac82
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ac82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003c4b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100658f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003c4f2
cmp byte [ebx], 0xa
jne 0x1003c4f2
or byte [edi + eax + 0x28], 4
jmp 0x1003c4f7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1003c5f6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003c5d9
inc eax
cmp dl, 0xd
je 0x1003c523
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003c549
cmp eax, ecx
jae 0x1003c557
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1003c50b
jmp 0x1003c5f6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003c5d4
cmp dword [ebp - 0x10], 0
je 0x1003c5d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100658f8]
test byte [eax + edi + 0x28], 0x48
je 0x1003c5ae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003c599
mov byte [esi], dl
jmp 0x1003c5aa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100658f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003c5f6
cmp byte [ebp - 1], 0xa
jne 0x1003c5bd
cmp esi, ebx
jne 0x1003c5bd
mov byte [esi], 0xa
jmp 0x1003c5f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003bd5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003c5f6
mov byte [esi], 0xd
jmp 0x1003c5f5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100658f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003c5f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003c5f6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003c5ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100658f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003c645
cmp word [ebx], dx
jne 0x1003c645
or byte [eax + edi + 0x28], 4
jmp 0x1003c64a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003c7ad
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003c78d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003c68b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003c6c1
cmp eax, edx
jae 0x1003c6cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003c666
jmp 0x1003c7ad
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003c788
cmp dword [ebp - 0x18], 0
je 0x1003c788
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100658f8]
test byte [eax + edi + 0x28], 0x48
je 0x1003c75e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003c722
mov word [esi], cx
jmp 0x1003c759
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100658f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100658f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100658f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003c7ad
pop eax
cmp word [ebp - 4], ax
jne 0x1003c76e
cmp esi, ebx
jne 0x1003c76e
mov word [esi], ax
jmp 0x1003c7aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003bd5f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003c7ad
push 0xd
pop eax
jmp 0x1003c769
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100658f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003c7a7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003c7ad
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003ec1b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004daf8
push 0x1004daf0
push str.FlsAlloc
push 0x1f
call fcn.1003eada
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ec4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004b1d0]
call esi
jmp 0x1003ec55
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003ec99
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004db08
push 0x1004db00
push str.FlsGetValue
push 0x21
call fcn.1003eada
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ecd0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004b1d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003ecd8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004db10
push 0x1004db08
push str.FlsSetValue
push 0x22
call fcn.1003eada
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ed12
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004b1d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10041d24
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10041dc1
push ebx
push esi
call fcn.10041ced
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10041c81
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10041d6e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10041dc0
push edi
push eax
call fcn.1003d05f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10041d8e
call fcn.1003d025
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10041dbf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10041c81
add esp, 0x20
test eax, eax
jne 0x10041dad
push edi
call fcn.1003d025
jmp 0x10041db5
push ebx
call fcn.1003d025
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10041dc4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10041dd5
pop esi
ret
push ebx
push edi
push esi
call fcn.10041ced
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003d05f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10041dfd
push ebx
push esi
push edi
call fcn.1002e300
add esp, 0xc
push 0
call fcn.1003d025
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100421cd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10041e12
Function at 0x100483e1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004835d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10048550
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10048550
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10048505
jg 0x1004843d
test eax, eax
je 0x100484fb
push 1
push 0x1000
call fcn.1003e94a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10048460
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100484f2
push 0x8000
push ebx
call fcn.1004828e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10048489
jg 0x10048484
cmp ecx, 0x1000
jb 0x10048489
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004663f
add esp, 0x10
cmp eax, 0xffffffff
je 0x100484ce
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10048484
jl 0x100484b5
test ecx, ecx
jne 0x10048476
push dword [ebp - 0xc]
push ebx
call fcn.1004828e
push esi
call fcn.1003d025
add esp, 0xc
xor ebx, ebx
jmp 0x1004855e
cmp byte [edi + 0x24], 0
je 0x100484e5
cmp dword [edi + 0x20], 5
jne 0x100484e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100484f0
mov ebx, dword [edi + 0x18]
jmp 0x100484f2
xor ebx, ebx
push esi
call fcn.1003d025
pop ecx
jmp 0x1004855e
test ecx, ecx
jg 0x100484c7
jl 0x10048505
test eax, eax
jae 0x100484c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003bd5f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10048525
cmp byte [edi + 0x1c], 0
je 0x100484c7
jmp 0x10048556
push ebx
call fcn.10042a5d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100484c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004855e
cmp byte [edi + 0x1c], 0
je 0x1004855b
mov ebx, dword [edi + 0x18]
jmp 0x1004855e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003bd5f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004a610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004a63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004a63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb7174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xb717a6
cmp eax, 0xffffffff
je 0xb717a6
cmp dword [ebp + 8], ebx
je 0xb717a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb7f302
cmp esi, dword [ebp - 4]
jne 0xb7f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xb7179e

Function at 0xb7227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xb8621c
call fcn.00b71350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xb8b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00b72097
test eax, eax
jne 0xb723c4
lea eax, [ebp - 0x20]
push eax
push dword [0xb8b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00b723dc
test eax, eax
jne 0xb723c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00b713e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xb723c4
lea eax, [ebp - 0x20]
push eax
push dword [0xb8b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00b723dc
test eax, eax
jne 0xb723bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xb723bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b713e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xb723bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xb723b2
cmp dword [ebp + 8], ebx
je 0xb7ea08
push dword [0xb8b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b713e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xb723b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00b721cb
push dword [0xb8b460]
push edi
push dword [ebp - 0x18]
call fcn.00b72436
push dword [ebp - 0x14]
call fcn.00b713c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00b713c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00b71f10
mov eax, dword [ebp - 0x18]
call fcn.00b71390
ret 4
Function at 0xb723dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xb7242c
cmp dword [ebp - 4], 2
ja 0xb7e965
mov ecx, dword [edi]
test cl, 1
jne 0xb7242c
cmp esi, ebx
je 0xb72425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xb7242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xb72425

Function at 0xb724ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0xb86b05
call fcn.00b71350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0xb72519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0xb7265b
cmp dword [ebp + 0xc], edi
je 0xb7265b
push 1
call fcn.00b7227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0xb7264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b713e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xb7259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00b721cb
mov ebx, eax
test ebx, ebx
jl 0xb7259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00b72436
mov ebx, eax
test ebx, ebx
jl 0xb7259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0xb72632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00b713e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xb72654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00b721cb
mov ebx, eax
test ebx, ebx
jl 0xb72623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00b72436
mov ebx, eax
test ebx, ebx
jl 0xb72623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xb72623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xb7f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0xb72632
push dword [ebp - 0x14]
call fcn.00b713c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0xb72641
push dword [ebp - 0x18]
call fcn.00b713c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00b713c0
pop ecx
mov eax, ebx
call fcn.00b71390
ret 8
mov ebx, 0x8007000e
jmp 0xb725fe
mov ebx, 0x80070057
jmp 0xb7264a
Function at 0xb73a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xb73ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xb73ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xb73ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xb7e30e
mov eax, dword [ebp - 8]
leave
ret