joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4721
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 + 0x5445f8]
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 0x4f4761
cmp byte [ebx], 0xa
jne 0x4f4761
or byte [edi + eax + 0x28], 4
jmp 0x4f4766
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 0x4f4865
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f4848
inc eax
cmp dl, 0xd
je 0x4f4792
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f47b8
cmp eax, ecx
jae 0x4f47c6
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 0x4f477a
jmp 0x4f4865
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 0x4f4843
cmp dword [ebp - 0x10], 0
je 0x4f4843
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5445f8]
test byte [eax + edi + 0x28], 0x48
je 0x4f481d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f4808
mov byte [esi], dl
jmp 0x4f4819
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5445f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f4865
cmp byte [ebp - 1], 0xa
jne 0x4f482c
cmp esi, ebx
jne 0x4f482c
mov byte [esi], 0xa
jmp 0x4f4864
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f3ce2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f4865
mov byte [esi], 0xd
jmp 0x4f4864
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5445f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f4862
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f4865
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f486e
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 + 0x5445f8]
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 0x4f48b4
cmp word [ebx], dx
jne 0x4f48b4
or byte [eax + edi + 0x28], 4
jmp 0x4f48b9
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 0x4f4a1c
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 0x4f49fc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f48fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f4930
cmp eax, edx
jae 0x4f493e
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 0x4f48d5
jmp 0x4f4a1c
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 0x4f49f7
cmp dword [ebp - 0x18], 0
je 0x4f49f7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5445f8]
test byte [eax + edi + 0x28], 0x48
je 0x4f49cd
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 0x4f4991
mov word [esi], cx
jmp 0x4f49c8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5445f8]
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 + 0x5445f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5445f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f4a1c
pop eax
cmp word [ebp - 4], ax
jne 0x4f49dd
cmp esi, ebx
jne 0x4f49dd
mov word [esi], ax
jmp 0x4f4a19
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f3ce2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f4a1c
push 0xd
pop eax
jmp 0x4f49d8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5445f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f4a16
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f4a1c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
Function at 0x4f94c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e0fd0
mov eax, dword [0x540010]
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.004f29f6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f9503
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f965f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00504460
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 + 0x5445f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004f3d40
mov ecx, dword [esi*4 + 0x5445f8]
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 0x4f9658
cmp eax, dword [ecx + edi + 0x24]
jne 0x4f9658
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 0x4f9658
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f3d40
add esp, 0x14
test edx, edx
jl 0x4f9658
jg 0x4f95ce
test eax, eax
jb 0x4f9658
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f9658
jl 0x4f95e8
cmp dword [ebp - 0x1008], eax
ja 0x4f9658
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f9606
test ebx, ebx
je 0x4f963f
cmp ecx, edi
jae 0x4f963f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f9620
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f962c
cmp byte [ecx + 1], 0xa
jne 0x4f962c
inc ecx
jmp 0x4f962c
movzx eax, al
movsx eax, byte [eax + 0x540280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f9606
cmp edx, ebx
jne 0x4f9606
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f965d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e0685
leave
ret

Function at 0x4fd630
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fd65d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fd65d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4fe6e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x516730
push str.FlsAlloc
push 0x1f
call fcn.004fec42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fe71a
push dword [ebp + 8]
mov ecx, esi
call dword [0x53a380]
call esi
jmp 0x4fe720
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4fe764
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x516754
push str.FlsGetValue
push 0x21
call fcn.004fec42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fe79b
push dword [ebp + 8]
mov ecx, esi
call dword [0x53a380]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fe7a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x516768
push str.FlsSetValue
push 0x22
call fcn.004fec42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fe7dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x53a380]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x502707
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004fdf1a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004fdf1a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x50277e
cmp word [ecx], dx
je 0x50277e
mov eax, dword [0x51712c]
push edi
dec eax
push eax
push 0x517018
call fcn.005028f7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5027f1
cmp word [eax], dx
je 0x5027f1
mov eax, dword [edi]
test eax, eax
je 0x5027a2
cmp word [eax], dx
je 0x5027a2
lea eax, [ebp - 0x10]
push eax
call fcn.00502958
jmp 0x5027ab
lea eax, [ebp - 0x10]
push eax
call fcn.00502c53
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x50281b
mov eax, dword [0x517014]
push dword [ebp - 0x14]
dec eax
push eax
push 0x516d08
call fcn.005028f7
add esp, 0xc
test al, al
je 0x50281b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5027e6
cmp word [eax], di
je 0x5027e6
lea eax, [ebp - 0x10]
push eax
call fcn.00502958
pop ecx
jmp 0x50281d
lea eax, [ebp - 0x10]
push eax
call fcn.00502c53
jmp 0x5027e3
mov eax, dword [edi]
test eax, eax
je 0x502808
cmp word [eax], dx
je 0x502808
lea eax, [ebp - 0x10]
push eax
call fcn.00502d95
pop ecx
jmp 0x50281b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5028e6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00502e87
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5028e6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5028e6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5028e6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x502873
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004fe9dc
test ebx, ebx
je 0x5028e1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004fe9dc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5028e6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5028e6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004f2f47
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5028e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e0685
leave
ret
Function at 0x502f8d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004fdf1a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x502ffc
cmp esi, dword [ebp - 4]
je 0x502ff7
cmp dword [ebp + 0xc], 0
je 0x502ff7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x502fd4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00503056
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x502ffe
xor eax, eax
inc eax
jmp 0x502ffe
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x5033a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x540010]
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 0x5033f0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0050351b
test al, al
jne 0x5033ea
sub edx, 2
cmp edx, edi
jne 0x5033d0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x503412
lea eax, [edi + 2]
cmp edx, eax
je 0x503412
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005032f1
add esp, 0x10
jmp 0x50350c
push esi
lea ecx, [ebp - 0x255]
call fcn.0050351b
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 0x503455
push dword [ebp - 0x25c]
jmp 0x503402
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 0x503492
cmp word [ebp - 0x226], 0
je 0x5034b3
cmp word [ebp - 0x226], ax
jne 0x503492
cmp word [ebp - 0x224], 0
je 0x5034b3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005032f1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5034ff
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x50346c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5034e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x50350c
push 0x503540
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004fa410
add esp, 0x10
jmp 0x5034dc
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.004e0685
leave
ret
Function at 0x504606
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 0x5046a3
push ebx
push esi
call fcn.005046f4
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.0050450a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x504650
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5046a2
push edi
push eax
call fcn.004a0860
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x504670
call fcn.004dd100
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5046a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0050450a
add esp, 0x20
test eax, eax
jne 0x50468f
push edi
call fcn.004dd100
jmp 0x504697
push ebx
call fcn.004dd100
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 0x5046a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5046b7
pop esi
ret
push ebx
push edi
push esi
call fcn.005046f4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a0860
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5046df
push ebx
push esi
push edi
call fcn.004e3510
add esp, 0xc
push 0
call fcn.004dd100
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x504736
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005049a1

Function at 0x506693
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5066d6
call fcn.004f25da
mov dword [eax], 0xf
call fcn.004f25c7
mov dword [eax], 0xd
call fcn.004f395b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0685
leave
ret
test eax, eax
jne 0x5066dd
inc eax
jmp 0x5066ca
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5066c8
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5066ca
Function at 0x50fbd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x546b14], 0
je 0x50fc08
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x546b00]
test esi, esi
jne 0x50fca8
push 0xc
call fcn.004dfb05
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.004e3a90
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0041e1b0
movzx eax, byte [esi + 0xb]
mov ecx, esi
test al, al
jns 0x50fc6b
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
je 0x50fc94
add eax, eax
test eax, eax
je 0x50fc94
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x50fc71
cmp edx, 0xfffffffe
je 0x50fc94
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.00490d80
mov ecx, esi
push 9
push str.debug.log
call fcn.00478d30
mov dword [0x546b00], esi
test byte [0x542504], 1
je 0x50fbf1
xorps xmm0, xmm0
movups xmmword [ebp - 0x22c], xmm0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x21c], 0
cmp byte [esi + 0xb], 0
jns 0x50fcd8
mov esi, dword [esi]
lea eax, [ebp - 0x23c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x50fd15
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0x40000001
sbb eax, 0
jb 0x50fd15
mov eax, dword [0x546b00]
cmp byte [eax + 0xb], 0
jns 0x50fd0e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x546b00]
cmp byte [eax + 0xb], 0
jns 0x50fd22
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x52fd10]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x546b14], eax
mov bl, 1
inc eax
cmp eax, 1
ja 0x50fbf1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004e3a90
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x50fe2b
mov ecx, dword [0x546b00]
push esi
call fcn.00478d00
mov ecx, dword [0x546b00]
call fcn.00490d50
cmp word [eax], 0x5c
je 0x50fdcb
mov ecx, dword [0x546b00]
push 1
push 0x5253a0
call fcn.00478d30
mov ecx, dword [0x546b00]
push 9
push str.debug.log
call fcn.00478d30
mov eax, dword [0x546b00]
cmp byte [eax + 0xb], 0
jns 0x50fdea
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x52fd10]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x546b14], eax
inc eax
cmp eax, 1
ja 0x50fbf1
mov dword [0x546b14], 0
xor ebx, ebx
jmp 0x50fbf1
Function at 0x411410
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412090
push 0x411550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x423cc4], 0xffffffff
or dword [0x423cc8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x423c5c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x423c58]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x423ccc], eax
call fcn.00411541
cmp dword [0x4135c0], 0
jne 0x411493
push 0x41153e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041152c
push 0x41300c
push 0x413008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x423c54]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x423c50]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x413004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00411570
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret