joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000185a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x1001c1a8
jmp fcn.10001864

Function at 0x100019e9
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov eax, 0x10013578
call fcn.1000a92c
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi], eax
jne 0x10001a35
lea eax, [ebp - 0x18]
push 0x10014f48
push eax
mov dword [ebp - 0x18], str.failed...
call fcn.1000a94b
nop
push esi
push ebx
push 3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
nop
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp + 0x18]
push 4
push eax
push 2
mov dword [ebp + 0x18], 0x1d4c0
push dword [esi + 4]
call edi
lea eax, [ebp + 0x18]
push 4
push eax
push 5
push dword [esi + 4]
call edi
lea eax, [ebp + 0x18]
push 4
push eax
push 6
push dword [esi + 4]
call edi
nop
lea eax, [ebp + 0x18]
push 4
push eax
push 7
push dword [esi + 4]
call edi
lea eax, [ebp + 0x18]
push 4
push eax
push 8
push dword [esi + 4]
call edi
cmp dword [esi + 4], ebx
jne 0x10001abb
lea eax, [ebp - 0x1c]
push 0x10014f48
push eax
mov dword [ebp - 0x1c], str.failed...
call fcn.1000a94b
nop
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x10001b00
lea eax, [ebp - 0x20]
push 0x10014f48
push eax
mov dword [ebp - 0x20], str.connect_failed...
call fcn.1000a94b
mov esi, dword [ebp - 0x24]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [ebp - 0x14], ebx
nop
mov eax, 0x10001b01
ret
nop
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x10001b15
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x10013584
call fcn.1000a92c
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 1
nop
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x10001bea
cmp eax, 0xffffffff
je 0x10001bea
nop
push edi
push edi
push 0x1001a5cc
push edi
push str.HTTP_1.0
push dword [ebp + 8]
push 0x1001a688
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x10001bd5
cmp eax, 0xffffffff
je 0x10001bd5
nop
mov ebx, str.Accept:___r_n
push 0x80000000
push ebx
call fcn.1000a990
pop ecx
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x10001baf
lea eax, [ebp - 0x18]
push 0x10014f48
push eax
mov dword [ebp - 0x18], str.additional_header_failed...
call fcn.1000a94b
push edi
push edi
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10001c1f
lea eax, [ebp - 0x1c]
push 0x10014f48
push eax
mov dword [ebp - 0x1c], str.request_failed...
call fcn.1000a94b
lea eax, [ebp - 0x20]
push 0x10014f48
push eax
mov dword [ebp - 0x20], str.request_failed...
call fcn.1000a94b
lea eax, [ebp - 0x24]
push 0x10014f48
push eax
mov dword [ebp - 0x24], str.handle_not_opened...
call fcn.1000a94b
xor edi, edi
mov dword [ebp - 0x14], edi
nop
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 8]
cmp eax, edi
je 0x10001c19
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 8], edi
mov eax, 0x10001c1f
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x10001c33
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x10013590
call fcn.1000a92c
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
nop
cmp dword [ecx + 8], eax
mov dword [ebp - 4], eax
jne 0x10001c6c
lea eax, [ebp - 0x18]
push 0x10014f48
push eax
mov dword [ebp - 0x18], str.connection_failed...
call fcn.1000a94b
nop
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10001cb0
lea eax, [ebp - 0x1c]
push 0x10014f48
push eax
mov dword [ebp - 0x1c], str.response_failed...
call fcn.1000a94b
mov esi, dword [ebp - 0x20]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [esi + 8], 0
nop
mov eax, 0x10001cb0
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x100029bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push dword [ebp + 8]
call fcn.10002924
test eax, eax
pop ecx
je 0x10002a14
nop
push dword [ebp + 8]
call fcn.10002970
test eax, eax
pop ecx
jne 0x10002a14
mov al, byte [0x1001c1a0]
push edi
push 0x7f
mov byte [ebp - 0x200], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
nop
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 8]
call fcn.10002880
pop ecx
pop ecx
pop edi
test eax, eax
jne 0x10002a18
xor eax, eax
leave
ret
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x10002d88
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10013680
call fcn.1000a92c
sub esp, 0x21c
mov al, byte [ebp + 0xf]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [esi], 0x10014360
call fcn.10002f41
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10014354
call fcn.10003cba
mov ebx, 0x200
lea eax, [esi + 0x18]
push ebx
push edi
push eax
call fcn.1000a3e0
mov al, byte [0x1001c1a0]
push 0x7f
mov byte [ebp - 0x228], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
push str.system
push edi
call fcn.10012380
add esp, 0x14
test eax, eax
jne 0x10002e2a
lea eax, [ebp - 0x228]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x10002ec1
push str.windows
push edi
call fcn.10012380
pop ecx
test eax, eax
pop ecx
jne 0x10002e4b
lea eax, [ebp - 0x228]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10002ec1
push 0x1001a850
push edi
call fcn.10012380
pop ecx
test eax, eax
pop ecx
jne 0x10002e6c
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x10002ec1
push str.wintmp
push edi
call fcn.10012380
pop ecx
test eax, eax
pop ecx
jne 0x10002ec1
lea eax, [ebp - 0x228]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x228]
push eax
call fcn.1000a990
mov al, byte [ebp + eax - 0x229]
pop ecx
cmp al, 0x5c
je 0x10002eae
cmp al, 0x2f
je 0x10002eae
push str._temp
jmp 0x10002eb3
push str.temp
lea eax, [ebp - 0x228]
push eax
call fcn.1000abe0
pop ecx
pop ecx
lea eax, [ebp - 0x228]
push eax
call fcn.1000a990
test eax, eax
pop ecx
je 0x10002f20
mov al, byte [ebp + eax - 0x229]
cmp al, 0x5c
je 0x10002f06
cmp al, 0x2f
je 0x10002f06
lea eax, [ebp - 0x228]
push 0x1001a834
push eax
call fcn.1000abe0
push dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.1000abe0
add esp, 0x10
jmp 0x10002f17
push dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.1000abe0
pop ecx
pop ecx
lea eax, [ebp - 0x228]
push eax
jmp 0x10002f23
push dword [ebp + 0xc]
lea eax, [esi + 0x18]
push eax
call fcn.1000abd0
pop ecx
mov eax, esi
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x10003104
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10013697
call fcn.1000a92c
sub esp, 0x220
push esi
push edi
push 0
push 0x400
push dword [ebp + 8]
lea ecx, [ebp - 0x22c]
call fcn.100031ee
and dword [ebp - 4], 0
nop
lea ecx, [ebp - 0x22c]
call fcn.10002b4d
nop
push str.version
lea ecx, [ebp - 0x22c]
call fcn.10002b15
push str.file
lea ecx, [ebp - 0x22c]
mov edi, eax
call fcn.10002b15
mov esi, eax
test esi, esi
je 0x100031c3
push esi
call fcn.1000a990
test eax, eax
pop ecx
je 0x100031c3
cmp dword [ebp + 0xc], 0
je 0x10003186
push 0x1ff
push esi
push dword [ebp + 0xc]
call fcn.1000ad20
add esp, 0xc
nop
cmp dword [ebp + 0x10], 0
je 0x100031a1
test edi, edi
je 0x100031a1
push 0x1f
push edi
push dword [ebp + 0x10]
call fcn.1000ad20
add esp, 0xc
jmp 0x100031b0
push str.null
push dword [ebp + 0x10]
call fcn.1000abd0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x100031c5
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 0x10014354
call fcn.10003cba
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100031ee
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x100136ac
call fcn.1000a92c
sub esp, 0x21c
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x10014368
mov dword [esi + 0x218], eax
mov al, byte [0x1001c1a0]
push 0x7f
mov byte [ebp - 0x228], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x200
lea eax, [esi + 0x18]
push edi
push ebx
push eax
call fcn.1000a3e0
push edi
lea eax, [esi + 0x18]
push dword [ebp + 8]
push eax
call fcn.1000ad20
push edi
lea eax, [ebp - 0x228]
push dword [ebp + 8]
push eax
call fcn.1000ad20
push edi
lea eax, [ebp - 0x228]
push str._zcdy_smc
push eax
call fcn.1000ae20
add esp, 0x30
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x28]
push eax
call fcn.10002f41
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10014354
call fcn.10003cba
push dword [ebp + 8]
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 0x21c], eax
jne 0x100032c4
mov dword [esi + 0x21c], ebx
cmp dword [esi + 0x21c], ebx
jne 0x1000330f
cmp dword [ebp + 0x10], ebx
je 0x1000330f
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 6
push eax
mov dword [esi + 0x21c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x10003308
push dword [ebp + 0xc]
push ebx
push edi
call fcn.1000a3e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x10003433
Capabilities:
Get file version info

Disassembly:
mov eax, 0x100136b8
call fcn.1000a92c
sub esp, 0x520
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x10], esp
nop
mov al, byte [0x1001c1a0]
push 0x40
mov byte [ebp - 0x12c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x1000349f
lea eax, [ebp - 0x28]
push 0x10014f48
push eax
mov dword [ebp - 0x28], str.bad_file
call fcn.1000a94b
and dword [ebp - 0x24], 0
mov eax, 0x100035e0
ret
nop
push edi
call fcn.1000af8b
pop ecx
mov esi, eax
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
nop
mov dword [ebp - 0x20], ebx
nop
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
nop
mov dword [ebp - 0x14], ebx
nop
mov dword [ebp - 0x18], ebx
nop
mov al, byte [0x1001c1a0]
push 0x7f
mov byte [ebp - 0x32c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x32c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.1000aa0b
add esp, 0x10
nop
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x32c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
nop
push dword [ebp - 0x14]
lea eax, [ebp - 0x12c]
push eax
call fcn.1000abd0
nop
lea eax, [ebp - 0x12c]
push eax
call fcn.1000a990
add esp, 0xc
mov edx, eax
nop
cmp edx, 7
jl 0x100035d5
mov al, byte [0x1001c1a0]
push 0x7f
mov byte [ebp - 0x52c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x52b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ecx, ecx
nop
xor edi, edi
cmp edi, edx
jge 0x100035a4
cmp byte [ebp + edi - 0x12c], 0x20
lea eax, [ebp + edi - 0x12c]
je 0x100035a1
nop
mov al, byte [eax]
cmp al, 0x2c
jne 0x10003598
mov byte [ebp + ecx - 0x52c], 0x2e
jmp 0x1000359f
mov byte [ebp + ecx - 0x52c], al
nop
inc ecx
inc edi
jmp 0x10003572
lea eax, [ebp - 0x52c]
mov byte [ebp + ecx - 0x52c], bl
push eax
call fcn.1000a990
lea ecx, [ebp - 0x52c]
dec ecx
dec ecx
mov byte [eax + ecx], bl
nop
lea eax, [ebp - 0x52c]
push eax
push dword [ebp + 0xc]
call fcn.1000abd0
add esp, 0xc
cmp esi, ebx
je 0x100035e0
push esi
call fcn.1000af43
pop ecx
push dword [ebp + 0xc]
call fcn.1000a990
test eax, eax
pop ecx
jne 0x100035fc
push str.null
push dword [ebp + 0xc]
call fcn.1000abd0
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10003c26
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10003c74
push esi
push 0x80
push 4
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
nop
cmp edi, 0xffffffff
je 0x10003c7a
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
nop
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, esi
pop edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x10003c76

Function at 0x1000651a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
call fcn.10006da2
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x63]
mov byte [ebp - 0x64], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
lea eax, [esi + 4]
push ebx
push eax
call fcn.1000a3e0
push 0x40
lea eax, [esi + 0x14]
push ebx
push eax
call fcn.1000a3e0
nop
push 0x40
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.1000a3e0
nop
push 0x40
lea eax, [esi + 0x94]
push ebx
push eax
call fcn.1000a3e0
mov edi, 0x200
lea eax, [esi + 0xd4]
push edi
push ebx
push eax
call fcn.1000a3e0
push edi
lea eax, [esi + 0x2d4]
push ebx
push eax
call fcn.1000a3e0
add esp, 0x48
lea eax, [esi + 0x4d4]
push 0x7e0
push ebx
push eax
call fcn.1000a3e0
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10014650]
xor cl, 0xec
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0x10
jl 0x100065ac
mov byte [ebp + eax - 0x64], bl
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
nop
xor eax, eax
mov cl, byte [eax + 0x10014650]
xor cl, 0xec
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0x10
jl 0x100065d2
mov byte [ebp + eax - 0x64], bl
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi + 0xcb4], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006620
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push dword [esi + 0xcb4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov al, byte [0x1001c1a0]
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x50b]
mov byte [ebp - 0x50c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
nop
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
call fcn.10006d2f
nop
push ebx
push 0x80
push 3
push ebx
push ebx
lea eax, [ebp - 0x10c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100066fb
lea edi, [esi + 0x14]
mov ecx, esi
push edi
call fcn.10006758
push ebx
push 0x8000080
push 2
push ebx
push ebx
lea eax, [ebp - 0x10c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
nop
cmp eax, 0xffffffff
je 0x10006730
mov dword [ebp - 4], ebx
nop
lea eax, [ebp - 4]
push ebx
push eax
push edi
call fcn.1000a990
pop ecx
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006730
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x50c]
push 0x400
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea eax, [ebp - 0x50c]
lea edi, [esi + 0x14]
push eax
push edi
call fcn.1000abd0
pop ecx
pop ecx
push dword [esi + 0xcb4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006d2f
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and byte [ebp - 0x64], 0
push esi
push edi
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x63]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call fcn.1000a990
pop ecx
nop
mov cl, byte [eax + esi - 1]
add eax, esi
cmp cl, 0x5c
je 0x10006d76
cmp cl, 0x2f
je 0x10006d76
mov byte [eax], 0x5c
and byte [eax + 1], 0
xor eax, eax
mov cl, byte [eax + 0x10014634]
xor cl, 0xec
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0xc
jl 0x10006d78
and byte [ebp + eax - 0x64], 0
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.1000abe0
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x100070b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
xor eax, eax
mov cl, byte [eax + 0x10014640]
xor cl, 0xec
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0xf
jl 0x100070c0
and byte [ebp + eax - 0x64], 0
lea eax, [ebp - 0x64]
leave
ret
Function at 0x100073d0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and byte [ebp - 0x64], 0
push esi
push edi
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x63]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call fcn.1000a990
add eax, esi
pop ecx
mov cl, byte [eax - 1]
cmp cl, 0x5c
je 0x10007415
cmp cl, 0x2f
je 0x10007415
mov byte [eax], 0x5c
and byte [eax + 1], 0
xor eax, eax
mov cl, byte [eax + 0x10014628]
xor cl, 0xec
mov byte [ebp + eax - 0x64], cl
inc eax
cmp eax, 0xc
jl 0x10007417
and byte [ebp + eax - 0x64], 0
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.1000abe0
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10007cf7
Capabilities:
Create pipe
Create thread
Encode data using xor
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0x1001dc94
xor ebx, ebx
push 4
push ebx
push 0x10007c88
push ebx
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001dc98], eax
nop
push dword [0x1001dc98]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x7f]
mov byte [ebp - 0x80], bl
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push ebx
push ebx
push 0xffffffffffffffff
call edi
mov dword [esi + 0x28], eax
mov byte [ebp - 0x1c], 0xb0
mov byte [ebp - 0x1b], 0xb0
mov byte [ebp - 0x1a], 0xc2
mov byte [ebp - 0x19], 0xb0
mov byte [ebp - 0x18], 0x9c
mov byte [ebp - 0x17], 0x85
mov byte [ebp - 0x16], 0x9c
mov byte [ebp - 0x15], 0x89
mov byte [ebp - 0x14], 0xb0
mov byte [ebp - 0x13], 0xad
mov byte [ebp - 0x12], 0xdc
mov byte [ebp - 0x11], 0xd5
mov byte [ebp - 0x10], 0xaf
mov byte [ebp - 0xf], 0xdb
mov byte [ebp - 0xe], 0xaf
mov byte [ebp - 0xd], 0xde
mov byte [ebp - 0xc], 0xda
mov byte [ebp - 0xb], 0xa9
mov byte [ebp - 0xa], 0xa8
mov byte [ebp - 9], 0xd4
mov byte [ebp - 8], 0xd9
mov byte [ebp - 7], 0xdb
mov byte [ebp - 6], 0xaf
mov byte [ebp - 5], 0xdf
mov byte [ebp - 4], 0xda
xor eax, eax
mov cl, byte [ebp + eax - 0x1c]
xor cl, 0xec
mov byte [ebp + eax - 0x80], cl
inc eax
cmp eax, 0x19
jl 0x10007db6
push ebx
push 0xffffffffffffffff
push ebx
push ebx
mov byte [ebp + eax - 0x80], bl
push 1
push ebx
lea eax, [ebp - 0x80]
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 1
push ebx
push dword [esi + 0x28]
mov dword [esi + 0x24], eax
push eax
call edi
nop
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1ab4], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [0x1001dc90], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x10007f38
push ebx
push ebx
call edi
mov dword [esi], eax
nop
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x10007fa5
push ebx
push ebx
call edi
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x1000808c
push ebx
push ebx
call edi
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0xc]
call edi
nop
push dword [esi + 0x18]
call edi
pop edi
pop esi
pop ebx
leave
ret 4