joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7954b9
Capabilities:
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
mov eax, 0x2428
call fcn.007c1eb0
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
push ebx
mov ebx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push esi
mov esi, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push edi
push dword [ebx]
mov dword [ebp - 0x7c], esi
call fcn.0077858a
mov dword [ebp - 0x70], eax
mov dword [esp], reloc.ws2_32.dll_WSASetLastError
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push 0x7f427c
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x7eced0
push eax
call fcn.007c9c10
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x7f426c
push eax
call fcn.007c9c10
push 0x7ec748
push esi
call fcn.00748be9
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x795563
push esi
push 2
mov esi, 0x32d
push esi
push 0x82cea8
push dword [ebp - 0x70]
call fcn.0074b93c
add esp, 0x14
mov eax, esi
jmp 0x795694
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x7f1fec
push eax
call fcn.00748be9
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
push edi
test eax, eax
jne 0x79559e
call fcn.007c7ab7
push esi
mov esi, 0x32d
push 2
push esi
push 0x82cea8
push dword [ebp - 0x70]
call fcn.0074b93c
add esp, 0x18
jmp 0x79555c
call fcn.007d04f6
pop ecx
test eax, eax
jne 0x79562d
mov esi, 0x1000
push esi
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.007c3430
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
push edi
call fcn.007cf402
push edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.007cf74d
push dword [ebp + 0x23b8]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x80]
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push esi
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.0079515a
add esp, 0x48
test eax, eax
jne 0x795660
push dword [ebp - 0x74]
lea eax, reloc.ws2_32.dll_WSASetLastError
push dword [ebp - 0x78]
push 1
push eax
call fcn.007c7ef5
push edi
call fcn.007d04f6
add esp, 0x14
test eax, eax
je 0x7955b1
mov esi, dword [ebp - 0x7c]
push edi
call fcn.007c7ab7
push dword [ebp - 0x74]
call fcn.007c7ab7
push esi
call fcn.00748c9e
add esp, 0xc
cmp eax, reloc.ws2_32.dll_WSASetLastError
lea eax, reloc.ws2_32.dll_WSASetLastError
jne 0x79567d
push eax
call fcn.00748c9e
push esi
mov esi, 0x32e
jmp 0x795589
push 2
mov esi, 0x32a
push esi
push 0x82cea8
push dword [ebp - 0x70]
call fcn.0074b93c
add esp, 0x10
jmp 0x79555c
push esi
push eax
call fcn.00748df8
pop ecx
pop ecx
test eax, eax
je 0x795692
lea eax, reloc.ws2_32.dll_WSASetLastError
jmp 0x79564f
xor eax, eax
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x23a8
leave
ret
Function at 0x799aa1
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
sub esp, 0xc30
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
mov eax, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push ebx
mov ebx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push esi
mov esi, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push edi
push dword [esi]
mov dword [ebp - 0x80], eax
call fcn.0077858a
mov edi, 0x400
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.007c3430
push 0x410
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push ebx
push esi
call fcn.0077a809
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c7760
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push esi
call fcn.0077aace
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.00761c68
add esp, 0x3c
cmp eax, reloc.ws2_32.dll_WSASetLastError
jne 0x799b7d
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007d0522
pop ecx
cmp eax, reloc.ws2_32.dll_WSASetLastError
jne 0x799b7d
push 2
mov esi, 0x332
push esi
push 0x82cea8
push dword [ebp - 0x78]
call fcn.0074b93c
add esp, 0x10
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0xbb0
leave
ret
push 0x7f1fe4
push ebx
call fcn.00748be9
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x799bb2
push 0x7ec8a8
push 2
mov esi, 0x32d
push esi
push 0x82cea8
push dword [ebp - 0x78]
call fcn.0074b93c
add esp, 0x14
jmp 0x799b63
push ebx
push dword [ebp + 0xbc0]
push eax
call fcn.007ced22
add esp, 0xc
push 0x5f
push ebx
push ebx
push dword [ebp - 0x80]
call fcn.007c7760
pop ecx
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
push esi
call fcn.007950d4
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 1
push edi
push eax
call fcn.007c7ef5
add esp, 0x2c
test eax, eax
jne 0x799c19
push 2
mov esi, 0x32a
push esi
push 0x82cea8
push dword [ebp - 0x78]
call fcn.0074b93c
add esp, 0x10
push dword [ebp - 0x7c]
call fcn.007c7ab7
pop ecx
jmp 0x799b63
xor esi, esi
jmp 0x799c0b
Function at 0x799c1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [eax]
call fcn.0077858a
mov ebx, dword [0x82fabc]
mov dword [esp], 0x7ec748
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
neg ebx
call fcn.00748be9
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x799c70
push 0x7ec8a8
push 2
mov esi, 0x32d
push esi
push 0x82cea8
push dword [ebp - 0x10]
call fcn.0074b93c
add esp, 0x14
mov eax, esi
jmp 0x799ceb
push edi
push eax
jmp 0x799cb1
mov edx, dword [0x872620]
add ebx, eax
mov al, byte [ebp - 1]
mov byte [ebp - 8], al
mov eax, dword [0x82fabc]
lea ecx, [eax - 1]
test ecx, ecx
jle 0x799c95
lea esi, [edx + 1]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp - 8]
mov byte [edx + eax - 1], cl
dec eax
push eax
push dword [ebp + 0xc]
push edx
call fcn.007ca270
add esp, 0xc
push dword [ebp - 0xc]
test eax, eax
je 0x799cef
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.007cf74d
add esp, 0x10
test eax, eax
jne 0x799c74
push dword [ebp - 0xc]
call fcn.007c7ab7
push dword [ebp + 8]
mov esi, 0x33b
push 2
push esi
push 0x82cea8
push dword [ebp - 0x10]
call fcn.0074b93c
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
call fcn.007c7ab7
pop ecx
xor eax, eax
jmp 0x799cea
Function at 0x79ad17
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x80
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0x7f1fe4
push esi
call fcn.00748be9
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x79ad5c
mov eax, 0x800
jmp 0x79ae2f
push edi
call fcn.007cea11
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.007c3430
lea eax, [ebp - 0x10]
push eax
push 0x7f2624
mov esi, 0x3b9aca00
push ebx
mov dword [ebp - 0x14], esi
call fcn.007e5efa
xor ebx, ebx
push ebx
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.007ced22
push edi
push 4
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.007c7ef5
add esp, 0x38
push edi
cmp eax, 4
je 0x79adba
call fcn.007c7ab7
pop ecx
mov eax, 0x1000
jmp 0x79ae2f
call fcn.007c7ab7
pop ecx
call fcn.00743f09
cmp eax, 1
jne 0x79ae21
push 0x14
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x79ade1
mov eax, 0x2000
jmp 0x79ae2f
push 1
push esi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x79adf7
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
jmp 0x79adda
push ebx
push ebx
push 1
push esi
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
push esi
test eax, eax
je 0x79adef
push 4
push dword [ebp - 0x18]
call fcn.007491c3
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, ebx
je 0x79adda
push 2
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
leave
ret
Function at 0x79ae3e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x1f3
xor ebx, ebx
push esi
mov dword [ebp - reloc.ws2_32.dll_WSASetLastError], eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push ebx
push eax
mov byte [ebp - 0x248], bl
call fcn.007c3430
push 0x3f
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 0x54], bl
call fcn.007c3430
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
push esi
stosb byte es:[edi], al
lea eax, reloc.ws2_32.dll_WSASetLastError
push ebx
push eax
mov byte [ebp - 0x43c], bl
call fcn.007c3430
push 1
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
mov dword [ebp - reloc.ws2_32.dll_WSASetLastError], 0x1f4
mov dword [ebp - 0x14], 0x6c6c642e
mov word [ebp - 0x10], bx
mov dword [ebp - 0xc], 0x7a67742e
mov word [ebp - 8], bx
call fcn.00757410
add esp, 0x30
test eax, eax
je 0x79aeef
mov eax, 0x80000
jmp 0x79afc4
cmp dword [ebp + 0xc], 1
lea eax, [ebp - 0xc]
je 0x79aefb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x440]
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push 0x7ecec8
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
call fcn.007e5eb9
add esp, 0x18
push ebx
push 0x2000080
push 4
push ebx
push ebx
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0xc0000000
push eax
call fcn.0074913b
mov esi, eax
add esp, 0x1c
cmp esi, reloc.ws2_32.dll_WSASetLastError
jne 0x79af4a
mov eax, 0x400
jmp 0x79afc4
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, 0xb7
jne 0x79af68
mov eax, 0x8000
jmp 0x79afc4
cmp dword [ebp + 0xc], ebx
jne 0x79af8b
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007cf807
push dword [ebp - 0x448]
call fcn.00744ca0
pop ecx
pop ecx
mov dword [0x87de08], eax
push dword [0x87de08]
lea eax, [ebp - 0x54]
push 0x7f2624
push 0x3f
push eax
call fcn.007e5eb9
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0079ad17
add esp, 0x18
push 2
push dword [ebp - 0x440]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
leave
ret
Function at 0x79b091
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
sub esp, 0xc3c
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
push ebx
push esi
xor ebx, ebx
push 0x40f
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.007c3430
push 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
mov esi, 0x410
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x61637267
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x31687475
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x6c6c642e
mov byte [ebp + 0x3a4], bl
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x61637267
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x32687475
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], 0x6c6c642e
mov byte [ebp + 0x7b4], bl
call fcn.00757410
add esp, 0x18
test eax, eax
je 0x79b12d
push 0x12
pop eax
jmp 0x79b17f
push edi
cmp dword [0x8746a8], ebx
jne 0x79b17c
lea eax, reloc.ws2_32.dll_WSASetLastError
mov edi, 0x8746a8
mov dword [ebp - 0x7c], eax
push esi
call fcn.0074274a
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x79b196
push dword [ebp - 0x7c]
mov byte [eax], bl
push 0x7eced0
lea eax, [ebp - 0x78]
push eax
push 0x7ecec8
push dword [edi]
call fcn.007e5e9e
add dword [ebp - 0x7c], esi
add edi, 4
add esp, 0x14
cmp edi, 0x8746b0
jl 0x79b144
xor eax, eax
pop edi
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0xbbc
leave
ret
mov eax, dword [0x8746a8]
cmp eax, ebx
je 0x79b1ac
push eax
call fcn.007c9cf8
pop ecx
mov dword [0x8746a8], ebx
mov eax, dword [0x8746ac]
cmp eax, ebx
je 0x79b1c2
push eax
call fcn.007c9cf8
pop ecx
mov dword [0x8746ac], ebx
push 2
pop eax
jmp 0x79b17e

Function at 0x79b1c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0x410
test esi, esi
je 0x79b232
cmp dword [ebp + 0xc], 0
jle 0x79b232
push 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x10], 0x67737270
mov dword [ebp - 0xc], 0x642e6372
mov word [ebp - 8], 0x6c6c
mov byte [ebp - 6], 0
call fcn.00757410
add esp, 0xc
test eax, eax
je 0x79b21b
push 0x12
jmp 0x79b234
lea eax, [ebp - 0x10]
push eax
push esi
push 0x7eced4
push esi
call fcn.007e5e9e
add esp, 0x10
xor eax, eax
jmp 0x79b235
push 0xf
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.007c1e9d
leave
ret
Function at 0x79fd50
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push reloc.ws2_32.dll_WSASetLastError
push 0
push 0x79fe5c
push dword fs:[0]
mov dword fs:[0], esp
push edx
push ecx
push ebx
mov eax, 0x83ec8b55
xor eax, 0xd5a1d33d
mov ebx, 0
mov ecx, 0xa
mov edx, 0x56ec8b55
xor edx, 0xdd0d
in eax, dx
sub ebx, 0x51ec8b55
cmp ebx, 0x460cd13
jne 0x79fda8
pop ebx
pop ecx
pop edx
mov eax, 1
jmp 0x79fe3e
pop ebx
pop ecx
pop edx
mov esp, dword fs:[0]
pop dword fs:[0]
add esp, 0xc
push reloc.ws2_32.dll_WSASetLastError
push 0
push 0x79fe6d
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
invalid
mov esp, dword fs:[0]
pop dword fs:[0]
add esp, 0xc
push eax
mov eax, dword [esp + 8]
pop dword [eax]
xor eax, eax
ret

Function at 0x79ff34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov ecx, dword [ebp + 0xb0]
mov eax, dword [ebp + 0x9c]
push ebx
mov ebx, dword [ebp + 0xac]
push esi
mov esi, dword [ebp + 0xa0]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0xa8]
push edi
mov edi, dword [ebp + 0xa4]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x78]
push ecx
push esi
push eax
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
je 0x79ffb7
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x70]
push 0x100
push eax
call fcn.0075711f
push eax
push esi
push 0x7f594c
push dword [ebp - 0x74]
call fcn.007e5e9e
add esp, 0x18
xor eax, eax
jmp 0x7a001d
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push edi
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x7a0002
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x70]
push 0x100
push eax
call fcn.0075711f
push eax
push edi
push 0x7f5924
push dword [ebp - 0x74]
call fcn.007e5e9e
add esp, 0x18
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x79ffb3
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0x7f5910
push dword [ebp - 0x74]
call fcn.007c9c00
pop ecx
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x94
leave
ret
Function at 0x7a0035
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xb0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xbc]
push ebx
push esi
mov esi, dword [ebp + 0xac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc0]
push edi
mov edi, dword [ebp + 0xa8]
mov dword [ebp - 0x6c], eax
call fcn.00743f09
cmp eax, 1
jne 0x7a00a2
lea eax, [ebp - 0x80]
push eax
call fcn.00743f1d
pop ecx
test eax, eax
je 0x7a009a
or eax, reloc.ws2_32.dll_WSASetLastError
jmp 0x7a014e
lea eax, [ebp - 0x68]
push eax
push 3
jmp 0x7a00a8
lea eax, [ebp - 0x68]
push eax
push 2
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x7a00e2
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x64]
push 0x100
push eax
call fcn.0075711f
push eax
push esi
push 0x7f598c
push dword [ebp - 0x6c]
call fcn.007e5e9e
add esp, 0x18
xor eax, eax
jmp 0x7a014e
mov esi, dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x68]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x7a0115
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x64]
push 0x100
push eax
call fcn.0075711f
push eax
push esi
push 0x7f5970
jmp 0x7a00d3
push dword [ebp + 0xb8]
push dword [ebp - 0x74]
push dword [ebp + 0xb4]
push ebx
push esi
push dword [ebp - 0x68]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
cmp eax, ebx
jne 0x7a00f7
push 0x7f5910
push dword [ebp - 0x6c]
call fcn.007c9c00
pop ecx
pop ecx
push dword [ebp - 0x68]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0xa0
leave
ret
Function at 0x7b4d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x9e3779b9
mov dword [ebp - 4], eax
mov ebx, edi
cmp eax, 0xc
jb 0x7b4e4c
push 0xc
pop ecx
xor edx, edx
div ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edi, edx
movzx edx, byte [ecx + 0xa]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 0xb]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add esi, edx
movzx edx, byte [ecx + 3]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movzx eax, byte [ecx]
shl edx, 8
add edx, eax
sub edx, esi
sub edx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
add edx, ebx
xor edx, eax
sub edi, edx
mov eax, edx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub edx, esi
sub edx, edi
mov eax, esi
shr eax, 0xc
xor edx, eax
sub edi, esi
sub edi, edx
sub dword [ebp - 4], 0xc
mov eax, edx
shl eax, 0x10
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 5
xor esi, eax
sub edx, esi
mov ebx, esi
sub edx, edi
shr ebx, 3
xor ebx, edx
sub edi, esi
mov eax, ebx
shl eax, 0xa
sub edi, ebx
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xf
xor esi, eax
add ecx, 0xc
dec dword [ebp + 0x10]
jne 0x7b4d75
jmp 0x7b4e4f
mov ecx, dword [ebp + 8]
add esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0xa
ja case.default.0x7b4e5b
jmp dword [eax*4 + 0x7b4f24]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx eax, byte [ecx + 9]
shl eax, 0x10
add esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 4]
add edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, ebx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xc
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
shr ecx, 3
xor ebx, ecx
sub edi, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 0xa
xor edi, ecx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7b4f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x7ec748
push eax
call fcn.00748be9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x7b4ff2
push edi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.007c3430
push esi
push 2
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.007cf74d
mov edi, eax
add esp, 0x1c
cmp edi, 2
je 0x7b4fc9
push esi
call fcn.007c7ab7
pop ecx
call fcn.007cb1ce
cmp dword [eax], 2
jne 0x7b4fc9
cmp edi, 1
jne 0x7b4fc9
cmp dword [ebp - 0x14], reloc.ws2_32.dll_WSASetLastError
jne 0x7b4fd9
push 0x45
pop eax
mov dword [ebp - 0x10], eax
push eax
jmp 0x7b4fe0
push esi
call fcn.007c7ab7
cmp dword [ebp - 0x14], 0x3b9aca00
pop ecx
je 0x7b4fdd
xor eax, eax
jmp 0x7b4ff1
push dword [ebp - 0x10]
push 0x7f2624
push ebx
call fcn.007e5e9e
xor eax, eax
add esp, 0xc
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
leave
ret

Function at 0x7b5000
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
mov dword [ebp - 0x48], eax
xor eax, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], ebx
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push esi
mov dword [ebp - 0x44], esi
call fcn.00748d83
pop ecx
pop ecx
test eax, eax
jne 0x7b5050
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
jmp 0x7b506a
push ebx
call fcn.007cf807
mov edi, 0x15180
sub eax, edi
push ebx
mov dword [ebp - 0x40], eax
call fcn.007cf807
pop ecx
pop ecx
sub eax, edi
push 0x80
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0x7f1fe4
push esi
call fcn.00748be9
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x7b5090
xor eax, eax
jmp 0x7b510a
push edi
call fcn.007cea11
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.007c3430
lea eax, [ebp - 0x10]
push eax
push 0x7f2624
push dword [ebp - 0x48]
mov esi, 0x3b9aca00
mov dword [ebp - 0x14], esi
call fcn.007e5efa
push ebx
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.007ced22
push edi
push 4
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.007c7ef5
add esp, 0x38
push edi
cmp eax, 4
je 0x7b50e8
call fcn.007c7ab7
pop ecx
jmp 0x7b508c
call fcn.007c7ab7
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call fcn.007d1191
add esp, 0xc
push 2
push dword [ebp - 0x44]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
leave
ret