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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4ca827
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x54e6a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4ca827
test cl, 0x48
je 0x4ca6c7
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4ca6c7
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ca719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4ca701
call fcn.004c5ecd
mov dword [eax], 9
call fcn.004c5ed6
mov dword [eax], esi
jmp 0x4ca711
cmp eax, 0x6d
je 0x4ca827
push eax
call fcn.004c5edf
pop ecx
or eax, 0xffffffff
jmp 0x4ca829
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4ca822
test edx, edx
je 0x4ca73c
cmp byte [ebx], 0xa
jne 0x4ca73c
or al, 4
jmp 0x4ca73e
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4ca81c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4ca80c
cmp al, 0xd
je 0x4ca772
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4ca7fe
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4ca78c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4ca787
add dword [ebp + 0x10], 2
jmp 0x4ca7e0
mov dword [ebp + 0x10], eax
jmp 0x4ca7fa
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ca7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ca7fa
cmp dword [ebp - 0xc], 0
je 0x4ca7fa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4ca7d5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4ca7e0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4ca7fd
cmp ebx, dword [ebp + 0xc]
jne 0x4ca7e5
cmp byte [ebp - 1], 0xa
jne 0x4ca7e5
mov byte [ebx], 0xa
jmp 0x4ca7fd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ca0f4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4ca7fe
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4ca756
jmp 0x4ca81c
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4ca81c
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4ca829
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdd33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x515840]
je 0x4cdd60
inc eax
cmp eax, 0x12
jb 0x4cdd51
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x515840]
jne 0x4cde94
mov eax, dword [0x54df88]
cmp eax, 1
je 0x4cde6f
cmp eax, edx
jne 0x4cdd90
cmp dword [0x514eb4], 1
je 0x4cde6f
cmp ecx, 0xfc
je 0x4cde94
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cddc9
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004c33f0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004c21a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4cde0b
lea eax, [ebp - 0x10c]
push eax
call fcn.004c21a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ff928
push edi
call fcn.004c6620
add esp, 0x10
push edi
call fcn.004c21a0
push dword [esi + 0x515844]
mov ebx, eax
call fcn.004c21a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004c3900
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004c33f0
push edi
push ebx
call fcn.004c3400
push 0x4ff908
push ebx
call fcn.004c3400
push dword [esi + 0x515844]
push ebx
call fcn.004c3400
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004d4907
add esp, 0x2c
jmp 0x4cde94
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x515844]
push dword [esi]
call fcn.004c21a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c478a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d0a03
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004c3900
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d0a98
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x54df94]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4d0a98
cmp eax, 1
je 0x4d0ab0
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d0a98
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4d0a6d
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4d0a94
xor eax, eax
inc eax
jmp 0x4d0acc
cmp esi, ebx
jae 0x4d0a9c
xor eax, eax
jmp 0x4d0acc
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x54df94]
jmp 0x4d0ab2
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d299d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004c3900
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004ca0f4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4d2ac7
push 2
push esi
push dword [ebp + 8]
call fcn.004ca0f4
add esp, 0xc
cmp eax, ebx
je 0x4d2ac7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4d2a6a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004c2960
push 0x8000
push dword [ebp + 8]
call fcn.004cac15
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4d2a23
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004ca411
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d2a43
sub edi, eax
test edi, edi
jg 0x4d2a1b
jmp 0x4d2a5b
call fcn.004c5ed6
cmp dword [eax], 5
jne 0x4d2a58
call fcn.004c5ecd
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004cac15
pop ecx
pop ecx
jmp 0x4d2ab2
jge 0x4d2ab2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ca0f4
push dword [ebp + 8]
call fcn.004d2639
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4d2ab2
call fcn.004c5ecd
mov dword [eax], 0xd
call fcn.004c5ed6
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ca0f4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4d2ac9
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004c478a
leave
ret
Function at 0x4d4907
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x54e414], ebx
push esi
push edi
jne 0x4d4987
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d49c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x500b44
push edi
call esi
test eax, eax
mov dword [0x54e414], eax
je 0x4d49c2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x54e418], eax
call esi
cmp dword [0x54df94], 2
mov dword [0x54e41c], eax
jne 0x4d4987
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x54e424], eax
je 0x4d4987
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x54e420], eax
mov eax, dword [0x54e420]
test eax, eax
je 0x4d49cc
call eax
test eax, eax
je 0x4d49b3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x54e424]
test eax, eax
je 0x4d49b3
test byte [ebp - 8], 1
jne 0x4d49cc
cmp dword [0x54dfa0], 4
jb 0x4d49c6
or byte [ebp + 0x12], 0x20
jmp 0x4d49eb
xor eax, eax
jmp 0x4d49fb
or byte [ebp + 0x12], 4
jmp 0x4d49eb
mov eax, dword [0x54e418]
test eax, eax
je 0x4d49eb
call eax
mov ebx, eax
test ebx, ebx
je 0x4d49eb
mov eax, dword [0x54e41c]
test eax, eax
je 0x4d49eb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x54e414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d533e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4d53a9
push 0x3d
push dword [ebp + 8]
call fcn.004d616a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4d53a9
cmp dword [ebp + 8], esi
je 0x4d53a9
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x54dfb4]
cmp eax, dword [0x54dfb8]
jne 0x4d538f
mov edi, eax
call fcn.004d52dd
mov dword [0x54dfb4], eax
cmp eax, ebx
jne 0x4d53e8
cmp dword [ebp + 0xc], ebx
je 0x4d53b1
cmp dword [0x54dfbc], ebx
je 0x4d53b1
call fcn.004d0780
test eax, eax
je 0x4d53e8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4d54ec
push 4
call fcn.004c6dc6
cmp eax, ebx
pop ecx
mov dword [0x54dfb4], eax
je 0x4d53a9
mov dword [eax], ebx
cmp dword [0x54dfbc], ebx
jne 0x4d53e8
push 4
call fcn.004c6dc6
cmp eax, ebx
pop ecx
mov dword [0x54dfbc], eax
je 0x4d53a9
mov dword [eax], ebx
mov ebx, dword [0x54dfb4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004d5290
mov edi, eax
test edi, edi
pop ecx
jl 0x4d5441
cmp dword [ebx], 0
je 0x4d5441
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004c479d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4d5429
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4d5477
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4d5420
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004c52e4
test eax, eax
pop ecx
pop ecx
je 0x4d5477
jmp 0x4d5472
cmp dword [ebp - 4], 0
jne 0x4d54e5
test edi, edi
jge 0x4d5451
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004c52e4
test eax, eax
pop ecx
pop ecx
je 0x4d53a9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x54dfb4], eax
cmp dword [ebp + 0xc], 0
je 0x4d54ce
push dword [ebp + 8]
call fcn.004c21a0
inc eax
inc eax
push eax
call fcn.004c6dc6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4d54ce
push dword [ebp + 8]
push esi
call fcn.004c33f0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4d54c7
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004c479d
pop ecx
cmp dword [ebp - 4], 0
je 0x4d54dd
push dword [ebp + 8]
call fcn.004c479d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4d53ac
push esi
call fcn.004c479d
pop ecx
xor eax, eax
jmp 0x4d53ac
Function at 0x4d54f3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x500be8
call fcn.004caca4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x54e428], edi
jne 0x4d5537
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d5522
mov dword [0x54e428], ebx
jmp 0x4d5537
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d5537
mov dword [0x54e428], 2
mov eax, dword [0x54e428]
cmp eax, ebx
jne 0x4d5557
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4d561a
cmp eax, 2
je 0x4d5560
cmp eax, edi
jne 0x4d5588
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4d5573
mov eax, dword [0x54e38c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4d558f
xor eax, eax
jmp 0x4d561a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004c3900
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4d55c2
cmp esi, edi
jne 0x4d55d8
push dword [ebp - 0x24]
call fcn.004c6dc6
pop ecx
mov esi, eax
cmp esi, edi
je 0x4d5588
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4d560b
cmp dword [ebp + 0x14], edi
jne 0x4d55f5
push edi
push edi
jmp 0x4d55fb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4d5617
push esi
call fcn.004c479d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004cacdf
ret
Function at 0x4d5623
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x500bf8
call fcn.004caca4
xor esi, esi
cmp dword [0x54e42c], esi
jne 0x4d5667
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d5652
mov dword [0x54e42c], edi
jmp 0x4d5667
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d5667
mov dword [0x54e42c], 2
mov eax, dword [0x54e42c]
cmp eax, 2
je 0x4d5748
cmp eax, esi
je 0x4d5748
cmp eax, 1
jne 0x4d56ac
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4d5695
mov eax, dword [0x54e38c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4d56b3
xor eax, eax
jmp 0x4d575a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004c3900
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4d56e9
cmp edi, esi
jne 0x4d5704
lea eax, [ebx + ebx]
push eax
call fcn.004c6dc6
pop ecx
mov edi, eax
cmp edi, esi
je 0x4d56ac
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d5737
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4d5721
push esi
push esi
jmp 0x4d5727
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4d5743
push edi
call fcn.004c479d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4d575a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004cacdf
ret
Function at 0x100012b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006f87
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], 0
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001390
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.10005970
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006192
mov esp, ebp
pop ebp
ret
Function at 0x10001c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 0x10], 0x34
mov al, 0x41
xor al, byte [ebp - 0x10]
mov cl, 0x47
xor cl, byte [ebp - 0x10]
mov ah, 0x46
mov byte [ebp - 0xf], al
mov ch, 7
mov byte [ebp - 0xe], cl
mov bl, 0x51
mov cl, byte [ebp - 0x10]
mov bh, 6
mov byte [ebp - 1], 0x58
xor ah, cl
mov al, byte [ebp - 1]
xor bl, cl
xor al, cl
mov byte [ebp - 2], 0x58
mov byte [ebp - 7], al
xor ch, cl
mov al, byte [ebp - 2]
xor bh, cl
mov byte [ebp - 0xc], ah
xor al, cl
mov byte [ebp - 5], 0
mov dl, 0x1a
mov byte [ebp - 6], al
mov dh, 0x50
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], ch
xor dl, cl
mov byte [ebp - 0xa], bh
xor dh, cl
mov byte [ebp - 9], dl
push eax
mov byte [ebp - 8], dh
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10001d2e
movaps xmm0, xmmword [0x10008f40]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x192c2d37
mov byte [ebp - 0x14], 0
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x13
jb 0x10001ce4
lea eax, [ebp - 0x27]
mov byte [ebp - 0x14], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call fcn.10001200
push 0
push 0xc8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x10001d2e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x134], 0x128
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100026f4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x10002710
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x100026d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10006192
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x12c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10006192
mov esp, ebp
pop ebp
ret 4

Function at 0x10002730
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100070ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.100062c2
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [eax], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.10001740
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100027d2
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10002808
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100027fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100027fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000660c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10006192
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10026ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a87c3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100c4040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.100a6f48
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [eax + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x100b36c0
mov eax, dword [esi]
mov dword [edi + 0xc], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
movups xmmword [edi + 0x84], xmm0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0xf
mov byte [edi + 0x84], 0
movups xmmword [edi + 0x9c], xmm0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0xf
mov byte [edi + 0x9c], 0
mov byte [ebp - 4], 2
mov ecx, edi
mov word [edi + 0xb5], 0
mov byte [edi + 0xb7], 0
push eax
mov dword [edi + 0xb4], 0
mov dword [edi + 0x3f0], 0
mov dword [edi + 0x3f4], 0
mov dword [edi + 0x3f8], 0
mov byte [edi + 0x3fc], 0
mov dword [edi + 0x400], 0
mov byte [edi + 0x404], 0
mov dword [edi + 0x408], 0
mov dword [edi + 0x40c], 0
mov dword [edi + 0x410], 0
mov dword [edi + 0x414], 0
mov dword [edi + 0x418], 0
mov dword [edi + 0x41c], 0
mov word [edi + 0x42c], 0
call fcn.100209a0
mov ecx, dword [ebp - 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x14]
movq qword [ecx], xmm0
mov dword [ecx + 4], 0
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret