joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d670
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 0x49d68f
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 0x49d72a
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
cmp eax, 0x104
mov dword [esp + 0x20], eax
jbe 0x49d6e4
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 0x49d785
cmp edx, 0x619
jne 0x49d776
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 0x49d784
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 0x49d7b5
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x49d7a8
cmp eax, 0xe8
je 0x49d7a8
cmp eax, 6
jne 0x49d7b5
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 0x49d8c0
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 0x49d8e2
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 0x49d933
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 0x49d94c
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 0x49d979
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 0x49d9b5
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 0x49d9ce
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 0x49d9f6
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 0x49da80
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x49da9c
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x49dbd0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x49dabc
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
mov byte [esi + 0x14], 1
pop esi
pop ecx
ret
Function at 0x49dad0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
jne 0x49dae1
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 0x49dafa
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x134]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x49db0d
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 0x49db26
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x49dbd0
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 0x49db50
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x49db5d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x49db6b
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 0x49db9e
push 0x64
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49db93
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 0x49dbb0
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x49dbc2
push eax
call edi
mov dword [esi + 8], 0xffffffff
pop edi
mov al, 1
pop esi
ret
Function at 0x49e620
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
je 0x49e6b7
mov ecx, edi
push ebx
and ecx, 0xff
push esi
mov byte [0x513a09], cl
mov byte [0x513a08], 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 0x49e68c
push ebp
sub edi, 0x513a0c
mov ebp, eax
mov bl, byte [edi + esi + 0x513a08]
lea ecx, [ecx + ecx*2]
mov al, cl
add al, 0x65
xor bl, al
mov byte [esi + 0x513a08], bl
inc esi
inc ecx
dec ebp
jne 0x49e670
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x513a08], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x513a0a], al
pop ebx
mov byte [0x513a0b], dl
mov eax, 0x513a08
pop edi
ret
mov eax, 0x513a08
pop edi
ret

Function at 0x49e6c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x49e6c9
ret
cmp byte [eax], 1
jne 0x49e724
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 0x49e71d
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 0x49e706
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x49e730
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x513a00]
sub esp, 0x40c
test al, 1
push ebx
push edi
jne 0x49e764
mov bl, al
push 0x513960
or bl, 1
mov byte [0x513a00], bl
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push 0x49e900
call fcn.004c0173
add esp, 4
mov edi, dword [esp + 0x418]
test edi, edi
jne 0x49e77a
pop edi
xor eax, eax
pop ebx
add esp, 0x40c
ret
push ebp
push esi
push 0x513960
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [edi], 1
jne 0x49e7dc
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 0x49e7d8
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 0x49e7c1
mov byte [edi + ebp], 0
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edx, 1
mov ecx, 0x513984
cmp dword [ecx], eax
je 0x49e800
add ecx, 4
inc edx
cmp ecx, 0x5139a8
jl 0x49e7ee
jmp 0x49e806
test edx, edx
mov ebx, edx
jne 0x49e821
mov ecx, dword [0x513e08]
cmp ecx, 9
jae 0x49e821
inc ecx
mov dword [0x513e08], ecx
mov ebx, ecx
mov dword [ecx*4 + 0x513980], eax
mov esi, dword [ebx*4 + 0x5139a8]
mov dword [ebx*4 + 0x5139a8], edi
test esi, esi
je 0x49e8db
cmp esi, edi
je 0x49e8db
cmp byte [edi], 1
je 0x49e8db
cmp byte [esi], 1
je 0x49e8db
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_lstrlen]
test eax, eax
mov dword [esp + 0x18], eax
je 0x49e8db
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 0x49e8c1
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 0x49e8a2
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 0x513960
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x40c
ret

Function at 0x4a2040
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 0x4a205f
shr edx, 1
xor edx, 0xedb88320
jmp 0x4a2061
shr edx, 1
dec ebx
jne 0x4a2050
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x4a2049
pop edi
pop esi
pop ebx
ret
Function at 0x4a20c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
test eax, eax
mov edi, ecx
jne 0x4a20db
mov dword [edi + 0x400], 1
xor al, al
pop edi
ret 0xc
mov ecx, dword [esp + 0xc]
push esi
lea esi, [eax + ecx]
cmp eax, esi
jae 0x4a2108
mov edx, dword [esp + 0x14]
push ebx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax]
mov bl, byte [edx]
xor ecx, ebx
mov ebx, dword [edx]
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
inc eax
cmp eax, esi
mov dword [edx], ecx
jb 0x4a20ec
pop ebx
pop esi
mov al, 1
pop edi
ret 0xc

Function at 0x4a2110
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.004c0110
mov eax, dword [esp + 0x1008]
push ebp
push esi
mov esi, dword [esp + 0x1014]
test eax, eax
push edi
mov ebp, ecx
mov dword [esi], 0xffffffff
je 0x4a2215
cmp byte [eax], 0
je 0x4a2215
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a217c
pop edi
mov dword [ebp + 0x400], 2
pop esi
xor al, al
pop ebp
add esp, 0x1004
ret 8
push ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0x1000
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4a21ef
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4a21eb
lea ecx, [esp + ecx + 0x14]
lea edx, [esp + 0x14]
cmp edx, ecx
lea eax, [esp + 0x14]
jae 0x4a21cd
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
mov bl, byte [eax]
xor edx, ebx
mov ebx, dword [esi]
shr ebx, 8
mov edx, dword [ebp + edx*4]
xor edx, ebx
inc eax
cmp eax, ecx
mov dword [esi], edx
jb 0x4a21b1
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0x1000
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4a2199
jmp 0x4a21ef
test eax, eax
jne 0x4a21f9
mov dword [ebp + 0x400], 3
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esi]
pop ebx
not edx
mov dword [esi], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1004
ret 8
pop edi
mov dword [ebp + 0x400], 1
pop esi
xor al, al
pop ebp
add esp, 0x1004
ret 8
Function at 0x4a2272
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1010
call fcn.004c0110
mov eax, dword [esp + 0x1014]
push ebx
push esi
mov esi, ecx
test eax, eax
mov dword [esp + 8], esi
je 0x4a23ca
cmp byte [eax], 0
je 0x4a23ca
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4a22c5
mov dword [esi + 0x400], 2
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10
mov eax, dword [esp + 0x1020]
push 0
push 0
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a22fb
push ebx
mov dword [esi + 0x400], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10
push ebp
push edi
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4a23aa
mov esi, dword [esp + 0x1030]
mov ebp, dword [esp + 0x102c]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4a23a2
cmp ebp, edi
lea ecx, [esp + 0x20]
jbe 0x4a2347
lea edx, [esp + edi + 0x20]
sub ebp, edi
jmp 0x4a234d
lea edx, [esp + ebp + 0x20]
xor ebp, ebp
lea edi, [esp + 0x20]
cmp edi, edx
jae 0x4a237c
mov edi, dword [esi]
xor eax, eax
mov al, byte [ecx]
xor ebx, ebx
mov bl, byte [esi]
xor eax, ebx
mov ebx, dword [esp + 0x10]
shr edi, 8
mov eax, dword [ebx + eax*4]
xor eax, edi
inc ecx
cmp ecx, edx
mov dword [esi], eax
jb 0x4a2355
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ebp, ebp
je 0x4a23a2
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1000
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4a232f
jmp 0x4a23a6
test eax, eax
jne 0x4a23b4
mov esi, dword [esp + 0x10]
mov dword [esi + 0x400], 3
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1010
ret 0x10
mov dword [esi + 0x400], 1
pop esi
xor al, al
pop ebx
add esp, 0x1010
ret 0x10

Function at 0x4a8f10
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4a8f32
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x44], ecx
mov edx, dword [esi + 0x70]
push 1
add edx, 4
push edx
call dword [sym.imp.msvcr71.dll_longjmp]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov byte [esi + 6], al
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x4a8f53
push eax
call fcn.004a8e90
mov edx, dword [esi + 0x10]
push esi
call dword [edx + 0x58]
add esp, 8
push 1
call dword [sym.imp.msvcr71.dll_exit]
int3
Function at 0x4ad930
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, ebx
shr eax, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc eax
cmp ebx, eax
push edi
mov edx, ebx
mov ecx, ebx
jb 0x4ad96b
lea ebx, [ebx]
movzx edi, byte [esi + ecx - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub ecx, eax
xor edx, edi
cmp ecx, eax
jae 0x4ad950
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4ad99b
cmp dword [eax + 0xc], ebx
jne 0x4ad995
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x4ad9af
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x4ad981
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call fcn.004ad880
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov cl, byte [eax + 5]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
movzx edx, byte [edx + 0x14]
xor ebx, ebx
mov bl, cl
not edx
and ebx, 3
test bl, dl
je 0x4ad9aa
pop edi
pop esi
xor cl, 3
pop ebp
mov byte [eax + 5], cl
pop ebx
ret

Function at 0x4bc810
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4cf1be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
mov esi, ecx
push 0
push 0
lea edi, [esi + 4]
push 0
mov dword [esp + 0x1c], esi
mov dword [esi], 0x4e0910
mov dword [edi], 0
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
push eax
mov dword [esp + 0x1c], 0
mov dword [esi], 0x4e0934
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
lea eax, [esp + 0xb]
push eax
lea edx, [esp + 0xf]
lea ecx, [esi + 0x2c]
push edx
mov byte [esp + 0x20], 1
call fcn.004bc360
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 2
mov dword [esi + 0x54], 0
call fcn.004baf90
push edi
push 0
push esi
push 0x4babb0
push 0
push 0
mov dword [esi + 0x10], 1
call dword [sym.imp.msvcr71.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bcdb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
push edi
mov edi, dword [ebx + 0x20]
mov esi, eax
shl esi, 5
lea ebp, [ecx + eax*4]
add esi, edi
mov edi, dword [ebp]
call fcn.004be2d0
mov dword [ebp], eax
mov ecx, dword [esi]
xor ecx, edi
mov edx, ecx
xor edx, eax
mov dword [esi], edx
mov edx, dword [esi + 4]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 8], edx
mov edx, dword [esi + 0xc]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x10]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x14]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x18]
xor edx, edi
add ecx, edx
xor edx, eax
mov dword [esi + 0x18], edx
mov edx, dword [esi + 0x1c]
xor edx, edi
add ecx, edx
xor edx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], edx
mov edx, dword [eax]
mov eax, dword [ebx + 0x24]
cmp ecx, dword [eax + edx*4]
je 0x4bce4b
push 1
call dword [sym.imp.msvcr71.dll_exit]
mov eax, dword [ebx + 0x24]
lea edx, [eax + 0x8000]
xor ecx, ecx
cmp eax, edx
je 0x4bce6b
lea ebx, [ebx]
mov ebp, dword [eax]
add eax, 4
add ecx, ebp
cmp eax, edx
jne 0x4bce60
cmp ecx, dword [ebx + 0x2c]
je 0x4bce78
push 1
call dword [sym.imp.msvcr71.dll_exit]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4bce80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x34]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x30]
mov ebx, dword [edx]
xor ecx, ecx
xor eax, ebp
test ebx, ebx
jbe 0x4bced5
mov edi, edi
mov ebx, dword [esi + 0x28]
mov ebp, dword [esi + 0x20]
mov edi, eax
shr edi, 3
mov edi, dword [ebx + edi*4]
xor edi, dword [ebp + eax*4]
mov ebx, dword [esp + 0x20]
mov dword [ebx + ecx*4], edi
mov edi, dword [edx]
inc ecx
inc eax
cmp ecx, edi
jb 0x4bceb0
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4bcef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x34]
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esi + 0x30]
xor edx, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
xor edi, edi
test eax, eax
jbe 0x4bcf8d
mov ecx, dword [esi + 0x24]
push ebp
mov ebp, dword [esi + 0x2c]
mov eax, edx
shr eax, 3
shl eax, 2
mov ebx, dword [ecx + eax]
sub ebp, ebx
mov ebx, dword [esi + 0x28]
mov dword [esi + 0x2c], ebp
mov ebx, dword [ebx + eax]
mov ebp, dword [esi + 0x20]
xor ebx, dword [ebp + edx*4]
mov ebp, dword [ecx + eax]
sub ebp, ebx
mov ebx, dword [esp + 0x20]
mov dword [ecx + eax], ebp
mov ebp, dword [ebx + edi*4]
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + eax]
xor ecx, ebp
mov ebp, dword [esi + 0x20]
mov dword [ebp + edx*4], ecx
mov ebx, dword [ebx + edi*4]
mov ecx, dword [esi + 0x24]
mov ebp, dword [ecx + eax]
add ecx, eax
add ebp, ebx
mov dword [ecx], ebp
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + eax]
mov ebx, dword [esi + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x2c], ebx
mov ebx, dword [eax]
inc edi
inc edx
cmp edi, ebx
jb 0x4bcf21
mov ebx, dword [esp + 0x10]
pop ebp
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc

Function at 0x4bd540
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
call fcn.004be2d0
and eax, 0x8000ffff
jns 0x4bd55b
dec eax
or eax, 0xffff0000
inc eax
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov bl, byte [ecx + 0x11]
test bl, bl
jne 0x4bd57d
cmp dword [ecx + 0xc], eax
jae 0x4bd572
mov ecx, dword [ecx + 8]
jmp 0x4bd576
mov edx, ecx
mov ecx, dword [ecx]
mov bl, byte [ecx + 0x11]
test bl, bl
je 0x4bd568
mov eax, dword [esi + 0x18]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], edx
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004bd4b0
test eax, eax
jne 0x4bd5cb
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004bd4b0
test eax, eax
je 0x4bd5d8
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push 1
call dword [sym.imp.msvcr71.dll_exit]
int3