joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5251b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5afbf8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x130], 0
jne 0x5252fa
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0x130], eax
jne 0x5252fa
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x52521c
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x52525a
push 0x104
lea ecx, [esp + 0x28]
call fcn.00401fe0
mov esi, dword [esp + 0x24]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test esi, esi
jne 0x52526e
xor eax, eax
jmp 0x525288
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x525273
sub eax, edx
sar eax, 1
js 0x525310
cmp eax, dword [esi - 8]
jg 0x525310
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x28]
mov word [esi + eax*2], 0
call fcn.004043a0
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5252cf
push 0x6a
push esi
call ebx
test eax, eax
je 0x5252cf
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp + 0x130], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5252fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80070057
call fcn.00401f90
int3
Function at 0x535f50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59ccd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], vtable.CPen.0
mov dword [esp + 0x30], ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
sub eax, ecx
cdq
sub eax, edx
push 0xa6a6a6
mov ebx, eax
push 1
sar ebx, 1
push ebp
add ebx, ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call fcn.0055b82d
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0055b905
mov ecx, dword [edi]
push ebx
add ecx, 0x10
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov ebp, eax
call fcn.0055b26f
mov eax, dword [edi + 8]
push ebx
sub eax, 8
push eax
mov ecx, esi
call fcn.0055af51
push ebp
mov ecx, esi
call fcn.0055b905
lea ecx, [esp + 0x18]
call fcn.0055b880
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x536009
mov edx, dword [esp + 0x38]
push eax
call fcn.005368c0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CGdiObject.0
call fcn.0055b880
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x539f30
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x5ac9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x539f83
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
push ecx
push 0x202
mov dword [esp + 0x1b8], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x53a002
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
lea edx, [esp + 0x14]
push str.WSAStartUp_Faild_With_Error:__d
push edx
call fcn.00404650
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0053a0a0
lea eax, [edi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x539ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x53a074
mov ax, word [esp + 0x14]
cmp al, 2
jne 0x53a03a
cmp ah, al
jne 0x53a03a
lea eax, [esi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53a036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x53a074
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.The_Local_Socket_Version_is_not_2
call fcn.0053a0a0
lea eax, [esi - 0x10]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53a071
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00577139
add esp, 0x1a8
ret
Function at 0x544e50
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
sub esp, 0x238
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push edi
mov edi, dword [esi + 0x28]
cmp dword [edi + 0x60], 0
mov eax, dword [edi + 0x890]
mov dword [esp + 0x10], eax
je 0x544e83
movzx edx, word [edi + 0x54]
lea ecx, [edi + 0x6c]
jmp 0x544e8d
movzx edx, word [edi + 0x14]
lea ecx, [edi + 0x474]
xor eax, eax
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], eax
mov ecx, dword [ecx]
push edx
mov dword [esp + 0x234], ecx
mov word [esp + 0x230], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x230]
mov word [esp + 0x232], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x544ef6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x545041
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x14], eax
mov ebp, 1
jne 0x544fea
mov ebx, dword [sym.imp.WS2_32.dll_select]
jmp 0x544f20
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x68], 0
jne 0x545004
mov eax, dword [esi]
lea edx, [esi + 0x48]
push edx
mov dword [esp + 0x128], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
push ecx
push 0
push 0
mov dword [esp + 0x134], ebp
mov dword [esp + 0x2c], ebp
call ebx
cmp eax, 0xffffffff
je 0x54503b
test eax, eax
jne 0x544fbb
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x3c], eax
jle 0x544f87
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, dword [eax + 0x74]
cmp ecx, dword [eax + 0x3c]
jae 0x544f9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi + 0x30]
sub eax, dword [esp + 0x14]
imul edx, edx, 0x3e8
cmp eax, edx
jb 0x544fe0
mov eax, 0x274c
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00577139
add esp, 0x238
ret
mov ecx, dword [esi]
lea eax, [esp + 0x120]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x545021
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x54503b
cmp dword [esi + 0x2c], 0
je 0x544f20
mov eax, ebp
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00577139
add esp, 0x238
ret
mov eax, 2
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00577139
add esp, 0x238
ret
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00577139
add esp, 0x238
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x23c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00577139
add esp, 0x238
ret
Function at 0x545f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5adcf3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push 0x58
call fcn.0055514b
add esp, 4
mov dword [esp + 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], edi
je 0x545f82
push eax
call fcn.005460f0
mov ebx, eax
jmp 0x545f84
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esi + 0x890]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3c], ecx
mov ecx, 1
add eax, 0x20
push eax
mov dword [ebx + 0x28], esi
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x884]
add esi, 0x87c
cmp eax, edi
mov dword [esp + 0x18], eax
jge 0x545fec
call fcn.00555520
lea edi, [eax + 1]
call fcn.00541660
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x14]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push 0x5458c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5460b9
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x546045
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Create_Socket_Worker_Thread_faild_with_error:__d
push ecx
call fcn.00404650
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.0053a0a0
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5460d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ebx
push ecx
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x64]
push 0x4ca
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x548be0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, eax
je 0x548de5
test esi, esi
je 0x548de5
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x548de5
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push eax
mov eax, ebx
call fcn.00548b40
add esp, 4
cmp dword [ebp], eax
jl 0x548de5
mov eax, 0x55555556
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea ecx, [ebx*4]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor ecx, ecx
test ebp, ebp
mov eax, 0x13
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jl 0x548d49
mov edx, dword [esp + 0x2c]
and edx, 2
mov dword [esp + 0x1c], edx
cmp ecx, ebp
jne 0x548c92
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ebx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x14], eax
test eax, eax
jle 0x548d01
mov edx, eax
movzx eax, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi - 4], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
shl ecx, 6
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], al
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi - 1], cl
jne 0x548c98
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
jne 0x548d24
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add dword [esp + 0x10], 2
add ecx, 1
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jle 0x548c75
cmp dword [esp + 0x10], 0
je 0x548d49
cmp dword [esp + 0x1c], 0
jne 0x548d49
sub esi, 2
sub dword [esp + 0x10], 2
mov ecx, dword [esp + 0x24]
lea eax, [ebx + ebx*2]
sub ecx, eax
je 0x548dce
lea ebp, [ecx + 1]
test ebp, ebp
je 0x548dce
xor eax, eax
test ecx, ecx
jle 0x548d67
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x548d77
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x548d84
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x548da8
mov ecx, ebp
lea ecx, [ecx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x548d90
add dword [esp + 0x10], ebp
test byte [esp + 0x2c], 1
jne 0x548dce
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x548dca
push edi
push 0x3d
push esi
call fcn.0057bb20
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x5494d0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
sub esp, 0x638
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x634], eax
push ebx
push ebp
mov ebp, dword [esp + 0x644]
push edi
lea eax, [esp + 0xc]
push eax
push 0x606200
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x14], 0
call dword [sym.imp.Secur32.dll_QuerySecurityPackageInfoW]
test eax, eax
je 0x549512
xor al, al
jmp 0x54958a
mov ecx, dword [ebx]
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x18], 0x2c
mov dword [esp + 0x34], 2
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x10], 0
je 0x549551
push ebp
push edi
lea eax, [esp + 0x1c]
call fcn.00549260
test al, al
je 0x549551
lea edx, [esp + 0x14]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push eax
mov eax, dword [edx + 0xc]
push esi
push 0
push 0
push ecx
push 0
push 2
push eax
push 0
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
mov edi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
push eax
mov dword [esi + 8], ecx
call sub.Secur32.dll_FreeContextBuffer
test edi, edi
sete al
mov ecx, dword [esp + 0x640]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00577139
add esp, 0x638
ret 4

Function at 0x549bf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push esi
call fcn.0057b0e3
add esp, 8
cmp eax, 0xffffffff
jne 0x549c21
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00577139
add esp, 0x18
ret
push edi
push esi
push 0xa
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.0057a54a
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0054a500
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0057b0a1
mov ecx, dword [esp + 0x38]
sub eax, 0xffffffff
add esp, 0x20
neg eax
sbb eax, eax
and eax, edi
pop edi
xor ecx, esp
call fcn.00577139
add esp, 0x18
ret

Function at 0x549c70
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
call fcn.005798ba
mov esi, eax
add esp, 4
test esi, esi
je 0x549cae
mov eax, dword [esp + 0xc]
push eax
push 1
push edi
push esi
call fcn.0057a54a
add esp, 0x10
cmp eax, 1
jne 0x549ca5
push edi
push esi
call fcn.0054acc0
add esp, 8
mov ebx, eax
push esi
call fcn.005797dd
add esp, 4
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x54c6a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
or esi, 0xffffffff
cmp edi, 8
jb 0x54c797
push ebp
mov ebp, edi
shr ebp, 3
lea esp, [esp]
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5b6ac8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x54c6c0
pop ebp
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x54c7a3
jmp dword [eax*4 + 0x54c854]
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5b6ac8]
add ecx, 1
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x5b6ac8]
add ecx, 1
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5b6ac8]
add ecx, 1
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x5b6ac8]
add ecx, 1
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5b6ac8]
add ecx, 1
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x5b6ac8]
add ecx, 1
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5b6ac8]
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x550560
Capabilities:
Encode data using xor

Disassembly:
push esi
movzx esi, word [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0x20
jb 0x5505ea
push ebp
mov ebp, edi
shr ebp, 5
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.005504a0
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
movzx edx, ch
movzx ecx, word [edx*2 + 0x5b8c70]
shl esi, 8
xor ecx, esi
mov edx, eax
shr edx, 8
xor edx, ecx
movzx edx, dh
movzx edx, word [edx*2 + 0x5b8c70]
shl ecx, 8
xor edx, ecx
mov ecx, eax
xor ecx, edx
movzx ecx, ch
movzx ecx, word [ecx*2 + 0x5b8c70]
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff
movzx esi, word [edx*2 + 0x5b8c70]
shl ecx, 8
add esp, 8
xor esi, ecx
sub edi, 0x20
sub ebp, 1
jne 0x550576
pop ebp
mov eax, edi
shr eax, 3
sub eax, 1
je 0x55064e
sub eax, 1
je 0x550626
sub eax, 1
jne 0x550679
lea eax, [esp + 0xc]
push 8
push eax
call fcn.005504a0
mov ecx, esi
shr ecx, 8
xor eax, ecx
and eax, 0xff
movzx edx, word [eax*2 + 0x5b8c70]
shl esi, 8
add esp, 8
xor esi, edx
lea eax, [esp + 0xc]
push 8
push eax
call fcn.005504a0
mov ecx, esi
shr ecx, 8
xor eax, ecx
and eax, 0xff
movzx edx, word [eax*2 + 0x5b8c70]
shl esi, 8
add esp, 8
xor esi, edx
lea eax, [esp + 0xc]
push 8
push eax
call fcn.005504a0
mov ecx, esi
shr ecx, 8
xor eax, ecx
and eax, 0xff
movzx edx, word [eax*2 + 0x5b8c70]
shl esi, 8
add esp, 8
xor esi, edx
and edi, 7
test edi, edi
je 0x5506a9
lea ecx, [ecx]
lea eax, [esp + 0xc]
push 1
push eax
sub edi, 1
call fcn.005504a0
mov ecx, esi
shr ecx, 0xf
xor eax, ecx
add esp, 8
add esi, esi
test al, 1
je 0x5506a5
xor esi, 0x8005
test edi, edi
jne 0x550680
pop edi
mov ax, si
pop esi
ret
Function at 0x559110
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x559149
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005552c1
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00427110
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x55ab3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x55ab7e
call fcn.005644f1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x55ab7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x55ab99
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0055a6f5
test ebx, ebx
mov esi, eax
je 0x55ab97
test edi, edi
je 0x55ab97
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5627a3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x5627d6
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x562801
test byte [ebp - 4], 1
je 0x562801
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x562801
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x5628b1
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00562708
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x562837
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00562708
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x562850
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00562708
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x56287b
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x56289b
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5628b1
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x5628d9
test byte [ebp - 4], 1
jne 0x5628d9
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x5628d9
push dword [ebp + 8]
call edi
push eax
call fcn.0055e5a7
pop edi
pop esi
pop ebx
leave
ret 8