joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004c1d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x10004c38
push 0
push 0
jmp 0x10004c8e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x10004c4b
push 0
push 0x2719
jmp 0x10004c8e
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push esi
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x10004c9b
cmp eax, 0x3e5
je 0x10004c9b
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.10002def
jmp 0x10004ca6
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.10002d9b
pop edi
pop ebp
ret 0x18

Function at 0x10004cab
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x10004cc6
push 0
push 0
jmp 0x10004d2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x10004cd9
push 0
push 0x2719
jmp 0x10004d2f
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10004d12
mov eax, 0x2746
jmp 0x10004d1f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x10004d3c
cmp eax, 0x3e5
je 0x10004d3c
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002def
jmp 0x10004d47
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002d9b
pop esi
pop ebp
ret 0x18
Function at 0x100050b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.100051f0
mov eax, dword [edi + 0x14]
add eax, 0x18
lock inc dword [eax]
cmp dword [esi], 0xffffffff
jne 0x100050db
push 0
push 0x2719
jmp 0x100050e7
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp dword [ecx + 4], eax
jne 0x100050f4
push eax
push eax
push dword [ebp + 0x18]
mov ecx, dword [edi + 0x14]
call fcn.10002def
jmp 0x1000514c
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ecx + 4]
push dword [ecx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x10005142
cmp eax, 0x3e5
je 0x10005142
cmp eax, 0xea
je 0x10005142
push dword [ebp + 8]
mov ecx, dword [edi + 0x14]
push eax
push ebx
call fcn.10002def
jmp 0x1000514b
mov ecx, dword [edi + 0x14]
push ebx
call fcn.10002d9b
pop ebx
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x10005152
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.100051f0
mov eax, dword [edi + 0x14]
add eax, 0x18
lock inc dword [eax]
cmp dword [esi], 0xffffffff
jne 0x10005179
push 0
push 0x2719
jmp 0x10005185
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp dword [ecx + 4], eax
jne 0x10005192
push eax
push eax
push dword [ebp + 0x18]
mov ecx, dword [edi + 0x14]
call fcn.10002def
jmp 0x100051ea
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ecx + 4]
push dword [ecx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100051e0
cmp eax, 0x3e5
je 0x100051e0
cmp eax, 0xea
je 0x100051e0
push dword [ebp + 8]
mov ecx, dword [edi + 0x14]
push eax
push ebx
call fcn.10002def
jmp 0x100051e9
mov ecx, dword [edi + 0x14]
push ebx
call fcn.10002d9b
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x100063df
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [0x1004d0e0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x6c]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x98], 0x2a9b4252
mov dword [esp + 0x9c], 0x25766843
mov dword [esp + 0x90], 0x8a453276
mov dword [esp + 0x94], 0x2526a823
jmp 0x10006498
push 0x1c
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000649c
cmp dword [esp + 0x38], 0x1000
jne 0x1000648e
cmp dword [esp + 0x3c], 4
jne 0x1000648e
test dword [esp + 0x40], 0x20000
je 0x1000648e
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jbe 0x10006492
push 8
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x30]
add eax, 4
push eax
call fcn.10023f42
add esp, 0xc
test eax, eax
je 0x100064cd
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
add eax, ecx
cmp eax, edi
jb 0x1000643a
inc dword [0x100509d8]
xor ebx, ebx
mov byte [esi], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002211a
add esp, 0x94
ret
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
inc dword [0x100509d8]
xor ebx, ebx
push 4
mov byte [esp + 0x18], bl
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.10005b6a
lea ecx, [esp + 0x14]
call fcn.1000613e
mov ebp, eax
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
cmp ebp, eax
cmovb eax, ebp
push eax
lea eax, [edi + 0x10]
push eax
call fcn.10005ab7
sub esp, 0x14
lea eax, [esp + 0xac]
mov ecx, esp
push 8
push eax
call fcn.10005ab7
sub esp, 0x14
lea eax, [esp + 0x80]
mov ecx, esp
push eax
call fcn.10005a66
lea ecx, [esp + 0x6c]
call fcn.1001cb52
mov eax, dword [esp + 0x78]
add esp, 0x28
test eax, eax
je 0x10006575
cmp dword [esp + 0x4c], ebx
je 0x10006575
sub eax, dword [esp + 0x4c]
je 0x10006575
lea eax, [ebp + 0x10]
push eax
push ebx
push edi
call fcn.100255c0
add esp, 0xc
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.10005a66
dec dword [0x100509d8]
lea ecx, [esp + 0x44]
call fcn.10005aee
dec dword [0x100509d8]
lea ecx, [esp + 0x58]
call fcn.10005aee
dec dword [0x100509d8]
cmp dword [esp + 0x18], ebx
je 0x100064b2
cmp byte [esp + 0x14], bl
jne 0x100064b2
push dword [esp + 0x18]
dec dword [0x100509d4]
call fcn.10029cb0
pop ecx
jmp 0x100064b2
Function at 0x10007957
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100391de
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1004d0e0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.1001cec6
test al, al
jne 0x100079fc
call fcn.1001d8aa
test al, al
je 0x100079d5
call fcn.1001d9d9
test al, al
jne 0x100079fc
push 0x208
lea eax, [ebp]
push ebx
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [ebp]
push 1
push 0x23
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10007a49
jmp 0x10007a24
push 0x208
lea eax, [ebp]
push ebx
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10007a49
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.10012757
push 0x5c
mov ecx, esi
call fcn.100126f2
push edi
mov ecx, esi
call fcn.10012732
push 0x5c
mov ecx, esi
call fcn.100126f2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1002211a
add ebp, 0x20c
leave
ret

Function at 0x10007a6e
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x10039225
call fcn.10022cff
mov ecx, 0x10050a24
call fcn.100068c9
test al, al
je 0x10007b41
cmp dword [0x10050a38], 8
cmovae ecx, dword [0x10050a24]
mov edx, ecx
lea ecx, [ebp - 0x70]
call fcn.10007957
and dword [ebp - 4], 0
lea edx, [ebp - 0x70]
push 0x10050a54
lea ecx, [ebp - 0x58]
call fcn.100141cb
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x40]
mov dword [esp], 0x10050a3c
call fcn.100141cb
mov byte [ebp - 4], 2
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
mov dword [esp], 0x10050a6c
call fcn.100141cb
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x58]
pop ecx
push eax
call esi
test eax, eax
je 0x10007b49
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x10007b49
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x10007b49
lea ecx, [ebp - 0x28]
call fcn.1001340c
lea ecx, [ebp - 0x40]
call fcn.1001340c
lea ecx, [ebp - 0x58]
call fcn.1001340c
lea ecx, [ebp - 0x70]
call fcn.1001340c
mov al, 1
call fcn.10022cbd
ret
lea ecx, [ebp - 0x28]
call fcn.1001340c
lea ecx, [ebp - 0x40]
call fcn.1001340c
lea ecx, [ebp - 0x58]
call fcn.1001340c
lea ecx, [ebp - 0x70]
call fcn.1001340c
xor al, al
jmp 0x10007b43
Function at 0x10007e1a
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x54c
mov eax, dword [0x1004d0e0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
mov ebx, dword [esp + 0x558]
push ebp
push esi
push edi
mov edi, ecx
push 0x10050a04
lea ecx, [edi + 4]
call fcn.10012989
lea eax, [esp + 0x18]
push eax
call fcn.10006a50
push eax
lea ecx, [edi + 0x9c]
call fcn.100061e9
dec dword [0x100509d8]
lea ecx, [esp + 0x18]
call fcn.10005aee
mov ebp, 0x208
mov dword [edi + 0x7c], 7
push ebp
lea eax, [esp + 0x14c]
push 0
push eax
call fcn.100255c0
add esp, 0xc
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x148]
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.10012757
push ebp
lea eax, [esp + 0x354]
mov dword [esp + 0x14], 0x104
push 0
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x354]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x10007f1a
lea eax, [esp + 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10007f1a
push 0x100437a8
mov ecx, esi
call fcn.10012732
lea eax, [esp + 0x350]
mov ecx, esi
push eax
call fcn.10012732
push ebp
lea eax, [esp + 0x14c]
mov dword [esp + 0x14], 0x104
push 0
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x148]
push eax
lea ecx, [edi + 0x34]
call fcn.10012757
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007f5d
sub ecx, edx
push ecx
push ebx
lea ecx, [edi + 0x4c]
call fcn.10013543
mov ecx, 0x10050a24
call fcn.100068c9
xor al, 1
mov byte [edi + 0x84], al
call fcn.1001cec6
test al, al
je 0x10007f8f
mov al, 4
jmp 0x10007fa8
call fcn.1001d8aa
test al, al
je 0x10007fa6
call fcn.1001d9d9
test al, al
setne al
add al, 2
jmp 0x10007fa8
mov al, 1
mov byte [edi + 0x85], al
call fcn.1001cea1
test al, al
setne al
mov byte [edi + 0x86], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x80], eax
mov ebx, 0x11c
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea esi, [edi + 0x88]
mov ecx, esi
call fcn.10005b11
push ebx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.10005b6a
call fcn.10007a6e
mov ecx, dword [esp + 0x558]
mov byte [edi + 0xb1], al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002211a
add esp, 0x54c
ret 0xc
Function at 0x1000a6aa
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x98
mov eax, 0x10039a6a
call fcn.10022cff
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90], edi
mov al, byte [edi + 2]
cmp al, 5
jne 0x1000a88c
lea ecx, [edi + 4]
mov dword [ebp - 0x94], ecx
push ecx
lea ecx, [ebx + 0x64]
call fcn.10012989
lea eax, [edi + 0x1c]
lea esi, [ebx + 0x7c]
push eax
mov ecx, esi
call fcn.1001277c
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], ecx
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
mov dword [ebx + 0xa0], eax
mov eax, bind
mov dword [ebx + 0xa4], ecx
sub eax, dword [esi + 0x10]
cmp eax, 4
jb 0x1000a8b8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000a72e
mov eax, dword [esi]
push 4
push 0x100437b0
push dword [esi + 0x10]
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x2c]
call fcn.10016228
lea eax, [ebp - 0x2c]
lea edi, [ebx + 0xac]
push eax
mov ecx, edi
call fcn.100127a6
lea ecx, [ebp - 0x2c]
call fcn.1001340c
mov eax, dword [ebx + 0xa0]
or eax, dword [ebx + 0xa4]
jne 0x1000a793
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000a779
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a793
cmp dword [esi + 0x14], 8
jb 0x1000a78c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x1000a79b
mov edi, dword [edi]
xor esi, esi
push esi
push 0x40000080
push 4
push esi
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xa8], eax
cmp eax, 0xffffffff
jne 0x1000a80f
lea ecx, [ebp - 0x8c]
call fcn.100075c5
lea eax, [ebx + 0x64]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x88]
call fcn.10012989
mov byte [ebp - 0x8a], 0x1a
cmp dword [ebx + 0x5c], esi
je 0x1000a7ff
sub esp, 0x14
lea ecx, [ebp - 0x8c]
push esp
call fcn.10007623
lea ecx, [ebx + 0x38]
call fcn.10011aa0
lea ecx, [ebp - 0x8c]
call fcn.1000ab8a
jmp 0x1000a8b0
lea eax, [ebp - 0x9c]
mov byte [ebx + 0x60], 1
push eax
mov ecx, ebx
call fcn.100118fc
mov edi, eax
push dword [ebp - 0x94]
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 1
push eax
call fcn.10014e67
mov edx, dword [edi + 4]
mov esi, dword [eax]
mov eax, dword [edi]
and dword [edi], 0
and dword [edi + 4], 0
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
test ecx, ecx
je 0x1000a85c
call fcn.10001aa3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x1000a86f
call fcn.10001aa3
lea eax, [ebx + 0xa8]
push eax
lea ecx, [ebx + 8]
call fcn.10011adc
mov eax, dword [ebp - 0x90]
sub esp, 0x14
add eax, 0x48
jmp 0x1000a896
cmp al, 9
jne 0x1000a8a7
sub esp, 0x14
lea eax, [edi + 0x48]
mov ecx, esp
push eax
call fcn.10005a66
mov ecx, ebx
call fcn.1000a8be
jmp 0x1000a8b0
cmp al, 0x19
jne 0x1000a8b0
call fcn.1000a58b
call fcn.10022cbd
ret 4
call fcn.100015fd
int3
Function at 0x1000a9bd
Capabilities:
Move file

Disassembly:
push 0x80
mov eax, 0x10039b0d
call fcn.10022cff
mov esi, dword [ecx]
xor ebx, ebx
mov byte [esi + 0xc4], bl
cmp dword [ebp + 0xc], ebx
jne 0x1000ab34
mov eax, dword [ebp + 8]
xor ecx, ecx
add dword [esi + 0xa0], eax
adc ecx, dword [esi + 0xa4]
mov dword [esi + 0xa4], ecx
lea ecx, [esi + 0xc8]
mov edx, dword [esi + 0xd0]
mov eax, dword [esi + 0xcc]
dec edx
and edx, dword [esi + 0xd4]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 4]
sub edx, dword [eax]
cmp dword [ebp + 8], edx
jne 0x1000ab23
call fcn.10011cc5
cmp dword [esi + 0xd8], ebx
je 0x1000aa39
mov ecx, esi
call fcn.1000a933
jmp 0x1000ab75
lea ecx, [ebp - 0x74]
call fcn.100075c5
lea eax, [esi + 0x64]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.10012989
mov byte [ebp - 0x72], bl
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0x98]
jne 0x1000ab0e
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0x9c]
jne 0x1000ab0e
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
je 0x1000aab0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0xa8], 0xffffffff
lea edi, [esi + 0x7c]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1000aabd
mov ecx, dword [edi]
lea eax, [esi + 0xac]
cmp dword [eax + 0x14], 8
jb 0x1000aacb
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [edi + 0x14], 8
jb 0x1000aadb
mov edi, dword [edi]
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.1000a35d
mov ecx, eax
call fcn.10005b56
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0x2c]
call fcn.10005b6a
dec dword [0x100509d8]
lea ecx, [ebp - 0x8c]
call fcn.10005aee
jmp 0x1000ab53
sub esp, 0x14
lea ecx, [ebp - 0x74]
push esp
call fcn.10007623
mov ecx, esi
call fcn.1000a660
jmp 0x1000ab6d
lea ecx, [ebp - 0x74]
call fcn.100075c5
mov dword [ebp - 4], 1
jmp 0x1000ab43
lea ecx, [ebp - 0x74]
call fcn.100075c5
mov dword [ebp - 4], 2
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp - 0x70]
call fcn.10012989
mov byte [ebp - 0x72], 0x1a
sub esp, 0x14
lea ecx, [ebp - 0x74]
push esp
call fcn.10007623
mov ecx, esi
call fcn.1000a660
mov ecx, esi
call fcn.1000a58b
lea ecx, [ebp - 0x74]
call fcn.1000ab8a
call fcn.10022cbd
ret 0xc
Function at 0x1000ad6f
Capabilities:
Get file size

Disassembly:
push 0x78
mov eax, 0x10039baa
call fcn.10022cff
mov ebx, ecx
mov esi, dword [ebp + 8]
mov al, byte [esi + 2]
cmp al, 5
jne 0x1000af34
lea ecx, [esi + 4]
mov dword [ebp - 0x74], ecx
push ecx
lea ecx, [ebx + 0x64]
call fcn.10012989
lea eax, [esi + 0x1c]
lea edi, [ebx + 0x7c]
push eax
mov ecx, edi
call fcn.1001277c
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], ecx
cmp dword [edi + 0x14], 8
jb 0x1000add4
mov edi, dword [edi]
xor esi, esi
push esi
push 0x40000080
push 3
push esi
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebx + 0xa8], edx
cmp edx, 0xffffffff
jne 0x1000ae3b
lea ecx, [ebp - 0x70]
call fcn.100077ab
lea eax, [ebx + 0x64]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x6c]
call fcn.10012989
mov byte [ebp - 0x6e], 0x1a
cmp dword [ebx + 0x5c], esi
je 0x1000ae2e
sub esp, 0x14
lea ecx, [ebp - 0x70]
push esp
call fcn.10007623
lea ecx, [ebx + 0x38]
call fcn.10011aa0
lea ecx, [ebp - 0x70]
call fcn.1000ab8a
jmp 0x1000af53
mov esi, dword [ebx + 0x98]
mov eax, esi
mov ecx, dword [ebx + 0x9c]
or eax, ecx
jne 0x1000ae6e
lea eax, [ebp - 0x78]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x78]
xor esi, esi
add esi, eax
mov dword [ebx + 0x98], esi
adc ecx, 0
mov dword [ebx + 0x9c], ecx
cmp ecx, dword [ebx + 0xa4]
ja 0x1000aec5
jb 0x1000ae80
cmp esi, dword [ebx + 0xa0]
ja 0x1000aec5
lea ecx, [ebp - 0x70]
call fcn.100077ab
lea eax, [ebx + 0x64]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.10012989
cmp dword [ebx + 0x5c], 0
mov byte [ebp - 0x6e], 0x1a
je 0x1000aeb9
sub esp, 0x14
lea ecx, [ebp - 0x70]
push esp
call fcn.10007623
lea ecx, [ebx + 0x38]
call fcn.10011aa0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1000ab8a
lea eax, [ebp - 0x7c]
mov byte [ebx + 0x60], 1
push eax
mov ecx, ebx
call fcn.100118fc
mov edi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 2
push eax
call fcn.10014dd3
mov edx, dword [edi + 4]
mov esi, dword [eax]
mov eax, dword [edi]
and dword [edi], 0
and dword [edi + 4], 0
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
test ecx, ecx
je 0x1000af0c
call fcn.10001aa3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1000af1c
call fcn.10001aa3
lea eax, [ebx + 0xa8]
push eax
lea ecx, [ebx + 8]
call fcn.10011adc
mov ecx, ebx
call fcn.1000af5b
jmp 0x1000af53
test al, al
jne 0x1000af4e
mov eax, dword [esi + 0x40]
cmp eax, dword [ebx + 0xa0]
jne 0x1000af4e
mov eax, dword [esi + 0x44]
cmp eax, dword [ebx + 0xa4]
je 0x1000af2d
call fcn.1000acfa
call fcn.10022cbd
ret 4
Function at 0x1000b56f
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x24
mov eax, 0x10039cf6
call fcn.10022ccc
mov edi, ecx
lea ebx, [edi + 0xa0]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x1000b599
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x1000
push edx
push edx
push ecx
push ecx
push 0xff
push edx
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea esi, [edi + 0x9c]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1000b5dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 1
mov ecx, edi
call fcn.1000bcda
xor al, al
jmp 0x1000b698
push 0x14
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.100255c0
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1000b60e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 2
jmp 0x1000b5ce
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x217
je 0x1000b66d
cmp eax, 0x3e5
je 0x1000b62d
call esi
push eax
push 0
push 3
jmp 0x1000b5ce
lea eax, [ebp - 0x1c]
mov byte [edi + 0x98], 1
push eax
mov ecx, edi
call fcn.100118fc
and dword [ebp - 4], 0
lea ecx, [edi + 0x34]
push ebx
call fcn.100119f6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
lea ecx, [edi + 0x34]
call fcn.1000b6df
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1000b691
call fcn.10001aa3
jmp 0x1000b691
lea eax, [edi + 0x9c]
mov byte [edi + 0x99], 1
push eax
lea ecx, [edi + 8]
call fcn.10011adc
mov ecx, edi
call fcn.1000b8d6
mov byte [edi + 0x98], 1
mov ecx, edi
call fcn.1000bd69
call fcn.10022ca9
ret
Function at 0x1000bbc2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x5c
mov eax, 0x10039dc6
call fcn.10022cff
mov esi, ecx
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1000bcd4
push dword [ebp - 0x60]
lea ecx, [esi + 0xa4]
mov dword [ebp - 0x20], 0x5c2e5c5c
mov dword [ebp - 0x1c], 0x65706970
mov word [ebp - 0x18], 0x5c
call fcn.1000610b
push 8
lea eax, [ebp - 0x58]
lea ecx, [esi + 0xb8]
push eax
call fcn.10005b6a
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bc2c
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xcc]
call fcn.10013588
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edx
push eax
lea ecx, [ebp - 0x23]
call fcn.10016685
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x50], ebx
lea eax, [ebp - 0x23]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
cmp ecx, eax
jne 0x1000bc78
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], bl
jmp 0x1000bc87
lea eax, [ebp - 0x23]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.100151f7
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0xcc]
call fcn.10012966
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1000bcd4
mov ecx, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
jb 0x1000bccb
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100015db
mov eax, dword [ebp - 0x68]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
push eax
push ecx
call fcn.10022776
pop ecx
pop ecx
call fcn.10022cbd
ret