joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4304a6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004165e6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4304e2
call fcn.004306c1
mov dword [esi + 0xc], 1
jmp 0x4304e7
call fcn.004306c1
cmp dword [esi], 0
je 0x430530
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x43050a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004154a9
jmp 0x43051b
push 0xff
mov ecx, esi
call fcn.00401490
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004154cc
jmp 0x430554
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x430554
push dword [esi]
push dword [ebp - 4]
call fcn.0042bae0
pop esi
leave
ret 0xc

Function at 0x430618
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004306c1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x430660
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004154a9
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004154cc
jmp 0x43066b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042bae0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43869e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4386e8
call fcn.00415bd0
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4386e5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x438721
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x43870a
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x43870a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x43871f
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45a4de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45a4f6
call fcn.00415bd0
mov esi, dword [eax + 0xc]
push 0x592da0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x45a54c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45a54b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45a52c
xor esi, esi
jmp 0x45a542
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0045a552
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x51ea8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x51eaa6
mov edi, dword [esi + 0xc]
jmp 0x51eae6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x51eabf
call fcn.0041a3bd
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51ead4
call fcn.0041a3bd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51eae6
call fcn.0041a3bd
call fcn.00415bd0
cmp dword [eax + 0x3c], 0
je 0x51eafb
push edi
mov ecx, ebx
call fcn.0051e3a8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051ecbe
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x51eb1e
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x51eb27
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54d678
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00542263
mov dword [ebp - 0x14], eax
cmp dword [0x600a20], edi
jne 0x54d769
push 0x800
push edi
push 0x5b6260
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x54d6f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x54d849
push 0x5b6260
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x54d849
push 0x5b6278
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54d849
push eax
call ebx
push 0x5b6284
push esi
mov dword [0x600a20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5b6294
push esi
mov dword [0x600a24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x600a28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x600a30], eax
test eax, eax
je 0x54d766
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x600a2c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x54d78e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54d781
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x54d7a3
push 4
pop eax
jmp 0x54d84b
cmp dword [ebp - 0x14], edi
je 0x54d7a3
push dword [0x600a20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54d788
mov eax, dword [0x600a2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x54d801
cmp dword [0x600a30], esi
je 0x54d801
push eax
call ebx
push dword [0x600a30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x54d801
test eax, eax
je 0x54d801
call ecx
test eax, eax
je 0x54d7f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x54d7f6
test byte [ebp - 8], 1
jne 0x54d801
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x54d831
mov eax, dword [0x600a24]
cmp eax, esi
je 0x54d82e
push eax
call ebx
test eax, eax
je 0x54d82e
call eax
mov edi, eax
test edi, edi
je 0x54d82e
mov eax, dword [0x600a28]
cmp eax, esi
je 0x54d82e
push eax
call ebx
test eax, eax
je 0x54d82e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x600a20]
call ebx
test eax, eax
je 0x54d849
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x54d84b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00539659
leave
ret
Function at 0x558da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e101
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x558df1
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x558e30
push 0x105
mov ecx, esi
call fcn.00401420
push dword [esi]
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jbe 0x558e79
lea edi, [eax + 1]
test edi, edi
jns 0x558e55
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x558e70
push edi
mov ecx, esi
call fcn.00401420
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x558ee1
push str._PSMisc::GetCurrentDirectory_
lea eax, [ebp - 0x14]
push eax
call fcn.00559120
mov dword [ebp - 4], 2
push dword [eax]
push 0x10000
call fcn.0055b080
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x558ec5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x558e4b
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x558f11
mov eax, dword [esi]
test eax, eax
je 0x558efb
push dword [eax - 8]
push eax
call fcn.0053a177
add esp, 8
test eax, eax
js 0x558e4b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x558e4b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x558f30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ddf1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x558f7f
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x559013
lea edi, [eax + 1]
test edi, edi
jns 0x558fbe
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x558fd9
push edi
mov ecx, esi
call fcn.00401420
push edi
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x558fef
xor ecx, ecx
jmp 0x559001
push dword [eax - 8]
push eax
call fcn.0053a177
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x558fb4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x558fb4
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x55a2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e101
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55a301
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x55a340
push 0x104
mov ecx, esi
call fcn.00401420
push dword [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp edi, 0x104
jbe 0x55a38b
test edi, edi
jns 0x55a365
push 0x80070057
call fcn.00401220
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x55a380
push edi
mov ecx, esi
call fcn.00401420
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x55a3eb
push 0x5bb770
lea eax, [ebp - 0x14]
push eax
call fcn.00559120
mov dword [ebp - 4], 2
push dword [eax]
push 0x10000
call fcn.0055b080
add esp, 8
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55a3d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x55a35b
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x55a41b
mov eax, dword [esi]
test eax, eax
je 0x55a405
push dword [eax - 8]
push eax
call fcn.0053a177
add esp, 8
test eax, eax
js 0x55a35b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x55a35b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x55a620
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test bl, bl
je 0x55a656
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55a656
test al, 1
je 0x55a656
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x55a656
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
xor eax, eax
test bl, bl
setne al
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret 0xc
Function at 0x55bbc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e588
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55bc02
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x55bc3a
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00401420
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
push 0xa
push edi
call fcn.0053afb0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x55bc7f
mov edi, edi
mov ecx, ebx
sub ecx, edi
sar ecx, 1
inc ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004015a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [ebx + 2]
push 0xa
push edi
call fcn.0053afb0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x55bc50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55bca0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x55bd10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x54
push edi
mov edi, ecx
test eax, eax
jne 0x55bd39
push 0x44
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0053af20
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
movzx eax, byte [ebp + 0x18]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x55bd71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x1c
push esi
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00406400
push dword [ebp - 0xc]
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x55c050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e660
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x55c0f0
mov dword [esi], eax
push str._PSRegistry::SetValue_
lea eax, [ebp + 0x14]
push eax
mov ecx, esi
call fcn.004065d0
mov dword [ebp - 4], 0
push dword [eax]
push 0x10000
call fcn.0055b080
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55c0dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x55cc60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x55ccc5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x55cce9
xor bl, bl
jmp 0x55cd37
mov esi, dword [ebp - 0x20]
push esi
mov ecx, ebx
mov dword [ebp + 8], 0
call fcn.0055c7b0
mov eax, dword [ebx]
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x10]
test eax, eax
mov esi, dword [esi]
setne bl
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 8], ecx
mov eax, dword [esi + 4]
cmovb ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov byte [ecx + eax], 0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov byte [edx + ecx + 1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55cd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, byte [ebp + 0x14]
xor eax, eax
test bl, bl
setne al
push 0
push 0x80
lea eax, [eax*2 + 2]
push eax
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55cdce
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test bl, bl
je 0x55ce00
push 2
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x55ce1e
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x55ce22
xor bl, bl
jmp 0x55ce24
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5654d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmp esi, 4
jb 0x56552f
mov edx, esi
shr edx, 2
lea ebx, [ebx]
xor eax, dword [edi]
sub esi, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
add edi, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
dec edx
jne 0x5654f0
test esi, esi
je 0x56554b
movzx ecx, byte [edi]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5bd900]
lea edi, [edi + 1]
dec esi
jne 0x565533
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
ret 8