joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5558f0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x5558fe
mov al, 1
pop esi
ret
push edi
push 0x5f1a58
lea edi, [esi + 0x20]
call fcn.00559f50
add esp, 4
push eax
push edi
call fcn.00555120
mov ecx, dword [esi + 0x11fc]
lea eax, [esi + 0x1228]
push eax
push ecx
call dword [esi + 0x1284]
mov eax, dword [esi + 0x14]
add esp, 0x10
test eax, eax
mov byte [esi + 0x1c], 0
je 0x55593f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1224]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x55597e
push 0x5f1a40
call fcn.00559f50
add esp, 4
push eax
push edi
call fcn.00555120
mov eax, dword [esi + 0x1224]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1220]
test eax, eax
je 0x55599c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5f1a2c
mov dword [esi + 0x1280], 0
mov dword [esi + 0x1284], 0
call fcn.00559f50
add esp, 4
push eax
push edi
call fcn.00555120
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x555ac0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x555b0b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x555b0b
lea edi, [esp + 0x10]
push 0x5f1ab0
call fcn.00559f50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x555b73
push 0x5f1aa4
call fcn.00559f50
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x555b73
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5f1a80
call fcn.00559f50
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00555120
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x555b93
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x555bb9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x555bd0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x555c1b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x555c1b
lea edi, [esp + 0x10]
push 0x5f18c0
call fcn.00559f50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x555c83
push 0x5f18b4
call fcn.00559f50
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x555c83
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5f1ae0
call fcn.00559f50
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00555120
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x555cd0
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x555cd0
push 0x5f1ac4
call fcn.00559f50
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00555120
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x555cf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x894051]
test al, al
je 0x555d03
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1269]
mov dword [ebp - 4], 0
test al, al
je 0x555d2b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x556f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57d5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.0055a3b0
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.0055a400
test al, al
jne 0x557022
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov eax, dword [0x894054]
test eax, eax
je 0x557022
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x5f21e0
call fcn.00559f50
mov ecx, dword [0x894054]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00555120
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5f21ac
call fcn.00559f50
add esp, 4
push eax
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x5570c9
cmp dword [esp + 0xc], 2
jne 0x557089
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.00559f50
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x5570f8
mov edx, dword [0x894054]
test edx, edx
je 0x55712f
push ecx
push eax
push 0x5f2194
call fcn.00559f50
add esp, 4
push eax
mov eax, dword [0x894054]
add eax, 0x20
push eax
jmp 0x557127
mov ecx, dword [0x894054]
test ecx, ecx
je 0x5570f4
push eax
push 0x5f217c
call fcn.00559f50
mov ecx, dword [0x894054]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00555120
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x55715a
mov edx, dword [0x894054]
test edx, edx
je 0x55712f
push ecx
push eax
push 0x5f2164
call fcn.00559f50
mov edx, dword [0x894054]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.00555120
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.0055a3f0
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.0055a3f0
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x5581c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call fcn.0056d0e6
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.0056e7ea
add esp, 8
test eax, eax
je 0x55822f
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x5f2470
call fcn.00559f50
add esp, 4
push eax
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5583a4
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x55838c
push esi
push edi
test eax, eax
jne 0x55835a
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call fcn.0056e7ea
add esp, 8
test eax, eax
je 0x5582d8
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call fcn.0056c32e
add esp, 8
test eax, eax
jne 0x55835a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55835a
mov eax, dword [0x894054]
test eax, eax
je 0x558341
lea edx, [esp + 0x1c]
push edx
push 0x5f2458
call fcn.00559f50
add esp, 4
push eax
mov eax, dword [0x894054]
add eax, 0x20
push eax
call fcn.00555120
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x55835a
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x558291
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret
Function at 0x5583b0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x5f24d0
xor bl, bl
call fcn.00559f50
add esp, 4
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x558411
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x5f24b8
call fcn.00559f50
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x558406
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x5584a0
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x240
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x5584b5
call fcn.00558660
push ebp
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x5f17ac
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0
push 0x5f2524
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x150]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x558613
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x14], 0x5a4d
jne 0x55860c
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x54], 0x4550
jne 0x55860c
cmp dword [esp + 0x88], 0x80000000
jbe 0x55860c
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push edi
mov dword [esp + 0x98], 0x10000000
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push 0
push esi
call edi
test eax, eax
mov dword [ebx], eax
pop ebp
je 0x558638
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x240
ret 4
mov eax, dword [esp + 0x250]
push 8
push 0
push eax
mov byte [esi], 0
call edi
xor ecx, ecx
pop edi
test eax, eax
setne cl
mov dword [ebx], eax
pop esi
mov eax, ecx
pop ebx
add esp, 0x240
ret 4
Function at 0x5595f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x148
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 4]
cmp ebx, 0xffffffff
jne 0x55960f
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 0x613
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
jne 0x5596aa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x104
mov dword [esp + 0x20], eax
jbe 0x559664
mov eax, 0x104
mov byte [esi + 0x103], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x48], edx
mov edx, ecx
lea edi, [esp + 0x54]
mov dword [esp + 0x50], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push eax
mov eax, dword [ebp + 4]
push edx
push eax
jmp 0x559705
cmp edx, 0x619
jne 0x5596f6
mov eax, 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3c], eax
push 0
push edx
lea eax, [esp + 0x2c]
push 0x20
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ecx
push eax
jmp 0x559704
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x10
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x559735
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x559728
cmp eax, 0xe8
je 0x559728
cmp eax, 6
jne 0x559735
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 0xc
pop ebp
mov al, 1
pop ebx
add esp, 0x148
ret 0xc
Function at 0x559840
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
lea eax, [esi + 4]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], eax
je 0x559862
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
call ebp
mov dword [esi + 0x134], eax
lea eax, [esp + 0x14]
lea ebx, [esi + 0x144]
push 0
lea edi, [esi + 0x140]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x5598b3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x5598cc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea edx, [esi + 8]
push 0
push edx
call ebx
push eax
mov eax, dword [edi]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x5598f9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call ebp
lea edx, [esp + 0x14]
mov dword [esi + 0x130], eax
lea edi, [esi + 0x13c]
push 0
add esi, 0x138
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x559935
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov eax, dword [esi]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x55994e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
push 2
push 0
push 0
push ecx
call ebx
mov edx, dword [edi]
push eax
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x559976
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret

Function at 0x559990
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
jne 0x5599a1
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x130]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x5599ba
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x134]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x5599cd
pop edi
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x5599e6
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x559a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ecx
ret
Function at 0x559a10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x559a1d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x559a2b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x559a5e
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x559a53
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x559a70
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x559a82
push eax
call edi
mov dword [esi + 8], 0xffffffff
pop edi
mov al, 1
pop esi
ret

Function at 0x559e40
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x559ed7
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x894121], cl
mov byte [0x894120], 1
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x10], edx
mov esi, 4
lea ecx, [ecx + ecx*2]
lea edx, [ecx + 0x65]
inc ecx
test eax, eax
jle 0x559eac
push ebp
sub edi, 0x894124
mov ebp, eax
mov bl, byte [edi + esi + 0x894120]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x894120], bl
inc esi
inc ecx
dec ebp
jne 0x559e90
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x894120], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x894122], al
pop ebx
mov byte [0x894123], dl
mov eax, 0x894120
pop edi
ret
mov eax, 0x894120
pop edi
ret

Function at 0x559ee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x559ee9
ret
cmp byte [eax], 1
jne 0x559f44
movsx ecx, byte [eax + 1]
push ebx
mov bl, byte [eax + 2]
lea ecx, [ecx + ecx*2]
push esi
mov dl, cl
push edi
add dl, 0x65
lea ecx, [ecx + ecx*2 + 3]
xor bl, dl
mov dl, cl
mov byte [eax + 2], bl
mov bl, byte [eax + 3]
add dl, 0x65
xor esi, esi
xor bl, dl
xor edx, edx
mov dh, byte [eax + 2]
inc ecx
mov dl, bl
mov byte [eax + 3], bl
mov edi, edx
test edi, edi
jle 0x559f3d
mov bl, byte [esi + eax + 4]
lea ecx, [ecx + ecx*2]
mov dl, cl
add dl, 0x65
xor bl, dl
inc ecx
mov byte [esi + eax], bl
inc esi
cmp esi, edi
jl 0x559f26
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x559f50
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x894118]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x559f84
mov bl, al
push 0x894098
or bl, 1
mov byte [0x894118], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x55a120
call fcn.0056b241
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x559f9a
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x894098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi], 1
jne 0x559ffc
movsx eax, byte [edi + 1]
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
lea eax, [eax + eax*2]
xor esi, esi
mov cl, al
add cl, 0x65
lea eax, [eax + eax*2 + 3]
xor dl, cl
xor ecx, ecx
mov byte [edi + 2], dl
mov ch, byte [edi + 2]
mov dl, al
add dl, 0x65
xor bl, dl
inc eax
mov cl, bl
mov byte [edi + 3], bl
mov ebp, ecx
test ebp, ebp
jle 0x559ff8
mov cl, byte [esi + edi + 4]
lea eax, [eax + eax*2]
mov dl, al
add dl, 0x65
xor cl, dl
inc eax
mov byte [esi + edi], cl
inc esi
cmp esi, ebp
jl 0x559fe1
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x8940b4
cmp dword [ecx], eax
je 0x55a020
add ecx, 4
inc edx
cmp ecx, 0x8940d8
jl 0x55a00e
jmp 0x55a026
test edx, edx
mov ebx, edx
jne 0x55a041
mov ecx, dword [0x894520]
cmp ecx, 9
jae 0x55a041
inc ecx
mov dword [0x894520], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x8940b0], eax
mov esi, dword [ebx*4 + 0x8940d8]
mov dword [ebx*4 + 0x8940d8], edi
test esi, esi
je 0x55a0fb
cmp esi, edi
je 0x55a0fb
cmp byte [edi], 1
je 0x55a0fb
cmp byte [esi], 1
je 0x55a0fb
lea edx, [esp + 0x1c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x55a0fb
lea ecx, [esp + 0x1c]
mov byte [esi], 1
and ecx, 0xff
mov ebp, 4
mov byte [esi + 1], cl
lea edx, [ecx + ecx*2 + 0x65]
lea ecx, [ecx + ecx*2 + 1]
mov dword [esp + 0x14], edx
xor edx, edx
lea ecx, [ecx + ecx*2]
lea ebx, [ecx + 0x65]
inc ecx
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x55a0e1
mov bl, byte [esp + edx + 0x1c]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov eax, dword [esp + 0x18]
mov byte [esi + ebp], bl
inc ebp
inc ecx
inc edx
cmp edx, eax
jl 0x55a0c2
mov ebx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
lea eax, [ebp - 4]
mov ecx, eax
mov byte [esi + ebp], 0
sar ecx, 8
xor cl, dl
xor bl, al
mov byte [esi + 2], cl
mov byte [esi + 3], bl
push 0x894098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x55a3b0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
mov edx, esi
mov ebx, 8
test dl, 1
je 0x55a3cf
shr edx, 1
xor edx, 0xedb88320
jmp 0x55a3d1
shr edx, 1
dec ebx
jne 0x55a3c0
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x55a3b9
pop edi
pop esi
pop ebx
ret