joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505f50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x54]
mov edi, eax
test edi, edi
jne 0x505f80
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00505e40
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [ebx]
test ebx, ebx
cmovle ebx, eax
call fcn.00505b80
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x505fb1
push 0x5e1ff4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov ecx, eax
push 2
push edi
call ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.00505c80
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50606d
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, esi
call fcn.005034a0
mov dword [ebp + 0x14], eax
test eax, eax
je 0x50606d
call fcn.00505b80
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x50600d
push 0x5e1fcc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov ecx, eax
push 4
push edi
call ecx
call fcn.00505b80
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x506036
push 0x5e214c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov ecx, eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push edi
call ecx
call fcn.00505b80
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x506068
push 0x5e20b8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov ecx, eax
push dword [ebp + 0x14]
call ecx
test ebx, ebx
jle 0x506107
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00503880
mov dword [ebp + 0x10], eax
test eax, eax
je 0x506107
call fcn.00505b80
mov dword [ebp + 0x14], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x5060ae
push 0x5e1fcc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, eax
not ebx
and ebx, 1
shl ebx, 2
push ebx
push edi
call ecx
call fcn.00505b80
mov ebx, eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x5060d8
push 0x5e2108
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x58], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push edi
call eax
call fcn.00505b80
mov ebx, eax
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x506102
push 0x5e20c8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x48], eax
push dword [ebp + 0x10]
call eax
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x58]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50be70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x50bea8
cmp dword [ebp + 0xc], 0xf0
jae 0x50be98
push eax
call fcn.00518a00
push 2
call fcn.00518950
add esp, 8
mov dword [esi], eax
push 0xf0
push 0
push eax
call fcn.00570de0
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x510700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [edx + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x5108e9
mov cl, byte [edx + 9]
test al, 2
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
push edi
movzx edi, cl
mov ecx, edi
je 0x510763
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, edi
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 3
jmp 0x510771
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x51078b
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
sub edi, eax
mov dword [ebp + ecx*4 - 0x14], edi
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x5107d5.3
xor edx, edx
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x5107a8
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x5107ad
mov edx, 1
inc eax
cmp eax, ecx
jl 0x510797
test dx, dx
mov edx, dword [ebp + 8]
je case.0x5107d5.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x5107d5.3
movzx eax, byte [eax + 0x51090c]
jmp dword [eax*4 + 0x5108f8]
mov ecx, dword [edx + 4]
test ecx, ecx
je case.0x5107d5.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x5107e7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edx + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x5107d5.3
lea ebx, [ebx]
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x510830
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x5107d5.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x510862
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x5107d5.3
mov edi, 0x100
nop
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x5108a0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
Function at 0x511ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4447
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.005395ea
mov dword [ebp - 4], 0
mov dword [esi], vtable.CXTPResourceImages.0
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x511c23
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 1
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x511c23
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
lea ebx, [esi + 0x54]
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0054579f
mov dword [ebx], vtable.CXTPResourceImages::CBitmapDC.0
mov dword [ebx + 0x10], 0
push 0xa
lea ecx, [esi + 0x74]
call fcn.00511a00
push 0xa
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 4
call fcn.0055b384
push 0
push 0xc7
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.005591dd
push 0
push 0x65
lea ecx, [esi + 0x74]
call fcn.00468710
mov edi, esi
mov dword [edi + 0x34], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0
call fcn.00545615
push 0
push 0
mov ecx, edi
mov eax, dword [eax + 8]
push eax
call fcn.00514200
lea eax, [edi + 0x6c]
mov dword [eax], 0
push eax
push 0x200
push 0x200
push 0
call fcn.0046cc70
add esp, 0x10
mov dword [edi + 0x68], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call fcn.005460a8
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404e00
int3
Function at 0x513ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00513e90
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push 0x5e3018
cmp dword [ecx - 0xc], 0
je 0x513b71
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x513b02
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x513b02
push dword [esi + 0x28]
mov ecx, esi
call fcn.00512fa0
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x513b37
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x513b37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [esi + 0x28]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, dword [esi + 0x2c]
mov ebx, 1
mov dword [esi + 0x30], eax
mov ecx, esi
call fcn.00513650
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x513b55
push 0
push 0
push 0
push 0x294f
call fcn.00517420
push 0
push 0x5e3054
push 0x5e3078
mov ecx, esi
call fcn.005130e0
pop edi
mov dword [esi + 0x50], eax
mov eax, ebx
pop esi
pop ebx
ret
push 0x5e302c
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x513aed
push 0x12
push 0x5e302c
lea ecx, [esi + 0x24]
call fcn.004054b5
jmp 0x513b08
Function at 0x5160b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x516206
cmp dword [esi + 0x20], eax
je 0x516206
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], 0
call edi
mov ebx, eax
lea eax, [esi + 0x10]
nop
cmp dword [esi + 0x20], 0
je 0x51610f
call edi
sub eax, ebx
cmp eax, 0x14
jbe 0x51610c
call edi
mov ebx, eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax + 0x18]
lea eax, [esi + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x24]
je 0x516132
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x10]
mov dword [esi + 0x24], eax
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
lea eax, [esi + 0x10]
je 0x5160f0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x5161c1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200
ja 0x51619e
je 0x516189
cmp eax, 0x1f
je 0x5161cb
cmp eax, 0x100
jne 0x5161aa
cmp dword [ebp - 0x18], 0x1b
je 0x5161cb
jmp 0x5160ec
mov eax, dword [ebp - 0x14]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
jmp 0x5160ec
sub eax, 0x202
je 0x5161b9
sub eax, 2
je 0x5161cb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x5160ec
mov eax, dword [esi + 0x24]
mov dword [ebp - 4], eax
jmp 0x5161cb
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [ebp + 0x10]
mov ecx, dword [esi + 0xc]
push dword [ebp + 0xc]
mov dword [esi + 0x24], 0
push dword [ebp + 8]
call fcn.00516310
mov ecx, dword [esi + 0xc]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x516206
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x18]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x518ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x518eda
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x518eda
push dword [ebp + 0xc]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5242b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b54b5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1b
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x5be3a4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004049b3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [esi + 0x1b4]
cmovae eax, dword [ebp - 0x40]
push ebx
push eax
push 0
push 0
mov dword [ebp - 4], 0
call fcn.00405657
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00538f33
mov esi, eax
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push esi
mov byte [ebp - 4], 1
call fcn.00405657
lea eax, [edi - 1]
mov dword [ebp - 0x28], 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x18], 0
add esp, 0x24
mov dword [ebp - 0x14], 7
cmp esi, eax
je 0x524392
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.004049b3
test esi, esi
je 0x52439f
push esi
call fcn.00538f2e
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5243d9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5243cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x524455
push edx
push ecx
call fcn.0056e411
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x5bbe20
push 0x5bbe20
push eax
push 0x5be094
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x524439
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x52442f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52445a
push edx
push ecx
call fcn.0056e411
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
call fcn.00574b50
call fcn.00574b50
int3
Function at 0x524870
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5585
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x1c]
mov eax, dword [esi]
mov dword [edi + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.00465070
lea eax, [esi + 8]
push eax
lea ecx, [edi + 0x20]
call fcn.00465070
lea eax, [esi + 0xc]
push eax
lea ecx, [edi + 0x24]
call fcn.00465070
lea eax, [esi + 0x10]
push eax
lea ecx, [edi + 0x28]
call fcn.00465070
lea eax, [esi + 0x14]
push eax
lea ecx, [edi + 0x2c]
call fcn.00465070
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x30]
call fcn.00465070
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x34]
call fcn.00465070
lea eax, [esi + 0x20]
push eax
lea ecx, [edi + 0x38]
call fcn.00465070
lea eax, [esi + 0x24]
push eax
lea ecx, [edi + 0x3c]
call fcn.00465070
lea eax, [esi + 0x28]
push eax
lea ecx, [edi + 0x40]
call fcn.00465070
lea eax, [esi + 0x2c]
push eax
lea ecx, [edi + 0x44]
call fcn.00465070
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x48]
call fcn.00465070
lea eax, [esi + 0x34]
push eax
lea ecx, [edi + 0x4c]
call fcn.00465070
mov eax, dword [esi + 0x38]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [edi + 0x5c], eax
lea eax, [esi + 0x4c]
mov dword [edi + 0x60], ecx
lea ecx, [edi + 0x64]
push eax
call fcn.00465070
mov al, byte [esi + 0x50]
lea ecx, [edi + 0x18]
mov byte [edi + 0x68], al
mov eax, dword [esi + 0x54]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x74], eax
lea eax, [ebp + 8]
push eax
call fcn.0042fb68
push eax
lea ecx, [edi + 0xd8]
mov dword [ebp - 4], 0
call fcn.00465070
mov edx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5249c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x18]
call fcn.0042fcec
push eax
lea ecx, [edi + 0xdc]
mov dword [ebp - 4], 1
call fcn.00465070
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x524a01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, edi
push eax
call fcn.0042d295
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 0x526150
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x114], 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [esi + 0x100]
jb 0x52617f
mov eax, dword [eax]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x526201
cmp dword [ebp + 8], 0
je 0x5261eb
cmp dword [esi + 0x12c], 8
lea eax, [esi + 0x118]
jb 0x5261b6
mov eax, dword [eax]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 0xd8], eax
test eax, eax
je 0x5261eb
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd8], 0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x526241
cmp dword [esi + 0x12c], 8
lea eax, [esi + 0x118]
jb 0x526218
mov eax, dword [eax]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x526050
push 0
push 0
mov dword [esi + 0xd8], eax
call fcn.0057511d
add esp, 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0056e41f
mov esp, ebp
pop ebp
ret 4

Function at 0x526690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0056ed20
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
lea eax, [ebp - 0x1004]
mov esi, ecx
push 0
push eax
call fcn.00570de0
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x800
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], eax
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1040], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5e6330
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x103c], 0
push eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 0
mov dword [ebp - 0x1048], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5267d8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1058]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1054]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
Function at 0x528290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov edx, esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
jmp 0x5282c0
mov al, byte [edx]
inc edx
test al, al
jne 0x5282c0
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.004055e9
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + 8]
mov ebx, dword [ebp - 0xc]
cmovae esi, edi
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x528308
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x5282f4
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0044f1b0
mov ebx, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
jne 0x528325
mov esi, dword [ebx + 0xc]
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x528354
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x52834a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528370
push ecx
push edi
call fcn.0056e411
add esp, 8
cmp esi, dword [ebx + 0xc]
je 0x528365
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00574b50
int3

Function at 0x528380
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov edx, esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
jmp 0x5283b0
mov al, byte [edx]
inc edx
test al, al
jne 0x5283b0
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.004055e9
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + 0x28]
mov ebx, dword [ebp - 0xc]
cmovae esi, edi
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x5283f8
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x5283e4
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0044f1b0
mov ebx, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
jne 0x528415
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x528444
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x52843a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528460
push ecx
push edi
call fcn.0056e411
add esp, 8
cmp esi, dword [ebx + 0x2c]
je 0x528455
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00574b50
int3