joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0108
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e0308
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.005ea0fc
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x678eec], eax
mov eax, dword [ebp - 0xc]
mov dword [0x678ef0], eax
mov eax, dword [ebp - 0x24]
mov dword [0x678ef4], eax
mov eax, dword [0x67d87c]
cmp dword [eax], 2
sete byte [0x6786cd]
push 0x5e0314
call sub.kernel32.dll_GetModuleHandleW
lea edx, [ebp - 4]
call fcn.005ddc40
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x6786cd], 0
jne 0x5e0197
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.005de264
test al, al
je 0x5e0197
mov eax, dword [ebp - 0x4c]
mov dword [0x683b84], eax
jmp 0x5e019e
xor eax, eax
mov dword [0x683b84], eax
call fcn.005dfdb8
and eax, 0x7f
cmp eax, 0x14
ja case.0x5e01af.0
jmp dword [eax*4 + 0x5e01b6]
mov byte [0x6786c8], 1
jmp case.0x5e01af.0
mov byte [0x6786c9], 1
jmp case.0x5e01af.0
mov byte [0x6786ca], 1
jmp case.0x5e01af.0
mov byte [0x6786cb], 1
jmp case.0x5e01af.0
mov byte [0x6786cc], 1
jmp case.0x5e01af.0
mov byte [0x6786ce], 1
mov byte [0x6786cf], 1
jmp case.0x5e01af.0
mov byte [0x6786ce], 1
mov byte [0x6786d0], 1
jmp case.0x5e01af.0
mov byte [0x6786ce], 1
mov byte [0x6786d0], 1
mov byte [0x6786d1], 1
jmp case.0x5e01af.0
mov byte [0x6786d2], 1
jmp case.0x5e01af.0
mov byte [0x6786d3], 1
jmp case.0x5e01af.0
mov byte [0x6786d4], 1
jmp case.0x5e01af.0
mov byte [0x6786d5], 1
jmp case.0x5e01af.0
mov byte [0x6786d6], 1
jmp case.0x5e01af.0
mov byte [0x6786d7], 1
jmp case.0x5e01af.0
mov byte [0x6786d8], 1
jmp case.0x5e01af.0
mov byte [0x6786d9], 1
jmp case.0x5e01af.0
mov byte [0x6786da], 1
jmp case.0x5e01af.0
mov byte [0x6786db], 1
jmp case.0x5e01af.0
mov byte [0x6786dc], 1
jmp case.0x5e01af.0
mov byte [0x6786dd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e030f
lea eax, [ebp - 4]
call fcn.00406c58

Function at 0x5e6b24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x5e6b88
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.00407af4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0041ee2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e6b8f
lea eax, [ebp - 0x14]
call fcn.00406c58
ret
Function at 0x5e7ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e7c36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67d87c]
cmp dword [eax], 2
jne 0x5e7be0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
jmp 0x5e7c18
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040779c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040743c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00407664
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e7c3d
lea eax, [ebp - 8]
call fcn.00406ca0
lea eax, [ebp - 4]
call fcn.00406c7c
ret

Function at 0x5e7c48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5e7ce1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67d87c]
cmp dword [eax], 2
jne 0x5e7c8b
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
jmp 0x5e7cc3
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040779c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040743c
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00407664
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e7ce8
lea eax, [ebp - 8]
call fcn.00406ca0
lea eax, [ebp - 4]
call fcn.00406c7c
ret

Function at 0x5e831c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
push 2
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407a50
mov edx, eax
mov eax, esi
call fcn.005e7a0c
mov edx, eax
xor ecx, ecx
mov eax, esi
call fcn.005e7ae8
test eax, eax
jne 0x5e8385
mov eax, ebp
call fcn.00407a50
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
test bl, bl
jne 0x5e838e
mov ecx, ebp
mov edx, edi
mov eax, esi
call fcn.005e78fc
jmp 0x5e838e
mov edx, edi
mov eax, esi
call fcn.005e7880
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5e8398
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e84ef
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf003f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00407a50
mov edx, eax
mov eax, esi
call fcn.005e7a0c
mov edx, eax
xor ecx, ecx
mov eax, esi
call fcn.005e7ae8
test eax, eax
sete bl
test bl, bl
je 0x5e84c7
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
cmp dword [ebp - 0x14], 0
je 0x5e849b
mov edi, dword [ebp - 0x14]
dec edi
cmp edi, 0
jb 0x5e849b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00407bcc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a50
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00407a50
call fcn.0041fc88
mov edx, eax
lea eax, [ebp - 4]
call fcn.00407bcc
push dword [ebp - 8]
push 0x5e850c
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407d2c
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.005e8398
mov ebx, eax
test bl, bl
je 0x5e849b
dec edi
cmp edi, 0xffffffff
jne 0x5e8425
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
test bl, bl
je 0x5e84d1
mov eax, dword [ebp - 8]
call fcn.00407a50
mov edx, eax
mov eax, esi
call fcn.005e7a0c
push eax
push esi
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
jmp 0x5e84d1
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.005e7880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e84f6
lea eax, [ebp - 0x1c]
call fcn.00406c58
lea eax, [ebp - 4]
call fcn.00406c58
ret

Function at 0x5e8510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00407a50
mov edx, eax
mov eax, ebx
call fcn.005e7a0c
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.005e7ae8
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x5e8582
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00407a50
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x5e9a28
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x5e9a3d
add esp, 0xfffffff0
call fcn.004056e4
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00405150
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.00407038
mov eax, esi
call fcn.00407a50
push eax
movzx eax, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateMutexW
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x5e9a91
mov ecx, dword [0x67d624]
mov dl, 1
mov eax, dword [0x5e9624]
call fcn.005dc584
call fcn.00406340
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
sete al
mov byte [ebx + 4], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5e9ab8
call fcn.0040573c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5fb3e4
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test ebp, ebp
je 0x5fb4ca
mov ebx, eax
mov eax, ebp
mov esi, 3
cdq
idiv esi
lea eax, [eax + eax*2]
mov dword [esp], eax
mov esi, ebx
add esi, dword [esp]
jmp 0x5fb45f
movzx eax, byte [ebx]
shl eax, 8
movzx edx, byte [ebx + 1]
or eax, edx
shl eax, 8
movzx edx, byte [ebx + 2]
or eax, edx
add ebx, 3
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 3], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
add ecx, 4
cmp ebx, esi
jb 0x5fb411
sub ebp, dword [esp]
dec ebp
je 0x5fb46e
dec ebp
je 0x5fb493
jmp 0x5fb4ca
movzx eax, byte [ebx]
shl eax, 4
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x5fb4ca
movzx eax, byte [ebx]
shl eax, 8
movzx edx, byte [ebx + 1]
or eax, edx
shl eax, 2
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 3], 0x3d
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x608410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x104], 2
jne 0x608453
cmp dword [ebp - 0x110], 5
ja 0x608457
cmp dword [ebp - 0x110], 5
jne 0x608453
cmp dword [ebp - 0x10c], 1
jae 0x608457
xor eax, eax
jmp 0x608459
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x60cc6c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0060df1c
test al, al
je 0x60cc92
mov ecx, 0x60cd70
mov dl, 1
mov eax, dword [0x417f9c]
call fcn.00424010
call fcn.00406340
cmp dword [esi + 0x50], 0
jne 0x60ccf5
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x60cd5e
call sub.kernel32.dll_GetLastError
mov edi, eax
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x60cced
test ah, 4
je 0x60cced
test al, 0x10
je 0x60cced
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x60cd5e
push edi
call sub.kernel32.dll_SetLastError
jmp 0x60cd5e
xor edx, edx
mov eax, esi
call fcn.0060d780
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x60cd55
call sub.kernel32.dll_GetLastError
mov edi, eax
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x60cd4f
test ah, 4
je 0x60cd4f
test al, 0x10
je 0x60cd4f
mov eax, dword [esi + 0x3c]
call fcn.00407a50
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x60cd55
push edi
call sub.kernel32.dll_SetLastError
mov dl, 1
mov eax, esi
call fcn.0060d780
pop edi
pop esi
pop ebx
ret
Function at 0x60f024
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x60f088
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.00407af4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0041ee2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60f08f
lea eax, [ebp - 0x14]
call fcn.00406c58
ret

Function at 0x6396cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov eax, esi
mov edx, ebx
call fcn.00407038
test ebx, ebx
je 0x6397a1
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x6397a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x639798
xor eax, eax
push ebp
push 0x639791
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, ebx
call fcn.00407a50
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x63977a
cmp dword [ebp - 4], 0
jbe 0x63977a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407bcc
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040724c
push eax
push 0
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x639771
mov eax, esi
mov edx, dword [esi]
call fcn.00407038
jmp 0x63977a
mov eax, esi
mov edx, ebx
call fcn.00407038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6397a1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, esi
mov edx, ebx
call fcn.00407038
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x6638e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d3c
xor eax, eax
push ebp
push 0x663a27
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x6639fd
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00425584
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov ecx, 0x663a48
call fcn.00407ca4
xor edx, edx
push ebp
push 0x6639b7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x663a70
mov eax, dword [ebp - 8]
call fcn.004623a4
mov eax, dword [ebp - 8]
call fcn.00407a50
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x6639a9
call sub.kernel32.dll_GetLastError
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6639a3
test ah, 4
je 0x6639a3
test al, 0x10
je 0x6639a3
mov eax, dword [ebp - 8]
call fcn.00407a50
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x6639a9
push esi
call sub.kernel32.dll_SetLastError
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6639e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x663a04
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x66ef50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x663abc
call fcn.0040b130
mov ebx, dword [0x67d3d8]
xor eax, eax
push ebp
push 0x66f069
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005dccc0
test al, al
jne 0x66efe9
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
call fcn.00510608
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0041f9d0
mov edx, dword [ebp - 0x14]
mov eax, 0x7052d8
call fcn.00407038
mov eax, dword [0x7052d8]
call fcn.006638e0
test al, al
jne 0x66efe9
push 1
mov eax, dword [0x7052d8]
call fcn.00407a50
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.00510608
mov eax, dword [ebp - 0x1c]
call fcn.00407a50
push eax
push 0x66f078
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x66f04e
mov eax, dword [ebx]
call fcn.0050fbf4
mov eax, dword [ebx]
mov dword [eax + 0x74], 0xafc8
mov eax, dword [ebx]
mov dl, 1
call fcn.005118e8
mov eax, dword [ebx]
mov edx, 0x66f090
call fcn.0050f62c
mov ecx, dword [0x67d7c4]
mov eax, dword [ebx]
mov edx, dword [0x660308]
call fcn.0050fc0c
mov ecx, dword [0x67d4f0]
mov eax, dword [ebx]
mov edx, dword [0x65ab78]
call fcn.0050fc0c
mov ecx, dword [0x67d28c]
mov eax, dword [ebx]
mov edx, dword [0x65fafc]
call fcn.0050fc0c
mov eax, dword [ebx]
call fcn.0050fd5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66f070
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406cb8
ret
Function at 0x10001cc0
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1004f6e8], 0
jne 0x10001ce0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1004f6e8], eax
push 0xffffffffffffffff
mov eax, dword [0x1004f6e8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0xc], 0x40000
jle 0x10001d0f
mov ecx, dword [ebp + 0xc]
push ecx
push str.Max_amount_of_data_to_send_to_hand2note_is_256kb_but_was__d_bytes
push 4
call fcn.10001e80
add esp, 0xc
jmp 0x10001e79
push 0xffffffffffffffff
mov edx, dword [0x1004f6fc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x10001dcf
push 0
push 0
push 3
push 0
push 1
push 0x40000000
mov ecx, dword [0x1004f6fc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10001d59
jmp 0x10001dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x10001d92
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_pipe_file_n._error_d__dataLength_d
push 4
call fcn.10001e80
add esp, 0x10
mov eax, dword [0x1004f6e8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
jmp 0x10001e79
push 0x1388
mov ecx, dword [0x1004f6fc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x10001dca
push str.Could_not_open_pipe:_5_second_wait_timed_out.
push 4
call fcn.10001e80
add esp, 8
mov edx, dword [0x1004f6e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
jmp 0x10001e79
jmp 0x10001d25
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call fcn.1000c5e0
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10002020
add esp, 8
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10008170
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.10008170
add esp, 0xc
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10001e4b
push str.Failed_to_write_into_pipe_n
push 4
call fcn.10001e80
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call fcn.1000c5d0
add esp, 4
mov edx, dword [0x1004f6e8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov esp, ebp
pop ebp
ret
Function at 0x10001e80
Capabilities:
Check mutex on windows
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10007100
mov eax, dword [0x1002e340]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.10008010
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.10002090
add esp, 4
push eax
lea edx, [ebp - 0x1004]
push edx
call fcn.1000c430
add esp, 8
lea eax, [ebp + 0x10]
mov dword [ebp - 0x100c], eax
mov ecx, dword [ebp - 0x100c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1004]
push eax
call fcn.1000c530
add esp, 4
lea ecx, [ebp + eax - 0x1004]
push ecx
call fcn.10002150
add esp, 0xc
mov dword [ebp - 0x100c], 0
cmp dword [0x1004f6e4], 0
jne 0x10001f20
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1004f6e4], eax
push 0xffffffffffffffff
mov edx, dword [0x1004f6e4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
mov ecx, dword [0x1004f6f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
mov edx, dword [0x1004f6f8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0xffffffff
jne 0x10001f99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_log_pipe_file._Error___lu__n
call fcn.100020d0
add esp, 8
mov eax, dword [0x1004f6e4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
jmp 0x10002006
push 0
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x1004]
push edx
call fcn.1000c530
add esp, 4
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10001fde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_into_log_pipe._Error___lu_n
call fcn.100020d0
add esp, 8
mov edx, dword [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1004f6e4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100070f0
mov esp, ebp
pop ebp
ret

Function at 0x100020d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10007100
mov eax, dword [0x1002e340]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.10008010
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1008], ecx
mov edx, dword [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call fcn.10002150
add esp, 0xc
mov dword [ebp - 0x1008], 0
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100070f0
mov esp, ebp
pop ebp
ret