joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65e91a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00629ca0
mov eax, dword [0x79cf48]
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.0065e452
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x65e95c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x65eab8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.006726e0
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 + 0x7d8040]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00665ce5
mov ecx, dword [esi*4 + 0x7d8040]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x65eab1
cmp eax, dword [edi + ecx + 0x24]
jne 0x65eab1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x65eab1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00665ce5
add esp, 0x14
test edx, edx
jl 0x65eab1
jg 0x65ea27
test eax, eax
jb 0x65eab1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x65eab1
jl 0x65ea41
cmp dword [ebp - 0x1008], eax
ja 0x65eab1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x65ea5f
test ebx, ebx
je 0x65ea98
cmp ecx, edi
jae 0x65ea98
mov al, byte [ecx]
cmp al, 0xd
jne 0x65ea79
lea eax, [edi - 1]
cmp ecx, eax
jae 0x65ea85
cmp byte [ecx + 1], 0xa
jne 0x65ea85
inc ecx
jmp 0x65ea85
movzx eax, al
movsx eax, byte [eax + 0x79d300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x65ea5f
cmp edx, ebx
jne 0x65ea5f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x65eab6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00628cc2
leave
ret
Function at 0x664762
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006645d3

Function at 0x664be1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x719948
push 0x719940
push str.FlsAlloc
push 0x1e
call fcn.00664a0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x664c15
push dword [ebp + 8]
mov ecx, esi
call dword [0x6a630c]
call esi
jmp 0x664c1b
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x664c5f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x719958
push 0x719950
push str.FlsGetValue
push 0x20
call fcn.00664a0e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x664c96
push dword [ebp + 8]
mov ecx, esi
call dword [0x6a630c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x665183
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x7d8040]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6651c3
cmp byte [ebx], 0xa
jne 0x6651c3
or byte [eax + edi + 0x28], 4
jmp 0x6651c8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6652c6
mov al, byte [edx]
cmp al, 0x1a
je 0x6652a8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6651f7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x66521c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x665226
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x6651d9
jmp 0x6652c6
push 0
lea eax, [ebp - 0xc]
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 0x6652a3
cmp dword [ebp - 0xc], 0
je 0x6652a3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7d8040]
test byte [eax + edi + 0x28], 0x48
je 0x66527d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x665268
mov byte [esi], dl
jmp 0x665279
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7d8040]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6652c6
cmp byte [ebp - 1], 0xa
jne 0x66528c
cmp esi, ebx
jne 0x66528c
mov byte [esi], 0xa
jmp 0x6652c5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00665d03
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6652c6
mov byte [esi], 0xd
jmp 0x6652c5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7d8040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6652c2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6652c6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6652cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7d8040]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x665312
cmp word [esi], dx
jne 0x665312
or byte [edi + eax + 0x28], 4
jmp 0x665317
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x66546a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x66544a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x665359
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x66538f
cmp eax, edx
jae 0x66539b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x665331
jmp 0x66546a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x665446
cmp dword [ebp - 0x14], 0
je 0x665446
mov eax, dword [ebx*4 + 0x7d8040]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x66541e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x6653e7
mov word [esi], cx
jmp 0x66541a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7d8040]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7d8040]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7d8040]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x66546a
pop ebx
cmp word [ebp - 4], bx
jne 0x66542f
cmp esi, dword [ebp + 0xc]
jne 0x66542f
mov word [esi], bx
jmp 0x665467
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00665d03
add esp, 0x10
cmp word [ebp - 4], bx
je 0x66546a
push 0xd
jmp 0x665463
mov ecx, dword [ebx*4 + 0x7d8040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x665461
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x66546a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x66b5ab
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x79cf48]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x66b5f6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0066b74a
test al, al
jne 0x66b5f0
sub edx, 2
cmp edx, edi
jne 0x66b5d6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x66b618
lea eax, [edi + 2]
cmp edx, eax
je 0x66b618
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0066b4f7
add esp, 0x10
jmp 0x66b712
push esi
lea ecx, [ebp - 0x255]
call fcn.0066b74a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x66b65b
push dword [ebp - 0x25c]
jmp 0x66b608
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x66b698
cmp word [ebp - 0x226], 0
je 0x66b6b9
cmp word [ebp - 0x226], ax
jne 0x66b698
cmp word [ebp - 0x224], 0
je 0x66b6b9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0066b4f7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x66b705
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x66b672
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x66b6ed
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x66b712
push 0x66b327
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0065d350
add esp, 0x10
jmp 0x66b6e2
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628cc2
leave
ret
Function at 0x66b850
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 0x66b8ed
push ebx
push esi
call fcn.0066b819
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.0066ab28
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x66b89a
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x66b8ec
push edi
push eax
call fcn.00661c89
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x66b8ba
call fcn.00661297
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x66b8eb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0066ab28
add esp, 0x20
test eax, eax
jne 0x66b8d9
push edi
call fcn.00661297
jmp 0x66b8e1
push ebx
call fcn.00661297
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 0x66b8f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x66b901
pop esi
ret
push ebx
push edi
push esi
call fcn.0066b819
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00661c89
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x66b929
push ebx
push esi
push edi
call fcn.0063e5a0
add esp, 0xc
push 0
call fcn.00661297
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x66c075
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0066bb9c
Function at 0x671898
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]
push dword [ebp + 0xc]
push ebx
call fcn.00671814
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x671a10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x671a10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6719bf
jg 0x6718f1
test eax, eax
je 0x6719b5
push 1
push 0x1000
call fcn.00661cd7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x671917
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x6719ac
push 0x8000
push ebx
call fcn.0065ed02
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x671943
jg 0x67193e
cmp ecx, 0x1000
jb 0x671943
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00664029
add esp, 0x10
cmp eax, 0xffffffff
je 0x671988
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 0x67193e
jl 0x67196f
test ecx, ecx
jne 0x671930
push dword [ebp - 0xc]
push ebx
call fcn.0065ed02
push esi
call fcn.00661297
add esp, 0xc
xor edi, edi
jmp 0x671a21
cmp byte [edi + 0x24], 0
je 0x67199f
cmp dword [edi + 0x20], 5
jne 0x67199f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6719aa
mov edi, dword [edi + 0x18]
jmp 0x6719ac
xor edi, edi
push esi
call fcn.00661297
pop ecx
jmp 0x671a21
test ecx, ecx
jg 0x671981
jl 0x6719bf
test eax, eax
jae 0x671981
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00665d03
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6719e2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x671981
jmp 0x671a19
push ebx
call fcn.00667375
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x671981
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x671a21
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x671a1e
mov edi, dword [edi + 0x18]
jmp 0x671a21
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00665d03
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6726a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6726cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6726cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405b10
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41d008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00414917
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x405b6c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00414906
add esp, 0x120
ret
Function at 0x409af0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x41b080
push 0x4154eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41d008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409b51
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00409c20
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x409b83
test bl, bl
jne 0x409bfa
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409b98
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004023c0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00414906
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, ecx
jmp 0x409af0

Function at 0x409e70
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x41b080
push 0x4154eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x41d008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409b51
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00409c20
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x409b83
test bl, bl
jne 0x409bfa
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409b98
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004023c0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00414906
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, ecx
jmp 0x409af0
Function at 0x40a070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x41d008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a0ee
cmp dword [esp + 0x14], 6
jb 0x40a0ee
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00409e80
add esp, 0xc
test al, al
je 0x40a0ee
cmp word [esi], 0
jne 0x40a146
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00409e80
add esp, 0xc
test al, al
je 0x40a11a
cmp word [esi], 0
jne 0x40a146
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00409e80
add esp, 0xc
test al, al
je 0x40a15b
cmp word [esi], 0
je 0x40a15b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00414906
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00414906
mov esp, ebp
pop ebp
ret
Function at 0x40cf50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4171b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41d008]
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, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.0040d810
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410cf0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x40cfd4
xor bl, bl
jmp 0x40cff2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cfec
cmp eax, 0x80
je 0x40cfec
xor bl, bl
jmp 0x40cff2
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.0040d0e0
test al, al
jne 0x40d020
cmp byte [ebp - 0x39], al
je 0x40d020
cmp dword [esi + 0x14], 8
jb 0x40d019
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x40d03a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d036
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d05a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x40d0a3
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d099
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d099
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00414947
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
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.00414906
mov esp, ebp
pop ebp
ret 8
Function at 0x40ec50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x41d008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40ece7
cmp dword [esp + 8], 6
jb 0x40ece7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00414906
add esp, 0x118
ret