joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d2f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x525673
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00515dda
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x1c672e0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x1c67228
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0051b54c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0051cae7
test eax, eax
je 0x49d40c
mov ecx, dword [esp + 0x3c]
call fcn.0051b579
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49d3d0
push edi
mov ecx, esi
call fcn.00518b40
mov ecx, esi
call fcn.0049d5b0
cmp dword [esp + 0x38], 1
jne 0x49d405
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00518caa
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x49f5f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x49f623
push esi
call fcn.004ad900
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49f61c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x49f6a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49f692
mov eax, dword [esi + 8]
test eax, eax
je 0x49f647
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49f68e
cmp eax, 2
je 0x49f692
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49f63a
cmp eax, 3
je 0x49f66d
cmp eax, 1
jne 0x49f63a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49f63a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49f63a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0049f6d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49f6b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0049f6d0
add esp, 4
pop esi
ret
Function at 0x49ff40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x49ff61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x49ff61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x49ff61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4badf8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x525b2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00515dda
mov dword [esi], 0x1c69700
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.004bba30
call fcn.004bfa10
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.004bfa10
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.004bfa10
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.004bfa10
mov dword [edi], 0x1c69624
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.00512dca
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x1c696f4
mov eax, dword [0x1c9d8e0]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.004bfa10
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.00512dca
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x1c69634
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4baee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x525bb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x1c69634
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.00512df3
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x1c69620
call fcn.004bfc10
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.00514715
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x1c697b8
mov byte [esp + 0x18], 6
call fcn.0051b5a3
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.00512df3
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x1c69620
call fcn.004bfc10
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x1c69620
call fcn.004bfc10
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x1c69620
call fcn.004bfc10
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x1c69620
call fcn.004bfc10
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0051298c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4c9db0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push esi
push eax
call fcn.004c9ee0
add esp, 8
test eax, eax
jne 0x4c9dc9
pop esi
ret
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x4c9dd5
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x8c], 0
pop esi
ret

Function at 0x4c9df0
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x38c]
mov esi, dword [edi]
push eax
call fcn.004ca0f0
add esp, 4
test esi, esi
je 0x4c9e7a
mov edi, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4c9e6e
cmp dword [esi + 8], 0xffffffff
je 0x4c9e6e
push 0
push eax
call ebp
mov dword [esi + 0x8c], 0
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x4c9e5c
mov eax, dword [esi + 0x1c]
push 0
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 0x14]
mov edx, dword [eax + 0xc]
add ecx, edx
push ecx
jmp 0x4c9e60
push 0
push 0
push esi
push 8
push 0x15
push edi
call fcn.004c5a60
add esp, 0x18
mov esi, dword [esi + 0x48]
test esi, esi
jne 0x4c9e16
mov edi, dword [esp + 0x14]
pop ebp
mov edx, dword [edi + 0x38c]
push edx
call fcn.004ca100
add esp, 4
pop edi
pop esi
ret

Function at 0x4cb2e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, eax
dec eax
test edx, edx
je 0x4cb31c
push ebx
push esi
lea esi, [eax + 1]
mov eax, dword [esp + 0x14]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x1c69dfc]
xor ax, bx
inc ecx
dec esi
jne 0x4cb2f8
pop esi
pop ebx
ret
mov ax, word [esp + 0xc]
ret
Function at 0x4d1dc0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004d1bd0
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004d1d00
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x4d1e3a
add eax, 0x30
jmp 0x4d1e3d
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x4d1e4c
add eax, 0x30
jmp 0x4d1e4f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x4d1e20
pop esi
add esp, 0x94
ret

Function at 0x4d1e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x4d1efb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x4d1edf
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x4d1ee9
cmp ecx, 0x38
jle 0x4d1ee9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1c6a294
test ecx, ecx
je 0x4d1f2f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x4d1f1a
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x4d1f2f
mov dl, byte [eax + 0x1c6a294]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x4d1f20
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004d1dc0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x1c904e8
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x4d1f94
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x4d1f87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x4e6fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1ccc5c8]
xor edx, edx
cmp eax, edx
jne 0x4e6fd6
xor eax, eax
mov byte [eax + 0x1ccc4c8], al
inc eax
cmp eax, 0x100
jl 0x4e6fbe
mov dword [0x1ccc5c8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1ccc4c8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e7067
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e703a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e7008
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e70e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e7133
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e711a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4edab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526b9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004ee3d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1c6c61c
call fcn.00514456
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4edb43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00514456
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4edb3c
push 0
mov ecx, eax
call fcn.004e4be0
mov dword [esi + 0xc], eax
jmp 0x4edb45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4edb45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x516bcf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x516c07
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00514bbc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00514b94
jmp 0x516c13
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5182c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x518306
call fcn.0051e1dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x518306
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5182fd
xor eax, eax
jmp 0x51830e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00518314
pop edi
pop esi
pop ebx
ret 4

Function at 0x51e70d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51e73b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51e759
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051e673
jmp 0x51e759
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51e759
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051e673
test edi, edi
mov eax, edi
jne 0x51e743
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x1ba7932
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5000e008], 0x8088405
inc edx
mov dword [ebx + 0x5000e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x1baa376
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x5000f73c]
xor ebx, ebx
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x5000fde4]
mov dword [0x5000f73c], eax
and eax, 0xff
add dword [0x5000f740], eax
imul eax, dword [0x5000f740], 0x8088405
inc eax
mov dword [0x5000f740], eax
mov eax, dword [0x5000f744]
movzx ebx, al
xor bl, byte [0x5000f743]
shr eax, 8
xor eax, dword [ebx*4 + 0x5000fde4]
mov dword [0x5000f744], eax
ret
Function at 0x1baa3e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
pushal
mov byte [ebp - 1], 0
mov dword [0x5000f73c], 0x12345678
mov dword [0x5000f740], 0x23456789
mov dword [0x5000f744], 0x34567890
movzx ecx, byte [0x5000f748]
test ecx, ecx
je 0x1baa473
xor esi, esi
mov dl, byte [esi + 0x5000f749]
call fcn.01baa376
inc esi
cmp esi, ecx
jb 0x1baa41a
xor esi, esi
call fcn.01baa3ce
xor byte [esi + 0x5000f724], al
mov dl, byte [esi + 0x5000f724]
call fcn.01baa376
inc esi
cmp esi, 0xc
jb 0x1baa42c
mov al, byte [0x5000f72f]
test word [0x5000f90e], 8
jne 0x1baa467
cmp al, byte [0x5000f919]
jne 0x1baa473
mov byte [ebp - 1], 1
jmp 0x1baa473
cmp al, byte [0x5000f913]
jne 0x1baa473
mov byte [ebp - 1], 1
popal
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret

Function at 0x1baa506
Capabilities:
Encode data using xor

Disassembly:
pushal
mov edi, dword [0x5000f82c]
cmp dword [0x5000f828], edi
jae 0x1baa51b
mov edi, dword [0x5000f828]
test edi, edi
je 0x1baa546
sub dword [0x5000f82c], edi
lea esi, [0x5003aa00]
add esi, dword [0x5000f824]
add edi, esi
call fcn.01baa3ce
xor byte [esi], al
mov dl, byte [esi]
call fcn.01baa376
inc esi
cmp esi, edi
jb 0x1baa533
popal
ret

Function at 0x1baa54a
Capabilities:
Encode data using xor

Disassembly:
pushal
lea esi, [0x5003aa00]
mov edi, esi
add edi, dword [0x5000f828]
call fcn.01baa3ce
mov dl, byte [esi]
xor byte [esi], al
call fcn.01baa376
inc esi
cmp esi, edi
jb 0x1baa559
popal
ret

Function at 0x1baad56
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x5000fdb0]
add dword [0x5000fd80], eax
cmp byte [0x5000f840], 0
jne 0x1baadbc
cmp dword [0x5000fdb0], 0
jle 0x1baadbc
mov eax, dword [0x5000fdbc]
lea edx, [eax + 0x5002a800]
mov ecx, dword [0x5000fdb0]
mov eax, dword [0x5000f864]
call fcn.01ba954e
test eax, eax
jge 0x1baadbc
mov dword [0x5000f834], 5
push 0x50005b6c
push dword [0x5000f854]
push 0x50005b8c
mov eax, 0x5000f838
mov edx, 3
call fcn.01ba84c6
ret
mov eax, dword [0x5000fdb0]
test eax, eax
je 0x1baadf8
add dword [0x5000fda0], eax
mov eax, dword [0x5000fdc4]
mov esi, dword [0x5000fdbc]
xor ebx, ebx
mov bl, al
xor bl, byte [esi + 0x5002a800]
shr eax, 8
xor eax, dword [ebx*4 + 0x5000fde4]
inc esi
cmp esi, dword [0x5000fda8]
jb 0x1baadd8
mov dword [0x5000fdc4], eax
cmp dword [0x5000fda8], 0x10000
jb 0x1baae29
mov esi, 0x5002a800
mov edi, esi
add esi, dword [0x5000fda8]
sub esi, 0x8000
mov ecx, 0x8000
cld
rep movsb byte es:[edi], byte [esi]
mov dword [0x5000fda8], 0x8000
mov eax, dword [0x5000fda8]
mov dword [0x5000fdbc], eax
mov dword [0x5000fdb0], 0
ret
Function at 0x1badbd2
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x5000fda8], 0x8000
jle 0x1badc37
pushal
mov edx, dword [0x5000fda8]
sub edx, 0x8000
mov esi, 0x5002a800
mov edi, esi
add esi, edx
mov ecx, 0x2000
cld
rep movsd dword es:[edi], dword [esi]
mov ebx, 0xffff
sub dword [ebx*4 + 0x50042b04], edx
dec ebx
jns 0x1badc01
mov esi, edx
shl esi, 2
add esi, 0x50082b44
mov ebx, esi
add ebx, 0x20000
mov edi, 0x50082b44
cld
lodsd eax, dword [esi]
sub eax, edx
stosd dword es:[edi], eax
cmp esi, ebx
jb 0x1badc24
popal
mov dword [0x5000fda8], 0x8000
mov eax, dword [0x5000fda8]
mov dword [0x5000fdbc], eax
mov eax, dword [0x5000f91e]
sub eax, dword [0x5000fda0]
mov dword [0x5000fdb0], eax
cmp dword [0x5000fdb0], 0x8000
jle 0x1badc67
mov dword [0x5000fdb0], 0x8000
mov eax, dword [0x5000fdbc]
lea edx, [eax + 0x5002a800]
mov ecx, dword [0x5000fdb0]
mov eax, dword [0x5000f864]
call fcn.01ba957a
cmp eax, dword [0x5000fdb0]
je 0x1badcb4
mov dword [0x5000f834], 3
push 0x50008a38
push dword [0x5000f854]
push 0x50008a5c
mov eax, 0x5000f838
mov edx, 3
call fcn.01ba84c6
ret
mov eax, dword [0x5000fdbc]
add eax, dword [0x5000fdb0]
mov dword [0x5000fda8], eax
mov eax, dword [0x5000fdb0]
add dword [0x5000fda0], eax
mov eax, dword [0x5000fdb0]
add dword [0x5000fd80], eax
pushal
mov eax, dword [0x5000fdc4]
mov esi, dword [0x5000fdbc]
xor ebx, ebx
mov bl, al
xor bl, byte [esi + 0x5002a800]
shr eax, 8
xor eax, dword [ebx*4 + 0x5000fde4]
inc esi
cmp esi, dword [0x5000fda8]
jb 0x1badce8
mov dword [0x5000fdc4], eax
popal
ret
Function at 0x1000545f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x100054a6
cmp ebx, 0x20
je 0x100054a6
cmp ebx, 0xffffffe0
je 0x100054a6
jne 0x100054af
add eax, 1
cmp esi, eax
je 0x100054bc
jne 0x1000548b
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x100054c0
jne 0x10005487
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x100054d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x10005519
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x1000551f
add eax, 4
pop esi
dec esi
push esi
jne 0x10005501
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x100100f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10010111
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1001016b
inc edi
cmp edi, esi
jl 0x10010105
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x100101a0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1001015a
cmp byte [eax], bl
je 0x10010175
cmp byte [eax + 1], bl
je 0x1001017e
cmp byte [eax + 2], bl
je 0x10010188
cmp byte [eax + 3], bl
je 0x10010194
add eax, 4
cmp eax, edi
jb 0x10010131
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4